diff options
Diffstat (limited to 'lib/kformula/scripts/bycodes.py')
-rwxr-xr-x | lib/kformula/scripts/bycodes.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/kformula/scripts/bycodes.py b/lib/kformula/scripts/bycodes.py index f5da0ae0..35b79a55 100755 --- a/lib/kformula/scripts/bycodes.py +++ b/lib/kformula/scripts/bycodes.py @@ -23,18 +23,18 @@ import string import qt def decode( fd, font, line ): - begin = string.tqfind( line, '"' ) - end = string.tqfind( line, '"', begin + 1) + begin = string.find( line, '"' ) + end = string.find( line, '"', begin + 1) tqunicode = line[begin + 2:end] # Remove 'U' from string aswell char_list = [] - separation = string.tqfind( tqunicode, '-' ) + separation = string.find( tqunicode, '-' ) if separation != -1: second = tqunicode while separation != -1: first = second[0:separation] second = second[separation + 2:] char_list.append( string.atoi( first, 16 ) ) - separation = string.tqfind( second, '-' ) + separation = string.find( second, '-' ) if separation == -1: char_list.append( string.atoi( second, 16 ) ) else: @@ -51,7 +51,7 @@ def parse( file, font ): fd2 = open( 'mathml.list', 'w' ) line = fd.readline() while line != "": - if string.tqfind( line, 'name' ) != -1: + if string.find( line, 'name' ) != -1: decode( fd2, font, line ) line = fd.readline() |