[gentium-commits] [SCM] gentium updated: r58 - in trunk/test/type1/Scripts: . SplitKerns

Pavel Far?? INVALID.NOREPLY at gnu.org.ua
Sun Mar 27 16:09:52 CEST 2022


Author: pavel
Date: 2022-03-27 14:09:52 +0000 (Sun, 27 Mar 2022)
New Revision: 58

Modified:
   trunk/test/type1/Scripts/Makefile
   trunk/test/type1/Scripts/SplitKerns/split_kerning_pairs.py
Log:
start automating splitting the extra kerns according to encodings

Changed the path in split_kerning_pairs.py because the script is
now called from the parent directory.


Modified: trunk/test/type1/Scripts/Makefile
===================================================================
--- trunk/test/type1/Scripts/Makefile	2022-03-25 11:27:17 UTC (rev 57)
+++ trunk/test/type1/Scripts/Makefile	2022-03-27 14:09:52 UTC (rev 58)
@@ -5,6 +5,9 @@
 REGULAR = GentiumPlus-Regular.txt
 ITALIC = GentiumPlus-Italic.txt
 
+# variables for target 'split-kerns'
+KERN_BASE_NAMES = GentiumPlus-Regular GentiumPlus-Italic
+
 all:
 	# It doesn't make sense to use all the targets at the same time
 	echo Please, supply some parameter.
@@ -50,3 +53,15 @@
 	# - show differences between Regular and Italic style, suppress exit code of diff
 	echo diff $(REGULAR) $(ITALIC);
 	-diff $(REGULAR) $(ITALIC);
+
+split-kerns:
+	# split extra kerning pairs according to the encodings
+	for font_name in $(KERN_BASE_NAMES); do \
+		SplitKerns/split_kerning_pairs.py $(BUILD_PATH)/$${font_name}-extra.afm \
+		# prepend the fontname before the split kern files \
+		for j in kerns*.afm; do mv $$j $${font_name}-$$j; done \
+	done
+
+split-kerns-clean:
+	# delete temporarty files created by split-kerns
+	rm *kerns*.afm

Modified: trunk/test/type1/Scripts/SplitKerns/split_kerning_pairs.py
===================================================================
--- trunk/test/type1/Scripts/SplitKerns/split_kerning_pairs.py	2022-03-25 11:27:17 UTC (rev 57)
+++ trunk/test/type1/Scripts/SplitKerns/split_kerning_pairs.py	2022-03-27 14:09:52 UTC (rev 58)
@@ -5,7 +5,7 @@
 
 import sys
 
-ENC_PATH = '../../../../gentium/fonts/enc/dvips/gentium-tug/'
+ENC_PATH = '../../../gentium/fonts/enc/dvips/gentium-tug/'
 T1_ENC_NAME = ENC_PATH + 'gentium-ec.enc'
 L7X_ENC_NAME = ENC_PATH + 'gentium-l7x.enc'
 



More information about the gentium-commits mailing list.