Closed
Bug 321438
Opened 20 years ago
Closed 17 years ago
MathML entities φ and ϕ are reversed
Categories
(Core :: MathML, defect)
Core
MathML
Tracking
()
RESOLVED
FIXED
mozilla1.9beta3
People
(Reporter: dmharvey, Assigned: karlt)
References
Details
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.5.2 (KHTML, like Gecko) Safari/312.3.3
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
The MathML entities φ and ϕ are the wrong way around. The entity φ should correspond to unicode 0x3D5 ("straight phi") and ϕ ("curly phi") to 0x3C6, but in Firefox 1.5 they are reversed.
Reproducible: Always
Steps to Reproduce:
1. View a MathML document containing φ and ϕ
2.
3.
Actual Results:
φ gets mapped to unicode 0x3c6 and ϕ gets mapped to unicode 0x3d5
Expected Results:
φ should get mapped to 0x3d5 and ϕ should get mapped to 0x3c6
It appears the problem can be traced back to a mistake in the MathML 1.x DTD spec. In that earlier version (for example see http://www.w3.org/1999/07/REC-MathML-19990707/chap6/byalpha.html), there are the lines:
phi isogrk3 966 03C6 /straightphi - small phi, Greek
phiv isogrk3 981 03D5 /varphi - curly or open phi
Clearly something is wrong here , since 3C6 is NOT "straight phi", and 3D5 is NOT "curly or open phi". (See the unicode chart at http://www.unicode.org/charts/PDF/U0370.pdf).
In MathML 2.0 the error appears to have been corrected. See for example http://www.w3.org/TR/2003/REC-MathML2-20031021/bycodes.html.
It could be argued that this is not a Firefox bug because it follows a particular version of the MathML DTD faithfully. Nevertheless, as that version of the spec was clearly in error, I think it's reasonable to update Firefox's behaviour to match the corrected (MathML 2.0) DTD.
Updated•20 years ago
|
Assignee: nobody → rbs
Component: General → MathML
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.8 Branch
| Assignee | ||
Comment 2•18 years ago
|
||
http://www.unicode.org/reports/tr25/#_Toc23
discusses the representative glyphs being swapped with Unicode 3.0.
"it is important to make sure that codes or entities, such as phi1, that require the straight form of the phi symbol be mapped to U+03D5 and not to U+03C6."
| Assignee | ||
Comment 3•18 years ago
|
||
(In reply to comment #1)
> Does this bug still exist on the Trunk?
layout/mathml/content/src/mathml.dtd seems to still have this bug:
<!ENTITY phi 'φ'> <!ENTITY straightphi 'φ'>
<!ENTITY phiv 'ϕ'> <!ENTITY varphi 'ϕ'>
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Comment 4•18 years ago
|
||
I think this'll be fixed at the same time as bug 289938.
Depends on: 289938
| Assignee | ||
Updated•17 years ago
|
Assignee: rbs → mozbugz
Target Milestone: --- → mozilla1.9 M11
Version: 1.8 Branch → Trunk
| Assignee | ||
Comment 5•17 years ago
|
||
Fixed on trunk in bug 289938
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: in-testsuite?
Updated•11 years ago
|
See Also: → https://github.com/gvanas/blahtexml/issues/4
You need to log in
before you can comment on or make changes to this bug.
Description
•