gocr (scanning section)

alex at 22-music.com alex at 22-music.com
Tue Jan 7 00:57:30 PST 2003


Hello, BLFS-Book-Developers (and everyone else reading this list)!

Yesterday on the train, I found the time to add something to the 
scanning section: gocr, a small OCR program, which is great to do
something useful with the stuff you scanned.

I don't know if you want to include it in the current book.

Another issue: I was unable to make a direct xref reference to TeX.
What am I doing wrong? I got either "the chapter called tex-1.0..."
or an error.

Thanks for your answers.

Alex
-------------- next part --------------
diff -Naur BLFS-old/BOOK/pst/pst.ent BLFS/BOOK/pst/pst.ent
--- BLFS-old/BOOK/pst/pst.ent	2003-01-02 11:03:31.000000000 +0100
+++ BLFS/BOOK/pst/pst.ent	2003-01-07 00:12:25.000000000 +0100
@@ -9,8 +9,10 @@
 <!ENTITY pst-scanning SYSTEM "scanning/scanning.xml">
 <!ENTITY % sane SYSTEM "scanning/sane/sane.ent">
 <!ENTITY % xsane SYSTEM "scanning/xsane/xsane.ent">
+<!ENTITY % gocr SYSTEM "scanning/gocr/gocr.ent">
 %sane;
 %xsane;
+%gocr;
 
 <!-- SGML -->
 <!ENTITY pst-sgml SYSTEM "typesetting/sgml.xml">
diff -Naur BLFS-old/BOOK/pst/scanning/gocr/gocr-desc.xml BLFS/BOOK/pst/scanning/gocr/gocr-desc.xml
--- BLFS-old/BOOK/pst/scanning/gocr/gocr-desc.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/scanning/gocr/gocr-desc.xml	2003-01-07 00:09:11.000000000 +0100
@@ -0,0 +1,18 @@
+<sect2>
+<title>Contents</title>
+
+<para><userinput>gocr :</userinput> program that prints all text it can
+read from any graphical input file to stdout.</para>
+
+<para><userinput>gtk-ocr :</userinput> gtk frontend for gocr.</para>
+
+<para><userinput>examples :</userinput> this directory contains some
+test files for gocr, generated with fig2dev or latex.</para>
+
+<para><userinput>doc, man :</userinput> these directories holds the
+files <filename>gocr.html</filename> and <filename>gocr.1</filename>
+which are a short documentation on the functionality of gocr in html and
+man format.</para>
+
+</sect2>
+
diff -Naur BLFS-old/BOOK/pst/scanning/gocr/gocr-exp.xml BLFS/BOOK/pst/scanning/gocr/gocr-exp.xml
--- BLFS-old/BOOK/pst/scanning/gocr/gocr-exp.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/scanning/gocr/gocr-exp.xml	2003-01-06 23:50:03.000000000 +0100
@@ -0,0 +1,7 @@
+<sect2>
+<title>Installation command explanations</title>
+
+<para><userinput>--prefix=/usr :</userinput> All software is going to
+be installed in directories relative to<filename>/usr</filename>.</para>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/scanning/gocr/gocr-inst.xml BLFS/BOOK/pst/scanning/gocr/gocr-inst.xml
--- BLFS-old/BOOK/pst/scanning/gocr/gocr-inst.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/scanning/gocr/gocr-inst.xml	2003-01-07 00:10:25.000000000 +0100
@@ -0,0 +1,23 @@
+<sect2>
+<title>Installation of gocr</title>
+
+<para>Install gocr by running the following commands:</para>
+
+<para><screen><userinput>./configure --prefix=/usr &&
+make &&
+make install
+</userinput></screen></para>
+
+<para>To install the gtk-frontend, use the following commands:</para>
+
+<para><screen><userinput>cd frontend/gnome &&
+./configure --prefix=/usr &&
+make &&
+make install
+</userinput></screen></para>
+
+<para>To install the help, run <userinput>make help</userinput>, to
+install the documentation execute <userinput>make doc</userinput> and
+<userinput>make examples</userinput> runs some tests on gocr.</para>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/scanning/gocr/gocr-intro.xml BLFS/BOOK/pst/scanning/gocr/gocr-intro.xml
--- BLFS-old/BOOK/pst/scanning/gocr/gocr-intro.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/scanning/gocr/gocr-intro.xml	2003-01-07 09:29:40.000000000 +0100
@@ -0,0 +1,22 @@
+<sect2>
+<title>Introduction to gocr</title>
+
+<screen>Required:
+Download location (HTTP):       <ulink url="&gocr-download-http;"/>
+Download location (FTP):        <ulink url="&gocr-download-ftp;"/>
+Version used:                   &gocr-version;
+Package size:                   &gocr-size; (Backends)
+Estimated Disk space required:  &gocr-buildsize;</screen>
+
+<para>gocr is a small OCR (Object Character Recognition) program, in short
+words: a program to read text from a graphical input file. Since it's 
+working without training, it can be used out of the box, on the other side
+you'll need a high quality scan to get a good result.</para>
+
+<para>gocr can used as a console utility, but there's gtk-frontend in
+the source package, too.</para>
+
+<screen>gocr will utilize:
+TeX or fig2dev (for examples), <xref linkend="xfree86"/> and <xref linkend="GTK"/> (for frontend only)</screen>
+
+</sect2>
diff -Naur BLFS-old/BOOK/pst/scanning/gocr/gocr.ent BLFS/BOOK/pst/scanning/gocr/gocr.ent
--- BLFS-old/BOOK/pst/scanning/gocr/gocr.ent	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/scanning/gocr/gocr.ent	2003-01-06 23:52:41.000000000 +0100
@@ -0,0 +1,10 @@
+<!ENTITY gocr SYSTEM "../gocr.xml">
+<!ENTITY gocr-intro SYSTEM "gocr-intro.xml">
+<!ENTITY gocr-inst SYSTEM "gocr-inst.xml">
+<!ENTITY gocr-desc SYSTEM "gocr-desc.xml">
+<!ENTITY gocr-exp SYSTEM "gocr-exp.xml">
+<!ENTITY gocr-buildsize "5,7 MB">
+<!ENTITY gocr-version "0.3.7">
+<!ENTITY gocr-download-http "http://jocr.sourceforge.net">
+<!ENTITY gocr-download-ftp "ftp://ftp.sourceforge.net/pub/sourceforge/jocr/gocr-0.3.7.tar.gz">
+<!ENTITY gocr-size "657 kb">
diff -Naur BLFS-old/BOOK/pst/scanning/gocr.xml BLFS/BOOK/pst/scanning/gocr.xml
--- BLFS-old/BOOK/pst/scanning/gocr.xml	1970-01-01 01:00:00.000000000 +0100
+++ BLFS/BOOK/pst/scanning/gocr.xml	2003-01-06 23:48:37.000000000 +0100
@@ -0,0 +1,10 @@
+<sect1 id="gocr" xreflabel="gocr-&gocr-version;">
+<?dbhtml filename="gocr.html" dir="pst"?>
+<title>gocr-&gocr-version;</title>
+
+&gocr-intro;
+&gocr-inst;
+&gocr-exp;
+&gocr-desc;
+
+</sect1>
diff -Naur BLFS-old/BOOK/pst/scanning/scanning.xml BLFS/BOOK/pst/scanning/scanning.xml
--- BLFS-old/BOOK/pst/scanning/scanning.xml	2003-01-02 16:25:28.000000000 +0100
+++ BLFS/BOOK/pst/scanning/scanning.xml	2003-01-07 09:05:09.000000000 +0100
@@ -4,5 +4,6 @@
 
 &sane;
 &xsane;
+&gocr;
 
 </chapter>


More information about the blfs-book mailing list