Commit 33d13a66 authored by Derrick Sobodash's avatar Derrick Sobodash

Committing Version 0.41 of the old Google Code repository.

parent 8e025bd5
WineLocale 0.41 - CJK Launcher for Wine (cli)
Copyright (c) 2007 Derrick Sobodash <http://www.cinnamonpirate.com/>
Licensed under the GNU General Public License
<http://www.gnu.org/copyleft/gpl.html>
---
0.41 - July 2, 2007
Fixed support for Chinese Simplified, Traditional and Japanese on
Feisty. Installation instructions have changed, so please read them
again. Of especial importance, three lines have changed in the
/var/lib/locales/supported.d/ja and /var/lib/locales/supported.d/zh:
* 'ja_JP.SJIS SJIS' is now 'ja_JP SJIS'
* 'zh_CN.GB2312 GB2312' is now 'zh_CN GB2312'
* 'zh_TW.Big5 Big5' is now 'zh_TW Big5'
---
0.4 - April 19, 2007
Fixed support for Hebrew
Added support for Arabic
Added support for Greek
Added support for Russian/Ukrainian
---
0.31- April 12, 2007
Added support for Hebrew (thanks gbesso for font info)
---
0.3 - March 13, 2007
Initial public release
Rewrote the script to be DASH compatible
Added support for Japanese
Added support for Korean
Added support for Chinese (Simplified)
Added support for Chinese (Traditional)
---
WineLocale 0.41 - CJK Launcher for Wine (cli)
Copyright (c) 2007 Derrick Sobodash <http://www.cinnamonpirate.com/>
Licensed under the GNU General Public License
<http://www.gnu.org/copyleft/gpl.html>
---
1. Get accurate fonts for Arabic, Russian and Greek. If you use these locales
in Linux, please write me and tell me what their normal UI fonts are.
2. Add support for Uyghur, Thai, Tibetan, Malay and other languages.
3. Should I add further support to let users actually specify unique locales
instead of pigeon-holing them into the nearest match? Users, please reply!
---
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="DejaVu Sans"
"MS Shell Dlg"="DejaVu Sans"
"System"="MS Shell Dlg"
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="DejaVu Sans"
"MS Shell Dlg"="DejaVu Sans"
"System"="MS Shell Dlg"
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="DejaVu Sans"
"MS Shell Dlg"="DejaVu Sans"
"System"="MS Shell Dlg"
[HKEY_USERS\S-1-5-4\Software\Wine\Fonts\Replacements]
......@@ -10,9 +12,6 @@ REGEDIT4
"Fixedsys"="Miriam Mono CLM"
"Miriam"="Miriam CLM"
"Miriam Fixed"="Miriam Mono CLM"
"MS Sans Serif"="David CLM"
"MS Shell Dlg"="David CLM"
"MS Shell Dlg 2"="David CLM"
"Narkisim"="Nachlieli CLM"
"Tahoma"="David CLM"
"Terminal"="Miriam Mono CLM"
......
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="DejaVu Sans"
"MS Shell Dlg"="DejaVu Sans"
"System"="MS Shell Dlg"
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="Tahoma"
"MS Shell Dlg"="Tahoma"
"System"="MS Shell Dlg"
[HKEY_USERS\S-1-5-4\Software\Wine\Fonts\Replacements]
......
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="Tahoma"
"MS Shell Dlg"="Tahoma"
"System"="MS Shell Dlg"
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="Tahoma"
"MS Shell Dlg"="Tahoma"
"System"="MS Shell Dlg"
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="Tahoma"
"MS Shell Dlg"="Tahoma"
"System"="MS Shell Dlg"
[HKEY_USERS\S-1-5-4\Software\Wine\Fonts\Replacements]
......@@ -10,9 +12,6 @@ REGEDIT4
"Fixedsys"=-
"Miriam"=-
"Miriam Fixed"=
"MS Sans Serif"=-
"MS Shell Dlg"=-
"MS Shell Dlg 2"=-
"Narkisim"=-
"Tahoma"="Arial"
"Terminal"=-
......
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="Tahoma"
"MS Shell Dlg"="Tahoma"
"System"="MS Shell Dlg"
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="Arial"
"MS Shell Dlg"="Arial"
"System"="MS Shell Dlg"
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="Arial"
"MS Shell Dlg"="Arial"
"System"="MS Shell Dlg"
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="Arial"
"MS Shell Dlg"="Arial"
"System"="MS Shell Dlg"
[HKEY_USERS\S-1-5-4\Software\Wine\Fonts\Replacements]
......@@ -10,9 +12,6 @@ REGEDIT4
"Fixedsys"="Miriam Fixed"
"Miriam"="Miriam"
"Miriam Fixed"="Miriam Fixed"
"MS Sans Serif"="David"
"MS Shell Dlg"="David"
"MS Shell Dlg 2"="David"
"Narkisim"="Narkisim"
"Tahoma"="David"
"Terminal"="Miriam Fixed"
......
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="Arial"
"MS Shell Dlg"="Arial"
"System"="MS Shell Dlg"
......@@ -5,7 +5,7 @@ WLOCSHARE=/usr/local/share/wineloc
# Where the user folder resides
WLOCHOME=~/.wineloc
echo "WineLocale 0.31 - CJK Launcher for Wine (cli)"
echo "WineLocale 0.41 - CJK Launcher for Wine (cli)"
help()
{
......@@ -17,9 +17,12 @@ Usage: wineloc [-l Locale] [-f Font] [-o] executable [args ...]
-h Display help (this screen)
-l Locale options:
ar - Arabic (ISO-8859-6)
el_GR - Greek (ISO-8859-7)
he_IL - Hebrew (ISO-8859-8)
ja_JP - Japanese (Shift-JIS)
ko_KR - Korean (EUC-KR)
ru_RU - Russian (ISO-8859-5)
zh_CN - Chinese Simplified (GB2312)
zh_TW - Chinese Traditional (Big5)
......@@ -54,11 +57,35 @@ fi
if [ -z "$loc" ]; then
loc="null"
# Otherwise, make sure it's a CJK one from our list
elif [ $loc != "he_IL" ] &&
[ $loc != "ja_JP" ] &&
[ $loc != "ko_KR" ] &&
[ $loc != "zh_CN" ] && [ $loc != "zh_SG" ] &&
[ $loc != "zh_TW" ] && [ $loc != "zh_HK" ] &&
elif [ $loc != "ar" ] && # Arabic
[ $loc != "ar_DZ" ] && # Arabic (Algeria)
[ $loc != "ar_BH" ] && # Arabic (Bahrain)
[ $loc != "ar_EG" ] && # Arabic (Egypt)
[ $loc != "ar_IQ" ] && # Arabic (Iraq)
[ $loc != "ar_JO" ] && # Arabic (Jordan)
[ $loc != "ar_KW" ] && # Arabic (Kuwait)
[ $loc != "ar_LB" ] && # Arabic (Lebanon)
[ $loc != "ar_LY" ] && # Arabic (Libya)
[ $loc != "ar_MA" ] && # Arabic (Morocco)
[ $loc != "ar_OM" ] && # Arabic (Oman)
[ $loc != "ar_QA" ] && # Arabic (Qatar)
[ $loc != "ar_SA" ] && # Arabic (Saudi Arabia)
[ $loc != "ar_SD" ] && # Arabic (Sudan)
[ $loc != "ar_SY" ] && # Arabic (Syria)
[ $loc != "ar_TN" ] && # Arabic (Tunisia)
[ $loc != "ar_AE" ] && # Arabic (Uae)
[ $loc != "ar_YE" ] && # Arabic (Yemen)
[ $loc != "el_GR" ] && # Greek
[ $loc != "he_IL" ] && # Hebrew
[ $loc != "ja_JP" ] && # Japanese
[ $loc != "ko_KR" ] && # Korean
[ $loc != "ru_RU" ] && # Russian
[ $loc != "ru_UA" ] && # Russian (Ukraine)
[ $loc != "zh_CN" ] && # Chinese (Simplified)
[ $loc != "zh_HK" ] && # Chinese (Hong Kong)
[ $loc != "zh_MO" ] && # Chinese (Macau)
[ $loc != "zh_SG" ] && # Chinese (Singapore)
[ $loc != "zh_TW" ] && # Chinese (Traditional)
[ $loc != "null" ]; then
echo "Error: Specified locale is not supported"
echo "Try running `wineloc -h` for help with usage syntax"
......@@ -74,12 +101,18 @@ fi
# If they used zh_HK or zh_SG, kick them to ones that actually matter
# Old Windows applications don't even differentiate for font purposes
if [ $loc = "zh_SG" ]; then
if [ $loc = "ar" ]; then
loc="ar_SA"
elif [ $loc = "ru_UA" ]; then
loc="ru_RU"
elif [ $loc = "zh_SG" ]; then
loc="zh_CN"
elif [ $loc = "zh_MO" ]; then
loc="zh_TW"
elif [ $loc = "zh_HK" ]; then
loc="zh_TW"
fi
echo $loc
# Check if they specified a font schema to use, otherwise use "common"
if [ -z $font ]; then
font="common"
......@@ -111,7 +144,26 @@ fi
echo "Using locale file $LOCFILE ..."
if [ $loc = "he_IL" ]; then
# Arabic Settings
if [ $loc = "ar_SA" ]; then
echo "Setting up Arabic ISO-8859-6 locale ..."
LANG=ar_SA.ISO-8859-6
wine regedit.exe "$LOCFILE"
echo "Executing application ..."
wine "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
echo "Restoring old Wine locale settings"
wine regedit.exe "$WLOCSHARE/patches/remove/ar_SA.reg"
# Greek Settings
elif [ $loc = "el_GR" ]; then
echo "Setting up Greek ISO-8859-7 locale ..."
LANG=el_GR.ISO-8859-7
wine regedit.exe "$LOCFILE"
echo "Executing application ..."
wine "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
echo "Restoring old Wine locale settings"
wine regedit.exe "$WLOCSHARE/patches/remove/el_GR.reg"
# Hebrew Settings
elif [ $loc = "he_IL" ]; then
echo "Setting up Hebrew ISO-8859-8 locale ..."
LANG=he_IL.ISO-8859-8
wine regedit.exe "$LOCFILE"
......@@ -119,14 +171,16 @@ if [ $loc = "he_IL" ]; then
wine "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
echo "Restoring old Wine locale settings"
wine regedit.exe "$WLOCSHARE/patches/remove/he_IL.reg"
# Japanese Settings
elif [ $loc = "ja_JP" ]; then
echo "Setting up Japanese Shift-JIS locale ..."
LANG=ja_JP.SJIS
LANG=ja_JP
wine regedit.exe "$LOCFILE"
echo "Executing application ..."
wine "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
echo "Restoring old Wine locale settings"
wine regedit.exe "$WLOCSHARE/patches/remove/ja_JP.reg"
# Korean Settings
elif [ $loc = "ko_KR" ]; then
echo "Setting up Korean EUC-KR locale ..."
LANG=ko_KR.EUC-KR
......@@ -135,17 +189,28 @@ elif [ $loc = "ko_KR" ]; then
wine "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
echo "Restoring old Wine locale settings"
wine regedit.exe "$WLOCSHARE/patches/remove/ko_KR.reg"
# Russian Settings
elif [ $loc = "ru_RU" ]; then
echo "Setting up Russian ISO-8859-5 locale ..."
LANG=ru_RU.ISO-8859-5
wine regedit.exe "$LOCFILE"
echo "Executing application ..."
wine "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
echo "Restoring old Wine locale settings"
wine regedit.exe "$WLOCSHARE/patches/remove/ru_RU.reg"
# Chinese (Simplified) Settings
elif [ $loc = "zh_CN" ]; then
echo "Setting up Chinese (Simplified) GB2312 locale ..."
LANG=zh_CN.GB2312
LANG=zh_CN
wine regedit.exe "$LOCFILE"
echo "Executing application ..."
wine "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
echo "Restoring old Wine locale settings"
wine regedit.exe "$WLOCSHARE/patches/remove/zh_CN.reg"
# Chinese (Traditional) Settings
elif [ $loc = "zh_TW" ]; then
echo "Setting up Chinese (Traditional) Big5 locale ..."
LANG=zh_TW.Big5
LANG=zh_TW
wine regedit.exe "$LOCFILE"
echo "Executing application ..."
wine "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
......
#!/bin/sh
echo "WineLocale 0.31 - CJK Launcher for Wine (cli)"
echo "WineLocale 0.41 - CJK Launcher for Wine (cli)"
echo "Copyright (c) 2007 Derrick Sobodash <http://www.cinnamonpirate.com/>"
echo "Licensed under the GNU General Public License"
echo "<http://www.gnu.org/copyleft/gpl.html>"
......
WineLocale 0.3 - CJK Launcher for Wine (cli)
WineLocale 0.41 - CJK Launcher for Wine (cli)
Copyright (c) 2007 Derrick Sobodash <http://www.cinnamonpirate.com/>
Licensed under the GNU General Public License
<http://www.gnu.org/copyleft/gpl.html>
......
WineLocale 0.3 - CJK Launcher for Wine (cli)
WineLocale 0.41 - CJK Launcher for Wine (cli)
Copyright (c) 2007 Derrick Sobodash <http://www.cinnamonpirate.com/>
Licensed under the GNU General Public License
<http://www.gnu.org/copyleft/gpl.html>
......
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="Arial"
"MS Shell Dlg"="Arial"
"System"="MS Shell Dlg"
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="Arial"
"MS Shell Dlg"="Arial"
"System"="MS Shell Dlg"
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="Arial"
"MS Shell Dlg"="Arial"
"System"="MS Shell Dlg"
[HKEY_USERS\S-1-5-4\Software\Wine\Fonts\Replacements]
"Arial"="David"
"Aharoni"="Aharoni"
"David"="David"
"Fixedsys"="Miriam Fixed"
"Miriam"="Miriam"
"Miriam Fixed"="Miriam Fixed"
"MS Sans Serif"="David"
"MS Shell Dlg"="David"
"MS Shell Dlg 2"="David"
"Narkisim"="Narkisim"
"Tahoma"="David"
"Terminal"="Miriam Fixed"
"Wingdings"="Winedings"
......@@ -4,16 +4,16 @@ REGEDIT4
"System"="MS Shell Dlg"
[HKEY_USERS\S-1-5-4\Software\Wine\Fonts\Replacements]
"Arial"="Kochi Gothic"
"Fixedsys"="Kochi Gothic"
"MS Gothic"="Kochi Gothic"
"MS Mincho"="Kochi Mincho"
"MS PGothic"="Kochi Gothic"
"MS PMincho"="Kochi Mincho"
"MS Sans Serif"="Kochi Gothic"
"MS Shell Dlg"="Kochi Gothic"
"MS Shell Dlg 2"="Kochi Gothic"
"MS UI Gothic"="Kochi Gothic"
"Tahoma"="AR PL ZenKai Uni"
"Terminal"="Kochi Gothic"
"Arial"="MS UI Gothic"
"Fixedsys"="MS Gothic"
"MS Gothic"="MS Gothic"
"MS Mincho"="MS Mincho"
"MS PGothic"="MS Gothic"
"MS PMincho"="MS Mincho"
"MS Sans Serif"="MS Gothic"
"MS Shell Dlg"="MS Gothic"
"MS Shell Dlg 2"="MS Gothic"
"MS UI Gothic"="MS UI Gothic"
"Tahoma"="MS UI Gothic"
"Terminal"="MS Gothic"
"Wingdings"="Winedings"
......@@ -4,15 +4,15 @@ REGEDIT4
"System"="MS Shell Dlg"
[HKEY_USERS\S-1-5-4\Software\Wine\Fonts\Replacements]
"Arial"="Baekmuk Batang"
"Batang"="Baekmuk Batang"
"BatangChe"="Baekmuk Batang"
"Dotum"="Baekmuk Dotum"
"DotumChe"="Baekmuk Dotum"
"Fixedsys"="Baekmuk Batang"
"MS Sans Serif"="Baekmuk Batang"
"MS Shell Dlg"="Baekmuk Batang"
"MS Shell Dlg 2"="Baekmuk Batang"
"Tahoma"="Baekmuk Batang"
"Terminal"="Baekmuk Batang"
"Arial"="Batang"
"Batang"="Batang"
"BatangChe"="BatangChe"
"Dotum"="Dotum"
"DotumChe"="DotumChe"
"Fixedsys"="Batang"
"MS Sans Serif"="Batang"
"MS Shell Dlg"="Batang"
"MS Shell Dlg 2"="Batang"
"Tahoma"="Arial Unicode MS"
"Terminal"="Batang"
"Wingdings"="Winedings"
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Sans Serif"="Arial"
"MS Shell Dlg"="Arial"
"System"="MS Shell Dlg"
......@@ -4,13 +4,13 @@ REGEDIT4
"System"="MS Shell Dlg"
[HKEY_USERS\S-1-5-4\Software\Wine\Fonts\Replacements]
"Arial"="Vera Sans YuanTi"
"Fixedsys"="Vera Sans YuanTi Mono"
"MS Sans Serif"="Vera Sans YuanTi"
"MS Shell Dlg"="Vera Sans YuanTi"
"MS Shell Dlg 2"="Vera Sans YuanTi"
"SimHei"="Vera Sans YuanTi"
"SimSun"="Vera Sans YuanTi"
"Tahoma"="Vera Sans YuanTi"
"Terminal"="Vera Sans YuanTi Mono"
"Arial"="SimSun"
"Fixedsys"="SimSun"
"MS Sans Serif"="SimSun"
"MS Shell Dlg"="SimSun"
"MS Shell Dlg 2"="SimSun"
"SimHei"="SimHei"
"SimSun"="SimSun"
"Tahoma"="Arial Unicode MS"
"Terminal"="SimSun"
"Wingdings"="Winedings"
......@@ -4,13 +4,13 @@ REGEDIT4
"System"="MS Shell Dlg"
[HKEY_USERS\S-1-5-4\Software\Wine\Fonts\Replacements]
"Arial"="AR PL Mingti2L Big5"
"Fixedsys"="AR PL Mingti2L Big5"
"MingLiU"="AR PL Mingti2L Big5"
"MS Sans Serif"="AR PL Mingti2L Big5"
"MS Shell Dlg"="AR PL Mingti2L Big5"
"MS Shell Dlg 2"="AR PL Mingti2L Big5"
"PMingLiU"="AR PL Mingti2L Big5"
"Tahoma"="Vera Sans YuanTi"
"Terminal"="AR PL Mingti2L Big5"
"Arial"="MingLiU"
"Fixedsys"="MingLiU"
"MingLiU"="MingLiU"
"MS Sans Serif"="MingLiU"
"MS Shell Dlg"="MingLiU"
"MS Shell Dlg 2"="MingLiU"
"PMingLiU"="MingLiU"
"Tahoma"="Arial Unicode MS"
"Terminal"="MingLiU"
"Wingdings"="Winedings"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment