leah blogs

July 2013

21jul2013 · Summer of Scripts: hyp

hyp looks up the German Wiktionary to figure out how to hyphenate words and outputs in a TeX compatible format:

% hyp Transistor
Tran\-si\-stor
% hyp Determinativkompositum
De\-ter\-mi\-na\-tiv\-kom\-po\-si\-tum

It also works for some foreign words, because the German(!) Wiktionary actually contains a few entries for some other languages as well (unfortunately, other Wiktionary editions don’t have hyphenation data):

% hyp apple
ap\-ple

NP: Die Schnitter—Thomas Müntzer

Copyright © 2004–2022