ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* active chars in xml -- suggestions needed
@ 2010-02-28  7:32 Philipp Gesang
  2010-02-28  7:52 ` Thomas A. Schmitz
  0 siblings, 1 reply; 5+ messages in thread
From: Philipp Gesang @ 2010-02-28  7:32 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 464 bytes --]

Dear listmates,


I need some suggestions on how to setup non breaking spaces in XML.  I
tried an empty element <nbsp/> 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

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: active chars in xml -- suggestions needed
  2010-02-28  7:32 active chars in xml -- suggestions needed Philipp Gesang
@ 2010-02-28  7:52 ` Thomas A. Schmitz
  2010-02-28  8:21   ` Philipp Gesang
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas A. Schmitz @ 2010-02-28  7:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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 <nbsp/> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: active chars in xml -- suggestions needed
  2010-02-28  7:52 ` Thomas A. Schmitz
@ 2010-02-28  8:21   ` Philipp Gesang
  2010-02-28 10:58     ` Thomas A. Schmitz
  2010-02-28 11:13     ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Philipp Gesang @ 2010-02-28  8:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1395 bytes --]

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 <nbsp/> 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

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: active chars in xml -- suggestions needed
  2010-02-28  8:21   ` Philipp Gesang
@ 2010-02-28 10:58     ` Thomas A. Schmitz
  2010-02-28 11:13     ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas A. Schmitz @ 2010-02-28 10:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: active chars in xml -- suggestions needed
  2010-02-28  8:21   ` Philipp Gesang
  2010-02-28 10:58     ` Thomas A. Schmitz
@ 2010-02-28 11:13     ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2010-02-28 11:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Philipp Gesang

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<nbsp/>  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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-28 11:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-28  7:32 active chars in xml -- suggestions needed Philipp Gesang
2010-02-28  7:52 ` Thomas A. Schmitz
2010-02-28  8:21   ` Philipp Gesang
2010-02-28 10:58     ` Thomas A. Schmitz
2010-02-28 11:13     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).