Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jan 2008 22:57:50 +0100
From:      Nikola =?UTF-8?B?TGXEjWnEhw==?= <nikola.lecic@anthesphoria.net>
To:        Hiroki Sato <hrs@FreeBSD.org>
Cc:        FreeBSD-ports@FreeBSD.org
Subject:   Adobe Reader and SCIM (was: Re: Adobe Reader 8 ports)
Message-ID:  <20080107225750.743feb0d@anthesphoria.net>
In-Reply-To: <20080105.150027.24555394.hrs@allbsd.org>
References:  <20080105.150027.24555394.hrs@allbsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 05 Jan 2008 15:00:27 +0900 (JST)
Hiroki Sato <hrs@FreeBSD.org> wrote:

[...]
>   - XIM does not work at least in japanese/acroread8 even if
>     GTK_IM_MODULE=3Dxim is defined.  Since several Linux users around me
>     pointed out this, this seems not FreeBSD-specific.  I have heard
>     that SCIM works, but I do not check it yet.

Unfortunately, SCIM doesn't work in Acrobat Reader 8. Neither with
GTK_IM_MODULE=3Dxim, nor with GTK_IM_MODULE=3Dscim.

However, getting SCIM to run even with Adobe Reader 7 is a bit tricky
if one wants to keep recommended GTK_IM_MODULE=3Dscim. I have a question
and a suggestion:

1. Is the purpose of

     case ${ADOBE_LANG} in
     .....
     JPN) : ${GTK_IM_MODULE:=3Dxim}; export GTK_IM_MODULE ;;

   to override any other existing value?

2. My suggestion is to enhance this idea to all languages in the
   following way (that overcomes one SCIM problem described below).
   Namely, if you have this in xinitrc:

      GTK_IM_MODULE=3Dxim
      QT_IM_MODULE=3Dxim
      XMODIFIERS=3D@im=3DSCIM

   SCIM will work everywhere (incl. Reader 7), but it will behave very
   badly in GTK applications. If you use SCIM's recommended values:

      GTK_IM_MODULE=3Dscim
      QT_IM_MODULE=3Dscim
      XMODIFIERS=3D@im=3DSCIM
 =20
   it will not work in Linux and QT apps (incl. Reader 7). The problem
   is (I don't know if this is FreeBSD specific) that GTK_IM_MODULE,
   once set to 'scim', can't be changed to 'xim' in the same X session,
   so the line like aforementioned JPN-specific setting will not have
   any effect in such environment. The same goes for XMODIFIERS once set
   to @im=3DSCIM.

   The workaround I found is to use the following unusual values:
  =20
      GTK_IM_MODULE=3Dscim
      QT_IM_MODULE=3Dscim
      XMODIFIERS=3D@im=3DXIM
      (start "scim -d" manually in ~/.xinitrc)

   and to use this code in /usr/local/bin/acroread (for all languages):

   if [ "${GTK_IM_MODULE}" =3D "scim" ]; then
       if [ "x$XIM_PROGRAM" !=3D "x" ]; then
           export XIM_PROGRAM=3D""
           echo "WARNING: \$XIM_PROGRAM variable sometimes can't be"
           echo "effectively changed. If you have problems running"
           echo "SCIM, don't define it in your xinitrc."
       fi
       if [ "$XMODIFIERS" =3D "@im=3DSCIM" ]; then
           echo "WARNING: If you have problems running SCIM, please"
           echo "try to set \$XMODIFIERS to \"@im=3DXIM\" (instead of"
           echo "\"@im=3DSCIM\") in your xinitrc."
       fi
       export GTK_IM_MODULE=3Dxim
       export XMODIFIERS=3D@im=3DSCIM
   fi

   This way, SCIM will work optimally in both GTK apps and Acrobat
   Reader 7.

Best regards.
--=20
Nikola Le=C4=8Di=C4=87 :: =D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0 =D0=9B=D0=B5=
=D1=87=D0=B8=D1=9B



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080107225750.743feb0d>