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

[Spike] Support for math formulas? #152

Open
pcraig3 opened this issue Jan 10, 2025 · 0 comments
Open

[Spike] Support for math formulas? #152

pcraig3 opened this issue Jan 10, 2025 · 0 comments
Labels
Spike This is an experimental fact-finding task, not a feature update

Comments

@pcraig3
Copy link
Collaborator

pcraig3 commented Jan 10, 2025

Summary

From time to time, there is a little math formula that shows up in a NOFO. They aren't using a lot of greek letters or anything, but they do include some concepts like multiplication and the denominator + numerator.

Here's an example from a recent NOFO.

Image

I've done some investigation (read: Googling), and it seems like there are 2 ways that math formulas can be added in HTML:

  1. Natively, using the <math> element: documented here on MDN (More examples here)
  2. Using a JS library, like MathJax

Our pipeline creates a HTML layout but then we convert that HTML into a PDF via PrinceXML, and, while Prince overall has been fantastic, they have implemented a custom renderer behind the scenes and so they don't support all the HTML layout stuff that, for example, Chrome does. As an example, Prince doesn't yet support grid layout, despite it now being widespread on modern browsers.

Steps to complete this ticket

  • Try to recreate some formulas in a NOFO so that they render
    • Use both <math> and MathJax
  • Print a PDF
  • Does it work?
    • If it works, what does it show up as in Adode's accessibility tags
  • If this works, try to recreate that "Significant increase formula" above

Beyond the scope of this ticket

  • Getting a Word import to work to build a figure like this
  • Going back to update any past NOFOs
@pcraig3 pcraig3 added the Spike This is an experimental fact-finding task, not a feature update label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Spike This is an experimental fact-finding task, not a feature update
Projects
None yet
Development

No branches or pull requests

1 participant