Adobe Reader and SCIM (was: Re: Adobe Reader 8 ports)

2008-01-07 Thread Nikola Lečić
On Sat, 05 Jan 2008 15:00:27 +0900 (JST)
Hiroki Sato <[EMAIL PROTECTED]> wrote:

[...]
>   - XIM does not work at least in japanese/acroread8 even if
> GTK_IM_MODULE=xim 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=xim, nor with GTK_IM_MODULE=scim.

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

1. Is the purpose of

 case ${ADOBE_LANG} in
 .
 JPN) : ${GTK_IM_MODULE:=xim}; 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=xim
  QT_IM_MODULE=xim
  [EMAIL PROTECTED]

   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=scim
  QT_IM_MODULE=scim
  [EMAIL PROTECTED]
  
   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=SCIM.

   The workaround I found is to use the following unusual values:
   
  GTK_IM_MODULE=scim
  QT_IM_MODULE=scim
  [EMAIL PROTECTED]
  (start "scim -d" manually in ~/.xinitrc)

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

   if [ "${GTK_IM_MODULE}" = "scim" ]; then
   if [ "x$XIM_PROGRAM" != "x" ]; then
   export XIM_PROGRAM=""
   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" = "@im=SCIM" ]; then
   echo "WARNING: If you have problems running SCIM, please"
   echo "try to set \$XMODIFIERS to \"@im=XIM\" (instead of"
   echo "\"@im=SCIM\") in your xinitrc."
   fi
   export GTK_IM_MODULE=xim
   export [EMAIL PROTECTED]
   fi

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

Best regards.
-- 
Nikola Lečić :: Никола Лечић
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Adobe Reader 8 ports

2008-01-05 Thread Rainer Hurling

Hiroki Sato,
thank you for the port.

On 05.01.2008 07:00 (UTC+1), Hiroki Sato wrote:

Hello all,

 As you already noticed, ports of Adobe Reader 8.1.1 have been
 committed.  I tested the functionality as much as I could, but the 15
 languages are beyond me anyway ;) So, please try them and let me know
 if it works well on your environment or not.


It works well on my FreeBSD 8.0-CURRENT (i386) [AMD Athlon(tm) 64 X2 
Dual Core Processor 4200+] from today in german language. Only Reader 
version 8 is installed. Until now I found no errors or misbehaviour.


Rainer Hurling



 ${PREFIX}/bin/acroread invokes 8.x if both 7.x and 8.x are installed.
 The logic of "acroread" is as follows:

 if ($ADOBE_VER == 7)
invoke 7.x
 elif ($ADOBE_VER == 8)
invoke 8.x
 elif (exists 8.x)
invoke 8.x
 elif (exists 7.x)
invoke 7.x
 fi

 You can also use "acroread7" or "acroread8" if you want to run the
 specific version.

 If a localized version is installed and $ADOBE_LANG is set, the
 localized version is invoked.  The logic is the following:

 if (not defined $ADOBE_LANG)
if (defined $LANG)
set $ADOBE_LANG based on $LANG
else
ADOBE_LANG:=ENU (english version)
fi
 fi

 if (exists Adobe Reader in $ADOBE_LANG)
 invoke Adobe Reader in $ADOBE_LANG
 else
 invoke Adobe Reader in ENU (english version)
 fi

 Known problems:

  - Adobe Reader 8 needs libgtkembedmoz.so to render HTML documents.
The current ports use it from www/linux-nvu which is the one that
works well in my investigation.  The FreeBSD native libraries from
xulrunner or firefox do not work AFAICT.  Please let me know if
you have another solution---such as another more stripped-down
distribution including libgtkembedmoz.so or so.

  - XIM does not work at least in japanese/acroread8 even if
GTK_IM_MODULE=xim 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.

  - Gothic font family is not supported in japanese/acroread8.  I am
not sure why, but Adobe does not provide it.

--
| Hiroki SATO

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Adobe Reader 8 ports

2008-01-04 Thread Hiroki Sato
Hello all,

 As you already noticed, ports of Adobe Reader 8.1.1 have been
 committed.  I tested the functionality as much as I could, but the 15
 languages are beyond me anyway ;) So, please try them and let me know
 if it works well on your environment or not.

 ${PREFIX}/bin/acroread invokes 8.x if both 7.x and 8.x are installed.
 The logic of "acroread" is as follows:

 if ($ADOBE_VER == 7)
invoke 7.x
 elif ($ADOBE_VER == 8)
invoke 8.x
 elif (exists 8.x)
invoke 8.x
 elif (exists 7.x)
invoke 7.x
 fi

 You can also use "acroread7" or "acroread8" if you want to run the
 specific version.

 If a localized version is installed and $ADOBE_LANG is set, the
 localized version is invoked.  The logic is the following:

 if (not defined $ADOBE_LANG)
if (defined $LANG)
set $ADOBE_LANG based on $LANG
else
ADOBE_LANG:=ENU (english version)
fi
 fi

 if (exists Adobe Reader in $ADOBE_LANG)
 invoke Adobe Reader in $ADOBE_LANG
 else
 invoke Adobe Reader in ENU (english version)
 fi

 Known problems:

  - Adobe Reader 8 needs libgtkembedmoz.so to render HTML documents.
The current ports use it from www/linux-nvu which is the one that
works well in my investigation.  The FreeBSD native libraries from
xulrunner or firefox do not work AFAICT.  Please let me know if
you have another solution---such as another more stripped-down
distribution including libgtkembedmoz.so or so.

  - XIM does not work at least in japanese/acroread8 even if
GTK_IM_MODULE=xim 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.

  - Gothic font family is not supported in japanese/acroread8.  I am
not sure why, but Adobe does not provide it.

--
| Hiroki SATO


pgpJ9nMqrmOiV.pgp
Description: PGP signature