summaryrefslogtreecommitdiffstats
path: root/lib/kformula/scripts/bycodes.py
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:05:41 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:05:41 -0600
commit2d6954f69caf63ed5057bd8e1405a65d7d970292 (patch)
tree88e6436b2e81d4e68313f02a9021054252e14cc4 /lib/kformula/scripts/bycodes.py
parentf0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (diff)
downloadkoffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.tar.gz
koffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'lib/kformula/scripts/bycodes.py')
-rwxr-xr-xlib/kformula/scripts/bycodes.py10
1 files changed, 5 insertions, 5 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 )