WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
3251
Implement MathML (master bug)
https://bugs.webkit.org/show_bug.cgi?id=3251
Summary
Implement MathML (master bug)
Dave Hyatt
Reported
2005-06-01 16:23:53 PDT
This is a master bug to track the landing of an initial implementation of MathML for Web Kit.
Attachments
Add attachment
proposed patch, testcase, etc.
Adele Peterson
Comment 1
2005-06-14 14:49:02 PDT
This is also in Radar as <
rdar://problem/3142835
> Would like MathML support
Jacques Distler
Comment 2
2005-06-16 15:16:03 PDT
MathML support requires an extensive set of glyphs, not present in the fonts customarily distributed with MacOSX. To this end, the STIX Fonts Project (
http://www.stixfonts.org/
)is of interest. Sometime in 2005 (or so they say), a full Unicode-compatible mathematical font set will be available under a royalty-free licence (
http://www.stixfonts.org/user_license.html
).
Luca Padovani
Comment 3
2005-07-05 13:10:34 PDT
GtkMathView is a C++ rendering engine for MathML documents. It provides an interactive view that can be used for browsing and editing MathML markup. Despite its name, GtkMathView is modular and the actual MathML rendering engine is completely independent of Gtk (and of any graphic platform). Currently GtkMathView supports 3 different backends: for Gtk, for SVG (does not use any graphic library), for AbiWord. GtkMathView's frontend (the way it reads the MathML document) is also modular, and it supports both tree-based document models as well as stream interfaces as well as application-specific models. GtkMathView has very good support for Computer Modern fonts (both Type1 and TrueType versions) and support for other font families can be added easily. It seems to me like this is a good opportunity to make GtkMathView somewhat more popular, and for you not to reinvent the wheel and to start with an already working code base. I'd be glad to hear from other developers if they think it would be feasible to (re)use GtkMathView or some of its code base for adding MathML support to Webkit. I anticipate that I'm totally new to development on the Apple platform, but it'd be terrific if any piece of this (hard!) work, which has going on for more than 5 years, could be of some help.
http://helm.cs.unibo.it/software/mml-widget/
Feel free to contact me for any question you may have.
YAMASHITA Makoto
Comment 4
2006-01-13 17:58:42 PST
(In reply to
comment #3
) SVG <text> support is coming into being. Is it realistic to have the SVG engine do the rendering job? Looks like gtkMathView can provide in-memory SVG tree with a few modifications.
David Kilzer (:ddkilzer)
Comment 5
2006-01-20 05:26:20 PST
GtkMathView is licensed by the GPL. Is that license compatible with WebKit?
Luca Padovani
Comment 6
2006-01-23 01:56:52 PST
(In reply to
comment #4
)
> SVG <text> support is coming into being. Is it realistic to have the SVG engine > do the rendering job? Looks like gtkMathView can provide in-memory SVG tree with > a few modifications.
Indeed it is possible to have an "SVG tree" generated by GtkMathView. Note that the rendering of MathML into SVG uses very little capabilities of SVG itself. Basically, all that is needed is text rendering, reliable font selection, and colored rectangles. In fact, I suspect it would probably be easier to directly interface GtkMathView with the rendering interface used by the SVG engine, although have never glanced at how that works. In reply to
comment #5
, I might consider switching to a less strict licence, as long as GtkMathView remains open source.
YAMASHITA Makoto
Comment 7
2006-01-23 16:15:03 PST
(In reply to
comment #6
)
> Basically, all > that is needed is text rendering, reliable font selection, and colored > rectangles. In
With my quick experiment, the nightly build can render outputs (including greek letters, integral, square roots and the red square for missing? glyphs) of mathmlsvg quite fine using Bakoma fonts.
> to directly interface GtkMathView with > the rendering interface used by the SVG engine
Well, we need to investigate on this more, perhaps it would mean to handle CSS frames or something? In any case, in view of kmathml, this approach might be of temporary ad-hoc nature and then we can pursue the easiest rather than structural beauty...
Maciej Stachowiak
Comment 8
2006-02-25 00:44:42 PST
WebKit code must be under an LGPL-compatible license.
Alexey Proskuryakov
Comment 9
2008-07-01 05:55:21 PDT
***
Bug 19840
has been marked as a duplicate of this bug. ***
Alexander Willner
Comment 10
2008-11-24 20:34:02 PST
(In reply to
comment #5
)
> GtkMathView is licensed by the GPL. Is that license compatible with WebKit?
(In reply to
comment #8
)
> WebKit code must be under an LGPL-compatible license.
GtkMathView is LGPL software since Oct 15, 2007 and also WebKits SVG support is mature now. With everything sorted out, only someone who can integrate it into WebKit is missing ;)
David Kilzer (:ddkilzer)
Comment 11
2008-11-25 05:41:43 PST
Hyatt is not working on this; reassigning to webkit-unassigned.
David Kilzer (:ddkilzer)
Comment 12
2008-11-25 05:44:44 PST
(In reply to
comment #10
)
> (In reply to
comment #5
) > > GtkMathView is licensed by the GPL. Is that license compatible with WebKit? > (In reply to
comment #8
) > > WebKit code must be under an LGPL-compatible license. > > GtkMathView is LGPL software since Oct 15, 2007 and also WebKits SVG support is > mature now. With everything sorted out, only someone who can integrate it into > WebKit is missing ;)
Will that work on all platforms once the Gtk dependencies are removed? I suppose the SVG backend would work best in this case.
http://helm.cs.unibo.it/mml-widget/
Mark Rowe (bdash)
Comment 13
2009-02-24 11:09:25 PST
***
Bug 24127
has been marked as a duplicate of this bug. ***
JoeJava
Comment 14
2009-11-02 06:19:50 PST
A MaTHML Browser testing page is:
https://eyeasme.com/Joe/MathML/MathML_browser_test
Alex Milowski
Comment 15
2010-01-22 12:47:45 PST
Added all the current MathML related issues in the "Depends On" field.
Alex Milowski
Comment 16
2010-01-27 15:03:03 PST
Added the debug layout patch.
Alex Milowski
Comment 17
2010-01-28 10:46:05 PST
Added MathML CSS patch
Alex Milowski
Comment 18
2010-01-28 11:11:18 PST
Added bugs for munder/over and msubsup support.
Alex Milowski
Comment 19
2010-01-29 14:34:46 PST
Added patch for mrow and stretchy operator support.
Alex Milowski
Comment 20
2010-02-08 21:08:18 PST
Added mfrac patch bug (34741).
Alex Milowski
Comment 21
2010-02-10 11:42:45 PST
Removed
bug 27413
from the depends on field. I believe this bug (27413) is not related to MathML. While I may be able to do the same using a chunk of MathML encoded markup, this bug has to do with specifically detecting and transforming sequences of unicode characters. Such a transformation's implementation might want to use the MathML fraction rendering object but it isn't really directly related to MathML's implementation.
Alex Milowski
Comment 22
2010-06-13 01:40:29 PDT
Added patch for RenderStyle change.
Karl Dubost
Comment 24
2024-12-01 21:30:52 PST
Is this bug still useful? There are many open reports about MathML but none ar linking to this one.
https://bugs.webkit.org/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&list_id=11795349&query_format=advanced&short_desc=mathml&short_desc_type=allwordssubstr
Frédéric Wang (:fredw)
Comment 25
2024-12-01 22:20:17 PST
No I think it can be closed indeed. I guess the meta bug these days would be
https://bugs.webkit.org/show_bug.cgi?id=mathml-core
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug