W3C home > Mailing lists > Public > www-math@w3.org > December 2002

Re: Sneak Preview of F2 - Formula Finder

From: David Carlisle <davidc@nag.co.uk>
Date: Tue, 10 Dec 2002 22:48:25 GMT
Message-Id: <200212102248.WAA19883@penguin.nag.co.uk>
To: kwang_poon@yahoo.com
CC: www-math@w3.org


> What would be the best way to improve rendering time
> while keeping ampersand aliases for special math
> characters?

well you could possibly expand out the entities as you generate the xml
files from your database, but failing that, since it's your database you
know exactly what &xxx; there are, so you can make a
mathml.dtd file that _only_ has definitions for the entities that you
have. It doesn't have to have any element or attribute declarations.
(do call the file mathml.dtd then mozilla won't fetch it at all and will
use the one in its cache)

so all you need to do is extract a list of names from your database, then 
copy those lines from the file in Math/DTD/mathml2/xhtml-math11-f.dtd
of the form
<!ENTITY xxx "&#12344;">


then you can still use &xxx; in the file but the DOCTYPE can use a
SYSTEM id that points to a _much_ smaller file that is quicker to
download.


David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
Received on Tuesday, 10 December 2002 17:48:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:51 GMT