Репозитории ALT
Группа :: Офис
Пакет: ocrad
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: ocrad_0.17-3.diff
Скачать
Скачать
--- ocrad-0.17.orig/doc/ocrad.1
+++ ocrad-0.17/doc/ocrad.1
@@ -1,71 +1,71 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33.
-.TH OCRAD "1" "June 2007" "Ocrad 0.17" "User Commands"
-.SH NAME
-Ocrad \- manual page for Ocrad 0.17
-.SH SYNOPSIS
+.TH "OCRAD" "1" "June 2007" "Ocrad 0.17" "User Commands"
+.SH "NAME"
+Ocrad \- Optical Character Recognition Program
+.SH "SYNOPSIS"
.B ocrad
[\fIoptions\fR] [\fIfiles\fR]
-.SH DESCRIPTION
-GNU Ocrad - Optical Character Recognition program.
+.SH "DESCRIPTION"
+GNU Ocrad \- Optical Character Recognition program.
Reads pnm file(s), or standard input, and sends text to standard output.
-.SH OPTIONS
-.TP
+.SH "OPTIONS"
+.TP
\fB\-h\fR, \fB\-\-help\fR
display this help and exit
-.TP
+.TP
\fB\-V\fR, \fB\-\-version\fR
output version information and exit
-.TP
+.TP
\fB\-a\fR, \fB\-\-append\fR
append text to output file
-.TP
+.TP
\fB\-b\fR, \fB\-\-block=\fR<n>
process only the specified text block
-.TP
+.TP
\fB\-c\fR, \fB\-\-charset=\fR<name>
-try `--charset=help' for a list of names
-.TP
+try `\-\-charset=help' for a list of names
+.TP
\fB\-e\fR, \fB\-\-filter=\fR<name>
-try `--filter=help' for a list of names
-.TP
+try `\-\-filter=help' for a list of names
+.TP
\fB\-f\fR, \fB\-\-force\fR
force overwrite of output file
-.TP
+.TP
\fB\-F\fR, \fB\-\-format=\fR<fmt>
output format (byte, utf8)
-.TP
+.TP
\fB\-i\fR, \fB\-\-invert\fR
invert image levels (white on black)
-.TP
+.TP
\fB\-l\fR, \fB\-\-layout=\fR<n>
layout analysis, 0=none, 1=column, 2=full
-.TP
+.TP
\fB\-o\fR <file>
place the output into <file>
-.TP
+.TP
\fB\-p\fR, \fB\-\-crop=\fR<l,t,r,b>
crop input image by given rectangle
-.TP
+.TP
\fB\-s\fR, \fB\-\-scale\fR=\fI[\-]\fR<n>
scale input image by [1/]<n>
-.TP
+.TP
\fB\-t\fR, \fB\-\-transform=\fR<name>
-try `--transform=help' for a list of names
-.TP
+try `\-\-transform=help' for a list of names
+.TP
\fB\-T\fR, \fB\-\-threshold=\fR<n%>
-threshold for binarization (0-100%)
-.TP
+threshold for binarization (0\-100%)
+.TP
\fB\-v\fR, \fB\-\-verbose\fR
be verbose
-.TP
+.TP
\fB\-x\fR <file>
export OCR Results File to <file>
.SH "REPORTING BUGS"
-Report bugs to bug-ocrad@gnu.org
-.SH COPYRIGHT
+Report bugs to bug\-ocrad@gnu.org
+.SH "COPYRIGHT"
Copyright \(co 2007 Antonio Diaz Diaz.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
-.br
+.br
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
@@ -76,7 +76,7 @@
and
.B Ocrad
programs are properly installed at your site, the command
-.IP
+.IP
.B info Ocrad
-.PP
+.PP
should give you access to the complete manual.
--- ocrad-0.17.orig/textpage.cc
+++ ocrad-0.17/textpage.cc
@@ -18,6 +18,7 @@
#include <cstdio>
#include <string>
#include <vector>
+#include <algorithm>
#include "common.h"
#include "rectangle.h"
--- ocrad-0.17.orig/common.h
+++ ocrad-0.17/common.h
@@ -15,6 +15,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <string>
+
namespace Ocrad {
extern bool verbose;
--- ocrad-0.17.orig/debian/info
+++ ocrad-0.17/debian/info
@@ -0,0 +1 @@
+doc/ocrad.info
--- ocrad-0.17.orig/debian/dirs
+++ ocrad-0.17/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- ocrad-0.17.orig/debian/docs
+++ ocrad-0.17/debian/docs
@@ -0,0 +1,3 @@
+README
+NEWS
+TODO
--- ocrad-0.17.orig/debian/manpages
+++ ocrad-0.17/debian/manpages
@@ -0,0 +1 @@
+doc/ocrad.1
--- ocrad-0.17.orig/debian/rules
+++ ocrad-0.17/debian/rules
@@ -0,0 +1,92 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+ CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+ $(MAKE)
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ [ ! -f Makefile ] || $(MAKE) distclean
+#ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+# cp -f /usr/share/misc/config.sub config.sub
+#endif
+#ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+# cp -f /usr/share/misc/config.guess config.guess
+#endif
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/ocrad.
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/ocrad
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog
+ dh_installdocs
+ dh_installexamples
+ dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- ocrad-0.17.orig/debian/watch
+++ ocrad-0.17/debian/watch
@@ -0,0 +1,6 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# Site Directory Pattern Version Script
+version=2
+ftp://ftp.gnu.org/gnu/ocrad/ocrad-(.*)\.tar\.bz2 debian uupdate
--- ocrad-0.17.orig/debian/copyright
+++ ocrad-0.17/debian/copyright
@@ -0,0 +1,26 @@
+This package was debianized by Miguel Gea Milvaques <debian@miguelgea.com> on
+Tue, 16 Nov 2004 22:09:32 +0100.
+
+It was downloaded from http://ftp.gnu.org/gnu/ocrad/
+
+Copyright Holder: (c) 2003-2007 Antonio Diaz <ant_diaz@teleline.es>
+
+License:
+
+ 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; either version 3 of the License, or
+ (at your option) any later version.
+
+ 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.
+
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
--- ocrad-0.17.orig/debian/control
+++ ocrad-0.17/debian/control
@@ -0,0 +1,18 @@
+Source: ocrad
+Section: graphics
+Priority: optional
+Maintainer: Miguel Gea Milvaques <xerakko@debian.org>
+Build-Depends: debhelper (>=4.0.0)
+Standards-Version: 3.7.3
+Homepage: http://www.gnu.org/software/ocrad/ocrad.html
+
+Package: ocrad
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Optical Character Recognition program
+ GNU Ocrad is an OCR (Optical Character Recognition) program based on a
+ feature extraction method. It reads a bitmap image in pgm/pbm format and
+ produces text in byte (8-bit) or UTF-8 formats.
+ .
+ Ocrad includes a layout analyzer able to separate the columns or blocks
+ of text normally found on printed pages.
--- ocrad-0.17.orig/debian/compat
+++ ocrad-0.17/debian/compat
@@ -0,0 +1 @@
+4
--- ocrad-0.17.orig/debian/examples
+++ ocrad-0.17/debian/examples
@@ -0,0 +1,2 @@
+examples/test.txt
+examples/test.pbm
--- ocrad-0.17.orig/debian/changelog
+++ ocrad-0.17/debian/changelog
@@ -0,0 +1,82 @@
+ocrad (0.17-3) unstable; urgency=low
+
+ * Added cstring include header to avoid FTBFS (Closes:455679)
+ * Updated policy version
+ * Moved Homepage from description.
+
+ -- Miguel Gea Milvaques <xerakko@debian.org> Thu, 27 Dec 2007 10:55:31 +0100
+
+ocrad (0.17-2) unstable; urgency=low
+
+ * Modified Changelog. Now License is GPL-3
+ * Added missing includes (Closes: #417456)
+
+ -- Miguel Gea Milvaques <xerakko@debian.org> Sun, 22 Jul 2007 13:02:53 +0200
+
+ocrad (0.17-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Miguel Gea Milvaques <xerakko@debian.org> Sun, 22 Jul 2007 12:31:27 +0200
+
+ocrad (0.16-1) unstable; urgency=low
+
+ * New upstream release
+ * Updated NAME section in manual pages
+ * Updated Standards-Version
+ * Modified rules file to avoid ocrad to be build twice.
+ * Updated copyright file.
+
+ -- Miguel Gea Milvaques <xerakko@debian.org> Mon, 23 Oct 2006 23:18:49 +0200
+
+ocrad (0.15-1) unstable; urgency=low
+
+ * New upstream release. Closes: #357717 (FTBFS with g++ 4.1)
+ * Changed Maintainer in control file.
+
+ -- Miguel Gea Milvaques <xerakko@debian.org> Thu, 20 Apr 2006 21:36:34 +0200
+
+ocrad (0.14-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Miguel Gea Milvaques <debian@miguelgea.com> Sun, 19 Feb 2006 09:28:21 +0100
+
+ocrad (0.13-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Miguel Gea Milvaques <debian@miguelgea.com> Sat, 22 Oct 2005 16:08:16 +0200
+
+ocrad (0.12-2) unstable; urgency=low
+
+ * Correct mistake on description
+ * Updated Standard-Version to 3.6.2.1
+
+ -- Miguel Gea Milvaques <debian@miguelgea.com> Sat, 2 Jul 2005 00:20:17 +0200
+
+ocrad (0.12-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Miguel Gea Milvaques <debian@miguelgea.com> Sat, 11 Jun 2005 00:34:43 +0200
+
+ocrad (0.11-3) unstable; urgency=low
+
+ * More dependences removal. (Closes: #304292)
+
+ -- Miguel Gea Milvaques <debian@miguelgea.com> Tue, 12 Apr 2005 09:01:20 +0200
+
+ocrad (0.11-2) unstable; urgency=low
+
+ * Removes not necessary dependences.
+
+ -- Miguel Gea Milvaques <debian@miguelgea.com> Mon, 11 Apr 2005 17:24:52 +0200
+
+ocrad (0.11-1) unstable; urgency=low
+
+ * Initial Release.
+ * closes: #197551 (ITP)
+
+ -- Miguel Gea Milvaques <debian@miguelgea.com> Wed, 17 Nov 2004 11:36:58 +0100
+
--- ocrad-0.17.orig/character_r12.cc
+++ ocrad-0.17/character_r12.cc
@@ -16,6 +16,7 @@
*/
#include <cstdio>
+#include <cstdlib>
#include <vector>
#include "common.h"
#include "rectangle.h"
--- ocrad-0.17.orig/common.cc
+++ ocrad-0.17/common.cc
@@ -18,6 +18,7 @@
#include <algorithm>
#include <cstdio>
#include <cstdlib>
+#include <cstring>
#include "common.h"
--- ocrad-0.17.orig/textline_r2.cc
+++ ocrad-0.17/textline_r2.cc
@@ -17,6 +17,7 @@
#include <cctype>
#include <cstdio>
+#include <cstdlib>
#include <vector>
#include "common.h"
--- ocrad-0.17.orig/page_image.cc
+++ ocrad-0.17/page_image.cc
@@ -17,6 +17,7 @@
#include <algorithm>
#include <cctype>
+#include <climits>
#include <cstdio>
#include <vector>