hi, from mail "Greek in luatex" (Date: 2007-09-13 19:24:15 GMT ) following snippet works good, but I'm not able to make it work under xml processing with \startxmlsetups mynode .... \stopxmlsetups In particulary, I have \u2022 unicode char utf-8 encoding which I would like to map to \item. Replacing \u2022 with \item in xml source cause a literal \item to appear in text node, and hence in pdf output. Using mapper above produce only a literal \stopbabelgreek with no text at all. Thanks in advance \defineremapper[babelgreek] \remapcharacter[babelgreek][`a]{\alpha} \remapcharacter[babelgreek][`b]{\beta} \remapcharacter[babelgreek][`c]{\gamma} \remapcharacter[babelgreek][`d]{OEPS} \starttext [\startbabelgreek a b c some stuff here \blank[big] oeps b d \stopbabelgreek] [\babelgreek{some stuff here}] \stoptext -- luigi
luigi scarso wrote:
hi, from mail "Greek in luatex" (Date: 2007-09-13 19:24:15 GMT ) following snippet works good, but I'm not able to make it work under xml processing with
something \startxmlsetups mynode \ctxlua{collectors.remapper.convert("babelgreek",[[\xmlflush{#1}]]) \stopxmlsetups but untestedand that kind of stuff is pretty low on my agenda now that we have utf; best convert you rsource using mtxrun --script babel 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 -----------------------------------------------------------------
something
\startxmlsetups mynode \ctxlua{collectors.remapper.convert("babelgreek",[[\xmlflush{#1}]]) \stopxmlsetups (with a final } ) ! LuaTeX error ./toks-ini.lua:291: attempt to index local 'tok' (a nil value).
but untestedand that kind of stuff is pretty low on my agenda now that we have utf; best convert you rsource using mtxrun --script babel ok (to study mtx-babel.lua) , but I didn't want to convert my xml source for only fews chars (in the end, I will do it because it's semantically wrong) . Token remapping should be a quick way to fix this kind of problem . it works, but not under \startxmlsetups ...\stopxmlsetups
-- luigi
participants (2)
-
Hans Hagen
-
luigi scarso