summaryrefslogtreecommitdiff
path: root/tbhyphext.sh
blob: 7886c3d02d2adb98fb5e26e3ffcbb285f374921f (plain)
1
2
3
4
5
6
7
#!/bin/sh
# tbhyphext.tex hyphenation extension macro converter to hyphenation patterns
sed -n '/acad-e-my/,/Zeit-schrift/p' |
tr A-Z a-z | tr ' ' '\n' | grep -v '^$' |
awk '{printf "%c", "."
for (i=1; i <= length($1); i++){printf "%c8", substr($1, i, 1)}
print "."}' | sed 's/8-8/9/g;s/^\(..\)8/\1/;s/8\.$/./;'