From 9a4d1780efb0d45e07934b7181d5b31768d74b2b Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Sat, 17 Dec 2016 20:45:44 +0330 Subject: [PATCH] gen.sh: limit the number of scripts to include --- gen.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/gen.sh b/gen.sh index ba705db..dd1cb4d 100755 --- a/gen.sh +++ b/gen.sh @@ -1,14 +1,11 @@ #!/bin/sh # Generate a neatroff output device -# ghostscript fonts directory; should be in GS_FONTPATH -FP="/path/to/gs/fonts" -# output device directory -TP="/path/to/font/devutf" -# device resolution -RES="720" -# pattern of ligatures to ignore -LIGIGN="\(ct\|st\|sp\|Rp\)" +FP="/path/to/gs/fonts" # ghostscript fonts directory; should be in GS_FONTPATH +TP="/path/to/font/devutf" # output device directory +RES="720" # device resolution +SCR="-Slatn,arab" # scripts to include +LIGIGN="\(ct\|st\|sp\|Rp\)" # pattern of ligatures to ignore test -n "$1" && FP="$1" test -n "$2" && TP="$2" @@ -33,7 +30,7 @@ afmconv() ttfconv() { echo $1 - cat $2 | ./mkfn -b -l -o -r$RES -t $1 $3 $4 $5 $6 $7 | \ + cat $2 | ./mkfn -b -l -o -r$RES $SCR -t $1 $3 $4 $5 $6 $7 | \ sed "/^ligatures /s/ $LIGIGN//g" >$TP/$1 } -- 2.11.4.GIT