日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

wince国际化语言支持

發布時間:2025/4/16 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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:
  • Allows bidirectional rendering
  • Has contextual shaping
  • Has combining characters
  • Has specialized word-breaking and justification rules
  • Filters out illegal character combinations
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:
  • Arabic
  • Gujarati
  • Hebrew
  • Hindi
  • Kannada
  • Marathi
  • Punjabi
  • Tamil
  • Telugu
  • Thai
The Windows CE support for Complex Scripts includes:
  • 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
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
  • 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.
  • 本文出自 “bluefish” 博客,請務必保留此出處http://bluefish.blog.51cto.com/214870/73451

    總結

    以上是生活随笔為你收集整理的wince国际化语言支持的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。