[Scilab-Dev] [scilab dev] Patch to draw non-UTF8 text in the graphic

Yung-Jang Lee yjlee123 at gmail.com
Mon Aug 4 16:31:27 CEST 2008


 Aleksey :

 I just re-download beta4 Windows binary  and  this is  my  test results for
display/drawing Chinese under Windows:

 Windows beta4 :
     success commands : banner(); disp('aChinese');
     fail commands         :  about();title('aChinese'); xtitle(...),
                                       legend,legends,xstring,xstringb

 Windwos beta4 + 3 replaced dll ( from* drawingNonUnicodeTextPatch.zip  *):
     success commands : banner();
disp('aChinese');about();title('aChinese'); xtitle(...),
                                       legend,legends,xstring,xstringb

Did you ever test Windows beta4 (not replaced with the dll I send to you )
?  Can you chceck that the Russian characters dipsplay trouble is cause by
my dll, or from the beta4 binary distribution ?


WRB,

YungLee


2008/8/4 Vorona Aleksey <voronaam at yandex.ru>

> 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20080804/88039834/attachment.htm>


More information about the dev mailing list