[gentium-commits] [SCM] gentium updated: r40 - trunk/test/type1/Scripts/MakeKerningPairs
Pavel Far??
INVALID.NOREPLY at gnu.org.ua
Mon Mar 21 09:35:21 CET 2022
Author: pavel
Date: 2022-03-21 08:35:21 +0000 (Mon, 21 Mar 2022)
New Revision: 40
Modified:
trunk/test/type1/Scripts/MakeKerningPairs/make_kerning_pairs.py
Log:
adapt make_kerning_pairs.py for Python3
Modified: trunk/test/type1/Scripts/MakeKerningPairs/make_kerning_pairs.py
===================================================================
--- trunk/test/type1/Scripts/MakeKerningPairs/make_kerning_pairs.py 2022-03-21 08:23:41 UTC (rev 39)
+++ trunk/test/type1/Scripts/MakeKerningPairs/make_kerning_pairs.py 2022-03-21 08:35:21 UTC (rev 40)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
# This scripts requires the file glyphlist.txt from Adobe in
# the same directory as this script. It requires one
@@ -18,12 +18,12 @@
if s[0] != "#":
[k, v] = s.strip().split(";")
if len(v) == 4: # just values 0000--FFFF
- glyphs[k] = unichr(int(v, 16))
+ glyphs[k] = chr(int(v, 16))
f.close()
def glyphtounichar(name):
if name.find("uni") == 0:
- return unichr(int(name[3:], 16))
+ return chr(int(name[3:], 16))
else:
return glyphs[name]
More information about the gentium-commits
mailing list.