Arthur Reutenauer wrote:
I played a bit, see attachment. Surely Hans will want to improve on this interface, so don't patch any of the core files just now.
Fantastic!
Now I played a bit with your file myself, and compared with the behaviour of an OTP which has the same action: you can see that macros arguments between square brackets are preserved by OTP, whereas your function (obviously) converts everything unconditionally. How difficult would it be to program the same behaviour, that is, make collectors.handle pass to convert_babel only contiguous ranges of characters that are situated outside matching brackets?
i'll wrap tacos macro up a bit however, dealing with things like \blank[whatever] is not trivial (1) we need to prevent expansion (register feature) (2) but sometimes we need to expand (3) and not all commands are treated the same this is why otp liek things are suboptimal also, a proper toks handling mechanism should look at its neighbours Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------