Thomas Piekenbrock
I have this wonderful Japanese keyboard with all the hiragana Symbols on it. I would like to use them in Linux. Is it possible to create a keyboard coding for this,
Yes.
simply by letting the Kana keys produce the respective Roman Characters (i.e. the press of "ka" syllable rendering the two Roman letters "k" and "a")?
No, it's done differently.
If yes, how can I do this so that it works for KDE 3.0?
There's nothing special about KDE 3.0 in that respect, if you setup
your Canna-clients like kinput2 to use the kana layout, it will work
everywhere, including KDE 3.0.
Here's how to make it work:
Copy the attached ~/.canna-jisx6002.ctd to your home directory. You
have to compile it to binary form with
mfabian@gregory:~$ mkromdic .canna-jisx6002.ctd
forcpp -7 < .canna-jisx6002.ctd | /lib/cpp |forcpp -8 | kpdic > .canna-jisx6002.cbp
SIZE 603 KEYS 92
mfabian@gregory:~$
Now put
(setq romkana-table ".canna-jisx6002.cbp")
in your ~/.canna to load the binary version of the keyboard map.
If you don't have a ~/.canna, create one or use the one I attach to
this mail.
Restart your canna clients like kinput2, XEmacs, Emacs, nvi-m17n, ...
You must use the Japanese keyboard map of course, i.e. you should use
setxkbmap jp jp106
and/or have
Section "InputDevice"
[...]
Option "XkbLayout" "jp"
Option "XkbModel" "jp106"
[...]
EndSection
in /etc/X11/XF86Config.
Now the keyboard layout should be correct for kana input.
The following small deficiencies probably cannot be solved:
- '\' and the 'Yen'-key both output 'ろ'.
- '~' and "Overscore" both output 'を'
'Overscore' is the key left of the 'Yen' key, shifted.
There is no real 'Overscore', therefore 'Overscore' always
seems to output '~' on the Japanese keyboard layouts used
by X11.
On the JIS X 6002 keyboard, the 'Overscore' key is labelled
with the repetition character '々', i.e. because of this problem
you can't input this character directly. But that is
no big problem, usually one doesn't need to input this
character directly anyway. The conversion
backend (Canna) usually does that for you when necessary.
I.e. when you type 'いろいろ' and convert, you will
get '色々' automatically. And if you really need to
input 々 directly, you can still use the special symbol
input as described in
http://www.suse.de/~mfabian/suse-cjk/kinput2-canna-special-symbo.html
- I was not sure on what key to put the 'ー' in my
JIX X 6002 keymap. According to Figure 5-10 on page 248 in
Ken Lundes book "CJK Information processing",
this character should be on the same key as 'ろ' (shifted).
Therefore I mapped '_' to 'ー'.
--
Mike Fabian