Am 03.05.2013 um 16:05 schrieb luigi scarso <luigi.sca...@gmail.com>:
> > > > On Fri, May 3, 2013 at 3:24 PM, "H. Özoguz" <h.oezo...@mmnetz.de> wrote: > Is it possible to define an automatic replacement? > > I want to replace every > > اللَّـه > by > اللهِ > > First is a combination of letters, second is the correct arabic one-symbol > for the name "Allah". I know, I can do this in the editor, but would helpful, > if it is possible in the compiling. > > Huseyin > > > \directlua{ local function replace_txt (buffer) > buffer=string.gsub(buffer,"A","BB") return buffer end > callback.register("process_input_buffer",replace_txt) > } > > \starttext my text A \stoptext > > copied & pasted in real time at 16:04 on friday May 3 from the Hans's talk at > bachotek 2013 about luatex and plain tex. > Please test with your characters. \usemodule[translate] \starttext \translateinput[Apple][Orange] \enableinputtranslation Apple, Banana and Strawberry. \stoptext Wolfgang
___________________________________________________________________________________ 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 ___________________________________________________________________________________