Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mathematics Rendering #787

Open
physikerwelt opened this issue Oct 5, 2024 · 1 comment
Open

Mathematics Rendering #787

physikerwelt opened this issue Oct 5, 2024 · 1 comment
Labels
focus-area-proposal Focus Area Proposal

Comments

@physikerwelt
Copy link

physikerwelt commented Oct 5, 2024

Description

This proposal seeks to improve the success rate of the already defined MathML presentation tests

https://wpt.fyi/results/mathml/presentation-markup?label=experimental&label=master&aligned

Specification

https://w3c.github.io/mathml-core

Additional Signals

Relatively minor layout problems regarding the size and position of mathematical symbols in MathML core implementations across browsers hinder major websites' wider adoption of MathML. Thus, mathematical expressions are displayed via other mechanisms such as images, as LaTeX source code is to be rendered by JS, or content is entirely provided as PDF. For example, some Wikimedians still prefer images over HTML as the rendering issues (shown in failing tests above) make it difficult to understand the meaning of formulae, as the relative position of mathematical elements determines the semantics. For example, 2 to the power of 2 might look like 22 if the layout is incorrect. People with limited vision are particularly affected.

This request follows #556 and #197 and was endorsed by the W3C MathWG.

Size and Current State of the Feature

Most browsers have a good MathML support. However, small inaccuracies in rendering can make an entire formula unreadable or misleading, which is why browser interop is crucial for successful MathML outcomes.

Browser Bugs

Related browser bugs are linked from the test suite in the section

Relevant links for /mathml/presentation-markup results

Likely Compatibility Impact

Currently, MathJax or image-based rendering seems to be more widely used than HTML with MathML. Fixing the layout issues will foster the adoption of content providers and the development of polyfills on a detailed level if only a few issues remain.

Platform Impact

Accessibility

MathML formulae are more accessible than images.

Internationalization

Embedding international symbols is possible in MathML and is only poorly supported by other techniques.

Privacy

Using JS polyfills that are distributed via CDN poses a significant privacy concern.

Security

The client-side community-maintained JS is more vulnerable than MathML-based formatting by browsers.

Overall Project Balance

While most websites do not use mathematical expressions at all, those websites that do (such as arXiv, Wikipedia, community forums) would significantly benefit from the proposal.

@NSoiffer
Copy link

NSoiffer commented Oct 9, 2024

The list of users that benefit should include STEM journal publishers and STEM textbook publishers. For textbooks, the cost of producing braille versions by schools that contain math is prohibitive; eBooks are great accessibility alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
Status: No status
Development

No branches or pull requests

2 participants