W3C home > Mailing lists > Public > www-svg@w3.org > April 2011

Re: [Bug 12558] New: Support HTML's full set of character entities in SVG

From: David Woolley <forums@david-woolley.me.uk>
Date: Tue, 26 Apr 2011 23:52:33 +0100
Message-ID: <4DB74CB1.2000700@david-woolley.me.uk>
To: www-svg@w3.org
bugzilla@jessica.w3.org wrote:

> I think it makes sense to extend the spec and support HTML's full set of
> character entities in SVG.
In the early days of XML and SVG, the feeling was that HTML was 
suffering from entity bloat.   I believe it was a deliberate policy to 
not import all the HTML named single character strings.

They only offer any benefit for hand coding, and some HTML editors will 
reduce them to the actual character if the character encoding will 
support it.

Whilst I haven't tried this with a real SVG processor, as far as I can 
tell, it should be possible to define ones own named general entities at 
the head of an SVG document, so you could define the HTML single 
character general entities locally.  I do rather suspect that there are 
non-XML compliant SVG processors.

As may be hinted above, there aren't actually character entities, but 
rather general entities that just happen to have a single character value.

Also, &minus;, in the example, has no existence other than as a macro 
that contains a single character.  The equivalent character reference is 
truly equivalent, it is not an approximation.

David Woolley
Emails are not formal business letters, whatever businesses may want.
RFC1855 says there should be an address here, but, in a world of spam,
that is no longer good advice, as archive address hiding may not work.
Received on Tuesday, 26 April 2011 22:53:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:24 UTC