SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-11-15 11:55:46

lardandweed
Member
Registered: 2009-08-24
Posts: 32

LibreOffice 4.1 / ibus - Cannot diplay Chinese characters in writer

I installed ibus like this:

sudo apt-get install ibus ibus-pinyin

Re-logged and ibus seems to be working fine. I can read and display Chinese in Iceweasel and Geany. [你好!] So I didn't install any fonts as I thought that meant I was good to go.

But I tried typing in Libreoffice and I could input and select the Chinese characters, but all that came out were little boxes. I have set language settings like this:
http://oi40.tinypic.com/o5nc07.jpg

I have looked under the list of fonts in writer for something that works but no joy.

Does this mean I have to install at least a font? Are there any other packages I should have installed?

*Will also be installing Japanese im later.

Last edited by lardandweed (2013-11-15 12:26:36)

Offline

Help fund CrunchBang, donate to the project!

#2 2013-11-15 13:29:08

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,825
Website

Re: LibreOffice 4.1 / ibus - Cannot diplay Chinese characters in writer

Nihao,

have you installed the WenQuanYi fonts? Microhei and Zenhei work fine. Is "Enhanced language support" enabled?
http://en.kioskea.net/faq/24490-libreof … n-language

To enable this settings under LibreOffice:
From any LibreOffice application (Writer,calc..), click on Tools > Options.
Go to Languages Settings > Languages
In the "Enhanced Language support" section, check "Enabled for Asian Language"

Else, I would recommend, if you write a lot in CJK, to try WPS: http://www.wps-community.org/
It also has a better support for MS documents.


Sweaty lads picking up the soap | I love the new "Ignore user" button

Offline

#3 2013-11-15 15:37:59

lardandweed
Member
Registered: 2009-08-24
Posts: 32

Re: LibreOffice 4.1 / ibus - Cannot diplay Chinese characters in writer

Nope, I didn't install any fonts previously because I could read and write Chinese in Iceweasel and Geany without any problems, so I thought they might have come pre-installed. I was worried installing them again may bork something and make troubleshooting even more difficult. (Sorry, but I'm very new to linux, so I don't really know how things work  neutral )

sudo apt-get install ttf-arphic-uming ttf-wqy-zenhei

Anyway, installed the above and all is good now. Prefer arphic-uming as the words don't seem so "squeezed" together.

However, I still have a couple of questions:
1) How do I put the language bar within the tray/taskbar?
I presume it's right-click tray icon > [preferences] > [General] > [Show language panel] > [Embedded in menu], but the language bar disappears after that.

2) How do I set ibus-pinyin to be active on startup?
Right now, default setting at startup is [turn off input method].

Should I be starting a new thread for these questions? ops

Offline

#4 2013-11-16 06:06:43

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,825
Website

Re: LibreOffice 4.1 / ibus - Cannot diplay Chinese characters in writer

^ Yup, these are the WenQuanYi fonts (wqy)

Don't need to start a new thread  cool
1) https://code.google.com/p/ibus/wiki/Debian
Be sure you have the ibus-gtk and ibus-gtk3 packages installed, Crunchbang comes with gtk3.

2) https://code.google.com/p/ibus/wiki/IBu … leShooting
also:

geany ~/.bashrc

add this snippet:

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

and for

geany ~/.profile

add

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus-daemon -d -x

to be sure. Save both, log out and back, and it should work.


Sweaty lads picking up the soap | I love the new "Ignore user" button

Offline

#5 2013-11-17 11:31:35

lardandweed
Member
Registered: 2009-08-24
Posts: 32

Re: LibreOffice 4.1 / ibus - Cannot diplay Chinese characters in writer

Hi Machinebacon. First of all, thx a lot for your help!

1) How do I put the language bar within the tray/taskbar?

machinebacon wrote:

Don't need to start a new thread  cool
1) https://code.google.com/p/ibus/wiki/Debian
Be sure you have the ibus-gtk and ibus-gtk3 packages installed, Crunchbang comes with gtk3.

The above doesn't really show which options to choose to set it up properly. From ibus-setup, I assume the option I want is [show language panel]. I set it to [embedded in menu] (*see link below), but the language panel disappears completely.
http://oi42.tinypic.com/vmzwh5.jpg

Perhaps the following examples using Win 7 will make it clearer:
This is the 'floating' language panel -
http://oi44.tinypic.com/2vj7hc1.jpg

This is the language panel as part of the taskbar (How I want it) -
http://oi39.tinypic.com/j7zwyc.jpg

What I'm doing now with ibus language panel -
Just dragged it beside the tray icons, but it looks rather ugly lol
http://oi41.tinypic.com/34g3jtv.jpg

2) How do I set ibus-pinyin to be active on startup?

machinebacon wrote:

2) https://code.google.com/p/ibus/wiki/IBu … leShooting
also:
geany ~/.bashrc
add this snippet:
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
and for
geany ~/.profile
add
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus-daemon -d -x
to be sure. Save both, log out and back, and it should work.

Didn't work, unfortunately. Right now, whenever I first log in, ibus is set to [turn off input method]
http://oi40.tinypic.com/talj47.jpg

I want it to be on [Chinese - pinyin] the minute I log in. Like this...
http://oi41.tinypic.com/2d94gg5.jpg

Basically, I don't want to press [ctrl + space] to type in chinese. (I know! I know! I'm lazy! lol ) I want to be able to do so straightaway and use shift to toggle between English and Chinese inputs when I need to.

Is it possible to do this?

Last edited by lardandweed (2013-11-17 11:34:14)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo