summaryrefslogtreecommitdiffstats
path: root/lib/kformula/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kformula/scripts')
-rwxr-xr-xlib/kformula/scripts/bycodes.py10
-rwxr-xr-xlib/kformula/scripts/bynames.py2
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/kformula/scripts/bycodes.py b/lib/kformula/scripts/bycodes.py
index 35b79a55..16d71959 100755
--- a/lib/kformula/scripts/bycodes.py
+++ b/lib/kformula/scripts/bycodes.py
@@ -25,11 +25,11 @@ import qt
def decode( fd, font, line ):
begin = string.find( line, '"' )
end = string.find( line, '"', begin + 1)
- tqunicode = line[begin + 2:end] # Remove 'U' from string aswell
+ unicode = line[begin + 2:end] # Remove 'U' from string aswell
char_list = []
- separation = string.find( tqunicode, '-' )
+ separation = string.find( unicode, '-' )
if separation != -1:
- second = tqunicode
+ second = unicode
while separation != -1:
first = second[0:separation]
second = second[separation + 2:]
@@ -38,13 +38,13 @@ def decode( fd, font, line ):
if separation == -1:
char_list.append( string.atoi( second, 16 ) )
else:
- char_list.append( string.atoi ( tqunicode, 16 ) )
+ char_list.append( string.atoi ( unicode, 16 ) )
fm = qt.QFontMetrics( qt.QFont( font ) )
in_font = True
for c in char_list:
if not fm.inFont( qt.QChar( c ) ):
in_font = False
- fd.write( tqunicode + ' ' + str( in_font ) + '\n')
+ fd.write( unicode + ' ' + str( in_font ) + '\n')
def parse( file, font ):
fd = open( file )
diff --git a/lib/kformula/scripts/bynames.py b/lib/kformula/scripts/bynames.py
index 0829cf90..afb9ece5 100755
--- a/lib/kformula/scripts/bynames.py
+++ b/lib/kformula/scripts/bynames.py
@@ -66,7 +66,7 @@ struct entityMap {
return qstrcmp( name, right ) < 0;
}
const char* name;
- const uint tqunicode;
+ const uint unicode;
};
extern const entityMap entities[];