LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-03-2006, 05:40 AM   #1
aihaike
Member
 
Registered: Feb 2006
Location: Shanghai, China
Distribution: Slackware
Posts: 210

Rep: Reputation: 15
Question Chinese input/printting on Slackware?


Hi everyone!!

I'm wondering whether some of you is able to print a chinese webpage?
I use mozilla 1.7.12 and when I do so, I get some strange square, not chinese caracter i mean.
Whereas I'm able to display chinese caracters from html page ....
I guess it's a problem from ps font .... or mozilla configuration.
Any idea?
Regards,

Haike.
 
Old 03-03-2006, 09:13 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Welcome to LQ!

I printed this page okay with Chinese characters:
http://www.google.com/search?hl=zh-C...C%E7%B4%A2&lr=
Using Slackware 10.2, Firefox 1.5, and default settings.
 
Old 03-03-2006, 07:05 PM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,489

Rep: Reputation: Disabled
Hi all,

Regarding the "input" part of this topic, can anyone help me with inputting Chinese characters?

I have installed scim, scim-pinyin and skim. It starts up fine and allows me to configure it, but I can't figure out how to actually use it. The config seems to suggest that I can trigger it with Ctl-Space, but that doesn't do anything.

Thanks,
Brian
 
Old 03-03-2006, 09:22 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Brian,

You have hijacked aihaike's thread. If you will search here
at LQ, you will find some threads discussing Chinese input.


aihaike,

I didn't even install "kde-i18n-zh_CN" and/or "kde-i18n-zh_TW"
on this Slackware install, and it prints characters. So I'm
not sure where the font support comes from, but I do have some
Chinese fonts available. Can you post a link to a page that you
cannot get to print properly? I'll try it...
 
Old 03-04-2006, 01:19 AM   #5
diego_cn
Member
 
Registered: Mar 2006
Distribution: fedora 7
Posts: 62

Rep: Reputation: 16
[CHN]见到中国人真好哈哈
[ENG]Hello all, good to see some chinese faces here.

I am afraid I have to hijack this thread again. Is it possible to get Chinese display under CLI? say in links
 
Old 03-04-2006, 10:33 AM   #6
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 301

Rep: Reputation: 47
If you install zhcon you can input Chinese under cli.

As for activation of scim, I think you have to modify /etc/profile.d/lang.sh , please google for it. And then you must use scim -d to start it, then you can call it by Ctrl+Space

Regarding printing Chinese website, firefox 1.5 or greater does the magic
 
Old 03-04-2006, 04:00 PM   #7
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,489

Rep: Reputation: Disabled
Quote:
Originally Posted by kite
As for activation of scim, I think you have to modify /etc/profile.d/lang.sh , please google for it. And then you must use scim -d to start it, then you can call it by Ctrl+Space
Kite,

Everything displays fine and changing the locale gives me a Chinese UI, scim starts just fine, but I still cannot seem to activate the Chinese input (Ctl+Space does nothing).

Brian
 
Old 03-04-2006, 11:00 PM   #8
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 301

Rep: Reputation: 47
Here is my lang.sh file. Watch the line of export XMODIFIERS=@im=SCIM

[PHP][#!/bin/sh # Set the system locale. (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
# locale -a

# en_US is the Slackware default locale:
export LC_ALL=zh_CN.UTF-8
export LANG=zh_CN.UTF-8
export G_BROKEN_FILENAMES=1
export XMODIFIERS=@im=SCIM
#export GTK_IM_MODULE=xim
export GST_ID3_TAG_ENCODING=GBK
# 'C' is the old Slackware (and UNIX) default, which is 127-bit
# ASCII with a charmap setting of ANSI_X3.4-1968. These days,
# it's better to use en_US or another modern $LANG setting to
# support extended character sets.
#export LANG=C

# There is also support for UTF-8 locales, but be aware that
# some programs are not yet able to handle UTF-8 and will fail to
# run properly. In those cases, you can set LANG=C before
# starting them. Still, I'd avoid UTF unless you actually need it.
#export LANG=en_US.UTF-8

# Another option for en_US:
#export LANG=en_US.ISO8859-1

# One side effect of the newer locales is that the sort order
# is no longer according to ASCII values, so the sort order will
# change in many places. Since this isn't usually expected and
# can break scripts, we'll stick with traditional ASCII sorting.
# If you'd prefer the sort algorithm that goes with your $LANG
# setting, comment this out.
export LC_COLLATE=C

# End of /etc/profile.d/lang.sh

~
/PHP]
 
Old 03-07-2006, 01:35 AM   #9
aihaike
Member
 
Registered: Feb 2006
Location: Shanghai, China
Distribution: Slackware
Posts: 210

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by BCarey
Kite,

Everything displays fine and changing the locale gives me a Chinese UI, scim starts just fine, but I still cannot seem to activate the Chinese input (Ctl+Space does nothing).

Brian

My sorry but I thought that in order to print chinese one had to install xcin or gcin. What is scim, scim-pinyin,zhcon ,skim and CLI?
Kite,
when I set up my /etc/profile.d/lang.sh with your parameters fonts used by in my environement look not nice. When I go back to LANG=en_US it works find and I can evan read chinese in cxterm.
Leonard,
you're right printing chinese with firefox 1.5 is just magic!!

Haike.
 
Old 03-07-2006, 05:01 AM   #10
kite
Member
 
Registered: Aug 2003
Location: Shenzhen, China
Distribution: Slackware
Posts: 301

Rep: Reputation: 47
Scim is an input method (platform) for non-English languages. And scim-pinyin is a input table only for Chinese which input Chinese characters by their pronunciation syllable(we call it pinyin).

Skim is an input method platform based upon scim-lib under *NIX systems (including GNU/Linux and FreeBSD) optimized for KDE. It provides a GUI panel (named scim-panel-kde), a KConfig config module and setup dialogs for itself and the libscim. It also has its own plugin system which supports on-demand loadable actions. Please check their homepage out: http://www.scim-im.org



Zhcon is a Fast double-byte virtual console for Chinese/Japanese/Korean (CJK) running under GNU/Linux and FreeBSD. It adds the ability of displaying and inputing CJK double-byte characters on console device. Check its homepage out: http://zhcon.sourceforge.net/


Regarding bad looking fonts, what exactly it is? Any screenshot? Is it the story of anti-aliasing Chinese fonts?
 
Old 03-08-2006, 02:10 AM   #11
aihaike
Member
 
Registered: Feb 2006
Location: Shanghai, China
Distribution: Slackware
Posts: 210

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kite
Regarding bad looking fonts, what exactly it is? Any screenshot? Is it the story of anti-aliasing Chinese fonts?
well, in fact I think I don't have zh_CN.UTF-8 or zh_TW.UTF-8.
With zh_CN.GBK,zh_HK.UTF-8,zh_HK.Big5HKSCS and zh_TW.Big5 it seems working ....
 
Old 03-08-2006, 10:04 AM   #12
yuchai
Member
 
Registered: Jan 2005
Location: New York, NY
Distribution: Slackware 13.0
Posts: 56

Rep: Reputation: 15
To BCarey: Did you try going into scim config and see if your preferred input methods are setup properly?
 
Old 03-14-2006, 08:06 PM   #13
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,489

Rep: Reputation: Disabled
Yuchai,

They seem to be set up, but perhaps not correctly?

Brian
 
  


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 input djib Debian 20 06-16-2008 02:41 AM
Chinese input denning Slackware 16 02-24-2005 01:39 AM
Chinese input Cyberian Fedora 2 02-15-2005 07:32 AM
how do i input chinese text ?????????? S2001LTD Linux - Newbie 14 09-22-2004 08:49 PM
Chinese Input in Squirrelmail? mosherben Linux - Software 0 08-11-2004 04:16 AM


All times are GMT -5. The time now is 05:19 PM.

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