On 5/1/2020 1:45 PM, Gerben Wierda wrote:
On 1 May 2020, at 13:28, Hans Hagen <j.ha...@xs4all.nl> wrote: On 5/1/2020 10:21 AM, Gerben Wierda wrote:code it back to a \ ? E.g. something like { ‘\U{XXX}', '\' },\utfchar{100} \Uchar 100Yes, but the question was: how do I code this in the XML and get it through my XML-lua-METAPOST-textext() path so that e.g.  or  in the XML end up as \ in my textext() string? E.g. a 
 in XML becomes a \n when lmtx XML handling has read the XML (so gets transformed on read). I’ve been thinking about the route 
 -> \r -> \ (so, misusing \r to code a TeX-\ in the XML, but that would probably not robust. The question is more: what is a good UTF8 character to use (the first 32 would be good candidates if they would work and end in the strings that xml.foo() of lmtx produces).
did you try the attached approach? (a recent lmtx) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
strings-001.tex
Description: Binary data
___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________