wince国际化语言支持
2008-04-25 10:07:51
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://bluefish.blog.51cto.com/214870/73451 |
在wince5下面pb自带了12种语言的res文件,这些文件就是相应语言的一些系统对话框,菜单之类的resource。这12种语言分别是:
0x0404 Chinese Taiwan 0x0407 German Germany 0x0409 English US 0x040C Franch France 0x0410 Italian Italy 0x0411 Japanese Japan 0x0412 Korean Korea 0x0413 Dutch Newtherlands 0x0416 Portuguese Brail 0x041D Swedish Sweden 0x0804 Chinese PRC 0x0C0A Spanish Span 也就是说在pb->setting->local中选择以上12种语言之一编译后,系统就是相应语言的系统,但是如果要想支持输入法和字库的话,还是要加相关的输入法和字库组件。 但是象Arabic这样的PB就没有直接提供res文件。当然这些res文件可以自己做(无非就是建立对话框,添加按钮,编辑框之类的),不过前提是你要懂得相关的语言。如果你要是在pb->setting->local中选择arabic相关语言的话,在你编译后的nk运行后,一直都english的。因为,在makeimage的时候,如果没有找到相关语言的res文件的话,就用默认的0x0409来代替。
另外wince还提供了以下几个locale-specific的支持,help中说locale-specific 包括fonts, keyboards and keyboard drivers, Input Method Editors (IMEs), and Input Methods (IMs).
Arabic Chinese (Simplified) Chinese (Traditional) English (U.S.) English (Worldwide) French German Hebrew Indic Japanese Korean Thai 也就是说,以上语言的的输入法或者字库wince都是以组件的形式提供了的,在pb的catalog中可以找到。 以下部分是关于complex script 的(copy from pb help)
A complex script has at least one of the following attributes:
Bidirectional rendering refers to the script's ability to handle text that reads both left-to-right and right-to-left. For example, in the bidirectional rendering of Arabic, the default reading direction for text is right-to-left, but for some numbers, it is left-to-right. Processing a complex script must account for the difference between the logical (keystroke) order and the visual order of the glyphs.
In addition, processing must properly deal with caret movement and hit testing. The mapping between screen position and a character index for, say, text selection or caret display requires knowledge of the layout algorithms.
Contextual shaping occurs when a script's characters change shape depending on the characters that surround them. This occurs in English cursive writing when a lowercase "l" changes shape depending on the character that precedes it such as an "a" (connects low to the "l") or an "o" (connects high). Arabic is a script that exhibits contextual shaping.
Combining characters (ligatures) are characters that join into one character when placed together. One example is the "ae" combination in English; it is sometimes represented by a single character. Arabic is a script that has many combining characters.
Specialized word break and justification refers to scripts that have complex rules for dividing words between lines or justifying text on a line. Thai is such a script.
Filtering out invalid character combinations occurs when a language does not allow certain character combinations. Thai is such a script.
Windows CE provides the support for Complex Scripts and allows run-time images to be created for the following locales:
The Windows CE support for Complex Scripts includes:
Applications that are not enabled for Complex Scripts
When creating a Complex Scripts-enabled Run-time image, you need to complete a set of steps to make sure your run-time image includes all the required locale-specific support.
To create a Complex Scripts-enabled run-time image
|


rightsoft
博客统计信息
热门文章
最新评论
友情链接