LuaTeX’s mlist.w (which is essentially the math shaper) is 3600 LOC, that is near the size of HarfBuzz shaper, still not counting the code dealing with math input. LOC might not be a good measure, though. Knuth TeX math algorithm is 22 steps described in 7 pages in appendix g of The TeXbook. There is also the input, math input needs a higher level language, and MathML is not the only one, and this has to be taken into account somehow.
Regards, Khaled On Wed, Nov 14, 2012 at 11:27:11PM +0100, Lóránt Pintér wrote: > How complex is the problem of math layout, say, compared to HarfBuzz? What are > the hard parts? In other words: how big would the project have to be? > > -- > > Lóránt Pintér > > Developer at Prezi > > On Wednesday, November 14, 2012 at 11:23 PM, Khaled Hosny wrote: > > Hi, > > I'd be interested in helping with such an effort, I already started > cleaning up GtkMathView (on a private fork) a while ago to prepare it > for OpenType math support, would there be any interest in HarfBuzz > providing an API to read MATH table? (I think it might help a bit with > porting Gecko to OpenType math that some Mozilla MathML people seem to > be interested in). That would be a good start, a full math engine in > HarfBuzz would be nice, but it might be too much I think, given the > complexity of math layout. > > Regards, > Khaled > > On Wed, Nov 14, 2012 at 11:11:08AM -0800, Behdad Esfahbod wrote: > > Hi, > > There used to be GtkMathMLView. That's not exactly what you want > though. > Maybe we should start one... > > http://helm.cs.unibo.it/mml-widget/ > > behdad > > On 12-11-14 08:59 AM, Lóránt Pintér wrote: > > Hi, > > Sorry for the off-topic question, but is there maybe a library > similar to > HatfBuzz that can be used to shape/layout/format mathematical > formula? > > What I would like is to provide the input in TeX or MathML format, > and get > back something similar to hb_buffer_get_glyph_positions(). > > -- > Thanks, > > *Lóránt Pintér* > > Developer at Prezi <http://prezi.com> > > > > _______________________________________________ > HarfBuzz mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/harfbuzz > > > -- > behdad > http://behdad.org/ > _______________________________________________ > HarfBuzz mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/harfbuzz > > _______________________________________________ HarfBuzz mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/harfbuzz
