|
|
Tgif FAQ - Input Double-byte Characters
|
I've just compiled xcin but don't know how to
invoke it within tgif-4.x. The man page is not very
clear on how to input Chinese characters. Can you
give me some pointers?
|
-
I'm not too familiar with xcin. This is what I can do to get
some characters into it:
- Make sure you have something like the following in your X defaults
file:
-
Tgif.DoubleByteInputMethod: xcin
Tgif.SquareDoubleByteFonts: \n\
-hku-fixed-medium-r-normal--%d-*-*-*-*-*-big5.hku-0,*,HKU \n\
-hku-fixed-medium-r-normal--%d-*-*-*-*-*-big5.hku-0,*,HKU \n\
-hku-fixed-medium-r-normal--%d-*-*-*-*-*-big5.hku-0,*,HKU \n\
-hku-fixed-medium-r-normal--%d-*-*-*-*-*-big5.hku-0,*,HKU
I'm using hku-ch16
and I'm using the HKU PostScript font (which
doesn't really exist -- I'm just using it as an example).
- Start xcin. Start tgif and select the HKU font.
- Type <Cntrl><Space>. This should activate xcin.
Part of the xcin window becomes red and the title bar changes to
"Phonetic".
- Type "hak1" and I get a chinese two!
- Type <Cntrl><Space> again and xcin is deactivated.
Please note that tgif only talks to the active
DoubleByteInputMethod when the active
font is a double-byte font. The active font is displayed in the
window of icons. You can see it changes as you move the text
cursor through single and double-byte fonts.
|
Umm... Where can I get xcin?
|
-
You can get it from xcin's
home page. Version 2.5 supposed to use XIM protocol (so you
may need to change Tgif.DoubleByteInputMethod to xim) but I haven't
(and couldn't) tried it out. If you've tried it, please let me know
if tgif works with it.
|
How do I input Japanese characters in
tgif?
|
-
If you use something like kinput2 to input Japanese characters.
Try something like:
-
Tgif.DoubleByteInputMethod: kinput2
Tgif.SquareDoubleByteFonts: \n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Ryumin-Light-EUC-H\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Ryumin-Light-EUC-H\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Ryumin-Light-EUC-H\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Ryumin-Light-EUC-H\n\
\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,Ryumin-Light-EUC-V\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,Ryumin-Light-EUC-V\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,Ryumin-Light-EUC-V\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,Ryumin-Light-EUC-V\n\
\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,GothicBBB-Medium-EUC-V\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,GothicBBB-Medium-EUC-V\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,GothicBBB-Medium-EUC-V\n\
-jis-fixed-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,GothicBBB-Medium-EUC-V
-
When one of the above 4 fonts is selected, you can type
or something like (I don't remember exactly how kinput2 works) that to
activate kinputs.
-
You can also checkout other X defaults in tgif.Xdefaults which is
distributed with the tgif source code. Find the place where it
says "DoubleByte related" and look below that.
|
I can input Japanese characters.
But when I create a PS file with tgif and view it with
ghostscript, I get an error message saying that
Ryumin-Light-EUC-H font is not found.
What can I get this to work?
|
-
Please see
http://www.cit.ics.saitama-u.ac.jp/~far/howto/gs-ttf.html.
|
|