ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Non-breakable space in export to XML
Date: Tue, 24 May 2011 10:27:46 +0200	[thread overview]
Message-ID: <4DDB6C02.6010902@wxs.nl> (raw)
In-Reply-To: <alpine.LNX.2.02.1105240058410.818@ybpnyubfg.ybpnyqbznva>

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

      reply	other threads:[~2011-05-24  8:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-24  5:02 Aditya Mahajan
2011-05-24  8:27 ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DDB6C02.6010902@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).