Sha256: a4c0a0a7bed46499b114bfc197aa9087cf42317fe13dc1ee86726152b56694b4
Contents?: true
Size: 714 Bytes
Versions: 11
Compression:
Stored size: 714 Bytes
Contents
#!/bin/sh # check for typical typos in the body text # find un-accented spelling of Pali grep -iE -f pali_typos ./*.tex # find - instead of -- grep -E '[^[:alpha:]-]-[^[:alpha:]-]' ./*.tex # %s/\([^[:alpha:]-]\)-\([^[:alpha:]-]\)/\1--\2/gc # find ... instead of \ldots{} grep -E '\.\.\.' ./*.tex # find un-smart double quotes # find un-smart single quotes grep -E " '{1,2}\w" ./*.tex grep -E ' "{1,2}\w' ./*.tex # %s/ '\{1,2\}\(\w\)/ `\1/gc # sed -i 's/ '"'"'\(\w\)/ `\1/g' ./*.tex # find wrong quote and puncuation placement grep -E '['"'"'"]{1,2}[,;:.?!]' ./*.tex # sed -i 's/\(['"'"'"]\)\([,;:.?!]\)/\2\1/g' ./*.tex # will not match a footnote w/ {} inside grep -E '\\footnote\{[^}]+\}[,;:.?!]' ./*.tex
Version data entries
11 entries across 11 versions & 1 rubygems