LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-03-2011, 07:04 AM   #1
Totoro-kun
Member
 
Registered: Nov 2010
Location: Kaunas, Lithuania
Distribution: Slackware
Posts: 234

Rep: Reputation: 125Reputation: 125
Japaneese input on Slackware 13.37 need guidance


Good day fellow slackers,
Christmas is getting closer, and my girlfriends birthday too, as well as our little anniversary, so I am preparing a gift for her - A shiny Thinkpad laptop with Slackware 13.37 fully loaded.

For long time she only had a netbook, and I can't really see how people can use it as only computer and actually do any work on it... Anyways, she is currently using windows xp, but other software in there is already open source (Libre Office, VLC, Firefox, etc), So practically she could use Slackware, which is way better system, without problems.

However, there is one deal breaker - Japanese input. A computer without Japanese input is merely a toy for her. As she had studied in Japan and made friends there, plus she is running a Japanese cultural club and has many more related activities. So it is critical for me to configure JP input in soon to be hers Thinkpad. And I have no idea how it works.

So far I have tried JP input via xfce4-xkb-plugin which was pretty useless. When I asked her to try and use it on my computer, she couldn't write in Japanese at all. Then I looked in Arch wiki, and learned, that there are some input systems for the job, like scim, ibus and uim, but I do not know any of them. I did a quick look in /var/log/packages and found that scim is included in stock Slackware 13.37 already

Now, the question is how do I configure it properly? I can find very little information about this, so I am posting here. I need to integrate it with Slackware stock XFCE, and if possible, it should be similar to windows xp Japanese input. Maybe someone could help me by sharing howto or giving some advises like where to start? I imagine, a font for Japanese characters should also be present, but which ones are good? I would be thankful for any help in this matter.

Best regards,
Egidijus
 
Old 12-03-2011, 07:27 AM   #2
BILLYKANE
Member
 
Registered: Feb 2008
Location: Hefei,Anhui,China
Distribution: Slackware;chakra
Posts: 96

Rep: Reputation: 22
Below is what I did, it do work even in my Chinese envionment.

first,please have anthy, scim and scim-anthy installed.They can be found in slackware official website.

Second, run scim-setup and you will find scim configure dialog.Click IMEngines--Global setup.In this section you will see all language option in th right and please choose the Japanese option.here is to choose input method for Japanese such as anthy, Nippon and so on.As I don't speak Japanese, so I don't know which one is better.

finally, run scim -d, that's all for input Japanese using scim.

There is also a input framework called ibus. You can find it in:
http://slackbuilds.org/repository/13.37/misc/ibus/
http://slackbuilds.org/repository/13...sc/ibus-anthy/


I don't konw which font for Japanese is better, maybe others would help you.
 
1 members found this post helpful.
Old 12-03-2011, 08:18 AM   #3
Totoro-kun
Member
 
Registered: Nov 2010
Location: Kaunas, Lithuania
Distribution: Slackware
Posts: 234

Original Poster
Rep: Reputation: 125Reputation: 125
Thank you for a fast reply,

I went ahead and tried your suggestion. I verified that anthy, scim and scim-anthy are present on my system. Then I ran scim-setup and found all the languages enabled under IMEngines--Global setup. So I disabled all, but left Japanese enabled. Then I ran scim -d and little keyboard icon appeared in my Notification area. If i right-click on it and select input pad, another window opens and there I can see lots of Japanese characters. However I am unable to type any of them in any application. Maybe something else is missing? I have spotted some docs in the internet relating to scim, and they mention editing /etc/profile, which I did not do.
 
Old 12-03-2011, 09:04 AM   #4
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 360

Rep: Reputation: 199Reputation: 199
CHANGES_AND_HINTS.TXT have detailed instructions to setup SCIM, you may want to check those. As for suitable fonts, Slackware already has sazanami-fonts-ttf-20040629-noarch-1 package for Japanese characters.

Sorry, but can't help you more, as I don't speak Japanese either and haven't used CJK input at all.
 
1 members found this post helpful.
Old 12-03-2011, 09:06 AM   #5
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Hi, this should be useful: http://www.mirrorservice.org/sites/f..._AND_HINTS.TXT

Search for scim in the above document. I was kindly helped in this forum for the same issue, so I thought I'd pass it along:
http://www.linuxquestions.org/questi...method-911639/

EDIT: OK, I didn't notice the above post before I submitted mine.

Last edited by vharishankar; 12-03-2011 at 09:07 AM.
 
1 members found this post helpful.
Old 12-03-2011, 09:19 AM   #6
BILLYKANE
Member
 
Registered: Feb 2008
Location: Hefei,Anhui,China
Distribution: Slackware;chakra
Posts: 96

Rep: Reputation: 22
I use a bash file and add it to kde or xfce and *box start config file.Here is it:

Code:
#! /bin/sh
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=SCIM
export QT_IM_MODULE=SCIM
export XIM=SCIM
export XIM_PROGRAM=SCIM
export LC_CTYPE="zh_CN.UTF-8"
scim -d &
Please change it to Japanese locale.hope it would help you.

By the way, scim is an out-date software and ibus maybe a better choice.
 
1 members found this post helpful.
Old 12-03-2011, 09:32 AM   #7
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by BILLYKANE View Post
I use a bash file and add it to kde or xfce and *box start config file.Here is it:

Code:
#! /bin/sh
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=SCIM
export QT_IM_MODULE=SCIM
export XIM=SCIM
export XIM_PROGRAM=SCIM
export LC_CTYPE="zh_CN.UTF-8"
scim -d &
Please change it to Japanese locale.hope it would help you.

By the way, scim is an out-date software and ibus maybe a better choice.
I use ibus on my Debian system, but generally I find no difference between the two in practical terms. I can input in my native language just fine with either.

Of course, if scim is no longer being developed, then maybe ibus would be the way to go.
 
1 members found this post helpful.
Old 12-03-2011, 10:37 AM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Applications will only be able to use scim's functionality if the scim daemon is started right at the beginning when your desktop loads.

You need to run "scim -d" in your desktop environment's startup phase. For instance, in KDE, add a shell script in your "~/.kde/Autostart" directory which runs "scim.d", or use the KDE autostart manager.

Other environments like XFCE have similar mechanisms to let you automatically start an application when the desktop loads.

Eric
 
1 members found this post helpful.
Old 12-04-2011, 06:22 AM   #9
Totoro-kun
Member
 
Registered: Nov 2010
Location: Kaunas, Lithuania
Distribution: Slackware
Posts: 234

Original Poster
Rep: Reputation: 125Reputation: 125
Good day,

Just wanted to thank everyone here for help. After following CHANGES_AND_HINTS.TXT scim section I ran scim-setup and then added scim -d command into XFCE session settings auto start section. Then rebooted and I had Japanese input working. So today I asked my girlfriend to test and type some Japanese text and she was pleased with the features and available input systems of scim. So I am marking thread solved.

Many many thanks everyone
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Migrating To Slackware(Need Guidance+Suggestions) rc nai Slackware 4 06-05-2008 10:39 PM
Chinese Input in Slackware 12, which WM? Piaculum Slackware 32 12-18-2007 07:15 AM
Repeated "input: AT Translated Set 2 keyboard as /class/input/input" messages AcerKev Mandriva 2 09-16-2007 08:35 AM
Not used to slackware, need some guidance easuter Slackware 18 10-04-2006 12:23 PM
New Slackware User who needs guidance and reassurance! ruinedshadow Linux - General 5 03-21-2006 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration