hyphen/tbhyphext.sh

8 lines
312 B
Bash
Executable File

#!/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\.$/./;'