Skip to main content

phoneME Internationalization problem

5 replies [Last post]
tingjunzh
Offline
Joined: 2007-01-12

Hi,

I have build phoneMe_feature MR2 on linux-qte platform, it works very well, but there is a Internationalization problem, when i run some midlet(inlude some unicode Characters, for exzmple zh ), it shows distortion.

thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tingjunzh
Offline
Joined: 2007-01-12

Hi,

may be i have get an idea about this, the midp application can't display Chinese characters because the phoneMe feature cann't find the right fonts.

now problem is how to configue to lead the phoneMe feature soft to find them.

thanks

aap031
Offline
Joined: 2006-10-18

Hi!

What API your MIDlet uses to draw characters? Is that lcdui package from MIDP or SVG API of JSR 226?

In case of MIDP I can tell that phoneME supports single bitmap font which is pre-built with it. Please take a look at midp/src/lowlevelui/graphics/putpixel/native/gxj_font_bitmap.c. This file contains binary data image of the font. To change it (e.g. add Chinese characters) can use FontTool. Please look into midp/src/tool/fontgen. In particular in fontdef directory there are font files in human readable format. Also there are source code and scripts to create .c file with binary data

This holds true for putpixel graphics subsystem. (I.e. affects UI widgets unless SUBSYSTEM_LCDUI_MODULES=platform_widget and affects Graphics.drawChar etc functions unless SUBSYSTEM_GRAPHICS_MODULES=platform_graphics)

Regards,
Andrey

tingjunzh
Offline
Joined: 2007-01-12

h!,

thank you, i have modified some files associate with font and text, now it works very well.

tingjunzh
Offline
Joined: 2007-01-12

Hi,

i find there are tow files associated with font setting, they are defaultFont.svg and initialFont.svg. what should i do to let the phoneME-feature software supports other unicode codes, for example ja_JP zh_CN...

thanks

tingjunzh
Offline
Joined: 2007-01-12

Hi,

Does this problem associate with the build-configuration, or linux language environment itself?

my environment is:
$LANG=en_US

thanks!