# [Dev-luatex] callbacks newbie question: extracting the hyphenation

Taco Hoekwater taco at elvenkind.com
Wed May 19 09:00:48 CEST 2010

```Mojca Miklavec wrote:
> Dear lua experts,
>
> For our repository of hyphenation patterns I would like to create a
> document that:
> - reads in a file with hyphenation patterns
> - reads in plain text file (say one word per line)
> - creates output such as "hy{\nicehyphen}phen{\nicehyphen}ation" for each word
>
> I'm testing eshyph-test.tex by Javier Bezos from
> http://www.ctan.org/tex-archive/language/spanish/hyphen/base/ (trying
> to run it with ConTeXt :), but I don't understand how exactly the
> callbacks work. For example, I cannot get the following code to work
> in ConTeXt (but it works with luatex in TL 09):