SOURCES: gscan2pdf-tessdata_prefix.patch (NEW), gscan2pdf-tesseract_polish....

jajcus jajcus at pld-linux.org
Wed Feb 18 12:31:03 CET 2009


Author: jajcus                       Date: Wed Feb 18 11:31:03 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- Suggests: Tesseract
- patch to fix tesseract data files search
- Polish language added to Tesseract language list

---- Files affected:
SOURCES:
   gscan2pdf-tessdata_prefix.patch (NONE -> 1.1)  (NEW), gscan2pdf-tesseract_polish.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gscan2pdf-tessdata_prefix.patch
diff -u /dev/null SOURCES/gscan2pdf-tessdata_prefix.patch:1.1
--- /dev/null	Wed Feb 18 12:31:03 2009
+++ SOURCES/gscan2pdf-tessdata_prefix.patch	Wed Feb 18 12:30:57 2009
@@ -0,0 +1,12 @@
+diff -dur -x '*~' gscan2pdf-0.9.27.orig/bin/gscan2pdf gscan2pdf-0.9.27/bin/gscan2pdf
+--- gscan2pdf-0.9.27.orig/bin/gscan2pdf	2009-02-18 12:17:21.000000000 +0100
++++ gscan2pdf-0.9.27/bin/gscan2pdf	2009-02-18 12:18:43.000000000 +0100
+@@ -7245,7 +7245,7 @@
+   pol     => $d->get('Polish'),
+  );
+ 
+- my $tessdata_prefix = '/usr/share/tessdata';
++ my $tessdata_prefix = '/usr/share';
+  if (defined $ENV{TESSDATA_PREFIX}) {
+   $tessdata_prefix = $ENV{TESSDATA_PREFIX};
+  }

================================================================
Index: SOURCES/gscan2pdf-tesseract_polish.patch
diff -u /dev/null SOURCES/gscan2pdf-tesseract_polish.patch:1.1
--- /dev/null	Wed Feb 18 12:31:04 2009
+++ SOURCES/gscan2pdf-tesseract_polish.patch	Wed Feb 18 12:30:57 2009
@@ -0,0 +1,11 @@
+diff -dur -x '*~' gscan2pdf-0.9.27.orig/bin/gscan2pdf gscan2pdf-0.9.27/bin/gscan2pdf
+--- gscan2pdf-0.9.27.orig/bin/gscan2pdf	2008-12-12 22:47:42.000000000 +0100
++++ gscan2pdf-0.9.27/bin/gscan2pdf	2009-02-18 11:05:14.000000000 +0100
+@@ -7242,6 +7242,7 @@
+   por     => $d->get('Portuguese'),
+   spa     => $d->get('Spanish'),
+   vie     => $d->get('Vietnamese'),
++  pol     => $d->get('Polish'),
+  );
+ 
+  my $tessdata_prefix = '/usr/share/tessdata';
================================================================


More information about the pld-cvs-commit mailing list