summary refs log tree commit diff
path: root/pkgs/tools/text/ispell/patches/0013-Fix-man-pages.patch
blob: 9c0aedb67d76309043e2f9290863bd73283b8ea0 (plain) (blame)
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
From: David Paleino <d.paleino@gmail.com>
Date: Mon, 9 Nov 2009 09:22:12 +0000
Subject: 0013 Fix man pages

Fix man pages, manpage-has-errors-from-man and hyphen-used-as-minus-sign

Forwarded: no
---
 ispell.1X |   26 +++++++++++++-------------
 ispell.5X |   26 +++++++++++++-------------
 2 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/ispell.1X b/ispell.1X
index b27b120..79894d4 100644
--- a/ispell.1X
+++ b/ispell.1X
@@ -236,8 +236,8 @@ count affix-file
 .RB [ \-p | \-s]
 .RB [ \-c ]
 .I expanded-file
-.IR affix [ +addition ]
-...
+.IR affix
+.RI [ +addition ]
 .PP
 .B icombine
 .RB [ \-T
@@ -336,7 +336,7 @@ The amount of context is subject to a system-imposed limit.
 If the
 .B \-V
 flag is given, characters that are not in the 7-bit ANSI printable
-character set will always be displayed in the style of "cat -v", even if
+character set will always be displayed in the style of "cat \-v", even if
 .I ispell
 thinks that these characters are legal ISO Latin-1 on your system.
 This is useful when working with older terminals.
@@ -542,7 +542,7 @@ option is used to specify an alternate hashed dictionary file,
 other than the default.
 If the filename does not contain a "/",
 the library directory for the default dictionary file is prefixed;
-thus, to use a dictionary in the local directory "-d ./xxx.hash" must
+thus, to use a dictionary in the local directory "\-d ./xxx.hash" must
 be used.
 This is useful to allow dictionaries for alternate languages.
 Unlike previous versions of
@@ -615,7 +615,7 @@ alphabetics have no meaning - alphabetics are already accepted.
 .I Ispell
 will typically be used with input from a file, meaning that preserving
 parity for possible 8 bit characters from the input text is OK.  If you
-specify the -l option, and actually type text from the terminal, this may
+specify the \-l option, and actually type text from the terminal, this may
 create problems if your stty settings preserve parity.
 .PP
 It is not possible to use
@@ -799,7 +799,7 @@ that the '&' is replaced by '?' (and the near-miss count is always zero).
 The suggested derivations following the near misses are in the form:
 .PP
 .RS
-[prefix+] root [-prefix] [-suffix] [+suffix]
+[prefix+] root [\-prefix] [\-suffix] [+suffix]
 .RE
 .PP
 (e.g., "re+fry-y+ies" to get "refries")
@@ -841,7 +841,7 @@ These output lines can be summarized as follows:
 .PP
 For example, a dummy dictionary containing the words "fray", "Frey",
 "fry", and "refried" might produce the following response to the
-command "echo 'frqy refries | ispell -a -m -d ./test.hash":
+command "echo 'frqy refries | ispell \-a \-m \-d ./test.hash":
 .RS
 .nf
 (#) International Ispell Version 3.0.05 (beta), 08/10/91
@@ -1036,7 +1036,7 @@ script does this.
 As an example, the command:
 .PP
 .RS
-echo BOTHER | ispell -c
+echo BOTHER | ispell \-c
 .RE
 .PP
 produces:
@@ -1055,7 +1055,7 @@ it expands affix flags to produce a list of words.
 For example, the command:
 .PP
 .RS
-echo BOTH/R | ispell -e
+echo BOTH/R | ispell \-e
 .RE
 .PP
 produces:
@@ -1268,7 +1268,7 @@ hash file if it were added to the language table.
 Only affixes that generate legal roots (found in the original input)
 are listed.
 .PP
-If the "-c" option is not given, the output lines are in the
+If the "\-c" option is not given, the output lines are in the
 following format:
 .IP
 strip/add/count/bytes
@@ -1298,7 +1298,7 @@ If the
 the output is made visually cleaner (but harder to post-process)
 by changing it to:
 .IP
--strip+add<tab>count<tab>bytes
+\-strip+add<tab>count<tab>bytes
 .PP
 where
 .IR strip ,
@@ -1313,7 +1313,7 @@ represents the ASCII tab character.
 The method used to generate possible affixes will also generate
 longer affixes which have common headers or trailers.  For example,
 the two words "moth" and "mother" will generate not only the obvious
-substitution "+er" but also "-h+her" and "-th+ther" (and possibly
+substitution "+er" but also "\-h+her" and "\-th+ther" (and possibly
 even longer ones, depending on the value of
 .IR min ).
 To prevent
@@ -1621,7 +1621,7 @@ redirected.
 However, a lot of the temporary space needed is for sorting, so TMPDIR
 is only a partial help on systems with an uncooperative
 .IR sort (1).
-("Cooperative" is defined as accepting the undocumented -T switch).
+("Cooperative" is defined as accepting the undocumented \-T switch).
 At its peak usage,
 .I munchlist
 takes 10 to 40 times the original
diff --git a/ispell.5X b/ispell.5X
index ab526ed..7a1c2e5 100644
--- a/ispell.5X
+++ b/ispell.5X
@@ -137,8 +137,8 @@ This feature can be used to convert an entire dictionary if necessary:)
 	echo qqqqq > dummy.dict
 	buildhash dummy.dict \fIaffix-file\fP dummy.hash
 	awk '{print "*"}END{print "#"}' \fIold-dict-file\fP \e
-	| ispell -a -T \fIold-dict-string-type\fP \e
-	  -d ./dummy.hash -p ./\fInew-dict-file\fP \e
+	| ispell \-a \-T \fIold-dict-string-type\fP \e
+	  \-d ./dummy.hash \-p ./\fInew-dict-file\fP \e
 	  > /dev/null
 	rm dummy.*
 .fi
@@ -622,7 +622,7 @@ or
 .B stringchar
 statements.
 For example, if the hyphen is a boundary character (useful in French),
-the string "foo-bar" would be a single word, but "-foo" would be the
+the string "foo-bar" would be a single word, but "\-foo" would be the
 same as "foo", and "foo--bar" would be two words separated by non-word
 characters.
 .PP
@@ -916,7 +916,7 @@ The following (suffix) replacements:
 .RS
 .nf
 \&.	>	MENT
-Y	>	-Y,IES
+Y	>	\-Y,IES
 .fi
 .RE
 .PP
@@ -956,8 +956,8 @@ Instead, you must use two separate rules:
 .PP
 .RS
 .nf
-E	>	-E,IES
-Y	>	-Y,IES
+E	>	\-E,IES
+Y	>	\-Y,IES
 .fi
 .RE
 .PP
@@ -1005,7 +1005,7 @@ For example, to specify words ending in "ED", write:
 .PP
 .RS
 .nf
-E D	>	-ED,ING		# As in covered > covering
+E D	>	\-ED,ING		# As in covered > covering
 .fi
 .RE
 .PP
@@ -1013,7 +1013,7 @@ If you write:
 .PP
 .RS
 .nf
-ED	>	-ED,ING
+ED	>	\-ED,ING
 .fi
 .RE
 .PP
@@ -1021,7 +1021,7 @@ the effect will be the same as:
 .PP
 .RS
 .nf
-[ED]	>	-ED,ING
+[ED]	>	\-ED,ING
 .fi
 .RE
 .PP
@@ -1047,7 +1047,7 @@ is useful, as in the following example:
 .PP
 .RS
 .nf
-$ munchlist -c oldaffixes -l newaffixes olddict > newdict
+$ munchlist \-c oldaffixes \-l newaffixes olddict > newdict
 .fi
 .RE
 .PP
@@ -1070,7 +1070,7 @@ flag from the English affix file:
 .RS
 .nf
 flag *S:
-    [^AEIOU]Y	>	-Y,IES	# As in imply > implies
+    [^AEIOU]Y	>	\-Y,IES	# As in imply > implies
     [AEIOU]Y	>	S		# As in convey > conveys
     [SXZH]	>	ES		# As in fix > fixes
     [^SXZHY]	>	S		# As in bat > bats
@@ -1099,8 +1099,8 @@ For example, we could extend the English "R" flag as follows:
 flag *R:
    E			>	R		# As in skate > skater
    E			>	RS		# As in skate > skaters
-   [^AEIOU]Y	>	-Y,IER	# As in multiply > multiplier
-   [^AEIOU]Y	>	-Y,IERS	# As in multiply > multipliers
+   [^AEIOU]Y	>	\-Y,IER	# As in multiply > multiplier
+   [^AEIOU]Y	>	\-Y,IERS	# As in multiply > multipliers
    [AEIOU]Y	>	ER		# As in convey > conveyer
    [AEIOU]Y	>	ERS		# As in convey > conveyers
    [^EY]		>	ER		# As in build > builder
--