LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-29-2005, 04:28 AM   #1
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Japanese in slackware


I know it's been mentioned before, but i just can't get japanese to work on slackware...
I've tried scim, anthy, (scim-anthy refused to compile), and uim, but still with no hope.

The closest i got to is scim loading but with only English/Keyboard, and Rawcode

Google just made matters even more confusing. I was hoping that someone here can help.
 
Old 03-29-2005, 09:51 AM   #2
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
k, after hours of compiling and googling, i've got it to work.

To make everything in slackware japanese, edit your /etc/profile.d/lang.sh
and add
Code:
pico /etc/profile.d/lang.sh

export LANG=ja_JP.utf8
export LC_CTYPE=ja_JP.utf8
export XMODIFIERS=@im=SCIM
Save, logout, and login again, and if you type locale
Code:
root@xushi:~# locale
LANG=ja_JP.utf8
LC_CTYPE=ja_JP.utf8
LC_NUMERIC="ja_JP.utf8"
LC_TIME="ja_JP.utf8"
LC_COLLATE=C
LC_MONETARY="ja_JP.utf8"
LC_MESSAGES="ja_JP.utf8"
LC_PAPER="ja_JP.utf8"
LC_NAME="ja_JP.utf8"
LC_ADDRESS="ja_JP.utf8"
LC_TELEPHONE="ja_JP.utf8"
LC_MEASUREMENT="ja_JP.utf8"
LC_IDENTIFICATION="ja_JP.utf8"
LC_ALL=
root@xushi:~#
you'll notice its all switched to Japanese

Next, to read japanese, you need a font, i used msgothic.ttc which is a japanese font.
copy it to
Code:
cp msgothic.ttc /usr/X11R6/lib/fonts/TTF/
To allow OpenOffice to read (and later, write) japanese, copy the font to
Code:
cp msgothic.ttc /opt/openoffice.org1.9.79/share/fonts/truetype/
This will also allow perfect reading (and later, writing) in gaim, firefox, etc...
Restart X.

Next, you need a program to let you write japanese. There are two, and a library.
Code:
scim 1.2.1 (the one i use)
uim 0.4.6 (i dont use, but i installed it anyway)
anthy 6300 (the library, install that too)
and install
scim-uim 0.1.3 (dont know if you need it or not, but i installed anyway)
skim you don't need, and scim-anthy refused to compile.. but ignore them for now.

When installed, just open console and type
Code:
scim -d
and it will open in the taskbar. If you view the setting you should be able to see 'English/keyboard' and 'Japanese anthy'. The latter is what you need.

Now, open whatever app you want (firefox, soffice, ), and hit CTRL + SPACE to switch between languages, and you should be able to write in Japanese.
note: for openoffice, you need to select the font from the tab first.

This should do the trick. And i hope this helps anyone.

Note: To write in Japanese in Abiword, msgothic.ttc won't do the trick. You need the kochi-gothic and kochi-mincho fonts.

Last edited by xushi; 03-29-2005 at 12:03 PM.
 
Old 03-29-2005, 07:16 PM   #3
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
xushi,

This is a bit off topic, but maybe you know the answer since you've worked with this
recently.

Do you know how I can print kanji characters? I can see them on a website, and they look fine,
but they appear as squares when I print it.

Here is what I'm trying to print:
http://infohost.nmt.edu/~armiller/ja...njinumbers.htm
Of course there will be more once I figure it out.

If it matters, I'm using a xerox docuprint n17 b/w laser - using the HP 4L driver.
Works fine otherwise.
Thanks a lot
-tw
 
Old 03-30-2005, 03:00 AM   #4
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Hi tw001_tw,

EDIT: Changed my message coz my suggestion didn't work.

Read on this page and its followups, it might work. It suggests you us gs as a filter.

http://lists.debian.org/debian-japan.../msg00003.html

Last edited by xushi; 03-30-2005 at 03:20 AM.
 
Old 05-12-2005, 08:05 PM   #5
Link182
LQ Newbie
 
Registered: Mar 2005
Distribution: Debian Testing
Posts: 10

Rep: Reputation: 0
Hi, where can i find the scim-uim package?, that's not in the scim-im.org page
 
Old 05-12-2005, 08:31 PM   #6
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
The instructions given here are not 100% necessary. One of the instructions, in particular, changes your console login configuration to Japanese language, which you may not want.

After I had many troubles figuring it out, I wrote a webpage telling how to do it, step-by-step. http://killerbob.ca/howto/

scim-uim, for example, is not needed.
 
Old 05-12-2005, 08:40 PM   #7
Link182
LQ Newbie
 
Registered: Mar 2005
Distribution: Debian Testing
Posts: 10

Rep: Reputation: 0
HI, i did not try to change everything to japanese :P , just enought to make "scim -d" and be able to use it. I'm gonna check your page now. Thanks!
 
Old 05-12-2005, 08:57 PM   #8
Link182
LQ Newbie
 
Registered: Mar 2005
Distribution: Debian Testing
Posts: 10

Rep: Reputation: 0
Anyway i can't compile scim-anthy, it says that scim isn't installed, but it is...

killerbob did you had this problem? It says:

Code:
Package scim was not found in the pkg-config search path.
Perhaps you should add the directory containing `scim.pc'
to the PKG_CONFIG_PATH environment variable
No package 'scim' found
configure: error: Package requirements (scim >= 0.99.8) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively you may set the SCIM_CFLAGS and SCIM_LIBS environment variables
to avoid the need to call pkg-config.  See the pkg-config man page for
more details.
How can i work around this?
 
Old 05-12-2005, 09:14 PM   #9
Link182
LQ Newbie
 
Registered: Mar 2005
Distribution: Debian Testing
Posts: 10

Rep: Reputation: 0
Ok, i've found scim-uim in http://prdownloads.sourceforge.net/s...ar.gz?download

About scim-anthy, could it have happen because i did "checkinstall" instead of "make install"??
 
Old 05-12-2005, 09:18 PM   #10
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
scim-anthy, like skim, expects you to install scim with a prefix of /usr. Unfortunately, scim doesn't use /usr as the prefix.

You need to make uninstall to get rid of scim, and then reconfigure/reinstall it. This time, use ./configure --prefix=/usr as suggested in my instructions.

Yes, I did have exactly that problem. And yes, that was the easiest solution to it that I found.
 
  


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
Chinese or Japanese? BigDawg General 19 06-29-2005 06:55 PM
Japanese fonts under Slackware 9.1 OmegaTemplar Slackware 3 11-15-2003 08:10 AM
Installing Japanese Fonts on Slackware guardian653 Linux - Newbie 2 10-05-2003 11:46 PM
Japanese input Bernhard Linux - General 0 01-29-2002 06:33 AM
AIM in Japanese??? phishead Linux - General 1 01-06-2002 05:25 PM


All times are GMT -5. The time now is 03:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration