ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Patrick Gundlach <gundlach@irb.cs.uni-dortmund.de>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: xml,entities, hyphenation
Date: Tue, 18 Dec 2001 18:47:04 +0100	[thread overview]
Message-ID: <200112181747.fBIHl4A18226@sol.cs.uni-dortmund.de> (raw)

Hi,

> hm, first of all, i see that i have to treat numbers in a more advanced 
> way; in what disguises do those #num; things come? I now assume hex so 045 
> becomes an E -)
> 
> it is not that complicated to add an additional entity mapping branch that 
> remaps no45 into |-| but first i need specs -)

OK, you asked for it :)

[66]    CharRef ::=  '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'

and, as stated in the xml spec:

If the character reference begins with "&#x", the digits and
letters up to the terminating ; provide a hexadecimal representation
of the character's code point in ISO/IEC 10646. If it begins just with "&#",
the digits up to the terminating ; provide a decimal representation
of the character's code point.

so "&#045;" == "&#45;" == "&#x2D;"

Viele Grüße,

  Patrick Gundlach

- I TeX, therefore I am -


             reply	other threads:[~2001-12-18 17:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Your message of "Tue, 18 Dec 2001 18:33:38 +0100." <5.1.0.14.1.20011218183102.03e890e0@server-1>
2001-12-18 17:47 ` Patrick Gundlach [this message]
2001-12-18 18:26   ` Hans Hagen
2001-12-18 17:01 Patrick Gundlach
2001-12-18 17:33 ` Hans Hagen

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=200112181747.fBIHl4A18226@sol.cs.uni-dortmund.de \
    --to=gundlach@irb.cs.uni-dortmund.de \
    --cc=pragma@wxs.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).