On 01/26/2015 10:26 PM, Hans Hagen wrote: > On 1/26/2015 10:04 PM, Pablo Rodriguez wrote: >> [...] >> How can I specify that the replacer takes not only strings but complete >> words? > > local replacer = lpeg.replacer { > { "señora", "la señora" }, > { "señor", "el señor" }, > }
Many thanks for the advice, Hans. Pablo -- http://www.ousia.tk ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________