On Thu, Jan 06, 2011 at 11:05:22PM +0100, Philipp Stephani wrote: > Am 06.01.2011 um 15:00 schrieb Khaled Hosny: > > >> And before you arrive at a node list, TeX will already have complained > >> about ^ outside math mode. Probably a token_filter callback would work > >> better. > > > > I was not thinking about this particular case, one can use tex-friendly > > transliteration scheme but still need to escape non-textual material > > which makes node list processing appealing. I would have suggested > > token_filter but tex tokens are beyond my understanding. > > Sadly, the documentation for the token library is quite incomplete and > sometimes incorrect, but finally I got it to work:
Very interesting, I didn't run, but very "educational" example, now I feel recovering from my tekenophobia :) Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
