hyphen/tbhyphext.sh

8 lines
312 B
Bash
Raw Permalink Normal View History

2022-05-13 23:56:59 +08:00
#!/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\.$/./;'