Dear Mac
    I have try to compiler fltk 1.3 with my code. most chinese characters are 
display well, and editing chinese works well. But it still has some problem. In 
window label and menu label ,some chinese are still displayed in mess. 
According to my experience, utf8 support chinese not good enough. Not only in 
fltk,but also in some web pages and emails. So I decline to an old method in 
china, that is , using ANSI coding, when encounter a byte that greater than 
127, treat it as 2 byte character, but be careful, it need to match 2 byte 
words analysising the whole line.
   So,My proposal is , provid a code page option in fltk, so that app developer 
can choice UTF8 or ANSI or other.
   An other option is, in character processing , use std::_wstring instead of 
char* .
>
>
> >   I am using fltk 1.19 to develop an application for chinese=20
> > users,under windows. In my apps window, Fl_Input ,=20
> > Fl_Text_Editor is used. It is good to edit english characters=20
> > ,but when enter chinese character, the cursor is position at=20
> > wront place ,so if I want to move cursor , is will display=20
> > mess text. Notice, the chinese character is two byte width,=20
> > so when dealing with chinese characters, it need to move 2=20
> > byte per step. How can I fix the problem.
>
> Fltk-1.1.9 does not handle multi-byte characters.
>
> If you use fltk-1.3 or perhaps fltk-2, both of these handle text as
> UTF-8 so ought to be able to handle Chinese characters.
> Fltk-1.3 has the same basic API as fltk-1.1.9, so the code you have
> should recompile against fltk-1.3 with no problems. Compiling against
> fltk-2 will entail some rework of you code, because it has a different
> API.
>
> I don't know how well the support for Chinese characters has been tested
> for either fltk-1.3 or fltk-2, so we would probably welcome any
> observations or feedback that you have.
>
>
>
> SELEX Sensors and Airborne Systems Limited
> Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex=
>  SS14 3EL
> A company registered in England & Wales.  Company no. 02426132
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
>

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to