shithub: neatmkfn

Download patch

ref: 9a4d1780efb0d45e07934b7181d5b31768d74b2b
parent: 62cf866e11a041bad7607801f4f323dae8c23938
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sat Dec 17 15:45:44 EST 2016

gen.sh: limit the number of scripts to include

--- 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 @@
 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
 }