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.
I need your help. I finished my installation of Slackware 13.37, but I found I cannot input chinese using pinyin in KDE. Of course, I started "scim input method", I mean I can see the icon of keyboard in the tray bar, but I cannot swith input method into chinese with "Control + Space".
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).
Sorry, it still doesn't work. I have done that like you quoted. I can see the tray icon like keyboard, but cannot switch IM to smart-pinyin.
My process of KDE starting is made of 2 parts.the first one is to get console started, the second one is to start KDE using "startx". Is it related to this issue?
Note that 'Control+space' is *not* the key combo for switching input method. It might be 'Control+Alt+Down/Up', but I really don't remember.
Slackware come with all the input methods enabled by default. I'd suggest you have a look at the 'IMEngine Global Setup' page and disable the input methods you don't need.
I need your help. I finished my installation of Slackware 13.37, but I found I cannot input chinese using pinyin in KDE. Of course, I started "scim input method", I mean I can see the icon of keyboard in the tray bar, but I cannot swith input method into chinese with "Control + Space".
Note that 'Control+space' is *not* the key combo for switching input method. It might be 'Control+Alt+Down/Up', but I really don't remember.
Slackware come with all the input methods enabled by default. I'd suggest you have a look at the 'IMEngine Global Setup' page and disable the input methods you don't need.
Ctrl-Space is the correct combo.
Like guanx states, you need to have /etc/profile.d/scim.sh set executable and also you need to start scim early in your X startup sequence - before all your applications start.
Thank you guys. Willysr is right. My smart-pinyin works, finally. I'm guessing that only one thing I don't make is to re-start my Slackware.
Now summarize as fellow:
1. Change en_US to en_US.UTF-8 in /etc/profile.d/lang.sh
2. chmod +x /etc/profile.d/scim.sh, if it's not executable.
3. Make a script manually to start scim using "/usr/bin/scim -d &", and put it in the "~/.kde/Autostart/".
4. Restart computer.
I think everything is ok. However, there's one thing wired: It's true that I can switch IM to smart-pinyin with Control + Space, the keyboard icon in tray bar disappears though. Is this a bug for KDE?
Thank you guys. Willysr is right. My smart-pinyin works, finally. I'm guessing that only one thing I don't make is to re-start my Slackware.
Now summarize as fellow:
1. Change en_US to en_US.UTF-8 in /etc/profile.d/lang.sh
2. chmod +x /etc/profile.d/scim.sh, if it's not executable.
3. Make a script manually to start scim using "/usr/bin/scim -d &", and put it in the "~/.kde/Autostart/".
4. Restart computer.
I think everything is ok. However, there's one thing wired: It's true that I can switch IM to smart-pinyin with Control + Space, the keyboard icon in tray bar disappears though. Is this a bug for KDE?
It's not a bug
You can have it displayed by picking Settings > SCIM Input Method Setup on KDE
It's not a bug
You can have it displayed by picking Settings > SCIM Input Method Setup on KDE
Thanks for your tip.
But I think it's truly a bug. I have checked "Show tray icon" in the SCIM settings, however it remains disappearing.
I uncheck -> apply it firstly, and check -> apply it again, now the icon shows finally.
Er... If you don't mind, I have another question for you here. Why do you use Slackware? It doesn't have popular software repo, it's not convenient for users to setup software. They have to deal with dependencies by themselves. Is it worth it? I know the KISS is the point, but I don't feel it at the time. Of course, I am not expert on Slackware. So, could you tell me how you understand the Slackware? Thank you.
yangzhichina, just trying to share something I am with Slackware.
1. Slackware forces you to learn Linux, and I am still struggling a lot.
2. Slackware has Slackbuilds.org, which has tons of nice apps, and somehow let you know the dependence issues as well.
3. For Chinese apps, I have to agree with you that there are not many options available, though we can try Wine sometimes.. PPStream, and Da Zhi Hui have linux version, which I use quite often.
4. Slackware is quite fast, and stable, and very flexible.
The list goes quite long..
There are quite some sticky threads here you can try to read it to learn more about Slackware. Slackware Esstential, and Basic Slackare are two books you can try as well.. IMHO.
Mark
Er... If you don't mind, I have another question for you here. Why do you use Slackware? It doesn't have popular software repo, it's not convenient for users to setup software. They have to deal with dependencies by themselves. Is it worth it? I know the KISS is the point, but I don't feel it at the time. Of course, I am not expert on Slackware. So, could you tell me how you understand the Slackware? Thank you.
By using Slackware, i learned lots of things that i may not learn it if i use another distro since they already take care all of it. All those automatic package management, dependency checking, and all those fancy features are what other distro can provide, but in Slackware, we learn about the knowledge about a Linux Operating System + All those applications works
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.