--- sgrep-1.94a.orig/sgrep.1
+++ sgrep-1.94a/sgrep.1
@@ -36,23 +36,41 @@
.Pp
\fIsgrep \fP
-[\fB-aCcDdhilNnPqSsTtV\fP]
+[\fB-aCcDdhiIlNnPqSsTtV\fP]
+[\fB-g\fP \fIoption\fP]
[\fB-O\fP \fIfilename\fP]
[\fB-o\fP "\fIformat\fP"]
[\fB-p\fP \fIpreprocessor\fP]
+[\fB-w\fP \fIchar list\fP]
+[\fB-x\fP \fIfilename\fP]
[\fB-e\fP]
\fIexpression\fP
[\fIfilename \fP ...]
.Pp
\fIsgrep\fP
-[\fB-aCcDdhilNnPqSsTtV\fP]
+[\fB-aCcDdhiIlNnPqSsTtV\fP]
+[\fB-g\fP \fIoption\fP]
[\fB-O\fP \fIfilename\fP]
[\fB-o\fP "\fIformat\fP"]
-[ \fB-p\fP \fIpreprocessor\fP]
+[\fB-p\fP \fIpreprocessor\fP]
+[\fB-w\fP \fIchar list\fP]
+[\fB-x\fP \fIfilename\fP]
\fB-f\fP \fIfilename\fP
[\fB-e \fP \fIexpression\fP]
[\fIfilename\fP ...]
.Pp
+\fIsgrep\fP
+[\fB-aCcDdhiIlNnPqSsTtV\fP]
+[\fB-g\fP \fIoption\fP]
+[\fB-O\fP \fIfilename\fP]
+[\fB-o\fP "\fIformat\fP"]
+[\fB-p\fP \fIpreprocessor\fP]
+[\fB-w\fP \fIchar list\fP]
+[\fB-x\fP \fIfilename\fP]
+\fB-f\fP \fIfilename\fP
+\fB-F\fP \fIfilename\fP
+[\fB-e \fP \fIexpression\fP]
+.Pp
\fIsgrep \fP
\fB-h\fP
.SH DESCRIPTION
@@ -123,7 +141,7 @@
.IP "\fB-a\fP"
.nr bi 1
.Pp
-Act as a filter: display the maching regions,
+Act as a filter: display the matching regions,
possibly formatted according to the output format,
interleaved with the rest of the text.
(See the description of option -o below.)
@@ -158,6 +176,39 @@
Read the region expression from the named file. Filename
\fB- \fP
refers to stdin.
+.IP "\fB-F\fP \fIfilename\fP"
+.nr bi 1
+.Pp
+Read list of input files from \fIfilename\fP instead of command line
+.IP "\fB-g\fP \fIoption\fP"
+.nr bi 1
+.Pp
+Set scanner option. \fIoption\fP can be any of:
+.nr ll +1
+.nr t\n(ll 2
+.if \n(ll>1 .RS
+.IP "\fBsgml\fP"
+.nr bi 1
+.Pp
+use SGML scanner
+.IP "\fBhtml\fP"
+.nr bi 1
+.Pp
+use HTML scanner (currently same as SGML scanner)
+.IP "\fBxml\fP"
+.nr bi 1
+.Pp
+use XML scanner
+.IP "\fBsgml-debug\fP"
+.nr bi 1
+.Pp
+show recognized SGML tokens
+.IP "\fBinclude-entities\fP"
+.nr bi 1
+.Pp
+automatically include system entities
+.if \n(ll>1 .RE
+.nr ll -1
.IP "\fB-h\fP"
.nr bi 1
.Pp
@@ -166,6 +217,10 @@
.nr bi 1
.Pp
Ignore case distinctions in phrases.
+.IP "\fB-I\fP"
+.nr bi 1
+.Pp
+Switches to indexing mode, when given as first option
.IP "\fB-l\fP"
.nr bi 1
.Pp
@@ -293,6 +348,18 @@
.nr bi 1
.Pp
Display version information.
+.IP "\fB-v\fP"
+.nr bi 1
+.Pp
+Verbose mode. Shows what is going on.
+.IP "\fB-w\fP \fIchar list\fP"
+.nr bi 1
+.Pp
+Set the list of characters used to recognize words.
+.IP "\fB-x\fP \fIfilename\fP"
+.nr bi 1
+.Pp
+Use given index file instead of scanner. Implies -S.
.IP "\fB--\fP"
.nr bi 1
.Pp
@@ -721,11 +788,11 @@
.nr bi 1
.Pp
For each possible left-quote region \fBx\fP, the earliest region in
-\fBv(basic_expr)\fP preceeded by \fBx\fP is its right-quote region.
+\fBv(basic_expr)\fP preceded by \fBx\fP is its right-quote region.
.nr bi 1
.Pp
For each right-quote region \fBy\fP in \fBv(basic_expr)\fP, the
-earliest region in \fBv(region_expr)\fP preceeded by \fBy\fP is a
+earliest region in \fBv(region_expr)\fP preceded by \fBy\fP is a
possible left-quote region.
.if \n(ll>1 .RE
.nr ll -1