# HG changeset patch # User Bernhard Reiter # Date 1456154064 -3600 # Node ID 00ed7df30fe469c4ef3fb7ab29775144c4450862 # Parent 7558ecd1cbf1f947930917e7dccc9f89186fd955 Checking for 8k entries now. Comment improvements. diff -r 7558ecd1cbf1 -r 00ed7df30fe4 ppgen.py --- a/ppgen.py Fri Feb 19 15:28:46 2016 +0100 +++ b/ppgen.py Mon Feb 22 16:14:24 2016 +0100 @@ -14,11 +14,11 @@ E.g. on a Debian/Ubuntu system in package "trans-de-en". or from http://ftp.tu-chemnitz.de/pub/Local/urz/ding/de-en/ -Uses a hardcodes filepath and selected language. +Uses a hardcoded filepath and language. Search for **customize** below to change it. Copyright 2016 by Intevation GmbH. -Author: 2016-01-21 Bernhard E. Reiter +Author: Bernhard E. Reiter This file is Free Software under the Apache 2.0 license and thus comes without any warranty (to extend permissible under applicable law). @@ -53,9 +53,9 @@ # Print some stats on the dictionary to be used dl = len(d) - print("Found {:d} dictionary entries".format(dl)) - if dl < 2000: - print("!Your dictionary is below 2k entries, that is quite small!") + print("Found {:d} dictionary entries.".format(dl)) + if dl < 8000: + print("!Your dictionary is below 8k entries, that is quite small!") tainted = True print("|= Number of words |= possibilities |")