From 8cd5293b0e566bdea389eda3403644b8714c4889 Mon Sep 17 00:00:00 2001 From: Emil Soleyman-Zomalan Date: Fri, 15 Apr 2022 12:50:54 -0500 Subject: [PATCH] Create user fontconfig directory Create the fontconfig directory if it doesn't exist. Update README.md to show how to install the script. --- 65-fonts-syriac.conf | 29 +++++++---------------------- README.md | 9 ++++++++- install.sh | 7 ++++++- locale/syr | 20 ++++++++++---------- 4 files changed, 31 insertions(+), 34 deletions(-) diff --git a/65-fonts-syriac.conf b/65-fonts-syriac.conf index 36b3df7..565cdb0 100644 --- a/65-fonts-syriac.conf +++ b/65-fonts-syriac.conf @@ -41,31 +41,16 @@ - - - - syr - - - sans-serif - - - preferred_syriac_font - - + Syriac specific font configuration - - - + + syr - - serif - - + preferred_syriac_font - + syr - pixelsize, 1.5 + pixelsize, 2.0 diff --git a/README.md b/README.md index dc4e00e..2d6dc2f 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,14 @@ This repository contains the [Beth Mardutho Meltho fonts](http://bethmardutho.or The script will customize the fontconfig configuration file for one of the three script styles: Estrangelo, Serto and East Syriac and it will default to the most common font for each script style. If you need further customizations, please look into the **65-fonts-syriac.conf** under `$HOME/.config/fontconfig/conf.d/` -The fontconfig configuration file will set the font to 1.5x the ***pixelsize*** of a similar latin font. This is needed because to the smaller letter size in Syriac fonts relative to latin. You can adjust this in the configuration file. +The fontconfig configuration file will set the font to 2.0x the ***pixelsize*** of a similar latin font. This is needed because to the smaller letter size in Syriac fonts relative to latin. You can adjust this in the configuration file. + +# Installation + +``` +chmod +x install.sh +./install.sh +``` # Regionalization diff --git a/install.sh b/install.sh index 9ad4518..8d22dd2 100644 --- a/install.sh +++ b/install.sh @@ -63,6 +63,11 @@ case $style_script in esac printf "\n Fontconfig file: %s\n" "$user_fc_dir/$user_fc_file" +if mkdir -p "$user_fc_dir/"; then + printf " [+] %s\n" "Created directory: $user_fc_dir" +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" @@ -77,4 +82,4 @@ printf "3. Updating fontconfig cache\n" printf "\n4. Installation Complete" -exit \ No newline at end of file +exit diff --git a/locale/syr b/locale/syr index 9f2aef0..ec57be7 100644 --- a/locale/syr +++ b/locale/syr @@ -25,8 +25,8 @@ escape_char / % Fax: % Language: syr % Territory: -% Revision: 0.1 -% Date: 2020-06-07 +% Revision: 0.2 +% Date: 2021-01-15 % Application: general % Users: general % License: Public Domain @@ -41,8 +41,8 @@ tel "" fax "" language "Syriac" territory "" -revision "0.1" -date "2020-06-07" +revision "0.2" +date "2021-01-15" category "i18n:2012";LC_IDENTIFICATION category "i18n:2012";LC_CTYPE @@ -121,7 +121,7 @@ day " ";/ % % Abbreviated month names (%b) % -abmon " ";/ +abmon " ";/ "";/ "";/ "";/ @@ -130,9 +130,9 @@ abmon " ";/ "";/ "";/ "";/ - " ";/ - " ";/ - " " + " ";/ + " ";/ + " " % % Full month names (%B) % @@ -161,9 +161,9 @@ first_workday 1 END LC_TIME LC_MESSAGES -yesexpr "^[+1yY]" +yesexpr "^[+1yY]" noexpr "^[-0nN]" -yesstr "" +yesstr "" nostr "" END LC_MESSAGES