diff options
Diffstat (limited to 'lib/kformula/scripts/bynames.py')
-rwxr-xr-x | lib/kformula/scripts/bynames.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/kformula/scripts/bynames.py b/lib/kformula/scripts/bynames.py index afb9ece5..50fac994 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 unicode; + const uint tqunicode; }; extern const entityMap entities[]; @@ -109,14 +109,14 @@ def name_cmp( a, b ): def parse( fr, fw ): line = fr.readline() - while line != "" and string.find( line, '<pre>' ) == -1: + while line != "" and string.tqfind( line, '<pre>' ) == -1: line = fr.readline() - pos = string.find( line, '<pre>' ) ### Ad-hoc detection + pos = string.tqfind( line, '<pre>' ) ### Ad-hoc detection if pos == -1: return line = line[pos + len('<pre>'):].strip() ### Ad-hoc detection entries = [] - while line != "" and string.find( line, ',' ) != -1: + while line != "" and string.tqfind( line, ',' ) != -1: fields = line.split(',') name = fields[0].strip() number = fields[1].strip() @@ -124,7 +124,7 @@ def parse( fr, fw ): # TODO: Support multicharacter entities, should also be supported by # application. The best solution would probably to map to a single # character provided by the font in the private area of Unicode - if string.find( number, '-' ) == -1: + if string.tqfind( number, '-' ) == -1: entries.append( [name, '0x' + number[1:]] ) line = fr.readline().strip() |