Le 06/10/2011 10:04, Patrick Gundlach a écrit :
"process_input_buffer" is indeed a bad idea for such a replacement. But it can be done while processing a node list: replace sequences of nodes (e.g. two hyphen nodes) by something else (an en-dash). That's basically how contextual ligatures are implemented (and even simple ligatures when luaotfload is in "node" mode, if I remember correctly), so it's no big deal.But then things like -{-} won't work as in TeX. ... Oh, I just found out that they already don't work as in TeX, and I guess it's on purpose.
Taco once told me that this way of avoiding ligatures, advertised as a feature, was actually a nasty side effect and was removed on purpose.
Best, Paul
