Skip to content

Commit 67ace4e

Browse files
author
Vladimir Kotal
committed
enable spellchecking
1 parent bda175e commit 67ace4e

File tree

3 files changed

+28
-13
lines changed

3 files changed

+28
-13
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ notes: $(NOTES)
6262
clean:
6363
-rm -f *.log *.aux *.m4.tex *.pdf *.m4.tmp *.out
6464

65-
# Once translation is finished, make this return 1 on non-empty output.
6665
spellcheck:
66+
@rm -f /tmp/aspell.out
6767
@for file in ${SLIDES}; do \
6868
echo "### Checking $$file"; \
6969
$(M4) $$file | sed -E -f spellfilter.sed | \
70-
aspell -t --personal=./unix_dict.txt list; \
70+
aspell -t --personal=./unix_dict.txt list | \
71+
tee -a /tmp/aspell.out; \
7172
done
73+
@if [ -s /tmp/aspell.out ]; then exit 1; fi

README.spellcheck

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ and sed (using spellfilter.sed).
88
The sed filters are not very smart, especially they cannot deal with multi line
99
LateX commands. For those, wrap the lines inside the ifdef, like so:
1010

11-
ifdef([[[NOSPELLCHECK]]], [[[
11+
ifdef([[[NOSPELLCHECK]]], [[[
1212
\texttt{void \funnm{err}(int \emph{status},
13-
const char *\emph{fmt}, ...);}
13+
const char *\emph{fmt}, ...);}
1414
]]])
1515

1616
The [[[ and ]]] character sequences are left and right quotation marks,
@@ -24,4 +24,8 @@ Sometimes it is not obvious from the output from the 'spellcheck' makefile
2424
target where particular problem is. To do that it is necessary to enter
2525
interactive mode on file processed by m4/sed and then run aspell with the
2626
'check' command (that requires file name as argument) in one terminal window and
27-
edit the original .tex file in another window.
27+
edit the original .tex file in another window. For example:
28+
29+
$ m4 files.tex | sed -E -f spellfilter.sed > /tmp/p
30+
$ aspell -t --personal=./unix_dict.txt -c /tmp/p
31+

unix_dict.txt

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
personal_ws-1.1 en 349
1+
personal_ws-1.1 en 361
22
Illumos
33
Prog
44
Ctrl
@@ -16,6 +16,7 @@ bsd
1616
Ritchie
1717
userspace
1818
OpenSSH
19+
transactional
1920
OpenSSL
2021
signalled
2122
buf
@@ -31,14 +32,14 @@ UDP
3132
Kernighan
3233
reentrant
3334
userland
34-
RTS
3535
TLI
36+
RTS
3637
args
3738
FIFO
3839
casted
3940
argv
40-
UFS
4141
UID
42+
UFS
4243
tracepoint
4344
DNS
4445
PCTS
@@ -51,6 +52,7 @@ tmp
5152
SVID
5253
proberen
5354
PDPs
55+
journaling
5456
Libes
5557
SunOS
5658
gdb
@@ -125,6 +127,7 @@ inet
125127
sandboxing
126128
XPG
127129
McKusick
130+
JFS
128131
ing
129132
SONAME
130133
GIDs
@@ -148,8 +151,8 @@ iOS
148151
Rago
149152
lstat
150153
cancelling
151-
IPS
152154
ldd
155+
IPS
153156
acomp
154157
dereferencing
155158
gprof
@@ -158,11 +161,14 @@ endianess
158161
ftruncate
159162
ipcs
160163
cxref
164+
automounter
161165
COFF
162166
multithreading
163167
endian
164168
Malostransk
169+
superblocks
165170
destructors
171+
interoperability
166172
pdfkeywords
167173
localhost
168174
symlink
@@ -202,6 +208,7 @@ FreeBSD
202208
changesets
203209
DGRAM
204210
namespaces
211+
bootable
205212
Rudoff
206213
Dekker's
207214
ke
@@ -268,10 +275,12 @@ Beran
268275
PDP
269276
UI
270277
cstyle
278+
dirhash
271279
commitee
272280
ascii
273281
mutex
274282
ACM
283+
ReiserFS
275284
preprocessor's
276285
ICMP
277286
WG
@@ -287,6 +296,7 @@ UX
287296
intructions
288297
OOB
289298
Moder
299+
swapper
290300
lclcl
291301
timesharing
292302
fildes
@@ -295,6 +305,7 @@ CompactFlash
295305
AFS
296306
NSS
297307
destructor
308+
superblock
298309
cron
299310
Uresh
300311
DARPA
@@ -321,13 +332,13 @@ pdftitle
321332
RDONLY
322333
environ
323334
chrooted
324-
linker's
325335
Linkers
336+
linker's
326337
cancellation
327338
SAS
328339
CSRG
329-
symlinks
330340
symlink's
341+
symlinks
331342
OpenBSD
332343
signalling
333344
SCO
@@ -348,5 +359,3 @@ Rochkind
348359
janp
349360
corrigendums
350361
syscalls
351-
swapper
352-
NRU

0 commit comments

Comments
 (0)