|
|
4ea8c1 |
diff -up ./doc/generic/enctex/unimap.py.py3 ./doc/generic/enctex/unimap.py
|
|
|
4ea8c1 |
--- ./doc/generic/enctex/unimap.py.py3 2019-08-18 08:52:49.201015107 -0400
|
|
|
4ea8c1 |
+++ ./doc/generic/enctex/unimap.py 2019-08-18 08:54:08.301110903 -0400
|
|
|
4ea8c1 |
@@ -91,12 +91,12 @@ def linetype(line):
|
|
|
4ea8c1 |
return LineType.Character, (int(line[:m.end()], 16),
|
|
|
4ea8c1 |
line[m.end():].strip().lower())
|
|
|
4ea8c1 |
if not line.startswith('\t'):
|
|
|
4ea8c1 |
- raise ValueError, 'Queer line doesn\'t start with @ or Tab'
|
|
|
4ea8c1 |
+ raise ValueError('Queer line doesn\'t start with @ or Tab')
|
|
|
4ea8c1 |
line = line.strip()
|
|
|
4ea8c1 |
if not line:
|
|
|
4ea8c1 |
return LineType.Empty, None
|
|
|
4ea8c1 |
if not LineType.map.has_key(line[0]):
|
|
|
4ea8c1 |
- raise ValueError, 'Queer character info line (marker %s)' % line[0]
|
|
|
4ea8c1 |
+ raise ValueError('Queer character info line (marker %s)' % line[0])
|
|
|
4ea8c1 |
return line[0], line[1:].strip()
|
|
|
4ea8c1 |
|
|
|
4ea8c1 |
def utf8chars(u):
|
|
|
4ea8c1 |
@@ -132,7 +132,7 @@ while typ:
|
|
|
4ea8c1 |
char = val
|
|
|
4ea8c1 |
elif typ == LineType.TeX:
|
|
|
4ea8c1 |
if not val.startswith('\\'):
|
|
|
4ea8c1 |
- raise ValueError, '%s is not a control seq (U%X)' % (val, char[0])
|
|
|
4ea8c1 |
+ raise ValueError('%s is not a control seq (U%X)' % (val, char[0]))
|
|
|
4ea8c1 |
if sect:
|
|
|
4ea8c1 |
fw.write('\n%% %s\n' % sect)
|
|
|
4ea8c1 |
sect = None
|
|
|
4ea8c1 |
diff -up ./doc/generic/enctex/unimap.py.py3 ./doc/generic/enctex/unimap.py
|
|
|
4ea8c1 |
--- ./doc/generic/enctex/unimap.py.py3 2019-08-18 09:40:33.996050750 -0400
|
|
|
4ea8c1 |
+++ ./doc/generic/enctex/unimap.py 2019-08-18 09:41:02.573362799 -0400
|
|
|
4ea8c1 |
@@ -48,8 +48,6 @@ database = 'unimap.txt' # Input file
|
|
|
4ea8c1 |
output = 'utf8raw.tex' # Output file
|
|
|
4ea8c1 |
|
|
|
4ea8c1 |
# Compatibility with Pyhton-2.1
|
|
|
4ea8c1 |
-if not __builtins__.__dict__.has_key('True'):
|
|
|
4ea8c1 |
- True = 1; False = 0
|
|
|
4ea8c1 |
if not __builtins__.__dict__.has_key('file'):
|
|
|
4ea8c1 |
file = open
|
|
|
4ea8c1 |
if not __builtins__.__dict__.has_key('dict'):
|