Page 1 of 1
RevPi Core 3 with Chinese typewriting
Posted: 12 Apr 2019, 13:13
by hikaru2001
Hello,
I want to typewrite Chinese word in the graphical interface of RevPi Core 3. Could you pls tell me how to do that? Thank you!
Re: RevPi Core 3 with Chinese typewriting
Posted: 16 Apr 2019, 16:33
by zhan
Hi, generally speaking, to type Chinese in RevPi Core, what you need is the SCIM (
https://sourceforge.net/projects/scim/).
I have tested it with RevPi Core 3, and here I would like to give you some hint about the steps:
1. Config the locales with following command
and choose the following items if you use simplified Chinese
if you use traditional Chinese, consider following items:
and following items might be better for Singapore's Chinese characters:
2. Install the Chinese Fonts with following command
Code: Select all
sudo apt-get install fonts-arphic-gbsn00lp fonts-arphic-gkai00mp
other possible fonts sets might be fonts-arphic-bkai00mp, fonts-arphic-bsmi00lp, fonts-arphic-ukai, fonts-arphic-uming
3. Install the SCIM
Code: Select all
sudo apt-get install scim scim-pinyin scim-tables-zh
4.
Before startx, export LANG and XMODIFIERS with following commands
Code: Select all
export LANG="zh_CN.gb2312"
export XMODIFIERS="@im=SCIM"
variable LANG might be zh_TW BIG5, etc for other Language sets
5.
After startx, start the scim as a deamon
6. Then with CTRL + Space, you can switch the input methods
Re: RevPi Core 3 with Chinese typewriting
Posted: 17 Apr 2019, 07:30
by hikaru2001
Hello Zhan,
I have tried all the steps and installed scim successfully. However I still can't use Ctrl+Space to switch the input methods. I also use another key board, but it still doesn't work. Do you have some idea?
Re: RevPi Core 3 with Chinese typewriting
Posted: 17 Apr 2019, 09:00
by zhan
Hi, Have you done the step 4 before the X window starting ? I had come across the same problem. But after exporting the LANG and XMODIFIERS before X windows starting , I was able to use CTRL + Space to switch IMs
Re: RevPi Core 3 with Chinese typewriting
Posted: 17 Apr 2019, 12:36
by hikaru2001
Hi Zhan,
Thank you for you help!
I do Step 4 in command line before startx, then it works. Now I can enter Chinese in the graphical interface.
And I have a new question:
Should I do Step 4 manually every time when I restart Revolution Pi?
Re: RevPi Core 3 with Chinese typewriting
Posted: 18 Apr 2019, 13:29
by zhan
Hi,
basically adding the commands to the correct startup scripts can approach your target.
till now I found that in /etc/default/locate the LANG and XMODIFIERS can be set
and in the ~/.config/autostart you might be able to find the location for scim -d.
Re: RevPi Core 3 with Chinese typewriting
Posted: 19 Apr 2019, 10:58
by hikaru2001
Hi Zhan,
Your method works. And a little thing to be corrected:
"LANG and XMODIFIERS can be set in /etc/default/locale"
not "/etc/default/locate"
Thank you so much for you help
Re: RevPi Core 3 with Chinese typewriting
Posted: 23 Apr 2019, 09:09
by zhan
thanks a lot for your correction