[Python-modules-commits] r19543 - in packages/ocr4gamera/trunk/debian (4 files)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Thu Dec 8 01:26:46 UTC 2011


    Date: Thursday, December 8, 2011 @ 01:26:45
  Author: jwilk
Revision: 19543

Provide a simple manual page.

Added:
  packages/ocr4gamera/trunk/debian/ocr4gamera.rst
Modified:
  packages/ocr4gamera/trunk/debian/changelog
  packages/ocr4gamera/trunk/debian/control
  packages/ocr4gamera/trunk/debian/rules

Modified: packages/ocr4gamera/trunk/debian/changelog
===================================================================
--- packages/ocr4gamera/trunk/debian/changelog	2011-12-08 01:04:10 UTC (rev 19542)
+++ packages/ocr4gamera/trunk/debian/changelog	2011-12-08 01:26:45 UTC (rev 19543)
@@ -5,8 +5,11 @@
   * Bump standards version to 3.9.2 (no changes needed).
   * Don't import wx, it's not used by anything. (no-wx-import.diff)
   * Use versioned format URI in debian/copyright.
+  * Provide a simple manual page.
+    + Build-depend on python-docutils, to build it from reStructuredText
+      format.
 
- -- Jakub Wilk <jwilk at debian.org>  Thu, 08 Dec 2011 01:11:33 +0100
+ -- Jakub Wilk <jwilk at debian.org>  Thu, 08 Dec 2011 02:25:36 +0100
 
 ocr4gamera (1.0.4-1) experimental; urgency=low
 

Modified: packages/ocr4gamera/trunk/debian/control
===================================================================
--- packages/ocr4gamera/trunk/debian/control	2011-12-08 01:04:10 UTC (rev 19542)
+++ packages/ocr4gamera/trunk/debian/control	2011-12-08 01:26:45 UTC (rev 19543)
@@ -6,7 +6,8 @@
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/ocr4gamera/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/ocr4gamera/trunk/
 Build-Depends: debhelper (>= 7.0.50~), python-support (>= 0.90),
- python-gamera (>= 3.2.6), python-gamera-dev
+ python-gamera (>= 3.2.6), python-gamera-dev,
+ python-docutils (>= 0.6)
 Standards-Version: 3.9.2
 Homepage: http://gamera.informatik.hsnr.de/addons/ocr4gamera/
 XS-Python-Version: >= 2.4

Added: packages/ocr4gamera/trunk/debian/ocr4gamera.rst
===================================================================
--- packages/ocr4gamera/trunk/debian/ocr4gamera.rst	                        (rev 0)
+++ packages/ocr4gamera/trunk/debian/ocr4gamera.rst	2011-12-08 01:26:45 UTC (rev 19543)
@@ -0,0 +1,48 @@
+==========
+ocr4gamera
+==========
+
+-------------------------------------
+OCR system using the Gamera framework
+-------------------------------------
+
+:Manual section: 1
+
+Usage
+-----
+
+**ocr4gamera** -x `<traindata>` [`options`] `<imagefile>`
+
+Options
+-------
+-v <int>, --verbosity=<int>
+   Set verbosity level to `<int>`.
+   Possible values are
+   0 (default): silent operation;
+   1:  information on progress;
+   >2: segmentation info is written to PNG files with prefix ``debug_``.
+-h, --help
+   Display help and exit.
+-d, --deskew
+   Do a skew correction (recommended).
+-f, --filter
+   Filter out very large (images) and very small components (noise).
+-a, --automatic-group
+   Autogroup glyphs with classifier.
+-x <file>, --xmlfile=<file>
+   Read training data from `<file>`.
+-o <xml>, --output=<xml>
+   Write recognized text to file `<xml>` (otherwise it is written to stdout).
+-c <csv>, --extra_chars_csvfile=<csv>
+   Read additional class name conversions from file `<csv>`.
+   `<csv>` must contain one conversion per line.
+-R <rules>, --heuristic_rules=<rules>
+   Apply heuristic rules `<rules>` for disambiguation of some chars.
+   `<rules>` can be ``roman`` (default) or ``none`` (for no rules).
+-D, --dictionary-correction
+   Correct words using a dictionary (requires aspell or ispell).
+-L <lang>, --dictionary-language=<lang>
+   Use `<lang>` as language for aspell (when option ``-D`` is set).
+-e <int>, --edit-distance=<int>
+   Correct words only when edit distance not more than `<int>`.
+

Modified: packages/ocr4gamera/trunk/debian/rules
===================================================================
--- packages/ocr4gamera/trunk/debian/rules	2011-12-08 01:04:10 UTC (rev 19542)
+++ packages/ocr4gamera/trunk/debian/rules	2011-12-08 01:26:45 UTC (rev 19543)
@@ -6,6 +6,12 @@
 	find debian/*/ -name '_bbox_*.so' -delete
 	find debian/*/ -path '*/bin/*.py' -exec rename.ul '.py' '' '{}' +
 
+.PHONY: override_dh_installman
+override_dh_installman:
+	mkdir -p debian/tmp/
+	rst2man debian/ocr4gamera.rst > debian/tmp/ocr4gamera.1
+	dh_installman debian/tmp/ocr4gamera.1
+
 .PHONY: build build-arch build-indep binary binary-arch binary-indep clean
 build build-arch build-indep binary binary-indep clean:
 	dh $(@)




More information about the Python-modules-commits mailing list