2008/5/23 Paulo Jnkml <[EMAIL PROTECTED]>:

> Ok I was able to get OO to understand scim.
> I just had to strictly follow the instructions on these pages:
>
>
> http://www.scim-im.org/wiki/documentation/installation_and_configuration/all/system_configuration
> http://www.scim-im.org/wiki/faq/general/why_xim_apps_does_not_work
>
> First the scim input control bar wasn't popping up with ctrl+space
> for that to work I had to add the line
>
> scim -d -c socket -f x11 -e socket
>
> to my kde startup script
> in my case I added this line to the file ~/.kde/Autostart/auto
> but it can be any filename as long as it is in the ~/.kde/Autostart
> directory.
>
> this got the pop-up bar to actually pop-up.
> notice that before that I had in my ~/.xprofile the lines
>
> export [EMAIL PROTECTED]
> export GTK_IM_MODULE=scim
> export QT_IM_MODULE=scim
>
> So if you don't have them then you should add them there.
>
> Up to this point everything was ok but the input was not showing up as
> kanji/katakana/hiragana characters.
> Then I used the instructions on this page
>
> http://www.mrbass.org/linux/mepis/japaneseinput/
>
> From the part
> *OpenOffice with English menus but Inputting Japanese.*
>
> to the part
> C heck *Tools | Options | Text Document | Basic Fonts (Asian)* are set to
> Japanese fonts.
>
> That one brought me here in the first place because I couldn't find the
> option Text Document.
> Then,  thanks to Mike Scott, I was able to find the missing options under
>
>  Try Tools | Options | Openoffice.org writer | Basic fonts
>>
>
>
> That allowed me to complete that menu's configuration but still no luck in
> getting the right characters.
> Then I re-read the page
>
>
> http://www.scim-im.org/wiki/documentation/installation_and_configuration/all/system_configuration
>
> And decided to clean my locale(s) configuration.
> In my system that is inside the file
> /etc/env.d/02locale
>
> and its content was
>
> LC_ALL="en_US.UTF-8"
> LC_CTYPE="POSIX"
> LC_NUMERIC="POSIX"
> LC_TIME="POSIX"
> LC_COLLATE="POSIX"
> LC_MONETARY="POSIX"
> LC_MESSAGES="POSIX"
> LC_PAPER="POSIX"
> LC_NAME="POSIX"
> LC_ADDRESS="POSIX"
> LC_TELEPHONE="POSIX"
> LC_MEASUREMENT="POSIX"
> LC_IDENTIFICATION="POSIX"
>
> Ok here's the problem. LC_ALL overrides all the other options.
> So I tried to remove that option and replaced it with
>
> LANG="en_US.UTF-8"
>
> Meaning that I only want the user interface language to be in English, not
> the other stuff.
> After that I changed the
>
> LC_CTYPE="POSIX"
>
> to
>
> LC_CTYPE="jp_JP.UTF8"
>
> Saved&closed the file. For the changes to take effect you'll probably have
> to restart your system.
> In my case I tried out these changes in one terminal/shell/console (bash).
>
> First I modified the environment variables by hand.
> that means doing
>
> export -n LC_ALL
> export LANG="en_US.UTF-8"
> export LC_CTYPE=ja_JP.UTF-8
>
> after that I ran the oowriter pressed crtl+space and typed 漢字 and puft it
> worked.
> Attention here! It might happen that setting
>
> export LC_CTYPE=ja_JP.UTF-8
>
> system wide in 02locale is not a very good option, since it might do some
> damage to other applications.
> If you find any problems with that you can set this variable on a per
> program basis.
> That involves doing something like the solution proposed by
> http://www.mrbass.org/linux/mepis/japaneseinput/
> which is creating a new file that sets the environment variables and
> lunches the application or maybe modify directly the links for those
> programs.
> By links I mean the buttons in your user interface. I don't know if this
> will work very well. But it's only if the system wide setting fails.
>
> Of course I had my system inputing japanese for other applications before
> this.
> If you don't have this, them you might be interested in following this
> tutorial:
>
> http://gentoo-wiki.com/HOWTO_Enabling_Japanese
>
> And that's it.
> I like to google for solutions. It's great when I can find exactly that I
> was looking for without wasting time.
> That's why I hope that this helps other users that come along with the same
> problem in the future.
>
> Good luck
> Paulo


有難う!

安理 (Henri)

Reply via email to