wince国际化语言支持
生活随笔
收集整理的這篇文章主要介紹了
wince国际化语言支持
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在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:In Platform Builder, from the?File?menu, choose?New Platform. Complete the?New Platform Wizard?to create a basic OS design using the appropriate design template, such as an Enterprise Web Pad. In the Catalog, expand the?International?node, locate the?Unicode Processor for Complex Scripts?Catalog item, and drag it to the Workspace window. From the Catalog, add the locale-specific support to your run-time image. For example, if you want to include support for Arabic in your run-time image, navigate to the?Arabic?folder underInternational\Locale Specific Support?and select the appropriate font and keyboard Catalog items. From the?Platform?menu, choose?Settings. The?Platform Settings?dialog appears. In the?Platform Settings?dialog box, on the?Locales?tab, select the appropriate locale for your run-time image. Selecting the target locale will include the required NLS data and the associated ANSI and default OEM code pages for that locale. Note???You can clear any of the locales that are selected by default. From the?Default language?drop-down list, select the default language for your run-time image. Clear?Localize the build?, and then choose?OK. In Windows Explorer, navigate to the %_WINCEROOT%\PUBLIC\COMMON\OAK\FILES\INTLTRNS directory. Create a new folder and name it with the locale identifier (LCID) that will be the default LCID for your run-time image. For example, if you want to create a run-time image with an LCID that defaults to Arabic (Saudi Arabia), name the new folder "0401." For a list of locale identifiers, see?Language Identifiers and Locales. In the %_WINCEROOT%\PUBLIC\COMMON\OAK\FILES\INTLTRNS directory, navigate to the 0409 folder, and copy the Common.str file. Open the folder for your default LCID that you created in Step 10, and paste Common.str into this folder. Open the Common.str file you just pasted and change the following values to the default LCID of your run-time image:? #define LOC_LCID ~"<default LCID>"
#define LOC_ACP ~"<default code page>"
#define LOC_HKL_DEFAULT ~"<default HKL value>" Save Common.str. Note???The values for the LCID and default code page have to be hexadecimal. The following table lists the Handle to the Keyboard Layout (HKL) values for the Complex Scripts locales.
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:
- Allows bidirectional rendering
- Has contextual shaping
- Has combining characters
- Has specialized word-breaking and justification rules
- Filters out illegal character combinations
- Arabic
- Gujarati
- Hebrew
- Hindi
- Kannada
- Marathi
- Punjabi
- Tamil
- Telugu
- Thai
- Uniscribe scripting engine.
- Mirroring.
- Complex scripts in graphics device interface (GDI), Common Controls, and Graphics, Windowing, and Events Subsystem (GWES).
- Complex scripts content rendering and intrinsic control support in Internet Explorer 6 for Windows CE. Note???Windows CE does not support Complex Script input through the command line (cmd.exe). Windows CE also does not support printing for Complex Scripts.
Applications that are not enabled for Complex Scripts
- The following Windows CE applications are not enabled for Complex Scripts:
- Microsoft? Pocket Internet Explorer
- Instant Messenger
- Word Pad
- Inbox
- File Viewers
總結
以上是生活随笔為你收集整理的wince国际化语言支持的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: WinCE Heartbeat Mess
- 下一篇: 使用Silverlight for Em