diff options
Diffstat (limited to 'po/fi')
-rwxr-xr-x | po/fi/list-unkn-words.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/po/fi/list-unkn-words.py b/po/fi/list-unkn-words.py index 9858b6550..98557f727 100755 --- a/po/fi/list-unkn-words.py +++ b/po/fi/list-unkn-words.py @@ -35,14 +35,14 @@ Print out unknown words found in filename. Options added this option to be compatible with enchant.""" parser = OptionParser(usage=usage) parser.set_defaults(verbose=False, listonly=True, wordlists=[]) - parser.add_option("-p", "--wordlist", + parser.add_option("-p", "--wordlist", action="append", type="string", dest="wordlists", help="File with OK words one per line.", metavar="Wordlist") - parser.add_option("-d", "--language", + parser.add_option("-d", "--language", action="store", type="string", dest="language", help=lhelpstr) - parser.add_option("-l", "--listonly", + parser.add_option("-l", "--listonly", action="store_true", dest="listonly", help=lonlyhelpstr) parser.add_option("-v", action="store_true", dest="verbose", @@ -65,7 +65,7 @@ added this option to be compatible with enchant.""" print "Proofreading using language ", options.language, "." else: print "Proofreading using default language." - + return (options, args) @@ -124,7 +124,7 @@ if __name__ == "__main__": utext = unicode(text, "utf-8") if o.verbose: print "Text as read:" - print text + print text print "Text to check is:" for u in utext: print u.encode("utf-8"), @@ -141,7 +141,7 @@ if __name__ == "__main__": else: unknWords[err.word] = 1 textF.close() - + #Sort alphabetically and print out as count word wlist = unknWords.keys() wlist.sort() |