fix #1 - UTF-8 decode problems when using en_US.

Apparently the en_US dictionary in ubuntu cannot be decoded with utf-8,
but works fine with iso-8859-1. As a workaround this adds another
configuration and command line option: encoding. If left empty it
autodetects from the environment, otherwise it should be an encoding
definition that python should use to read the dictionary.
This commit is contained in:
2020-05-02 10:31:03 +02:00
parent b34c41281a
commit 6795454af1
2 changed files with 11 additions and 2 deletions

View File

@ -22,6 +22,9 @@ def main():
parser.add_argument(
'--myspell-dir', '-i',
help='Directory containing myspell dictionaries')
parser.add_argument(
'--encoding', '-e',
help="Character encoding of the directory")
parser.add_argument(
'--lang', '-l',