RE: sign padding
"Paul Topping" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.mathml |
|---|---|
| Message-ID | <[email protected]> |
A minus is usually has "en" width so an en space might be what you need. Don't know the Unicode for that but I'm pretty sure it exists. Paul > -----Original Message----- > From: [email protected] [mailto:dev-tech- > [email protected]] On Behalf Of Chris Chiasson > Sent: Tuesday, February 27, 2007 8:54 AM > To: [email protected] > Subject: sign padding > > What is the best way to achieve sign padding in front of an <mn> such > that the leading space is as wide as a <mo>-</mo>? I tried using > Courier New (monospaced) font along with <mspace width='0.22222222em'> > (the default width of mediummathspace), but that wasn't wide enough. :- > [ > > Should I be looking at mphantom? > > P.S. I'm generating the MathML fragment from a linear string that > contains the spaces, sign (if negative), and number. because my rules > are part of a more general conversion system, I should reasonably > assign an mspace width - not just one that happens to be as large as > <mo>-</mo>. > > _______________________________________________ > dev-tech-mathml mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-mathml