japanese/chinese input method

I see there is add-on support for Japanese and Chinese input method and
fonts, which I just installed. I couldn’t see any help on these though.

I’m interested in finding out about these input method add-ons. How are
they enabled? Is there programatic (ie Pt functions) support for them, or
do my Photon text widgets just get input method support for free? Pointers
to any help/includes/samples that might have gotten downloaded with these
add-ons (I downloaded from the QNX repository).

Patrick Mueller
Patrick_Mueller@oti.com

Patrick Mueller <patrick_mueller@oti.com> wrote:

I see there is add-on support for Japanese and Chinese input method and
fonts, which I just installed. I couldn’t see any help on these though.

I’m interested in finding out about these input method add-ons. How are
they enabled? Is there programatic (ie Pt functions) support for them, or
do my Photon text widgets just get input method support for free? Pointers
to any help/includes/samples that might have gotten downloaded with these
add-ons (I downloaded from the QNX repository).

The installer will install the binary for input method, and the fonts.
For Chinese IM, the program called “cpim”, for Japanese, it called “vpim”.
Just run the one from pterm.

It is my understanding that there is no “programatic” support for them,
means you can’t turn on/off IM in program. However, the good news is,
any photon text widgets will display characters from IM correctly.

-xtang

Thanks. Just tried it out, and seems to work pretty good.

Another question, one I’m about to experiment with in a moment; do these
input methods support Photon 1.14 apps running on Photon 2.0 ontop of QNX
RTP?

Patrick Mueller
Patrick_Mueller@oti.com



Xiaodan Tang <xtang@qnx.com> wrote in message
news:8sktdb$joa$1@nntp.qnx.com

Patrick Mueller <> patrick_mueller@oti.com> > wrote:
I see there is add-on support for Japanese and Chinese input method and
fonts, which I just installed. I couldn’t see any help on these though.

I’m interested in finding out about these input method add-ons. How are
they enabled? Is there programatic (ie Pt functions) support for them,
or
do my Photon text widgets just get input method support for free?
Pointers
to any help/includes/samples that might have gotten downloaded with
these
add-ons (I downloaded from the QNX repository).

The installer will install the binary for input method, and the fonts.
For Chinese IM, the program called “cpim”, for Japanese, it called “vpim”.
Just run the one from pterm.

It is my understanding that there is no “programatic” support for them,
means you can’t turn on/off IM in program. However, the good news is,
any photon text widgets will display characters from IM correctly.

-xtang
\

Patrick Mueller <patrick_mueller@oti.com> wrote:

Thanks. Just tried it out, and seems to work pretty good.

Another question, one I’m about to experiment with in a moment; do these
input methods support Photon 1.14 apps running on Photon 2.0 ontop of QNX
RTP?

I think so. These IM just generated a UTF-8 string, and send it
to the widget…

If I am correct, vmail on RTP is a Photon 1.14 apps and it doing
well with IMs.

-xtang

Patrick Mueller
Patrick_Mueller@oti.com



Xiaodan Tang <> xtang@qnx.com> > wrote in message
news:8sktdb$joa$> 1@nntp.qnx.com> …
Patrick Mueller <> patrick_mueller@oti.com> > wrote:
I see there is add-on support for Japanese and Chinese input method and
fonts, which I just installed. I couldn’t see any help on these though.

I’m interested in finding out about these input method add-ons. How are
they enabled? Is there programatic (ie Pt functions) support for them,
or
do my Photon text widgets just get input method support for free?
Pointers
to any help/includes/samples that might have gotten downloaded with
these
add-ons (I downloaded from the QNX repository).

The installer will install the binary for input method, and the fonts.
For Chinese IM, the program called “cpim”, for Japanese, it called “vpim”.
Just run the one from pterm.

It is my understanding that there is no “programatic” support for them,
means you can’t turn on/off IM in program. However, the good news is,
any photon text widgets will display characters from IM correctly.

-xtang
\

Thanks, it appears to work on my 1.14 app as well, as near as I can tell.

Patrick Mueller
Patrick_Mueller@oti.com



Xiaodan Tang <xtang@qnx.com> wrote in message
news:8sl0h3$lkj$1@nntp.qnx.com

Patrick Mueller <> patrick_mueller@oti.com> > wrote:
Thanks. Just tried it out, and seems to work pretty good.

Another question, one I’m about to experiment with in a moment; do these
input methods support Photon 1.14 apps running on Photon 2.0 ontop of
QNX
RTP?

I think so. These IM just generated a UTF-8 string, and send it
to the widget…

If I am correct, vmail on RTP is a Photon 1.14 apps and it doing
well with IMs.

-xtang

Patrick Mueller
Patrick_Mueller@oti.com



Xiaodan Tang <> xtang@qnx.com> > wrote in message
news:8sktdb$joa$> 1@nntp.qnx.com> …
Patrick Mueller <> patrick_mueller@oti.com> > wrote:
I see there is add-on support for Japanese and Chinese input method
and
fonts, which I just installed. I couldn’t see any help on these
though.

I’m interested in finding out about these input method add-ons. How
are
they enabled? Is there programatic (ie Pt functions) support for
them,
or
do my Photon text widgets just get input method support for free?
Pointers
to any help/includes/samples that might have gotten downloaded with
these
add-ons (I downloaded from the QNX repository).

The installer will install the binary for input method, and the fonts.
For Chinese IM, the program called “cpim”, for Japanese, it called
“vpim”.
Just run the one from pterm.

It is my understanding that there is no “programatic” support for them,
means you can’t turn on/off IM in program. However, the good news is,
any photon text widgets will display characters from IM correctly.

-xtang


\

How does the “cpim” know which edit widget has the input focus, and what the
value of x and y coordinate of the current insertion point are ?

Tony zhou <zmc@263.net> wrote:

How does the “cpim” know which edit widget has the input focus, and what the
value of x and y coordinate of the current insertion point are ?

My understanding is it don’t.

cpim basically create a large region to cover the whole screen, so
all key press event will go to cpim. Once it got a utf-8 character,
it re-emited key event with the characters. Photon then decided
to deliver the event to the right widget (who is in focus).

-xtang

cpim basically create a large region to cover the whole screen, so
all key press event will go to cpim.

Yes ,I agree with you about the whole screen region.

Once it got a utf-8 character, it re-emited key event with the characters.
Photon then decided

to deliver the event to the right widget (who is in focus).

first ,when I press a key ,the cpim create a widget just at the insertion
position to show the letters I pressed,
So the cpim knows which edit widget has the input focus, and what the value
of x and y coordinate of the current insertion point are .

second ,because the utf-8 character may be multi-bytes ,so the output of the
cpim must be a string which can not be send just by emitting a key event, I
think the cpim modify the edit widget which has input focus directly.

So I still want to know the details about how does the “cpim” knows which
edit widget has the input focus, and what the
value of x and y coordinate of the current insertion point are ?