summaryrefslogtreecommitdiff
path: root/nfc
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-05-30 00:20:05 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-05-30 00:20:05 (GMT)
commit156c165154862f7991de23ff136d2e39de4c4a9e (patch)
treefcbae2bfd2a9fdcfc3a7a0860cc30e81d3d9311e /nfc
parent8848ee5bcd695eeb6510f41d5695238f292f8c30 (diff)
downloadmisc-156c165154862f7991de23ff136d2e39de4c4a9e.zip
misc-156c165154862f7991de23ff136d2e39de4c4a9e.tar.gz
misc-156c165154862f7991de23ff136d2e39de4c4a9e.tar.bz2
nfc/nfc.spell, Makefile: add proper spell checking, with exceptions
Diffstat (limited to 'nfc')
-rw-r--r--nfc/Makefile11
-rw-r--r--nfc/nfc.spell80
2 files changed, 90 insertions, 1 deletions
diff --git a/nfc/Makefile b/nfc/Makefile
index 882172f..f457169 100644
--- a/nfc/Makefile
+++ b/nfc/Makefile
@@ -11,7 +11,7 @@ TMP_SUFFIXES = aux bbl glg glo gls glsdefs ist log out
FILT = ../../misc-pub/block/figfilt.pl
filt = perl $(FILT) $(1) $< >$@ || { rm -f $@; exit 1; }
-.PHONY: all clean spotless
+.PHONY: all spell clean spotless
.SUFFIXES: .fig .pdf
NAME = nfc
@@ -25,6 +25,14 @@ $(NAME).bbl: $(NAME).tex $(NAME).bib sortbib.pl
./sortbib.pl $(NAME).tex $(NAME).bib >$@ || \
{ rm -f "$@"; exit 1; }
+spell: _tmp.spell
+ sed -e 's/\\url{[^}]*}//' -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 $< $@
@@ -77,6 +85,7 @@ clean:
rm -f $(FIGS:%=%.pdf)
rm -f $(FIGS_GEN:%=%.pdf) $(FIGS_GEN:%=%.fig)
rm -f $(TMP_SUFFIXES:%=$(NAME).%)
+ rm -f _tmp.spell
spotless: clean
rm -f $(NAME).pdf
diff --git a/nfc/nfc.spell b/nfc/nfc.spell
new file mode 100644
index 0000000..6e1881d
--- /dev/null
+++ b/nfc/nfc.spell
@@ -0,0 +1,80 @@
+# Own names
+Almesberger
+Atmel
+Atmel's
+FeliCa
+MIFARE
+NXP
+OSI
+
+# Neo900 termninology
+Neo
+
+# Language
+flavours
+tweakable
+
+# Jargon
+frontend
+interoperate
+interoperation
+kbps
+subcarrier
+
+# Protocol messages (all-caps)
+ANTICOLLISION
+ATAQ
+ATRB
+ATTRIB
+HLTB
+REQ
+REQA
+REQB
+SAK
+WUPA
+WUPB
+
+# CamelCase and other unusual capitalization
+ContactLess
+IDentification
+
+# Acronyms and abbreviations
+ECMA
+IEC
+LSB
+NDAs
+PDF
+
+# Glossary: Protocols
+NFC
+RFID
+SWP
+
+# Glossary: Modulation and encoding
+BPSK
+FSK
+MFM
+NRZ
+OOK
+PJM
+PPM
+PSK
+
+# Glossary: System elements
+CLF
+PCD
+PICC
+SIM
+UICC
+VCD
+VICC
+
+# Subscripts
+CMP
+SYS
+
+# Document-internal identifiers
+dacvosel
+ffc
+fpfmttmp
+unsrt