summaryrefslogtreecommitdiff
path: root/hdr
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-05-29 22:23:01 -0300
committerWerner Almesberger <werner@almesberger.net>2016-05-29 22:23:01 -0300
commitd9acebc2f32a84eb064a7697464f0c86fae5a595 (patch)
tree8cdf66af9fab6ca16e14b6d7afcf5571f42e0b9b /hdr
parent72e90ad492d256a935e7d60360848f8884e2807b (diff)
downloadmisc-d9acebc2f32a84eb064a7697464f0c86fae5a595.tar.gz
misc-d9acebc2f32a84eb064a7697464f0c86fae5a595.tar.bz2
misc-d9acebc2f32a84eb064a7697464f0c86fae5a595.zip
hdr/hdr.spell, Makefile: add proper spell checking, with exceptions
Diffstat (limited to 'hdr')
-rw-r--r--hdr/Makefile12
-rw-r--r--hdr/hdr.spell43
2 files changed, 54 insertions, 1 deletions
diff --git a/hdr/Makefile b/hdr/Makefile
index bc03050..671d89a 100644
--- a/hdr/Makefile
+++ b/hdr/Makefile
@@ -1,6 +1,6 @@
FIGS = smt-female smt-male th-male th-female
-.PHONY: all clean
+.PHONY: all spell clean
.SUFFIXES: .fig .pdf
NAME = hdr
@@ -8,8 +8,18 @@ NAME = hdr
all: $(NAME).tex $(FIGS:%=%.pdf)
pdflatex $(NAME)
+spell: _tmp.spell
+ sed -e 's/\\url{[^}]*}//g' -e 's/\\href{[^}]*}//g' \
+ -e '/%.*/d' $(NAME).tex | \
+ ispell -t -l -W 2 -p _tmp.spell | \
+ sort | uniq
+
+_tmp.spell: $(NAME).spell
+ sed '/^#/d' $< >$@ || { rm -f $@; exit 1; }
+
.fig.pdf:
fig2dev -L pdf $< $@
clean:
rm -f $(FIGS:%=%.pdf)
+ rm -f _tmp.spell
diff --git a/hdr/hdr.spell b/hdr/hdr.spell
new file mode 100644
index 0000000..84a804e
--- /dev/null
+++ b/hdr/hdr.spell
@@ -0,0 +1,43 @@
+# Own names
+Almesberger
+Digi
+FCI
+Harting
+Harwin
+Preci
+Samtec
+Sullins
+W\"urth
+
+# Neo900 terminology
+Neo
+Hackerbus
+
+# Language
+idem
+
+# Jargon
+unshrouded
+
+# Acronyms
+PCB
+SMT
+
+# Abbreviations
+Drw
+Manuf
+
+# Fragments of component names
+CLP
+FLE
+FTS
+GRPB
+LPPB
+SFH
+SFML
+VWVN
+
+# Meta-variables
+nnn
+ppp
+xxx