Re: Open Office and German / Japanese Input

2008-01-16 Thread Joel Roth
On Tue, Jan 15, 2008 at 09:20:35PM +0900, Dietrich Bollmann wrote:
> Hi,
> 
> Every now and then I have to write something in German or Japanese.  And
> normally this entails about one week of trials to make Open Office work
> again with "scim" or "uim" (both input methods).  When finally
> everything works, it is normally too late for my letter but there is
> still time enough to give Open Office a chance to not work anymore when
> needed again.
> 
> I am using debian sid with a en_GB.UTF-8 local.
> When writing Japanese I normally use "uim" together with "Anthy".
> When writing German I use "uim" with "m17n-latn-pre" which allows to
> input German "Umlaute" with an english keyboard by entering something
> like "a, "o, "u, ...
> 
> Currently none of them work in Open Office.  (but - with lots of crashes
> though - sometimes do so in "evolution": 日本語、たとえば、und
> glücklicherweise auch Deutsch mit Üs, äs und Ös :)
> 
> A while ago I managed to make Open Office work with scim using the
> following script: 
> 
>   #!/bin/sh
> 
>   # setting Japanese utf8 locale
>   locale=ja_JP.utf8
>   LANG=$locale; export LANG
>   LANGUAGE=$locale; export LANGUAGE
>   LC_CTYPE=$locale; export LC_CTYPE
> 
>   # using scim as input method
>   [EMAIL PROTECTED];  export XMODIFIERS
   *
That should be quoted: "@im=SCIM"

>   GTK_IM_MODULE="scim"; export GTK_IM_MODULE
> 
>   # start scim if not already running
>   if [ -z "$(ps -A | grep -i scim)" ]; then
>scim -d ### &> /dev/null &
>   fi

Here is my scim script (I have it in .xsession)

export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
export LC_CTYPE=ja_JP.utf8
#export LANG=ja_JP.utf8
#export LC_ALL=ja_JP.utf8
/usr/bin/scim -d &

I don't use the LANG setting because I want my menus to 
be in English. LC_ALL changes a bunch of those values
at one time.


>   # execute command given on environment
>   $@
> 
>   # fin.
> 
> but even this fails now.
> 
> Any idea how to make Open Office work with "uim" or "scim" again?
> 
> Thanks, Dietrich, grateful for any help!

-- 
Joel Roth



Re: Open Office and German / Japanese Input

2008-01-15 Thread Jan Willem Stumpel
Dietrich Bollmann wrote:
> Hi,
>
> Every now and then I have to write something in German or
> Japanese.  And normally this entails about one week of trials
> to make Open Office work again with "scim" or "uim" (both input
> methods).  When finally everything works, it is normally too
> late for my letter but there is still time enough to give Open
> Office a chance to not work anymore when needed again.
[..]
> Any idea how to make Open Office work with "uim" or "scim"
> again?

If you have a UTF-8 locale (like en_GB.UTF-8; this is
case-sensitive) there is no need to ever change it again.

Google "International text support on Linux" and select the first
result. This explains all the details.

For Japanese, you need anthy (most convenient in combination with
uim). If you want to use scim (which is possible although I do not
recommend it) be aware that scim needs a line in
/etc/scim/global.conf, if you want to use it in an en_GB locale:

  /SupportedUnicodeLocales = en_US.UTF-8,en_GB.UTF-8

(the default is that scim only works with en_US.UTF-8; weird, but
this has not changed for years). Anyway, uim is better than scim
for "international" users (I think) because it has better support
for the "Compose Key".

For German on an English keyboard you do not need any special
software. Just set up your keyboard to be the "us" keyboard with
the "alt-intl" variant. This can be used both for English and German.

When this is set up correctly, Japanese / German / English input
will work in all programs, including Openoffice, and will continue
working after upgrades as well.

Regards, beste Grüße, よろしくお願いします, Jan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Open Office and German / Japanese Input

2008-01-15 Thread Dietrich Bollmann
Hi,

Every now and then I have to write something in German or Japanese.  And
normally this entails about one week of trials to make Open Office work
again with "scim" or "uim" (both input methods).  When finally
everything works, it is normally too late for my letter but there is
still time enough to give Open Office a chance to not work anymore when
needed again.

I am using debian sid with a en_GB.UTF-8 local.
When writing Japanese I normally use "uim" together with "Anthy".
When writing German I use "uim" with "m17n-latn-pre" which allows to
input German "Umlaute" with an english keyboard by entering something
like "a, "o, "u, ...

Currently none of them work in Open Office.  (but - with lots of crashes
though - sometimes do so in "evolution": 日本語、たとえば、und
glücklicherweise auch Deutsch mit Üs, äs und Ös :)

A while ago I managed to make Open Office work with scim using the
following script: 

  #!/bin/sh

  # setting Japanese utf8 locale
  locale=ja_JP.utf8
  LANG=$locale; export LANG
  LANGUAGE=$locale; export LANGUAGE
  LC_CTYPE=$locale; export LC_CTYPE

  # using scim as input method
  [EMAIL PROTECTED];  export XMODIFIERS
  GTK_IM_MODULE="scim"; export GTK_IM_MODULE

  # start scim if not already running
  if [ -z "$(ps -A | grep -i scim)" ]; then
   scim -d ### &> /dev/null &
  fi

  # execute command given on environment
  $@

  # fin.

but even this fails now.

Any idea how to make Open Office work with "uim" or "scim" again?

Thanks, Dietrich, grateful for any help!