···11-From: Ken Stevens <kstevens@ece.utah.edu>
22-Date: Sat, 15 Jul 2000 22:10:53 -0400
33-Subject: 0008 Tex backslash
44-55-Version 3.1.20 contains an irritating bug when using latex that causes all
66-sorts of problems when the backslash is used. (The backslash is a common
77-character in latex that is used, among other things, to create a forced space
88-similar to the tilde character.) In the current version, 3.1.20, the next TWO
99-characters are skipped after a backslash. This can results in misspellings and
1010-the file being incorrectly parsed. (For example, if the text contains the
1111-sequence `\ $' math mode will not be entered until the matching $ which should
1212-end it, resulting in the body of the text not being spell checked and the math
1313-region being checked.)
1414-1515-Make sure to undefine NO8BIT and use a larger number for MASKBITS if you are
1616-using iso character sets.
1717-1818-http://www.kdstevens.com/~stevens/ispell-faq.html#bslash
1919----
2020- defmt.c | 7 +++----
2121- 1 files changed, 3 insertions(+), 4 deletions(-)
2222-2323-diff --git a/defmt.c b/defmt.c
2424-index 35f93e4..7499752 100644
2525---- a/defmt.c
2626-+++ b/defmt.c
2727-@@ -884,6 +884,8 @@ static int TeX_math_end (bufp)
2828- return 0;
2929- }
3030-3131-+/* Updates bufp to point to the next character to skip. */
3232-+/* Should only be called on non-word characters. */
3333- static int TeX_math_begin (bufp)
3434- unsigned char ** bufp;
3535- {
3636-@@ -902,10 +904,7 @@ static int TeX_math_begin (bufp)
3737- if (**bufp == TEXLEFTPAREN || **bufp == TEXLEFTSQUARE)
3838- return 1;
3939- else if (!isalpha(**bufp) && **bufp != '@')
4040-- {
4141-- (*bufp)++;
4242-- continue;
4343-- }
4444-+ return 0;
4545- else if (TeX_strncmp (*bufp, "begin", 5) == 0)
4646- {
4747- if (TeX_math_check ('b', bufp))
4848---
···11-From: David Paleino <d.paleino@gmail.com>
22-Date: Mon, 9 Nov 2009 09:22:12 +0000
33-Subject: 0013 Fix man pages
44-55-Fix man pages, manpage-has-errors-from-man and hyphen-used-as-minus-sign
66-77-Forwarded: no
88----
99- ispell.1X | 26 +++++++++++++-------------
1010- ispell.5X | 26 +++++++++++++-------------
1111- 2 files changed, 26 insertions(+), 26 deletions(-)
1212-1313-diff --git a/ispell.1X b/ispell.1X
1414-index b27b120..79894d4 100644
1515---- a/ispell.1X
1616-+++ b/ispell.1X
1717-@@ -236,8 +236,8 @@ count affix-file
1818- .RB [ \-p | \-s]
1919- .RB [ \-c ]
2020- .I expanded-file
2121--.IR affix [ +addition ]
2222--...
2323-+.IR affix
2424-+.RI [ +addition ]
2525- .PP
2626- .B icombine
2727- .RB [ \-T
2828-@@ -336,7 +336,7 @@ The amount of context is subject to a system-imposed limit.
2929- If the
3030- .B \-V
3131- flag is given, characters that are not in the 7-bit ANSI printable
3232--character set will always be displayed in the style of "cat -v", even if
3333-+character set will always be displayed in the style of "cat \-v", even if
3434- .I ispell
3535- thinks that these characters are legal ISO Latin-1 on your system.
3636- This is useful when working with older terminals.
3737-@@ -542,7 +542,7 @@ option is used to specify an alternate hashed dictionary file,
3838- other than the default.
3939- If the filename does not contain a "/",
4040- the library directory for the default dictionary file is prefixed;
4141--thus, to use a dictionary in the local directory "-d ./xxx.hash" must
4242-+thus, to use a dictionary in the local directory "\-d ./xxx.hash" must
4343- be used.
4444- This is useful to allow dictionaries for alternate languages.
4545- Unlike previous versions of
4646-@@ -615,7 +615,7 @@ alphabetics have no meaning - alphabetics are already accepted.
4747- .I Ispell
4848- will typically be used with input from a file, meaning that preserving
4949- parity for possible 8 bit characters from the input text is OK. If you
5050--specify the -l option, and actually type text from the terminal, this may
5151-+specify the \-l option, and actually type text from the terminal, this may
5252- create problems if your stty settings preserve parity.
5353- .PP
5454- It is not possible to use
5555-@@ -799,7 +799,7 @@ that the '&' is replaced by '?' (and the near-miss count is always zero).
5656- The suggested derivations following the near misses are in the form:
5757- .PP
5858- .RS
5959--[prefix+] root [-prefix] [-suffix] [+suffix]
6060-+[prefix+] root [\-prefix] [\-suffix] [+suffix]
6161- .RE
6262- .PP
6363- (e.g., "re+fry-y+ies" to get "refries")
6464-@@ -841,7 +841,7 @@ These output lines can be summarized as follows:
6565- .PP
6666- For example, a dummy dictionary containing the words "fray", "Frey",
6767- "fry", and "refried" might produce the following response to the
6868--command "echo 'frqy refries | ispell -a -m -d ./test.hash":
6969-+command "echo 'frqy refries | ispell \-a \-m \-d ./test.hash":
7070- .RS
7171- .nf
7272- (#) International Ispell Version 3.0.05 (beta), 08/10/91
7373-@@ -1036,7 +1036,7 @@ script does this.
7474- As an example, the command:
7575- .PP
7676- .RS
7777--echo BOTHER | ispell -c
7878-+echo BOTHER | ispell \-c
7979- .RE
8080- .PP
8181- produces:
8282-@@ -1055,7 +1055,7 @@ it expands affix flags to produce a list of words.
8383- For example, the command:
8484- .PP
8585- .RS
8686--echo BOTH/R | ispell -e
8787-+echo BOTH/R | ispell \-e
8888- .RE
8989- .PP
9090- produces:
9191-@@ -1268,7 +1268,7 @@ hash file if it were added to the language table.
9292- Only affixes that generate legal roots (found in the original input)
9393- are listed.
9494- .PP
9595--If the "-c" option is not given, the output lines are in the
9696-+If the "\-c" option is not given, the output lines are in the
9797- following format:
9898- .IP
9999- strip/add/count/bytes
100100-@@ -1298,7 +1298,7 @@ If the
101101- the output is made visually cleaner (but harder to post-process)
102102- by changing it to:
103103- .IP
104104---strip+add<tab>count<tab>bytes
105105-+\-strip+add<tab>count<tab>bytes
106106- .PP
107107- where
108108- .IR strip ,
109109-@@ -1313,7 +1313,7 @@ represents the ASCII tab character.
110110- The method used to generate possible affixes will also generate
111111- longer affixes which have common headers or trailers. For example,
112112- the two words "moth" and "mother" will generate not only the obvious
113113--substitution "+er" but also "-h+her" and "-th+ther" (and possibly
114114-+substitution "+er" but also "\-h+her" and "\-th+ther" (and possibly
115115- even longer ones, depending on the value of
116116- .IR min ).
117117- To prevent
118118-@@ -1621,7 +1621,7 @@ redirected.
119119- However, a lot of the temporary space needed is for sorting, so TMPDIR
120120- is only a partial help on systems with an uncooperative
121121- .IR sort (1).
122122--("Cooperative" is defined as accepting the undocumented -T switch).
123123-+("Cooperative" is defined as accepting the undocumented \-T switch).
124124- At its peak usage,
125125- .I munchlist
126126- takes 10 to 40 times the original
127127-diff --git a/ispell.5X b/ispell.5X
128128-index ab526ed..7a1c2e5 100644
129129---- a/ispell.5X
130130-+++ b/ispell.5X
131131-@@ -137,8 +137,8 @@ This feature can be used to convert an entire dictionary if necessary:)
132132- echo qqqqq > dummy.dict
133133- buildhash dummy.dict \fIaffix-file\fP dummy.hash
134134- awk '{print "*"}END{print "#"}' \fIold-dict-file\fP \e
135135-- | ispell -a -T \fIold-dict-string-type\fP \e
136136-- -d ./dummy.hash -p ./\fInew-dict-file\fP \e
137137-+ | ispell \-a \-T \fIold-dict-string-type\fP \e
138138-+ \-d ./dummy.hash \-p ./\fInew-dict-file\fP \e
139139- > /dev/null
140140- rm dummy.*
141141- .fi
142142-@@ -622,7 +622,7 @@ or
143143- .B stringchar
144144- statements.
145145- For example, if the hyphen is a boundary character (useful in French),
146146--the string "foo-bar" would be a single word, but "-foo" would be the
147147-+the string "foo-bar" would be a single word, but "\-foo" would be the
148148- same as "foo", and "foo--bar" would be two words separated by non-word
149149- characters.
150150- .PP
151151-@@ -916,7 +916,7 @@ The following (suffix) replacements:
152152- .RS
153153- .nf
154154- \&. > MENT
155155--Y > -Y,IES
156156-+Y > \-Y,IES
157157- .fi
158158- .RE
159159- .PP
160160-@@ -956,8 +956,8 @@ Instead, you must use two separate rules:
161161- .PP
162162- .RS
163163- .nf
164164--E > -E,IES
165165--Y > -Y,IES
166166-+E > \-E,IES
167167-+Y > \-Y,IES
168168- .fi
169169- .RE
170170- .PP
171171-@@ -1005,7 +1005,7 @@ For example, to specify words ending in "ED", write:
172172- .PP
173173- .RS
174174- .nf
175175--E D > -ED,ING # As in covered > covering
176176-+E D > \-ED,ING # As in covered > covering
177177- .fi
178178- .RE
179179- .PP
180180-@@ -1013,7 +1013,7 @@ If you write:
181181- .PP
182182- .RS
183183- .nf
184184--ED > -ED,ING
185185-+ED > \-ED,ING
186186- .fi
187187- .RE
188188- .PP
189189-@@ -1021,7 +1021,7 @@ the effect will be the same as:
190190- .PP
191191- .RS
192192- .nf
193193--[ED] > -ED,ING
194194-+[ED] > \-ED,ING
195195- .fi
196196- .RE
197197- .PP
198198-@@ -1047,7 +1047,7 @@ is useful, as in the following example:
199199- .PP
200200- .RS
201201- .nf
202202--$ munchlist -c oldaffixes -l newaffixes olddict > newdict
203203-+$ munchlist \-c oldaffixes \-l newaffixes olddict > newdict
204204- .fi
205205- .RE
206206- .PP
207207-@@ -1070,7 +1070,7 @@ flag from the English affix file:
208208- .RS
209209- .nf
210210- flag *S:
211211-- [^AEIOU]Y > -Y,IES # As in imply > implies
212212-+ [^AEIOU]Y > \-Y,IES # As in imply > implies
213213- [AEIOU]Y > S # As in convey > conveys
214214- [SXZH] > ES # As in fix > fixes
215215- [^SXZHY] > S # As in bat > bats
216216-@@ -1099,8 +1099,8 @@ For example, we could extend the English "R" flag as follows:
217217- flag *R:
218218- E > R # As in skate > skater
219219- E > RS # As in skate > skaters
220220-- [^AEIOU]Y > -Y,IER # As in multiply > multiplier
221221-- [^AEIOU]Y > -Y,IERS # As in multiply > multipliers
222222-+ [^AEIOU]Y > \-Y,IER # As in multiply > multiplier
223223-+ [^AEIOU]Y > \-Y,IERS # As in multiply > multipliers
224224- [AEIOU]Y > ER # As in convey > conveyer
225225- [AEIOU]Y > ERS # As in convey > conveyers
226226- [^EY] > ER # As in build > builder
227227---