-b file
--break-file=file
-W
for describing
which characters make up words. This option introduces the name of a
file which contains a list of characters which cannot be part of
one word, this file is called the Break file. Any character which
is not part of the Break file is a word constituent. If both options
-b
and -W
are specified, then -W
has precedence and
-b
is ignored.
When GNU extensions are enabled, the only way to avoid newline as a
break character is to write all the break characters in the file with no
newline at all, not even at the end of the file. When GNU extensions
are disabled, spaces, tabs and newlines are always considered as break
characters even if not included in the Break file.
-i file
--ignore-file=file
-S
option.
There is a default Ignore file used by ptx
when this option is
not specified, usually found in `/usr/local/lib/eign' if this has
not been changed at installation time. If you want to deactivate the
default Ignore file, specify /dev/null
instead.
-o file
--only-file=file
-S
option.
There is no default for the Only file. In the case there are both an
Only file and an Ignore file, a word will be subject to be a keyword
only if it is given in the Only file and not given in the Ignore file.
-r
--references
-S
.
Using this option, the program does not try very hard to remove
references from contexts in output, but it succeeds in doing so
when the context ends exactly at the newline. If option
-r
is used with -S
default value, or when GNU extensions
are disabled, this condition is always met and references are completely
excluded from the output contexts.
-S regexp
--sentence-regexp=regexp
-r
option is not used, end of sentences are used. In this
case, the precise regex is imported from GNU emacs:
[.?!][]\"')}]*\\($\\|\t\\| \\)[ \t\n]*Whenever GNU extensions are disabled or if
-r
option is used, end
of lines are used; in this case, the default regexp is just:
\nUsing an empty REGEXP is equivalent to completely disabling end of line or end of sentence recognition. In this case, the whole file is considered to be a single big line or sentence. The user might want to disallow all truncation flag generation as well, through option
-F ""
.
See section `Syntax of Regular Expressions' in The GNU Emacs Manual.
When the keywords happen to be near the beginning of the input line or
sentence, this often creates an unused area at the beginning of the
output context line; when the keywords happen to be near the end of the
input line or sentence, this often creates an unused area at the end of
the output context line. The program tries to fill those unused areas
by wrapping around context in them; the tail of the input line or
sentence is used to fill the unused area on the left of the output line;
the head of the input line or sentence is used to fill the unused area
on the right of the output line.
As a matter of convenience to the user, many usual backslashed escape
sequences, as found in the C language, are recognized and converted to
the corresponding characters by ptx
itself.
-W regexp
--word-regexp=regexp
\w+
. When GNU extensions are
disabled, a word is by default anything which ends with a space, a tab
or a newline; the regexp used is [^ \t\n]+
.
An empty REGEXP is equivalent to not using this option, letting the
default dive in. See section `Syntax of Regular Expressions' in The GNU Emacs Manual.
As a matter of convenience to the user, many usual backslashed escape
sequences, as found in the C language, are recognized and converted to
the corresponding characters by ptx
itself.
Go to the first, previous, next, last section, table of contents.