fix some LGTM warnings, notably some that lead to incorrect parsing of the Uniocde data

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-08-15 02:50:34 +03:00
parent 7bb4732e26
commit a2a2051270
4 changed files with 4143 additions and 1558 deletions

View file

@ -319,8 +319,6 @@ def printdoc(frommap, prefix):
for key in sorted(frommap.keys()):
if key in ('Any%s' % prefix, 'C'):
continue
code = frommap[key]['code']
name = frommap[key]['name']
print(' \\value %s' % key)
print('')

View file

@ -1,6 +1,6 @@
#!/usr/bin/python
import sys, os, re
import os, re
from collections import OrderedDict
components = {

View file

@ -2,7 +2,7 @@
# See https://github.com/fluxer/katie/wiki/Unicode-support
import os, sys
import sys
def readlines(fromfile):
lines = []
@ -106,7 +106,7 @@ elif 'grapheme' in sys.argv:
supported = [
'CR',
'LF',
'Control'
'Control',
'Extend',
'L',
'V',
@ -128,7 +128,7 @@ elif 'word' in sys.argv:
# only some are supported by harfbuzz
supported = [
'Format',
'Katakana'
'Katakana',
'ALetter',
'MidLetter',
'MidNum',
@ -150,7 +150,7 @@ elif 'sentence' in sys.argv:
supported = [
'Sep',
'Format',
'Sp'
'Sp',
'Lower',
'Upper',
'OLetter',
@ -174,7 +174,7 @@ elif 'line' in sys.argv:
supported = [
'OP',
'CL',
'QU'
'QU',
'GL',
'NS',
'EX',

File diff suppressed because it is too large Load diff