Hi Andrej,
At 12:00am -0800 00-02-20, Palm Developer Forum digest wrote:
>Subject: Help with International/Text manager
>From: "Andrej Borsenkow" <[EMAIL PROTECTED]>
>Date: Sat, 19 Feb 2000 18:27:59 +0300
>X-Message-Number: 5
>
>
>Recently I tried to use International/Text manager as adviced by Palm. I
>have the PRC-tools and SDK 3.1 from Palm site. I tested code on POSE 3.0a4
>with ROM from my Palm Vx. Unfortunately, it did not work. I started
>step-by-step and found
>
>FtrGet(sysFtrCreator, sysFtrNumIntlMgr, &value) is O.K. and returns 0, value
>is set to 1
>
>FtrGet (sysFtrCreator, sysFtrNumEncoding , &encoding) works and returns
>charEncodingPalmLatin as defined in TextMgr.h
>
>TxtIsValidChar (chrCapital_A) (e.g.) returns true
>
>but none of the TxtChr*() functions work. TxtChrAttr() always returns zero,
>etc
Hmmm. I'd be surprised if TxtCharAttr function always returned zero,
as then Palm OS and the ROM apps wouldn't work properly. Based on
your comment below, I'm wondering of the GCC version of Palm OS Glue
has a problem.
>Then I found, that it does not seem to be any way to convert "normal" string
>into something that text manager understands. Palm recommends to define text
>resources - but, e.g., how should I sort the application names if I
>installed localisation for Palm and have russian names (actually, exactly
>the reason I started this all).
I'm not sure what you mean by this. The Text Mgr routines on a Latin
device (e.g. English, French, German) will return results that are
appropriate for Latin-encoded text, and "somewhat reasonable" for all
of the currently supported Latin-based languages. It doesn't know
anything about Japanese or Russian or any other
language/character-encoding combinations.
If you want to support Russian text using a Cyrillic character
encoding, then you'd need to patch the IntlDispatch trap and write
your own versions of all of the Text Manager routines.
>I'd use glue library - but headers seem to be missing in 3.1 SDK just as
>library itself in PRC-tools 2.0.
Do you mean the Text Mgr headers aren't in the 3.1 SDK? Seems odd to
me...I'm pretty sure they went out, and they're definitely part of
the 3.5 beta SDK.
I'm not sure of the status of the GCC-based development environment,
though, so perhaps somebody else (John?) could better understand and
answer your questions. I know there were some issues with getting an
appropriate version of the Palm OS Glue library released for
PRC-tools.
>Can anybody point me to information on or explain how to _actually_ use
>International manager? Or does it work only on natinal versions of PalmOS
>and does not work on English version? Then why OS reports International
>Manager as present? (I did read knowledgebase and Palm companion).
The Text Mgr currently works with either Latin or Shift-JIS encoded
text. The core Palm OS and ROM apps all make extensive use of it on
all 3.1 or later devices (English, German,, Japanese, etc).
-- Ken
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html