···1-From: Ken Stevens <kstevens@ece.utah.edu>
2-Date: Sat, 15 Jul 2000 22:10:53 -0400
3-Subject: 0008 Tex backslash
4-5-Version 3.1.20 contains an irritating bug when using latex that causes all
6-sorts of problems when the backslash is used. (The backslash is a common
7-character in latex that is used, among other things, to create a forced space
8-similar to the tilde character.) In the current version, 3.1.20, the next TWO
9-characters are skipped after a backslash. This can results in misspellings and
10-the file being incorrectly parsed. (For example, if the text contains the
11-sequence `\ $' math mode will not be entered until the matching $ which should
12-end it, resulting in the body of the text not being spell checked and the math
13-region being checked.)
14-15-Make sure to undefine NO8BIT and use a larger number for MASKBITS if you are
16-using iso character sets.
17-18-http://www.kdstevens.com/~stevens/ispell-faq.html#bslash
19----
20- defmt.c | 7 +++----
21- 1 files changed, 3 insertions(+), 4 deletions(-)
22-23-diff --git a/defmt.c b/defmt.c
24-index 35f93e4..7499752 100644
25---- a/defmt.c
26-+++ b/defmt.c
27-@@ -884,6 +884,8 @@ static int TeX_math_end (bufp)
28- return 0;
29- }
30-31-+/* Updates bufp to point to the next character to skip. */
32-+/* Should only be called on non-word characters. */
33- static int TeX_math_begin (bufp)
34- unsigned char ** bufp;
35- {
36-@@ -902,10 +904,7 @@ static int TeX_math_begin (bufp)
37- if (**bufp == TEXLEFTPAREN || **bufp == TEXLEFTSQUARE)
38- return 1;
39- else if (!isalpha(**bufp) && **bufp != '@')
40-- {
41-- (*bufp)++;
42-- continue;
43-- }
44-+ return 0;
45- else if (TeX_strncmp (*bufp, "begin", 5) == 0)
46- {
47- if (TeX_math_check ('b', bufp))
48---
···1-From: David Paleino <d.paleino@gmail.com>
2-Date: Mon, 9 Nov 2009 09:22:12 +0000
3-Subject: 0013 Fix man pages
4-5-Fix man pages, manpage-has-errors-from-man and hyphen-used-as-minus-sign
6-7-Forwarded: no
8----
9- ispell.1X | 26 +++++++++++++-------------
10- ispell.5X | 26 +++++++++++++-------------
11- 2 files changed, 26 insertions(+), 26 deletions(-)
12-13-diff --git a/ispell.1X b/ispell.1X
14-index b27b120..79894d4 100644
15---- a/ispell.1X
16-+++ b/ispell.1X
17-@@ -236,8 +236,8 @@ count affix-file
18- .RB [ \-p | \-s]
19- .RB [ \-c ]
20- .I expanded-file
21--.IR affix [ +addition ]
22--...
23-+.IR affix
24-+.RI [ +addition ]
25- .PP
26- .B icombine
27- .RB [ \-T
28-@@ -336,7 +336,7 @@ The amount of context is subject to a system-imposed limit.
29- If the
30- .B \-V
31- flag is given, characters that are not in the 7-bit ANSI printable
32--character set will always be displayed in the style of "cat -v", even if
33-+character set will always be displayed in the style of "cat \-v", even if
34- .I ispell
35- thinks that these characters are legal ISO Latin-1 on your system.
36- This is useful when working with older terminals.
37-@@ -542,7 +542,7 @@ option is used to specify an alternate hashed dictionary file,
38- other than the default.
39- If the filename does not contain a "/",
40- the library directory for the default dictionary file is prefixed;
41--thus, to use a dictionary in the local directory "-d ./xxx.hash" must
42-+thus, to use a dictionary in the local directory "\-d ./xxx.hash" must
43- be used.
44- This is useful to allow dictionaries for alternate languages.
45- Unlike previous versions of
46-@@ -615,7 +615,7 @@ alphabetics have no meaning - alphabetics are already accepted.
47- .I Ispell
48- will typically be used with input from a file, meaning that preserving
49- parity for possible 8 bit characters from the input text is OK. If you
50--specify the -l option, and actually type text from the terminal, this may
51-+specify the \-l option, and actually type text from the terminal, this may
52- create problems if your stty settings preserve parity.
53- .PP
54- It is not possible to use
55-@@ -799,7 +799,7 @@ that the '&' is replaced by '?' (and the near-miss count is always zero).
56- The suggested derivations following the near misses are in the form:
57- .PP
58- .RS
59--[prefix+] root [-prefix] [-suffix] [+suffix]
60-+[prefix+] root [\-prefix] [\-suffix] [+suffix]
61- .RE
62- .PP
63- (e.g., "re+fry-y+ies" to get "refries")
64-@@ -841,7 +841,7 @@ These output lines can be summarized as follows:
65- .PP
66- For example, a dummy dictionary containing the words "fray", "Frey",
67- "fry", and "refried" might produce the following response to the
68--command "echo 'frqy refries | ispell -a -m -d ./test.hash":
69-+command "echo 'frqy refries | ispell \-a \-m \-d ./test.hash":
70- .RS
71- .nf
72- (#) International Ispell Version 3.0.05 (beta), 08/10/91
73-@@ -1036,7 +1036,7 @@ script does this.
74- As an example, the command:
75- .PP
76- .RS
77--echo BOTHER | ispell -c
78-+echo BOTHER | ispell \-c
79- .RE
80- .PP
81- produces:
82-@@ -1055,7 +1055,7 @@ it expands affix flags to produce a list of words.
83- For example, the command:
84- .PP
85- .RS
86--echo BOTH/R | ispell -e
87-+echo BOTH/R | ispell \-e
88- .RE
89- .PP
90- produces:
91-@@ -1268,7 +1268,7 @@ hash file if it were added to the language table.
92- Only affixes that generate legal roots (found in the original input)
93- are listed.
94- .PP
95--If the "-c" option is not given, the output lines are in the
96-+If the "\-c" option is not given, the output lines are in the
97- following format:
98- .IP
99- strip/add/count/bytes
100-@@ -1298,7 +1298,7 @@ If the
101- the output is made visually cleaner (but harder to post-process)
102- by changing it to:
103- .IP
104---strip+add<tab>count<tab>bytes
105-+\-strip+add<tab>count<tab>bytes
106- .PP
107- where
108- .IR strip ,
109-@@ -1313,7 +1313,7 @@ represents the ASCII tab character.
110- The method used to generate possible affixes will also generate
111- longer affixes which have common headers or trailers. For example,
112- the two words "moth" and "mother" will generate not only the obvious
113--substitution "+er" but also "-h+her" and "-th+ther" (and possibly
114-+substitution "+er" but also "\-h+her" and "\-th+ther" (and possibly
115- even longer ones, depending on the value of
116- .IR min ).
117- To prevent
118-@@ -1621,7 +1621,7 @@ redirected.
119- However, a lot of the temporary space needed is for sorting, so TMPDIR
120- is only a partial help on systems with an uncooperative
121- .IR sort (1).
122--("Cooperative" is defined as accepting the undocumented -T switch).
123-+("Cooperative" is defined as accepting the undocumented \-T switch).
124- At its peak usage,
125- .I munchlist
126- takes 10 to 40 times the original
127-diff --git a/ispell.5X b/ispell.5X
128-index ab526ed..7a1c2e5 100644
129---- a/ispell.5X
130-+++ b/ispell.5X
131-@@ -137,8 +137,8 @@ This feature can be used to convert an entire dictionary if necessary:)
132- echo qqqqq > dummy.dict
133- buildhash dummy.dict \fIaffix-file\fP dummy.hash
134- awk '{print "*"}END{print "#"}' \fIold-dict-file\fP \e
135-- | ispell -a -T \fIold-dict-string-type\fP \e
136-- -d ./dummy.hash -p ./\fInew-dict-file\fP \e
137-+ | ispell \-a \-T \fIold-dict-string-type\fP \e
138-+ \-d ./dummy.hash \-p ./\fInew-dict-file\fP \e
139- > /dev/null
140- rm dummy.*
141- .fi
142-@@ -622,7 +622,7 @@ or
143- .B stringchar
144- statements.
145- For example, if the hyphen is a boundary character (useful in French),
146--the string "foo-bar" would be a single word, but "-foo" would be the
147-+the string "foo-bar" would be a single word, but "\-foo" would be the
148- same as "foo", and "foo--bar" would be two words separated by non-word
149- characters.
150- .PP
151-@@ -916,7 +916,7 @@ The following (suffix) replacements:
152- .RS
153- .nf
154- \&. > MENT
155--Y > -Y,IES
156-+Y > \-Y,IES
157- .fi
158- .RE
159- .PP
160-@@ -956,8 +956,8 @@ Instead, you must use two separate rules:
161- .PP
162- .RS
163- .nf
164--E > -E,IES
165--Y > -Y,IES
166-+E > \-E,IES
167-+Y > \-Y,IES
168- .fi
169- .RE
170- .PP
171-@@ -1005,7 +1005,7 @@ For example, to specify words ending in "ED", write:
172- .PP
173- .RS
174- .nf
175--E D > -ED,ING # As in covered > covering
176-+E D > \-ED,ING # As in covered > covering
177- .fi
178- .RE
179- .PP
180-@@ -1013,7 +1013,7 @@ If you write:
181- .PP
182- .RS
183- .nf
184--ED > -ED,ING
185-+ED > \-ED,ING
186- .fi
187- .RE
188- .PP
189-@@ -1021,7 +1021,7 @@ the effect will be the same as:
190- .PP
191- .RS
192- .nf
193--[ED] > -ED,ING
194-+[ED] > \-ED,ING
195- .fi
196- .RE
197- .PP
198-@@ -1047,7 +1047,7 @@ is useful, as in the following example:
199- .PP
200- .RS
201- .nf
202--$ munchlist -c oldaffixes -l newaffixes olddict > newdict
203-+$ munchlist \-c oldaffixes \-l newaffixes olddict > newdict
204- .fi
205- .RE
206- .PP
207-@@ -1070,7 +1070,7 @@ flag from the English affix file:
208- .RS
209- .nf
210- flag *S:
211-- [^AEIOU]Y > -Y,IES # As in imply > implies
212-+ [^AEIOU]Y > \-Y,IES # As in imply > implies
213- [AEIOU]Y > S # As in convey > conveys
214- [SXZH] > ES # As in fix > fixes
215- [^SXZHY] > S # As in bat > bats
216-@@ -1099,8 +1099,8 @@ For example, we could extend the English "R" flag as follows:
217- flag *R:
218- E > R # As in skate > skater
219- E > RS # As in skate > skaters
220-- [^AEIOU]Y > -Y,IER # As in multiply > multiplier
221-- [^AEIOU]Y > -Y,IERS # As in multiply > multipliers
222-+ [^AEIOU]Y > \-Y,IER # As in multiply > multiplier
223-+ [^AEIOU]Y > \-Y,IERS # As in multiply > multipliers
224- [AEIOU]Y > ER # As in convey > conveyer
225- [AEIOU]Y > ERS # As in convey > conveyers
226- [^EY] > ER # As in build > builder
227---