View Single Post
Old 03-04-2025, 10:25 AM   #1
wanderson
Enthusiast
wanderson began at the beginning.
 
wanderson's Avatar
 
Posts: 28
Karma: 10
Join Date: Jul 2017
Location: Austin TX USA
Device: Kindle Paperwhite Gen 11, Likebook Mars & TCL NxtPaper 11
MathML namespace declaration in .css not "sticking"

I'm editing a equation-heavy epub and I'm using a lot of MathML markups. I'd like for the text to be as economical as possible, so I'd like to avoid this kind of tag:

Code:
<math xmlns="http://www.w3.org/1998/Math/MathML"> ... </math>
and instead use a single namespace declaration in the stylesheet.css, namely:

Code:
@namespace math url(http://www.w3.org/1998/Math/MathML);
which would (theoretically) enable a simpler MathML tag:

Code:
<math> ... </math>
This doesn't seem to be working for me in the Calibre editor / previewer. It may be the case that the namespace is conveyed to the first instance of a <math> tag in a file, but the remaining tags "forget" the namespace designation.

What am I doing wrong? Thanks in advance for any help.
wanderson is offline   Reply With Quote