日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

wince国际化语言支持

發(fā)布時(shí)間:2025/4/16 编程问答 18 豆豆
生活随笔 收集整理的這篇文章主要介紹了 wince国际化语言支持 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
在wince5下面pb自帶了12種語言的res文件,這些文件就是相應(yīng)語言的一些系統(tǒng)對(duì)話框,菜單之類的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種語言之一編譯后,系統(tǒng)就是相應(yīng)語言的系統(tǒng),但是如果要想支持輸入法和字庫(kù)的話,還是要加相關(guān)的輸入法和字庫(kù)組件。
? ??? 但是象Arabic這樣的PB就沒有直接提供res文件。當(dāng)然這些res文件可以自己做(無非就是建立對(duì)話框,添加按鈕,編輯框之類的),不過前提是你要懂得相關(guān)的語言。如果你要是在pb->setting->local中選擇arabic相關(guān)語言的話,在你編譯后的nk運(yùn)行后,一直都english的。因?yàn)?#xff0c;在makeimage的時(shí)候,如果沒有找到相關(guān)語言的res文件的話,就用默認(rèn)的0x0409來代替。 ? ??? 另外wince還提供了以下幾個(gè)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?
也就是說,以上語言的的輸入法或者字庫(kù)wince都是以組件的形式提供了的,在pb的catalog中可以找到。
? 以下部分是關(guān)于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” 博客,請(qǐng)務(wù)必保留此出處http://bluefish.blog.51cto.com/214870/73451

    總結(jié)

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

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。