From f0b3bca75fa762669a2e65b96ffc161915f93801 Mon Sep 17 00:00:00 2001 From: Emil Soleyman-Zomalan Date: Sun, 17 Apr 2022 19:50:37 -0500 Subject: [PATCH] Make more changes to fontconfig, clean install.sh --- 65-fonts-syriac.conf | 301 ++++++++++++++++++++++++++++++++++++++----- install.sh | 11 +- 2 files changed, 272 insertions(+), 40 deletions(-) diff --git a/65-fonts-syriac.conf b/65-fonts-syriac.conf index 565cdb0..389c61d 100644 --- a/65-fonts-syriac.conf +++ b/65-fonts-syriac.conf @@ -13,20 +13,92 @@ place of preferred_syriac_font. --> - + + + syr + + + preferred_syriac_font + + + + + + + + syr + + + pixelsize, 1.8 + + + + + + + + East Syriac Adiabene + syriac_east + + + East Syriac Ctesiphon + syriac_east + + + + + + Serto Batnan + syriac_serto + + + Serto Jerusalem + syriac_serto + + + Serto Kharput + syriac_serto + + + Serto Malankara + syriac_serto + + + Serto Mardin + syriac_serto + + + Serto Urhoy + syriac_serto + - Estrangelo: + + + --> + + Estrangelo Antioch + syriac_estrangelo + + + Estrangelo Edessa + syriac_estrangelo + + + Estrangelo Midyat + syriac_estrangelo + + + Estrangelo Nisibin + syriac_estrangelo + + + Estrangelo QenNeshrin + syriac_estrangelo + + + Estrangelo Talada + syriac_estrangelo + + + Estrangelo TurAbdin + syriac_estrangelo + - - - - + - Syriac specific font configuration + + + syriac_east + + East Syriac Adiabene + East Syriac Ctesiphon + + - - - syr - - - preferred_syriac_font - - + + + syriac_serto + + Serto Batnan + Serto Urhoy + Serto Jerusalem + Serto Kharput + Serto Mardin + Serto Malankara + + - - + + syriac_estrangelo + + Estrangelo Edessa + Estrangelo Nisibin + Estrangelo Talada + Estrangelo TurAbdin + Estrangelo QenNeshrin + Estrangelo Antioch + Estrangelo Midyat + + - Default pixelsize is 2.0 ---> - - - syr - - - pixelsize, 2.0 - + + + + + + East Syriac Adiabene + + + meltho + + + + + East Syriac Ctesiphon + + + meltho + + + + + + + Serto Batnan + + + meltho + + + + + Serto Urhoy + + + meltho + + + + + Serto Jerusalem + + + meltho + + + + + Serto Kharput + + + meltho + + + + + Serto Mardin + + + meltho + + + + + Serto Malankara + + + meltho + + + + + + + Estrangelo Edessa + + + meltho + + + + + Estrangelo Nisibin + + + meltho + + + + + Estrangelo Talada + + + meltho + + + + + Estrangelo QenNeshrin + + + meltho + + + + + Estrangelo TurAbdin + + + meltho + + + + + Estrangelo Antioch + + + meltho + + + + Estrangelo Midyat + + + meltho + + + diff --git a/install.sh b/install.sh index 8d22dd2..3dcee11 100644 --- a/install.sh +++ b/install.sh @@ -6,9 +6,8 @@ basedir="${PWD}" # Working directory that this script resides in fonts_dir="$basedir/meltho-fonts" # Meltho fonts reside here -font_files=`ls $fonts_dir/*` # List of Meltho fonts -user_fonts_dir="$HOME/.fonts" # User installed fonts directory +user_fonts_dir="$HOME/.local/share/fonts" # User installed fonts directory user_fc_dir="$HOME/.config/fontconfig/conf.d" # User installed fontconfig directory user_fc_file="65-fonts-syriac.conf" # Keep the fontconfig convention @@ -53,7 +52,7 @@ printf " 3) East Syriac\n\n" printf " Choice: " -read style_script +read -r style_script case $style_script in 1) preferred_style=$estrangelo_font ;; @@ -69,8 +68,8 @@ else printf " [-] %s\n" "Failed to create directory: $user_fc_dir" fi -fc_file=`cat $basedir/$user_fc_file` -printf "$fc_file" | sed -e "s/preferred_syriac_font/${preferred_style}/g" > "$user_fc_dir/$user_fc_file" +fc_file=$(cat "$basedir/$user_fc_file") +printf '%s' "$fc_file" | sed -e "s/preferred_syriac_font/${preferred_style}/g" > "$user_fc_dir/$user_fc_file" printf " [+] Wrote fontconfig file\n\n" @@ -78,7 +77,7 @@ printf " [+] Wrote fontconfig file\n\n" printf "3. Updating fontconfig cache\n" # Force fontconfig to update it's cache -`fc-cache -f` +fc-cache -f printf "\n4. Installation Complete"