Re: [NTG-context] active chars in xml -- suggestions needed
On 28-2-2010 9:21, Philipp Gesang wrote: On 2010-02-28<08:52:14>, Thomas A. Schmitz wrote: On Feb 28, 2010, at 8:32 AM, Philipp Gesang wrote: Dear listmates, I need some suggestions on how to setup non breaking spaces in XML. I tried an empty element to be processed as follows: \startxmlsetups xml:nbsp ~ \stopxmlsetups which was ignored by context. (I'll need something similar with \discretionary as well, I guess.) Have you tried \xmlsetentity{nbsp}{~} \xmlsetentity{dishyph}{\-} ? Both seem to work for me or \nobreakspace - 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 - ___ 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 ___
Re: [NTG-context] active chars in xml -- suggestions needed
On Feb 28, 2010, at 9:21 AM, Philipp Gesang wrote: > Good morning Thomas, > > thanks very much, this way it works great. But is there any > documentation on this apart from lxml-ini.mkiv and the list archive? > > Philipp I don't think that there is any docu on this particular question. I assume you've read http://www.pragma-ade.com/general/manuals/xml-mkiv.pdf ? This will at least give you the basics (and then some more). I had always tended to map single characters to xml entities and more complex commands to xml elements, but I can't really tell you why. Maybe one of the real experts in this area can help us here? Best Thomas ___ 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 ___
Re: [NTG-context] active chars in xml -- suggestions needed
On 2010-02-28 <08:52:14>, Thomas A. Schmitz wrote: > > On Feb 28, 2010, at 8:32 AM, Philipp Gesang wrote: > > > Dear listmates, > > > > > > I need some suggestions on how to setup non breaking spaces in XML. I > > tried an empty element to be processed as follows: > > > > \startxmlsetups xml:nbsp > > ~ > > \stopxmlsetups > > > > which was ignored by context. (I'll need something similar with > > \discretionary as well, I guess.) > > > > Have you tried > > \xmlsetentity{nbsp}{~} > \xmlsetentity{dishyph}{\-} > ? Both seem to work for me Good morning Thomas, thanks very much, this way it works great. But is there any documentation on this apart from lxml-ini.mkiv and the list archive? Philipp > > Thomas > ___ > 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 > ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpFvZfiLVmox.pgp Description: PGP signature ___ 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 ___
Re: [NTG-context] active chars in xml -- suggestions needed
On Feb 28, 2010, at 8:32 AM, Philipp Gesang wrote: > Dear listmates, > > > I need some suggestions on how to setup non breaking spaces in XML. I > tried an empty element to be processed as follows: > > \startxmlsetups xml:nbsp > ~ > \stopxmlsetups > > which was ignored by context. (I'll need something similar with > \discretionary as well, I guess.) > Have you tried \xmlsetentity{nbsp}{~} \xmlsetentity{dishyph}{\-} ? Both seem to work for me Thomas ___ 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 ___
[NTG-context] active chars in xml -- suggestions needed
Dear listmates, I need some suggestions on how to setup non breaking spaces in XML. I tried an empty element to be processed as follows: \startxmlsetups xml:nbsp ~ \stopxmlsetups which was ignored by context. (I'll need something similar with \discretionary as well, I guess.) Thanks for any suggestions, Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpszECIgbhhx.pgp Description: PGP signature ___ 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 ___