LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Japanese in slackware (https://www.linuxquestions.org/questions/slackware-14/japanese-in-slackware-307298/)

xushi 03-29-2005 04:28 AM

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.

xushi 03-29-2005 09:51 AM

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.

tw001_tw 03-29-2005 07:16 PM

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

xushi 03-30-2005 03:00 AM

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

Link182 05-12-2005 08:05 PM

Hi, where can i find the scim-uim package?, that's not in the scim-im.org page

killerbob 05-12-2005 08:31 PM

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.

Link182 05-12-2005 08:40 PM

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!

Link182 05-12-2005 08:57 PM

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?

Link182 05-12-2005 09:14 PM

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"??

killerbob 05-12-2005 09:18 PM

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.


All times are GMT -5. The time now is 11:12 AM.