SliTaz SliTaz Forum

You are not logged in.

#1 2012-05-14 08:20:52

Guest
Guest

Japanese Keyboard

Hi;

I am trying to get the keyboard to type Japanese characters (SliTaz 4.0 stable) but with no luck.

I tried to set the kernel parameter "kmap=jp106" and setting the file "/etc/X11/xorg.conf.d/40-Keyboard.conf" with Option "XkbModel" "jp106" Option "XkbLayout" "jp" but they lead to the same result the keyboard does not type anything when i press keys.

Can someone help please

Thanks

#2 2012-05-14 20:00:56

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Japanese Keyboard

First. Remove (or comment) next line from /etc/X11/xorg.conf.d/40-evdev.conf

[c]    Option "XkbOptions" "terminate:ctrl_alt_bksp"[/c]

Second. Edit /etc/X11/xorg.conf.d/40-Keyboard.conf

This is my file:

[c]

Section "InputClass"

Identifier "Keyboard Defaults"

MatchIsKeyboard "yes"

Option "XkbLayout" "us,ru(winkeys)"

Option "XkbOptions" "grp:ctrl_shift_toggle, grp_led:scroll, compose:ralt"

EndSection

[/c]

Here:

[*]us,ru(winkeys) — my layouts (USA and Russia);

[*]ctrl_shift_toggle — toggle between layouts via ‹Ctrl›+‹Shift›;

[*]scroll — light Scroll Led when toggles to second layout;

[*]ralt — Right ‹Alt› as Compose key;

[*]You can add here [c]terminate:ctrl_alt_bksp[/c] from 40-evdev.conf (separated by a comma as usual)

I think, You have to change 'us,ru(winkeys)' to 'us,jp' only.

Good luck!

Offline

#3 2012-05-16 08:25:03

Guest
Guest

Re: Japanese Keyboard

Thank you Aleksej for your reply, but unfortunately that did not work for me, replacing ru with jp resulted in only english keys, replacing ru with jp106 resulted in the initial problem which is i was unable to get any characters at all.

I tried to set the kernel option "kmap=jp106" but again i was unable to type anything.

thank you

#4 2012-05-16 15:47:03

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Japanese Keyboard

So, here is full (?) manual how to japanese Your SliTaz.

1. Install ´glibc-locale´ package to work with different locales. Just follow this link: http://tazpanel:82/pkgs.cgi?do=Install&repo=Any&pkg=glibc-locale

2. To generate Japan locale (via TazPanel) You can just follow this link: http://tazpanel:82/settings.cgi?gen_locale=ja_JP

Log out and log in. Now system should know Japanese date format, monetary etc.

* You can see only 2 entry of SliTaz menu on Japan, but You can translate them yourself (open files in /usr/share/applications and /usr/share/desktop-directories as text) and share here with other Japanese SliTaz users.

* You can add programs translation (files with ´.mo´ at end) to /usr/share/locale/ja/LC_MESSAGES

You can find them in other linuxes, packages, sources etc. (match programs versions!)

After You have collect some amount of this translations, You can share them and ask maintainers (or me) to create packages ´locale-jp´ and ´locale-jp-extra´ (see content of similar packages ´locale-fr´, ´locale-fr-extra´ etc. for guide).

3. Leave default settings in /etc/X11/xorg.conf.d/40-evdev.conf and /etc/X11/xorg.conf.d/40-Keyboard.conf to have US keyboard.

4. Install ´scim´, ´scim-tables-base´, ´scim-tables-ja´ packages. Follow link: http://tazpanel:82/pkgs.cgi?do=Install&repo=Any&pkg=scim-tables-ja

* As we can see in log, append Your file /home/tux/.config/openbox/autostart.sh with strings:

[c]export XMODIFIERS=@im=SCIM

export XIM="scim"

export XINPUT="xim"

export XIM_PROGRAM="scim -d"

export GTK_IM_MODULE=scim

export QT_IM_MODULE=scim

scim -d &[/c]

Log out and log in. Now You can see new icon (keyboard) on top panel. Right click on it → SCIM Setup → Global Setup → Keyboard Layout: Japanese → Apply. [Maybe log out needed?]

5. Test now. Open Leafpad, right click on page, check ´Input Method → SCIM Input Method´. Press ‹Ctrl›+‹Space›, You can type Your Japanese text now, and bottom SCIM panel appears with some useful settings. To swith back to English press ‹Ctrl›+‹Space› again.

Not all programs have context menu with ´Input Method´, and ´SCIM Input Method´ is not default for me, and there is an issue…

Also, this thread in LinuxMint forum is interesting too: http://forums.linuxmint.com/viewtopic.php?f=42&t=75792

Offline

#5 2012-05-16 16:08:33

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Japanese Keyboard

Oh, forgot for font. See Ubuntu and Droid fonts: http://tazpanel:82/pkgs.cgi?search=font&repo=Any

がんばってね!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]