SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Currently using Slackware64 14.2 and recently found out about SCIM to allow me to input Japanese more easily and that works great except I can't switch back to English or vice versa easily. If I'm understanding everything properly in SCIM, I should be able to switch between inputs with the "CTRL-ALT-down/up" hotkeys, but doing that does nothing. "CTRL-space" should also activate SCIM, but that doesn't seem to do anything either. I have both scim.sh and scim.csh +x in /etc/profile.d and SCIM does get loaded on start in X, as I definitely see it in my XFCE tray and am able to switch inputs using the mouse. any suggestions on easing my life with hotkeys?
May we see the options you've set in your "Global Setup" part under the "FrontEnd" section?
I'd also like to see the contents of your /etc/scim.sh as well if possible.
attached is a screenshot of the requested section, which is pretty much the defaults. I did try to add my own hotkey, but when it didn't work I removed it. below is my /etc/profile.d/scim.sh, which is also defaults
Code:
#!/bin/sh
# SCIM (Smart Common Input Method platform). This is used to support the
# entering of text in non-US-English languages.
# For SCIM to work, you need to use a UTF-8 locale. Make sure it ends on
# ".UTF-8", not "utf-8"! As an example, you would need to use en_US.UTF-8
# for a US locale (export LANG=en_US.UTF-8), not en_US.
#
# The locale (LANG variable) is set in /etc/profile.d/lang.sh.
if [ -x /usr/bin/scim ]; then
# Enable legacy X applications to use scim:
export XMODIFIERS="@im=SCIM"
# Let GTK applications like Firefox/Thunderbird use scim as
# default immodule:
export GTK_IM_MODULE="scim"
# Enable Qt/KDE applications to use scim:
export QT_IM_MODULE="scim"
# Make scim start automatically if the "magic key" Ctrl-Space is pressed:
export XIM_PROGRAM="/usr/bin/scim -d"
fi
# This ensures scim starts when you logon.
# This will only work if you login through runlevel 4 (graphical login)!!!
# Better is to have it start through Ctrl-Space like configured higher up ^^.
#if [ ! `ls /tmp/scim-socket*` ]; then
# /usr/bin/scim -d
#fi
I have both scim.sh and scim.csh +x in /etc/profile.d and SCIM does get loaded on start in X, as I definitely see it in my XFCE tray and am able to switch inputs using the mouse. any suggestions on easing my life with hotkeys?
To have SCIM works correctly, you need to follow steps as described in CHANGES_AND_HINTS.TXT
Quote:
Input methods for complex characters (CJK, which is shorthand for Chinese,
Japanese, Korean) and other non-latin character sets have been added. These
input methods use the SCIM (Smart Common Input Method) platform.
The environment variables for SCIM support are set in /etc/profile.d/scim.sh
The requirements for getting SCIM input methods to work in your X session
are as follows:
(1) Use a UTF-8 locale. Look in /etc/profile.d/lang.sh for setting your
language to (for instance) en_US.UTF-8. As a word of warning: maybe you
should leave root with a non-UTF-8 locale because you don't want root's
commands to be misinterpreted. You can add the following line to your
~/.profile file to enable UTF-8 just for yourself:
export LANG=en_US.UTF-8
(2) Make the scim profile scripts executable. These will setup your
environment correctly for the use of scim with X applications. Run:
chmod +x /etc/profile.d/scim.*
(3) Start the scim daemon as soon as your X session starts. The scim daemon
must be active before any of your X applications. In KDE, you can add a
shell script to the ~/.kde/Autostart folder that runs the command
"scim -d". In XFCE you can add "scim -d" to the Autostarted Applications.
If you boot your computer in runlevel 4 (the graphical XDM/KDM login)
you can simply add the line "scim -d" to your ~/.xprofile file.
This gives you a Desktop Environment independent way of starting scim.
When scim is running, you will see a small keyboard icon in your system tray.
Right-click it to enter SCIM Setup. In 'Global Setup' select your keyboard
layout, and you are ready to start entering just about any language
characters you wish! Press the magical key combo <Control><Space>
in order to activate or deactivate SCIM input. The SCIM taskbar in the
desktop's corner allows you to select a language. As you type, SCIM will show
an overview of applicable character glyphs (if you are inputting complex
characters like Japanese).
Please check the following:
- step (1): which UTF-8 locale are you using?
- step (3): even though you see the icon in the XFCE system tray, there is no guarantee that SCIM is started at the right moment. I would advise that you explicitly launch SCIM when X starts. I personally like the ~/.xprofile option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.