This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Asian Character


Hi,

I am unsure wheter I should adress my question to you or not but I am at a lost and would greatly appreciate any help I can get.

We are using ecos on an instrument with a MSP430 microcontroller. The instrument currently runs in 5 different languages all using WMTF_ASCII TextFlags encoding which can be found in MWTypes.h file from the EcosLibrary. We would like the instrument to be available in Chinese (WMTF_DBCS_EUCCN text flag). I have already mapped the Chinese translation to key strings, added the flag and menu needed and made all the changes that needed to be made in our application code. The same thing has been done for Japanese as well (WMTF_DBCS_JIS text flag). 

When I download the code with the Asian character sets available to the instrument and change the language to Japanese/Chinese I get a set of white blank rectangles instead of the desired Asian Characters. Is there some special extra files/librairies that I need to add to my project to have the proper display ? Or maybe you could provide me with a code sample that properly displays Asian character using Ecos on an embedded device ?

Here is how I display the language with the wanted encoding. It works fine for the ASCII encoded languages.

typedef enum {ENGLISH = 0, FRENCH, GERMAN, SPANISH, ITALIAN, JAPANESE, POLISH, MAX_LANGUAGES } LanguageType;

int TextFlags [MAX_LANGUAGES] =
  {MWTF_ASCII, MWTF_ASCII, MWTF_ASCII, MWTF_ASCII, MWTF_ASCII, MWTF_DBCS_JIS, MWTF_ASCII};

GdText(screenDev, minx + startPosition, 
         Miny, titleString, length,
         TextFlags[language]);

________________________________________
Chantale Duchesne
Concepteur logiciel | Software Designer
Olympus NDT Canada | 505, boul. du Parc-Technologique | Québec (Québec) G1P 4S9 | Canada
(1) (418) 872-1155
www.olympus-ims.com



Chantale Duchesne
Concepteur logiciel | Software Designer
Olympus NDT Canada | 505, boul. du Parc-Technologique | Québec (Québec) G1P 4S9 | Canada
(1) (418) 872-1155
www.olympus-ims.com


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]