[Python-modules-commits] r20126 - in packages/greekocr4gamera/trunk (14 files)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Thu Jan 26 20:47:49 UTC 2012
Date: Thursday, January 26, 2012 @ 20:47:47
Author: jwilk
Revision: 20126
[svn-inject] Applying Debian modifications (1.0.1-1) to trunk
Added:
packages/greekocr4gamera/trunk/debian/
packages/greekocr4gamera/trunk/debian/changelog
packages/greekocr4gamera/trunk/debian/compat
packages/greekocr4gamera/trunk/debian/control
packages/greekocr4gamera/trunk/debian/copyright
packages/greekocr4gamera/trunk/debian/doc-base
packages/greekocr4gamera/trunk/debian/docs
packages/greekocr4gamera/trunk/debian/greekocr4gamera.rst
packages/greekocr4gamera/trunk/debian/links
packages/greekocr4gamera/trunk/debian/rules
packages/greekocr4gamera/trunk/debian/source/
packages/greekocr4gamera/trunk/debian/source/format
packages/greekocr4gamera/trunk/debian/symlink-helper
packages/greekocr4gamera/trunk/debian/watch
Property changes on: packages/greekocr4gamera/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
+ 1
Added: packages/greekocr4gamera/trunk/debian/changelog
===================================================================
--- packages/greekocr4gamera/trunk/debian/changelog (rev 0)
+++ packages/greekocr4gamera/trunk/debian/changelog 2012-01-26 20:47:47 UTC (rev 20126)
@@ -0,0 +1,5 @@
+greekocr4gamera (1.0.1-1) UNRELEASED; urgency=low
+
+ * Initial release (closes: #648851).
+
+ -- Jakub Wilk <jwilk at debian.org> Thu, 26 Jan 2012 20:47:40 +0100
Added: packages/greekocr4gamera/trunk/debian/compat
===================================================================
--- packages/greekocr4gamera/trunk/debian/compat (rev 0)
+++ packages/greekocr4gamera/trunk/debian/compat 2012-01-26 20:47:47 UTC (rev 20126)
@@ -0,0 +1 @@
+7
Added: packages/greekocr4gamera/trunk/debian/control
===================================================================
--- packages/greekocr4gamera/trunk/debian/control (rev 0)
+++ packages/greekocr4gamera/trunk/debian/control 2012-01-26 20:47:47 UTC (rev 20126)
@@ -0,0 +1,24 @@
+Source: greekocr4gamera
+Section: python
+Priority: optional
+Maintainer: Jakub Wilk <jwilk at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/greekocr4gamera/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/greekocr4gamera/trunk/
+Build-Depends: debhelper (>= 7),
+ python-all (>= 2.5), python-support,
+ python-gamera,
+ python-docutils (>= 0.6)
+Standards-Version: 3.9.2
+Homepage: http://gamera.informatik.hsnr.de/addons/greekocr4gamera/
+
+Package: python-gamera.toolkits.greekocr
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, python-gamera, python-gamera.toolkits.ocr
+Enhances: python-gamera
+Description: toolkit for building OCR systems for polytonal Greek
+ The Gamera GreekOCR Toolkit provides methods and a ready-to-run script for
+ recognizing polytonal Greek texts, i.e. classical Greek with variable use of
+ accents.
+ .
+ Note that the toolkit does not include any training data.
Added: packages/greekocr4gamera/trunk/debian/copyright
===================================================================
--- packages/greekocr4gamera/trunk/debian/copyright (rev 0)
+++ packages/greekocr4gamera/trunk/debian/copyright 2012-01-26 20:47:47 UTC (rev 20126)
@@ -0,0 +1,36 @@
+Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174&pathrev=174
+Upstream-Name: greekocr4gamera
+Upstream-Contact: Christoph Dalitz
+Source: http://gamera.informatik.hsnr.de/addons/greekocr4gamera/
+
+Files: *
+Copyright:
+ 2011, Christian Brandt
+ 2011, Christoph Dalitz
+License: GPL-2+
+ This toolkit is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License, either version 2
+ of the license, or (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ file LICENSE for more details.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ version 2 can be found in the /usr/share/common-licenses/GPL-2 file.
+
+Files: debian/*
+Copyright: 2012, Jakub Wilk
+License: GPL-2
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2 dated June, 1991.
+ .
+ This package is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ version 2 can be found in the /usr/share/common-licenses/GPL-2 file.
Added: packages/greekocr4gamera/trunk/debian/doc-base
===================================================================
--- packages/greekocr4gamera/trunk/debian/doc-base (rev 0)
+++ packages/greekocr4gamera/trunk/debian/doc-base 2012-01-26 20:47:47 UTC (rev 20126)
@@ -0,0 +1,12 @@
+Document: greekocr4gamera-documentation
+Title: GreekOCR toolkit for Gamera
+Author: Rene Baston, Christoph Dalitz
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/python-gamera.toolkits.greekocr/html/index.html
+Files: /usr/share/doc/python-gamera.toolkits.greekocr/html/*.html
+
+Format: Text
+Index: /usr/share/doc/python-gamera.toolkits.greekocr/rst/index.txt.gz
+Files: /usr/share/doc/python-gamera.toolkits.greekocr/rst/*.txt /usr/share/doc/python-gamera.toolkits.greekocr/rst/*.txt.gz
Added: packages/greekocr4gamera/trunk/debian/docs
===================================================================
--- packages/greekocr4gamera/trunk/debian/docs (rev 0)
+++ packages/greekocr4gamera/trunk/debian/docs 2012-01-26 20:47:47 UTC (rev 20126)
@@ -0,0 +1,3 @@
+README
+doc/html
+doc/src
Added: packages/greekocr4gamera/trunk/debian/greekocr4gamera.rst
===================================================================
--- packages/greekocr4gamera/trunk/debian/greekocr4gamera.rst (rev 0)
+++ packages/greekocr4gamera/trunk/debian/greekocr4gamera.rst 2012-01-26 20:47:47 UTC (rev 20126)
@@ -0,0 +1,33 @@
+===============
+greekocr4gamera
+===============
+
+---------------------------------------------------------
+OCR system using the Gamera framework for polytonal Greek
+---------------------------------------------------------
+
+:Manual section: 1
+
+Usage
+-----
+
+**greekocr4gamera** -x `<traindata>` [`options`] `<imagefile>`
+
+Options
+-------
+-w, --wholistic
+ Use wholistic segmentation mode. This is the default.
+-s, --separatistic
+ Use separatistic segmentation mode.
+-u <file>, --unicode <file>
+ Use this filename for Unicode output.
+-t <file>, --teubner <file.tex>
+ Use this filename for teubner TeX output.
+--deskew
+ Do a skew correction (recommended).
+--filter
+ Filter out very large (images) and very small components (noise).
+-d, --debug
+ Save debug-images: debug_lines.png debug_words.png debug_chars.png
+-h, --help
+ Display help and exit.
Added: packages/greekocr4gamera/trunk/debian/links
===================================================================
--- packages/greekocr4gamera/trunk/debian/links (rev 0)
+++ packages/greekocr4gamera/trunk/debian/links 2012-01-26 20:47:47 UTC (rev 20126)
@@ -0,0 +1 @@
+usr/share/doc/python-gamera.toolkits.greekocr/src usr/share/doc/python-gamera.toolkits.greekocr/rst
Added: packages/greekocr4gamera/trunk/debian/rules
===================================================================
--- packages/greekocr4gamera/trunk/debian/rules (rev 0)
+++ packages/greekocr4gamera/trunk/debian/rules 2012-01-26 20:47:47 UTC (rev 20126)
@@ -0,0 +1,43 @@
+#!/usr/bin/make -f
+
+.PHONY: clean
+clean:
+ dh_clean
+ rm -rf build *.egg-info/ debian/*.[1-9]
+ find -name '*.py[co]' -delete
+
+.PHONY: build build-arch build-indep
+build build-indep:
+ dh_testdir
+ set -ex; \
+ for python in $(shell pyversions -r); do \
+ $$python setup.py build; \
+ done
+ rst2man debian/greekocr4gamera.rst > debian/greekocr4gamera.1
+
+.PHONY: binary binary-arch binary-indep
+binary binary-indep: build-indep
+ dh_testdir
+ dh_testroot
+ dh_prep
+ for python in $(shell pyversions -r); do \
+ $$python setup.py install --prefix=/usr --root=debian/python-gamera.toolkits.greekocr/; \
+ done
+ cd debian/*/usr/bin/ && \
+ rename.ul '.py' '' greekocr4gamera.py && \
+ sed -i -e '1s,^#!.*,#!/usr/bin/python,' greekocr4gamera
+ dh_installdocs
+ cd debian/*/usr/share/doc/*/html/ && \
+ $(CURDIR)/debian/symlink-helper ../src/ .
+ dh_installchangelogs
+ dh_installman debian/*.[1-9]
+ dh_pysupport
+ dh_link
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+# vim:ts=4 sw=4 noet
Property changes on: packages/greekocr4gamera/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/greekocr4gamera/trunk/debian/source/format
===================================================================
--- packages/greekocr4gamera/trunk/debian/source/format (rev 0)
+++ packages/greekocr4gamera/trunk/debian/source/format 2012-01-26 20:47:47 UTC (rev 20126)
@@ -0,0 +1 @@
+3.0 (quilt)
Added: packages/greekocr4gamera/trunk/debian/symlink-helper
===================================================================
--- packages/greekocr4gamera/trunk/debian/symlink-helper (rev 0)
+++ packages/greekocr4gamera/trunk/debian/symlink-helper 2012-01-26 20:47:47 UTC (rev 20126)
@@ -0,0 +1,54 @@
+#!/usr/bin/python
+
+import hashlib
+import os
+import sys
+
+def file_hash(path):
+ hashsum = hashlib.sha256()
+ file = open(path, 'rb')
+ try:
+ hashsum.update(file.read())
+ finally:
+ file.close()
+ return hashsum.digest()
+
+def main():
+ data = {}
+ if len(sys.argv) != 3:
+ print >>sys.stderr, 'Usage: %s <src-dir> <dst-dir>'
+ sys.exit(1)
+ _, src_dir, dst_dir = sys.argv
+ for root, dirs, files in os.walk(src_dir):
+ for filename in files:
+ path = os.path.join(root, filename)
+ path = os.path.normpath(path)
+ data[file_hash(path)] = path
+ for root, dirs, files in os.walk(dst_dir):
+ for filename in files:
+ if not '_generic' in filename:
+ continue
+ path = os.path.join(root, filename)
+ path = os.path.normpath(path)
+ data[file_hash(path)] = path
+ for root, dirs, files in os.walk(dst_dir):
+ for filename in files:
+ if '_generic' in filename:
+ continue
+ path = os.path.join(root, filename)
+ path = os.path.normpath(path)
+ try:
+ sympath = data[file_hash(path)]
+ except LookupError:
+ pass
+ else:
+ sympath = os.path.join('../' * root.count('/'), sympath)
+ sympath = os.path.normpath(sympath)
+ print >>sys.stderr, 'symlinking %s -> %s' % (path, sympath)
+ os.unlink(path)
+ os.symlink(sympath, path)
+
+if __name__ == '__main__':
+ main()
+
+# vim:ts=4 sw=4 et
Property changes on: packages/greekocr4gamera/trunk/debian/symlink-helper
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/greekocr4gamera/trunk/debian/watch
===================================================================
--- packages/greekocr4gamera/trunk/debian/watch (rev 0)
+++ packages/greekocr4gamera/trunk/debian/watch 2012-01-26 20:47:47 UTC (rev 20126)
@@ -0,0 +1,2 @@
+version=3
+http://gamera.informatik.hsnr.de/addons/greekocr4gamera/greekocr-([0-9.]+)[.]tar[.]gz
More information about the Python-modules-commits
mailing list