|
|
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » CJK (chinesse / japanesse / korean) improvements
CJK (chinesse / japanesse / korean) improvements [message #4982] |
Tue, 29 August 2006 12:10 |
|
mirek
Messages: 13980 Registered: November 2005
|
Ultimate Member |
|
|
Fruitfull discussion with hongdong led to these improvements:
* U++ is now able to read multibyte (CJK) encoded filesystem (e.g. FileSelector now should correctly display chinesse filenames).
* LineEdit (and therefore TheIDE) now displays CJK ideographs in double width
* FontInfo is now optimized not to waste space storing ideograph widths, as ideographs seem to be monospaced (however, it is tested so this optimization is performed only if they really are monospaced).
* New IsCJKIdeograph function returns true if unicode character is cjk ideograph
I am not 100% sure if my range is correct, I have defined it as
inline bool IsCJKIdeograph(int c) { return c >= 0x2e80 && c <= 0xdfaf || c >= 0xf900 && c <= 0xfaff; }
Anyway, for current practical purposes (LineEdit) it should be OK.
Mirek
P.S.: What about chinesse translation?
[Updated on: Tue, 29 August 2006 12:13] Report message to a moderator
|
|
|
|
Re: CJK (chinesse / japanesse / korean) improvements [message #5025 is a reply to message #4982] |
Thu, 31 August 2006 02:27 |
|
luzr wrote on Tue, 29 August 2006 06:10 | Fruitfull discussion with hongdong led to these improvements:
* U++ is now able to read multibyte (CJK) encoded filesystem (e.g. FileSelector now should correctly display chinesse filenames).
* LineEdit (and therefore TheIDE) now displays CJK ideographs in double width
* FontInfo is now optimized not to waste space storing ideograph widths, as ideographs seem to be monospaced (however, it is tested so this optimization is performed only if they really are monospaced).
* New IsCJKIdeograph function returns true if unicode character is cjk ideograph
I am not 100% sure if my range is correct, I have defined it as
inline bool IsCJKIdeograph(int c) { return c >= 0x2e80 && c <= 0xdfaf || c >= 0xf900 && c <= 0xfaff; }
Anyway, for current practical purposes (LineEdit) it should be OK.
Mirek
|
it is already in 608-dev2,so happy!!
Quote: |
P.S.: What about chinesse translation?
|
no neccessary but would be nice.
-
Attachment: UCJK.pdf
(Size: 18.01KB, Downloaded 1443 times)
|
|
|
|
|
|
|
|
Re: CJK (chinesse / japanesse / korean) improvements [message #5049 is a reply to message #5044] |
Fri, 01 September 2006 09:25 |
|
I read the link you point,there two ways to translate,one is on compile time,second on runtime.I prefer runtime,because it only need one build exe,people can easily add another language support without recomplie all.
yes,"chinesse i18n codes" t.h has no zhCN info
btw,how about the font selector's chinese support(I post it in I18N)
thanks
[Updated on: Fri, 01 September 2006 09:42] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Wed May 15 15:10:24 CEST 2024
Total time taken to generate the page: 0.02297 seconds
|
|
|