Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

scim Chinese input not working in openoffice [SOLVED]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
et_tu_gentoo
n00b
n00b
Posts: 48
Joined: Tue Apr 20, 2004 7:27 am

scim Chinese input not working in openoffice [SOLVED]

  • Quote

Post by et_tu_gentoo » Thu Jul 16, 2009 12:56 pm

As I [post=5854964]posted earlier[/post], scim (both 1.4.7-r2 and 1.4.9), while working fine in other apps (firefox, gucharmap), was not working with openoffice-bin 3.0.0. I did not get much help on that post regarding openoffice-bin, so I went ahead and emerged openoffice 3.0.0 (non-bin).

openoffice 3.0.0 behaved no differently than openoffice-bin 3.0.0 - failure to input Chinese pinyin via scim. The non-binary version's Tools | Options [post=5854964]are[/post] the same as with the binary version's Tools | Options - they appear to be correct for Chinese input. Both bin and non-bin display Chinese perfectly.

My environment variables, which make scim work for other apps, are...

Code: Select all

XMODIFIERS=@im=SCIM
GTK_IM_MODULE=scim
LC_CTYPE=zh_TW.utf8
...and then I have also tried numerous variations for these (and LANG), both the variables and their values, a la uppercase/lowercase, singular/plural, use a hyphen (UTF-8), etc (IM_MODULE, OOO_IM_MODULE), etc, in an effort to get ooo to work

As a side note, and as was discussed in my [post=5854964]earlier referenced post[/post], I did manage to figure out how to "un-grey" 'Enabled for Asian languages' in ooo's Options, but that still makes no difference.

With a user pool of over 1.3 billion native language users and the addition of us non-natives, how can such a huge app have this problem? I also see that another gentoo user, though using a different input method app, is fighting openoffice too in this regard.

It is difficult enough to learn Chinese and then to have to spend/waste hours (after hours) on this problem is enough to make someone see red...
Last edited by et_tu_gentoo on Mon Jul 20, 2009 11:18 am, edited 1 time in total.
Top
pingufunkybeat
l33t
l33t
Posts: 610
Joined: Wed Dec 01, 2004 12:03 am

  • Quote

Post by pingufunkybeat » Thu Jul 16, 2009 3:44 pm

With a user pool of over 1.3 billion native language users and the addition of us non-natives, how can such a huge app have this problem?
Most of us don't have this problem. Scim works fine in open office for me.

Can you give the output of

Code: Select all

cat /etc/scim/global
Top
et_tu_gentoo
n00b
n00b
Posts: 48
Joined: Tue Apr 20, 2004 7:27 am

  • Quote

Post by et_tu_gentoo » Fri Jul 17, 2009 11:38 am

Thanks for replying. I was beginning to think I was the only 中文 user...

Did you do any changes to your Tools | Options in ooo? I don't think it is scim that is causing the problem. (With that said, scim is definitely far from being a tight app, so...)

Here's my /etc/scim/global:

Code: Select all

/SupportedUnicodeLocales = en_US.UTF-8
/DefaultPanelProgram = scim-panel-gtk
/DefaultConfigModule = simple
/DefaultSocketFrontEndAddress = local:/tmp/scim-socket-frontend
/DefaultSocketIMEngineAddress = local:/tmp/scim-socket-frontend
/DefaultSocketConfigAddress = local:/tmp/scim-socket-frontend
/DefaultPanelSocketAddress = local:/tmp/scim-panel-socket
/DefaultHelperManagerSocketAddress = local:/tmp/scim-helper-manager-socket
/DefaultSocketTimeout = 5000
Top
pingufunkybeat
l33t
l33t
Posts: 610
Joined: Wed Dec 01, 2004 12:03 am

  • Quote

Post by pingufunkybeat » Fri Jul 17, 2009 12:02 pm

I don't remember touching any settings in Open Office, tbh. I rarely use it anyway, but I just tried it out, and it worked.

The first thing you should try is adding zh_TW.UTF-8 to the first line of /etc/scim/global. Either that, or setting your LOCALE and LC_CTYPE to en_US.UTF-8 and restarting SCIM and Open Office.

This line tells SCIM that this unicode locale is used to enter other languages, so it doesn't try to be clever. I don't know why it doesn't automatically enable it for all unicode locales. What I do is run my entire system as en_GB.UTF-8 and have this locale in /etc/scim/global, and everything works -- I get Unicode everywhere, Chinese input everywhere, and KDE doesn't try to use Chinese fonts all for non-Chinese text, so things look much better too.

With this, SCIM works in all apps that I use, whether KDE3/4, Qt3/4, GTK+ or others like Open-Office and Firefox.
Top
et_tu_gentoo
n00b
n00b
Posts: 48
Joined: Tue Apr 20, 2004 7:27 am

  • Quote

Post by et_tu_gentoo » Fri Jul 17, 2009 3:57 pm

Thanks for the reply.

I've tried just about every value imaginable for LC_*, LANG, etc, but to no avail. I just now tried your /etc/scim/global suggestion, but that did not do the trick.

For some reason, there is a complete disconnect between scim and (only) ooo. The scim panel/toolbar does not even appear when you focus on an ooo window that is ready for input. Ctrl-space does nothing either. It is as if I need to do something to ooo to let it know that it is working with scim.

If you are still out there, do you have any values in ooo's Tools | Options | Language Settings | Writing Aids | Available Language Modules? Mine is empty and the 'Edit' button is greyed-out (there is no 'Add' button). I am far from being an ooo expert, but this somewhat sounds like it may be an Input Method tie-in.

My current thought is that maybe I need to emerge ooo with USE="gnome" thinking that some GTK "communication connection" is not being fulfilled with just USE="gtk". (But, I am a minimalist and hate the thought of pulling in miscellaneous gnome apps/libs. I also do not need ooo {for Chinese input} that often.)

I guess I should mention that I had all of this (scim, ooo, other apps) working fine, for a year's time, over 6 years ago. I stopped my Chinese studies and now have came back to them. I was thinking that by now non-ASCII input/output would be a piece of cake, but...
Top
pingufunkybeat
l33t
l33t
Posts: 610
Joined: Wed Dec 01, 2004 12:03 am

  • Quote

Post by pingufunkybeat » Fri Jul 17, 2009 6:00 pm

If you are still out there, do you have any values in ooo's Tools | Options | Language Settings | Writing Aids | Available Language Modules?
No, empty.

You might have tried already, but could you try this from a shell in exactly this order:

- killall scim-launcher
- Set the first line in /etc/scim/global to "/SupportedUnicodeLocales = en_US.UTF-8"
- export LANG="en_US.utf8
- export LC_CTYPE="en_US.utf8"
- scim -d &
- export OOO_FORCE_DESKTOP="gnome"
- oowriter &

...and see if anything changes. (the "gnome" setting simply forces the Gtk frontend, nothing more)

If it still doesn't work, then we know that it isn't a locale problem.

Also, could you give the full output of "locale"?
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Fri Jul 17, 2009 6:33 pm

I'm not sure about pinyin (Chinese), but for anthy (Japanese)
playing with LC_* vars in an utf8 locale was never needed
(well, for at least as long, as I've tested scim-anthy).
Adding your utf8 locale to /SupportedUnicodeLocales was enough.

As for other settings, they were

Code: Select all

export XMODIFIERS="@im=SCIM"
export XIM_PROGRAM="scim -d"
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
I no longer have OpenOffice, but IIRC, this did work for it
at some point. It definitely does for other programs.
Top
sgao
Tux's lil' helper
Tux's lil' helper
Posts: 149
Joined: Sat Apr 22, 2006 7:26 am

  • Quote

Post by sgao » Sat Jul 18, 2009 6:16 pm

Here is my setup to get SCIM working with OpenOffice and other text editors with KDE4.

1. Add "cjk unicode nls" to /etc/make.conf. Emerge world with "--newuse".

2. Install additional Chinese fonts (optional)
# echo "media-fonts/arphicfonts X" >> /etc/portage/package.use
# echo "media-fonts/wqy-bitmapfont X" >> /etc/portage/package.use
# emerge arphicfonts wqy-bitmapfont
Run "fc-list" to check fonts installed.

3. Set up locale

Edit /etc/locale.gen with:
en_US ISO-8859-1
en_US.UTF-8 UTF-8
# For Chinese
zh_CN.GB18030 GB18030
zh_CN.GBK GBK
zh_CN.UTF-8 UTF-8
zh_CN GB2312
Then run "locale-gen && env-update && source /etc/profile"

Add LANG="en_US.UTF-8" to /etc/env.d/02locale, then run "source /etc/profile; locale"
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

4. Install SCIM/SKIM
Build qt3 with immqt-bc support:
# echo "x11-libs/qt immqt-bc" >> /etc/portage/package.use
# emerge qt

Install scim and skim:
# echo "app-i18n/scim-bridge" >> /etc/portage/package.keywords
# echo "app-i18n/scim-bridge qt3 qt4 -gtk" >> /etc/portage/package.use
# echo "app-i18n/scim-pinyin kde" >> /etc/portage/package.use
# echo "app-i18n/scim-tables kde" >> /etc/portage/package.use
# LINGUAS="zh" emerge scim scim-bridge scim-pinyin scim-tables skim

5. Configure environment

Append following to /etc/profile:
# For KDE:
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=skim
export QT_IM_MODULE=skim
It's optional to add following to ~/.xinitrc:
# If use scim-bridge
export GTK_IM_MODULE=scim-bridge
export QT_IM_MODULE=scim-bridge
export LC_CTYPE="zh_CN.GBK"
6. Run "scim -d" or "skim".

Note: scim-pinyin or scim-bridge does not compile with "-kdeprefix".
Top
et_tu_gentoo
n00b
n00b
Posts: 48
Joined: Tue Apr 20, 2004 7:27 am

scim Chinese input not working in openoffice [SOLVED]

  • Quote

Post by et_tu_gentoo » Mon Jul 20, 2009 11:16 am

OOO_FORCE_DESKTOP="gnome" solves scim Chinese (pinyin) input not working in openoffice (and likely solves scim input not working in openoffice {that should cover others searching for this fix}).

(I had never heard of this env vari and half thought pingufunkybeat may have just thrown it in for humorous reasons.)

I am assuming this is NOT necessary for an ooo emerge with USE="gnome" - this would explain why a lot of users (most either run gnome or kde) did not have a problem with scim input not working in openoffice. I did not get a chance to emerge ooo with USE="gnome" (as I said I likely would), so this is just an ASSUMPTION. (NOTE, though, that ooo-bin with USE="gnome" could NOT do scim input, but this does not seem surprising.)

Thanks everyone for your input!

謝謝!
Top
pingufunkybeat
l33t
l33t
Posts: 610
Joined: Wed Dec 01, 2004 12:03 am

  • Quote

Post by pingufunkybeat » Mon Jul 20, 2009 12:03 pm

OO tries to detect your desktop environment and use the correct front-end. For KDE3 session, it's a KDE3 front-end, for gnome, it's a GTK front-end, and for everything else, you get their own custom VCL front-end.

The env variable simply forces it to use GTK, which has sane input handling. It's also a useful option for people running KDE4. There is no KDE4 integration for open office, and GTK at least respects colour and font settings. I don't have any Gnome libs at all, and I use this trick to get a GTK front-end.

This is separate from the "gnome" and "kde" use flags. You can have Gnome support compiled in, and as long as you're not running a Gnome session, OO will still default to the ugly VCL front-end.
Top
Goeland86
Apprentice
Apprentice
User avatar
Posts: 178
Joined: Fri Mar 12, 2004 9:45 pm
Location: Geneva area

  • Quote

Post by Goeland86 » Fri Sep 24, 2010 12:05 pm

Ok, I tried the above, and here's what I end up with when I boot up oowriter:

Code: Select all

(soffice:20212): Gtk-WARNING **: /usr/lib64/openoffice/program/../basis-link/ure-link/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libscim-1.0.so.8)
I'm using openoffice-bin, not the self-compiled version. Is that an issue with the glibc version ooffice was compiled on, or is that something that needs a scim-side fix?
Top
Post Reply

11 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic