Hi folks ! I have just finished a first draft of pret-xml.lua: - I need to improve its coverage (html); - DTD declaration is not yet managed; - I do nothing about re-indentation since I prefer to format my xml sample by myself (by hand or using xmllint); - That's my first try to lua/luatex (after several months of Java...) so my definitions (esp. for functions) is not clean at all (you have been warned); I have done it the "trial/error" way without much design reflexion just for fun (I'm on vacation)... I'm not sure it will be reusable... Take all your test files and please report issues (or give me advices)! ;) Thank you Matthijs! Regards, Renaud Matthijs Kooijman a écrit : > Hey all, > >> ./tex/texmf-context/tex/context/base/verb-.*\.lua ! > Actually, in newer versions (since a month or so), that's pret-*.lua. > >>> Where to start with this topic (current state in Mark IV, roadmap, ...) ? > I've been struggling with this a bit as well lately and found there was next > to no documentation. I've managed to create my own pretty printer, and tried > to update the docs a bit. See [1] and [2] on the wiki for more info. There are > still some details I don't get (why is there a line() hook, what is all this > nesting stuff, etc.), so feel free to find out more and improve these pages! > > Gr. > > Matthijs > > [1]: http://wiki.contextgarden.net/Verbatim_text#Your_own_formatter > [2]: http://wiki.contextgarden.net/Custom_pretty_printer > > ------------------------------------------------------------------------ > > ___________________________________________________________________________________ > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________