WINE and Hebrew

WINE and Hebrew

Ehud Karni ehud at unix.mvs.co.il
Mon Sep 13 22:00:39 IST 2010


On Mon, 13 Sep 2010 21:28:33 Amichai Rotman wrote:
>
> Is't there a way to make Wine "Hebrew Enabled"?

Wine is "Hebrew enabled" but you have to tell it that you want Hebrew
to be your default language by using environment variables.

I use the following (text files):

-------------------- wine-LANG -----------------------------

#!/bin/sh

set -a

##  LANG=he_IL.utf8
LANG=he_IL.iso8859-8

LC_CTYPE="$LANG"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="$LANG"
LC_MONETARY="$LANG"
LC_MESSAGES="$LANG"
LC_PAPER="$LANG"
LC_NAME="$LANG"
LC_ADDRESS="$LANG"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="$LANG"
LC_ALL=$LANG

set +a

#################### end of wine-LANG (by Ehud) ####################


---------- wine-lang-exec (modification of wineboot) ----------

#!/bin/sh
#
# Wrapper script to start a Winelib application once it is installed
#
# Copyright (C) 2002 Alexandre Julliard
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
#

# determine the app Winelib library name
appname=`basename "$0" .exe`.exe

#### set LANG environment for wine programs (Ehud Karni)
. wine-LANG

# first try explicit WINELOADER
if [ -x "$WINELOADER" ]; then exec "$WINELOADER" "$appname" "$@"; fi

# then default bin directory
if [ -x "/usr/bin/wine" ]; then exec "/usr/bin/wine" "$appname" "$@"; fi

# now try the directory containing $0
appdir=""
case "$0" in
  */*)
    # $0 contains a path, use it
    appdir=`dirname "$0"`
    ;;
  *)
    # no directory in $0, search in PATH
    saved_ifs=$IFS
    IFS=:
    for d in $PATH
    do
      IFS=$saved_ifs
      if [ -x "$d/$0" ]; then appdir="$d"; break; fi
    done
    ;;
esac
if [ -x "$appdir/wine" ]; then exec "$appdir/wine" "$appname" "$@"; fi

# finally look in PATH
exec wine "$appname" "$@"

#################### end of wine-lang-exec (by Ehud) ####################



Both files should be in /usr/bin, you should replace the following
scripts by (hard) linking it to `wine-lang-exec':
   winepath winemine winefile winedbg wineconsole winecfg wineboot
   winebrowser uninstaller regsvr32 regedit progman notepad msiexec

> Where will I find those M$ Hebrew fonts?

Copy it from a M$Windows installation.

Ehud.


--
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7976-561  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry



More information about the Linux-il mailing list