[gentium-commits] [SCM] gentium updated: r68 - in trunk/test/type1/Scripts: . MakeKerningPai [more]

Pavel Far?? INVALID.NOREPLY at gnu.org.ua
Tue Mar 29 19:51:42 CEST 2022


Author: pavel
Date: 2022-03-29 17:51:42 +0000 (Tue, 29 Mar 2022)
New Revision: 68

Modified:
   trunk/test/type1/Scripts/MakeKerningPairs/make_kerning_pairs.py
   trunk/test/type1/Scripts/README
Log:
make sure that make_kerning_pairs.py works correctly

This script works correctly with characters 'dcroat' and 'tcommaaccent'
that can be (both) used under three different names.

It detects characters that are not in Adobe Glyph List. It was tested with
the character 'Fantomas'. This character shouldn't exist in the font. Even
better, it shouldn't exist anywhere!

It was just one-time test. Creating test suite would be probably overkill.

No change of the script was needed (except for the comments).


Modified: trunk/test/type1/Scripts/MakeKerningPairs/make_kerning_pairs.py
===================================================================
--- trunk/test/type1/Scripts/MakeKerningPairs/make_kerning_pairs.py	2022-03-28 14:20:29 UTC (rev 67)
+++ trunk/test/type1/Scripts/MakeKerningPairs/make_kerning_pairs.py	2022-03-29 17:51:42 UTC (rev 68)
@@ -1,13 +1,16 @@
 #! /usr/bin/env python3
 
-# This scripts requires the file glyphlist.txt from Adobe in
+# This script requires the file glyphlist.txt from Adobe in
 # the same directory as this script. It requires one
-# parameter--the file with extra kerning pairs. It was used
-# with a file where the extra kerning pairs for Greek were
-# deleted (it is tested in another file). The output are
-# files with hard-coded names kerntest.txt and kerntest-sc.txt
-# that contain characters in UTF-8 for testing the kerning
-# pairs
+# parameter--the file with extra kerning pairs.
+#
+# The outputs are in UTF-8 encoding (one for regular characters
+# and the second for small caps).
+#
+# It works properly for both Latin and Greek characters.
+#
+# It detects character that is not in Adobe Glyph List (with
+# KeyError exception).
 
 import sys
 import textwrap

Modified: trunk/test/type1/Scripts/README
===================================================================
--- trunk/test/type1/Scripts/README	2022-03-28 14:20:29 UTC (rev 67)
+++ trunk/test/type1/Scripts/README	2022-03-29 17:51:42 UTC (rev 68)
@@ -76,8 +76,15 @@
   Generate text files with pairs of characters that will be used for testing
   the extra kerning pairs. It takes the afm files created by the target
   split-kerns and creates two files (regular and small caps) for each input
-  file.
+  file. These files are encoded in UTF-8.
 
+  This target works properly with characters that can have several different names and are of
+  interest for Gentium: dcroat (or dmacron or uni0111) and tcedilla (or tcommaaccent or
+  uni021B).
+
+  Characters that are not in Adobe Glyph List would be detected with exception
+  KeyError and the name of such character would be printed.
+
 pairs-clean
   Remove files generated by 'make pairs'.
 



More information about the gentium-commits mailing list.