ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Non-breakable space in export to XML
@ 2011-05-24  5:02 Aditya Mahajan
  2011-05-24  8:27 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Aditya Mahajan @ 2011-05-24  5:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

When exporting to xml (with \setupbackend[export=yes]), the non-breakable 
space (~) gets exported to regular space 0x32. Shouldn't it rather be 
exported to 0x00A0?

Aditya
___________________________________________________________________________________
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] 2+ messages in thread

* Re: Non-breakable space in export to XML
  2011-05-24  5:02 Non-breakable space in export to XML Aditya Mahajan
@ 2011-05-24  8:27 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2011-05-24  8:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 827 bytes --]

On 24-5-2011 7:02, Aditya Mahajan wrote:
> Hi,
>
> When exporting to xml (with \setupbackend[export=yes]), the
> non-breakable space (~) gets exported to regular space 0x32. Shouldn't
> it rather be exported to 0x00A0?

Hard to check in an editor, these special spaces.

Anyhow, attached is a proof of concept ... I need to rewrite a bit of 
spacing code so it also needs some testing and guess who has to do that 
then.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

[-- Attachment #2: oepsoeps.tex --]
[-- Type: text/x-tex, Size: 192 bytes --]

\setupbackend[export=yes]

\setupbodyfont[dejavu]

\input typo-chr.mkiv

\starttext

test test\nobreakspace test

12345\par
12\figurespace45\par
12.34\par
12\punctuationspace34\par

\stoptext

[-- Attachment #3: oepsoeps.pdf --]
[-- Type: application/pdf, Size: 12579 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: oepsoeps.export --]
[-- Type: text/xml; name="oepsoeps.export", Size: 527 bytes --]

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>

<!-- input filename   : oepsoeps          -->
<!-- processing date  : 05/24/11 10:25:10 -->
<!-- context version  : 2011.05.22 23:41  -->
<!-- exporter version : 0.20              -->

<document language="en" file="oepsoeps" date="05/24/11 10:25:10" context="2011.05.22 23:41" version="0.20" xmlns:m="http://www.w3.org/1998/Math/MathML">
test test test

  <break/>
 12345

  <break/>
 12 45

  <break/>
 12.34

  <break/>
 12 34 
</document>

[-- Attachment #5: Type: text/plain, Size: 485 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] 2+ messages in thread

end of thread, other threads:[~2011-05-24  8:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24  5:02 Non-breakable space in export to XML Aditya Mahajan
2011-05-24  8:27 ` 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).