aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/splash.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/splash.sh')
-rw-r--r--scripts/splash.sh24
1 files changed, 16 insertions, 8 deletions
diff --git a/scripts/splash.sh b/scripts/splash.sh
index 904cedf..9a414fd 100644
--- a/scripts/splash.sh
+++ b/scripts/splash.sh
@@ -29,7 +29,7 @@ gprintf() {
# request translations to be always in UTF-8
if [ -x /bin/gettext -a -n "$1" ]; then
if [ -n "$GP_LANG" ]; then
- TEXT=`OUTPUT_CHARSET=UTF-8 LANGUAGE=$GP_LANG LANG=$GP_LANG gettext -e --domain=$TEXTDOMAIN "$1"`
+ TEXT=`OUTPUT_CHARSET=UTF-8 LANGUAGE=$GP_LANG LC_ALL=$GP_LANG gettext -e --domain=$TEXTDOMAIN "$1"`
else
TEXT=`OUTPUT_CHARSET=UTF-8 gettext -e --domain=$TEXTDOMAIN "$1"`
fi
@@ -112,8 +112,11 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then
# languages have to be disabled (I added a '_' in front) until they are
# fully translated.
case "${GP_LANG}${LANGUAGE}" in
+ # Azeri needs the schwa, which is not yet in Nimbus Sans L
+ az*)
+ font=/usr/share/fonts/otf/mdk/mdk_teams.otf ;;
# languages written in latin that use letters not included in luxi
- az*|cy*|gn*|vi*)
+ cy*|gn*|vi*)
font=/usr/share/fonts/default/Type1/n019023l.pfb ;;
# basic cyrillic, covered by cp1251
be*|bg*|mk*|ru*|sr*|uk*)
@@ -125,11 +128,11 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then
am*) font=/usr/share/fonts/ttf/ethiopic/gfzemenu.ttf ;;
ber*) font=/usr/share/fonts/ttf/tifinagh/hapaxber.ttf ;;
ar*) font=/usr/share/fonts/ttf/arabic/Kacst-Qr.ttf ;;
- fa*) font=/usr/share/fonts/ttf/arabic/farsi/roya.ttf ;;
- ur*) font=/usr/share/fonts/ttf/arabic/farsi/nastaliq_unicode.ttf ;;
+ fa*) font=/usr/share/fonts/ttf/arabic/farsi/nazli.ttf ;;
+ ur*) font=/usr/share/fonts/ttf/arabic/nastaliq_unicode.ttf ;;
as*|bn*) font=/usr/share/fonts/ttf/bengali/MuktiNarrow.ttf ;;
el*) font=/usr/share/fonts/type1/greek/Kerkis-Italic.pfb ;;
- he*|yi*) font=/usr/share/fonts/type1/hebrew/Nachlieli-Bold.pfa ;;
+ he*|yi*) font=/usr/share/fonts/type1/hebrew/NachlieliCLM-Bold.pfb ;;
# this font doesn't has ascii chars
hi*|_mr*) font=/usr/share/fonts/otf/mdk/raghu.ttf ;;
hy*) font=/usr/share/fonts/ttf/armenian/artsnk_b.ttf ;;
@@ -138,7 +141,8 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then
_kn*) font=/usr/share/fonts/ttf/kannada/Sampige.ttf ;;
ko*) font=/usr/share/fonts/ttf/korean/gulim.ttf ;;
ml*) font=/usr/share/fonts/otf/mdk/malayalam.ttf ;;
- ta*) font=/usr/share/fonts/ttf/tamil/TSCu_Paranar.ttf ;;
+ # using tscii font as currently there isn't shaping
+ ta*) font=/usr/share/fonts/ttf/tscii/tscava.ttf ;;
th*) font=/usr/share/fonts/ttf/thai/norasi_b.ttf ;;
zh_CN*) font=/usr/share/fonts/ttf/gb2312/gkai00mp.ttf ;;
zh_TW*) font=/usr/share/fonts/ttf/big5/bkai00mp.ttf ;;
@@ -156,7 +160,7 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then
font=default ;;
# for others, we do a last chance possibility with
# arial unicode, if the user installed it...
- *) font=/usr/X11R6/lib/X11/fonts/drakfont/ttf/arialuni.ttf ;;
+ *) font=/usr/X11R6/lib/X11/fonts/drakfont/ttf/code2000.ttf ;;
esac
if [ "$font" != "default" ]; then
@@ -166,6 +170,10 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then
custom_font="-f /etc/locale/`basename $font`"
elif [ -r "/etc/locale/default.ttf" ]; then
custom_font="-f /etc/locale/default.ttf"
+ elif [ -r "/usr/X11R6/lib/X11/fonts/drakfont/ttf/code2000.ttf" ]; then
+ custom_font="-f usr/X11R6/lib/X11/fonts/drakfont/ttf/code2000.ttf"
+ elif [ -r "/usr/X11R6/lib/X11/fonts/drakfont/ttf/arialuni.ttf" ]; then
+ custom_font="-f usr/X11R6/lib/X11/fonts/drakfont/ttf/arialuni.ttf"
else
# no font available, translations are not done
GP_LANG=C ;
@@ -177,7 +185,7 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then
*norasi_b.ttf) text_size=$(( $text_size + 6 )) ;;
*gkai00mp.ttf) text_size=$(( $text_size + 2 )) ;;
*bkai00mp.ttf) text_size=$(( $text_size + 2 )) ;;
- *Kacst-Qr.ttf) text_size=$(( $text_size + 6 )) ;;
+ *Kacst-Qr.ttf|*nazli.ttf|*nastaliq_unicode.ttf) text_size=$(( $text_size + 6 )) ;;
# sizes lower than 18 display as noise in FB
*kochi-gothic.ttf) if [ "$text_size" -lt "18" ]; then text_size=18 ; fi ;;
esac