LinuxQuestions.org
Visit Jeremy's Blog.
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 11-11-2010, 09:16 PM   #1
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Rep: Reputation: 56
Japanese input with scim-anthy


Hi all I can't seem to get Japanese input working with scim-anthy. I have scim 1.4.9 installed and the daemon running. I have the scim-anthy 1.3.1 package installed as well. I can open and modify the scim-settings, but I can't get the anthy dialog to appear. Apparently, ctrl-space should bring up the dialog, but nothing happens. I tried following the instructions on this page under "Open a program with japanese input enabled - via command line", but still no dialog.

After starting the daemon, I tried:

Code:
XMODIFIERS='@im=SCIM' LC_CTYPE=en_US.UTF-8 gvim
And no luck. Note that I don't really understand what that command is supposed to do. Should it be something different? Help!
 
Old 11-11-2010, 11:34 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
What version of Slackware are you using?

Also, issue "dmesg | grep scim" and post anything that it outputs.

Follow the instructions from CHANGES_AND_HINTS.TXT that came with Slackware:
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).
After starting SCIM with the above method, you will have an icon for SCIM.
Right-click on it and choose SCIM Setup. Then under IMEngine click on
Global Setup and then in the window on the right remove all the input methods
that you don't need. For me it's easiest just to select Disable All and then
go and manually check the input methods I need.

After that you will have to restart the SCIM service. Should be as easy as
clicking Exit on the SCIM icon, but in Slackware that doesn't work. To be sure
it's restarted properly you should close the X server, KDE or whatever one you
use, and then restart it. After that you should be able to open an app and then
press Ctrl + Space to start SCIM input.

If you follow these instructions and have problems, please post back.

If you are using Slackware Linux, instructions for another distro might not work.
 
Old 11-12-2010, 12:12 AM   #3
BILLYKANE
Member
 
Registered: Feb 2008
Location: Hefei,Anhui,China
Distribution: Slackware;chakra
Posts: 96

Rep: Reputation: 22
Try like this:

Code:
export XMODIFIERS="@im=SCIM"
export LANG=zh_CN.UTF-8
LC_CTYPE=zh_CN.UTF-8
scim -d 
gvim
and change zh_CN locale to japanese cause I don't know what the japanese locale is called.

Last edited by BILLYKANE; 11-12-2010 at 12:15 AM.
 
Old 11-12-2010, 12:17 AM   #4
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by Bruce Hill View Post
What version of Slackware are you using?
Sorry, 13.0

Quote:
Also, issue "dmesg | grep scim" and post anything that it outputs.
Nothing:

Code:
	[matt@hopper] $ dmesg | grep scim
	[Fri Nov 12, 01:17:04] [~]
	[matt@hopper] $
Quote:
Follow the instructions from CHANGES_AND_HINTS.TXT that came with Slackware:
...
After starting SCIM with the above method, you will have an icon for SCIM.
Right-click on it and choose SCIM Setup. Then under IMEngine click on
Global Setup and then in the window on the right remove all the input methods
that you don't need. For me it's easiest just to select Disable All and then
go and manually check the input methods I need.

After that you will have to restart the SCIM service. Should be as easy as
clicking Exit on the SCIM icon, but in Slackware that doesn't work. To be sure
it's restarted properly you should close the X server, KDE or whatever one you
use, and then restart it. After that you should be able to open an app and then
press Ctrl + Space to start SCIM input.
I don't have a desktop or taskbar, I run everything from the command line. I was able to find the settings and adjusted them as you said, but still nothing.

I'm not sure that I'm doing this right. Should I be able to open, say, Firefox or OpenOffice, hit ctrl-space, and then some dialog box should pop up? When I do this, nothing happens
 
Old 11-12-2010, 12:21 AM   #5
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Also, I don't know if this is relevant or not, but when I start scim without specifying a front end, it starts fine:

Code:
	[Fri Nov 12, 01:22:59] [~]
	[matt@hopper] $ scim -d         
Smart Common Input Method 1.4.9

Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
Launching a SCIM process with x11...
Loading socket Config module ...
Creating backend ...
Loading x11 FrontEnd module ...
GTK Panel of SCIM 1.4.9

Starting SCIM as daemon ...
SCIM has been successfully launched.
But when I specify anthy as the front end it fails:

Code:
	[Fri Nov 12, 01:21:56] [~]
	[matt@hopper] $ scim -f anthy -d
Smart Common Input Method 1.4.9

Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
Launching a SCIM process with anthy...
Loading socket Config module ...
Creating backend ...
Loading anthy FrontEnd module ...
Failed to load anthy FrontEnd module.
Failed to launch SCIM.
 
Old 11-12-2010, 12:28 AM   #6
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by BILLYKANE View Post
Try like this:

Code:
export XMODIFIERS="@im=SCIM"
export LANG=zh_CN.UTF-8
LC_CTYPE=zh_CN.UTF-8
scim -d 
gvim
and change zh_CN locale to japanese cause I don't know what the japanese locale is called.
Thanks, that did something. Now my gvim menus are in Japanese.. but still nothing happens when I hit ctrl-shift.

Note that I don't want everything to be in Japanese, I just want to be able to enter Japanese text. I am learning the language and need to be able to search for things and communicate with people, but don't want my whole environment to be changed.
 
Old 11-12-2010, 01:39 AM   #7
linuxs64
Member
 
Registered: Jun 2010
Posts: 116

Rep: Reputation: 47
Did you try ibus from sbopkg?
 
Old 11-12-2010, 07:11 AM   #8
BILLYKANE
Member
 
Registered: Feb 2008
Location: Hefei,Anhui,China
Distribution: Slackware;chakra
Posts: 96

Rep: Reputation: 22
Hi mattca,how did you get scim-anthy 1.3.1 package?
Even in slackware-current, scim-anthy version is only 1.2.4,I was wondering whether there is a confict.Also, did you got anthy package installed?'


Below is what I did, it do work even in my chinese envionment.

Code:
slackpkg install anthy
cause my slackware version is current, so I got these two package installed,and in your slackware,it may be different version:

Code:
anthy-9100h-i486-1.txz
scim-anthy-1.2.4-i486-2.txz
then run
Code:
scim -d
instead of
Code:
scim -f anthy -d
then Right-click on scim icon and choose SCIM Setup and choose anthy option and restart scim.
 
Old 11-12-2010, 07:49 PM   #9
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by BILLYKANE View Post
Hi mattca,how did you get scim-anthy 1.3.1 package?
I installed it from source:

http://sourceforge.jp/projects/scim-imengine/

Quote:
Even in slackware-current, scim-anthy version is only 1.2.4,I was wondering whether there is a confict.Also, did you got anthy package installed?'
I don't think there is a conflict.. the README for scim-anthy 1.3.1 says this:

Code:
2. Requirements
===============

2.1 Necessary

  * scim-1.2.0 or later.
    - http://www.scim-im.org/

  * Anthy-7500 or later.
    - http://anthy.sourceforge.jp/
    - http://sourceforge.jp/projects/anthy/
And yes, anthy is installed.

I might not have done it in the right order though, if a certain order is necessary.

Maybe I'll remove everything and reinstall.

Quote:
Below is what I did, it do work even in my chinese envionment.

Code:
slackpkg install anthy
cause my slackware version is current, so I got these two package installed,and in your slackware,it may be different version:

Code:
anthy-9100h-i486-1.txz
scim-anthy-1.2.4-i486-2.txz
I usually install from source...

I have
Code:
anthy-9026.tar.gz
scim-anthy-1.3.1.tar.gz
and scim 1.4.9 was already installed on my system.

Quote:
then run
Code:
scim -d
instead of
Code:
scim -f anthy -d
then Right-click on scim icon and choose SCIM Setup and choose anthy option and restart scim.
I don't have icons. But, when I run scim-setup I see the GUI options panel. Under "IMEngine" there is a section for anthy, but this contains options for configuring anthy, NOT for selecting anthy as the input engine. I can't find an option anywhere that allows me to "choose anthy". Which option do you mean?

Also, I'm not sure that I'm using it right. Just so that I understand, once it is set up properly, and the scim daemon is running the background, I should be able to open an application - say, Firefox, Open Office, gvim - hit Ctrl-Space, and then a dialog box should pop up allowing me to input Japanese characters.

Is that correct?

Thanks.
 
Old 11-12-2010, 07:50 PM   #10
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by linuxs64 View Post
Did you try ibus from sbopkg?
I didn't since I saw that scim was already installed. Maybe I'll give ibus-anthy a try.
 
Old 11-12-2010, 08:02 PM   #11
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
SCIM is no longer being maintained. The developers work for RedHat,
and they have been pulled off of SCIM. They are now maintaining iBus,
so it would be good to build your own iBus packages for Slackware.

SCIM is also not properly patched in Slackware, so that gives you
another incentive. iBus is working fine for me.
 
Old 11-12-2010, 08:24 PM   #12
BILLYKANE
Member
 
Registered: Feb 2008
Location: Hefei,Anhui,China
Distribution: Slackware;chakra
Posts: 96

Rep: Reputation: 22
Quote:
I don't have icons. But, when I run scim-setup I see the GUI options panel. Under "IMEngine" there is a section for anthy, but this contains options for configuring anthy, NOT for selecting anthy as the input engine. I can't find an option anywhere that allows me to "choose anthy". Which option do you mean?
YES, run scim-setup.And 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,not the IMEngine--Anthy section.

Then restart scim -d ......

Maybe all you problem is due to this......

Last edited by BILLYKANE; 11-12-2010 at 08:28 PM.
 
Old 11-12-2010, 08:57 PM   #13
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by mattca View Post
But do install the Slackware packages from here
 
Old 11-14-2010, 11:50 PM   #14
mattca
Member
 
Registered: Jan 2009
Distribution: Slackware 14.1
Posts: 333

Original Poster
Rep: Reputation: 56
Thanks for the help everyone, but I ended up getting JWPce working through WINE. I don't know what the issue was with scim, and ibus requires GConf and I avoid anything Gnome-related like the plague, so that wasn't a good option for me. JWPce is good enough for my purposes.. I can copy and paste it wherever I need it.

Also, I know where to get Slackware packages.. I just prefer to install from source. Actually, my wine install was a good example of why. The slackbuild wouldn't work on my system - it complained about an unimplemented function. I installed from source, and it worked fine on the first go. I only use packages if source is not an option, which doesn't happen very often. I think OpenOffice is the only thing I have consistently used the slackbuild for.
 
Old 11-15-2010, 01:30 AM   #15
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
mattca,

If you are comfortable building from source, that is splendid.
However, in order to better manage packages on your system, it
is my suggestion to build and install them with SlackBuild scripts.

If you're not familiar with that, a good starting place would be the
the tool called Alien's SlackBuild Toolkit that Eric Hameleers wrote
just specifically for this purpose.

Glad you got Japanese input working on your computer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SCIM font - got SCIM working, now all flash has japanese font.....help! sandaili Linux - Software 6 03-24-2009 07:27 AM
chinese/Japanese input via SCIM in ubuntu 6.10 leong3779 Linux - Desktop 13 05-14-2007 03:28 AM
Japanese kb layout broken after upgrading to FF. SCIM issues. Ariox Ubuntu 0 04-26-2007 12:55 AM
Japanese input not working in Qt with SCIM-QTIMM AireTamStorm Linux - Software 1 04-30-2006 10:33 AM
Ctrl+Shift Unicode input gone, after installing Japanese Input Methodes polemon Linux - Newbie 1 09-20-2005 05:17 PM

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

All times are GMT -5. The time now is 06:21 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