[Scilab-Dev] [scilab dev] Patch to draw non-UTF8 text in the graphic
Vorona Aleksey
voronaam at yandex.ru
Mon Aug 4 15:00:44 CEST 2008
Yung-Jang Lee wrote:
> Sylvestre , Aleksey and all:
>
> This is the patch to draw non-UTF8 text in the graphic. The following
> commands are tested
>
> title,xtitle, legend,legends,xstring,xstringb
>
> and a screenshot showing chinese is attached.
>
>
> Since recent SVN trunk contain function ('ANSIToUTF8' inside printf_scilab)
> that conflict with my original design, so I modify functions in
> 'localetoutf.c' to always convert locale string to UTF8 and remove
> calling 'ANSIToUTF8' , hope this can solve the conflict.
>
> This patch contain last patch I send to you.
>
> Cheers,
>
> YungLee
I am sorry, I am confused with bunch of patches, I am still in progress of rebuilding
tries... So, I'll report about what I tested.
I installed beta4 from scilab.org and changed DLL to ones you send to me. After that I've
tested languages. I found that Russian translation is not completely checked in (I'll send
patch later, after updating translation) and that Russian input works everywhere but
Russian output fails everywhere. For example, in main console:
-->ss = 'Тест'
ss =
Тест
It is regular wrong displaying Russian-page-UTF8 string as ASCII string. Same result I see
after executing disp('Тест') from SciPad. It same result as result of command:
$ echo 'Тест' | iconv -f cp1251 -t utf8
Тест
xtitle takes string correctly but during display it uses wrong page of Font, string 'Тест'
displayed as 'Òåñò'
It is same result as result of command
$ echo 'Тест' | iconv -f utf8 -t cp1251 | iconv -f 8859_1 -t utf8
Òåñò
I still can't build Scilab_f2c.sln with MS Visual Studio Express. So, I may test any
builds if somebody will upload it somewhere. I can give access to my FTP for easy file
exchange.
--
WBR,
Vorona Aleksey.
More information about the dev
mailing list