[gentium-commits] [SCM] gentium updated: r41 - trunk/test/type1/Scripts/TestMissing

Pavel Far?? INVALID.NOREPLY at gnu.org.ua
Mon Mar 21 09:52:43 CET 2022


Author: pavel
Date: 2022-03-21 08:52:43 +0000 (Mon, 21 Mar 2022)
New Revision: 41

Modified:
   trunk/test/type1/Scripts/TestMissing/test_missing_chars.py
Log:
adapt test_missing_chars.py for Python3

It was able to detect that the small caps in the font were renamed
from x.SC to x.sc.


Modified: trunk/test/type1/Scripts/TestMissing/test_missing_chars.py
===================================================================
--- trunk/test/type1/Scripts/TestMissing/test_missing_chars.py	2022-03-21 08:35:21 UTC (rev 40)
+++ trunk/test/type1/Scripts/TestMissing/test_missing_chars.py	2022-03-21 08:52:43 UTC (rev 41)
@@ -1,7 +1,10 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 
 # This script tests whether all extra kerning pairs use
 # characters that are really in the font.
+#
+# It is able to detect when small caps are renamed in the font from
+# x.SC to x.sc or vice versa.
 
 # example of usage:
 
@@ -24,7 +27,7 @@
     if s.find("Small") < 0:
         [a, b, c, d] = s.split()
         if b not in gentiumglyphs:
-    	    print b, "missing"
+    	    print(b, "missing")
         if c not in gentiumglyphs:
-    	    print c, "missing"
+    	    print(c, "missing")
 fin.close()



More information about the gentium-commits mailing list.