changeset 1:00ed7df30fe4

Checking for 8k entries now. Comment improvements.
author Bernhard Reiter <bernhard@intevation.de>
date Mon, 22 Feb 2016 16:14:24 +0100
parents 7558ecd1cbf1
children a099246680ae
files ppgen.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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 <bernhard@intevation.de>
+Author: Bernhard E. Reiter <bernhard@intevation.de>
 
 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 |")
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)