File: djvutxt.1

package info (click to toggle)
djvulibre 3.5.27.1-7
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,976 kB
  • ctags: 8,037
  • sloc: cpp: 65,455; xml: 5,723; ansic: 4,640; sh: 846; makefile: 315
file content (120 lines) | stat: -rw-r--r-- 3,398 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.\" Copyright (c) 2001-2003 Leon Bottou, Yann Le Cun, Patrick Haffner,
.\" Copyright (c) 2001 AT&T Corp., and Lizardtech, Inc.
.\"
.\" This is free documentation; 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 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual 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 manual. Otherwise check the web site
.\" of the Free Software Foundation at http://www.fsf.org.
.TH DJVUTXT 1 "10/11/2001" "DjVuLibre-3.5" "DjVuLibre-3.5"
.de SS
.SH \\0\\0\\0\\$*
..
.SH NAME
djvutxt \- Extract the hidden text from DjVu documents.

.SH SYNOPSIS
.BI "djvutxt [" options "] " "inputdjvufile" " [" outputtxtfile "]"

.SH DESCRIPTION
Program 
.B djvutxt
decodes the hidden text layer of a DjVu document 
.I inputdjvufile
and prints it into file
.I outputtxtfile
or on the standard output.
The hidden text layer is usually generated with 
the help of an optical character recognition software.

Without options
.BR -detail
and
.BR -escape ,
this program simply outputs the UTF-8 text.
Option
.BR -detail
cause the output of S-expressions
describing the text and its location.
Option
.BR -escape
uses C-style escape sequences to represent
nonprintable non-ASCII characters.



.SH OPTIONS
.TP
.BI "--page=" "pagespec"
Specify which pages should be processed.
When this option is not specified,
the text of all pages of the documents is
concatenated into the output file.
The page specification
.I pagespec 
contains one or more comma-separated page ranges.
A page range is either a page number, 
or two page numbers separated by a dash.
For instance, specification
.BR "1-10" 
outputs pages 1 to 10, and specification
.BR "1,3,99999-4"
outputs pages 1 and 3, followed by all the document
pages in reverse order up to page 4.
.TP
.BI "--detail=" "keyword"
This options causes
.B djvutxt
to output S-expressions 
specifying the position of the text in the page.
See the manual page
.BR djvused (1)
for a description of the output format.
Argument 
.I keyword
specifies the maximum level of detail
for which text location is reported.
The recognized values are:
.BR page ", " column ", " region ", " para ", "
.BR line ", " word ", and " char "."
All other values are interpreted as 
.BR char .
.TP
.BI "--escape"
Output escape sequences of the form
.BI \ "ooo"
for all non ASCII or non printable UTF-8 
characters and for the backslash character.




.SH REMARKS
Use program
.BR djvused (1)
for more control over the text layer.

.SH CREDITS
This program was initially written by 
Andrei Erofeev <andrew_erofeev@yahoo.com> and
was then improved Bill Riemers <docbill@sourceforge.net> 
and many others. It was then rewritten to use the 
ddjvuapi by Leon Bottou <leonb@sourceforge.net>.

.SH SEE ALSO
.BR djvu (1),
.BR djvused (1)