Bug 90087 - Improve math support
Summary: Improve math support
Status: RESOLVED FIXED
Alias: None
Product: DejaVu
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Deja Vu bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-18 15:56 UTC by Frédéric Wang
Modified: 2016-07-15 08:36 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
TeX testcase (DejaVu serif) (1.56 KB, text/plain)
2015-05-08 09:03 UTC, Frédéric Wang
Details
Rendering of the testcase with the stable DejaVu fonts (22.10 KB, application/pdf)
2015-05-08 09:05 UTC, Frédéric Wang
Details
Rendering of the testcase with the r2585 (22.56 KB, application/pdf)
2015-05-08 09:07 UTC, Frédéric Wang
Details
Rendering of the testcase with the r2585 (24.09 KB, application/pdf)
2015-05-08 09:08 UTC, Frédéric Wang
Details
Example with missing Greek characters (8.24 KB, text/plain)
2015-12-27 23:27 UTC, RGB
Details
Example with missing Greek characters (for some reason, previous attach did not work) (8.24 KB, image/png)
2015-12-27 23:30 UTC, RGB
Details

Description Frédéric Wang 2015-04-18 15:56:47 UTC
I'm opening this meta bug. There are essentially two points:

1) Better Unicode coverage for math symbols. You can see a list in http://www.w3.org/TR/xml-entity-names/#blocks . In particular, https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols is important.

2) Add an OpenType MATH table, and especially the mathvariant subtable which allows to stretch e.g. parenthesis or radical and draw e.g. summation symbol bigger in displaystyle mode.

This would important for the MathML rendering in Gecko/WebKit and for various modern TeX engines (LuaTeX, XeTeX etc).

For more info, see the references at
https://wiki.mozilla.org/MathML:Open_Type_MATH_Table#References
Comment 1 Frédéric Wang 2015-05-08 09:03:43 UTC
Created attachment 115631 [details]
TeX testcase (DejaVu serif)
Comment 2 Frédéric Wang 2015-05-08 09:05:25 UTC
Created attachment 115632 [details]
Rendering of the testcase with the stable DejaVu fonts
Comment 3 Frédéric Wang 2015-05-08 09:07:14 UTC
Created attachment 115633 [details]
Rendering of the testcase with the r2585
Comment 4 Frédéric Wang 2015-05-08 09:08:55 UTC
Created attachment 115634 [details]
Rendering of the testcase with the r2585
Comment 5 Frédéric Wang 2015-05-10 12:50:30 UTC
Some MathML tests for DejaVu Sans and Serif:

http://fred-wang.github.io/MathFonts/DejaVuSans/
http://fred-wang.github.io/MathFonts/DejaVuSerif/
Comment 6 ytrezq 2015-08-04 15:43:02 UTC
I think it would be important to add ⁄ too for allowing to write non pre‑composed fractions.
Comment 7 RGB 2015-12-27 23:27:14 UTC
Created attachment 120711 [details]
Example with missing Greek characters

According to the release notes, version 2.35 implements the Math table. I tried to use version 2.35 with XeTeX and unicode-math package to render my formulas with DejaVu Serif but it seems that Greek characters get missing. If I try

\[
\sum_{i}\hat{\psi_{i}}\cos(\alpha_{i}\pm\omega t)
\]

(yes, I know it makes no sense ;) ) I get the result shown on the screenshot.
Comment 8 RGB 2015-12-27 23:30:18 UTC
Created attachment 120712 [details]
Example with missing Greek characters (for some reason, previous attach did not work)
Comment 9 Frédéric Wang 2015-12-28 07:35:37 UTC
(In reply to RGB from comment #8)
> Created attachment 120712 [details]
> Example with missing Greek characters (for some reason, previous attach did
> not work)

I guess that's because DejaVu misses the greek letters from https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols

Note that in general the math support in DejaVu is very limited at the moment. But a little bird told me that something better was in progress, so stay tuned...
Comment 10 RGB 2015-12-28 20:59:18 UTC
(In reply to Frédéric Wang from comment #9)
> (In reply to RGB from comment #8)
> > Created attachment 120712 [details]
> > Example with missing Greek characters (for some reason, previous attach did
> > not work)
> 
> I guess that's because DejaVu misses the greek letters from
> https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols
> 
> Note that in general the math support in DejaVu is very limited at the
> moment. But a little bird told me that something better was in progress, so
> stay tuned...

Thanks! I'll keep an eye on this!
Comment 11 Frédéric Wang 2016-07-15 08:36:42 UTC
Fixed by the new math font in version 2.36
https://sourceforge.net/p/dejavu/mailman/message/35221644/


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.