[ocrfeeder/fixes: 1/3] Remove the migration information for engines that do not need so



commit d604b456a31e924ed767f94a5ba0fa58a345ee18
Author: Joaquim Rocha <jrocha igalia com>
Date:   Sat Mar 31 20:10:20 2012 +0200

    Remove the migration information for engines that do not need so
    
    Engines that do not need migration still had the current arguments
    added to their "old_arguments" field and their version was 0.1 which
    is not needed.

 src/ocrfeeder/util/configuration.py |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/ocrfeeder/util/configuration.py b/src/ocrfeeder/util/configuration.py
index f81ee42..79189fb 100644
--- a/src/ocrfeeder/util/configuration.py
+++ b/src/ocrfeeder/util/configuration.py
@@ -39,24 +39,22 @@ PREDEFINED_ENGINES = {'tesseract': {'name': 'Tesseract',
                                 'image_format': 'PPM',
                                 'engine_path': 'ocrad',
                                 'arguments': '-F utf8 $IMAGE',
-                                'old_arguments': ['-F utf8 $IMAGE'],
-                                'version': 0.1},
+                                'old_arguments': [],
+                                'version': 0.0},
                       'gocr': {'name': 'GOCR',
                                'image_format': 'PPM',
                                'engine_path': 'gocr',
                                'arguments': '-f UTF8 $IMAGE',
-                               'old_arguments': ['-f UTF8 $IMAGE'],
-                               'version': 0.1},
+                               'old_arguments': [],
+                               'version': 0.0},
                       'cuneiform': {'name': 'Cuneiform',
                                'image_format': 'BMP',
                                'engine_path': 'cuneiform',
                                'arguments': '-f text -o $FILE $IMAGE >'
                                ' /dev/null 2> /dev/null && cat $FILE'
                                ' && rm $FILE',
-                               'old_arguments': ['-f text -o $FILE $IMAGE >'
-                                      ' /dev/null 2> /dev/null && cat $FILE'
-                                      ' && rm $FILE'],
-                               'version': 0.1},
+                               'old_arguments': [],
+                               'version': 0.0},
                      }
 
 class ConfigurationManager(object):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]