ways2read / InDesignA11Y

Issue tracking improvements in InDesign for better accessible EPUB export
9 stars 0 forks source link

MathML #24

Open ways2read opened 2 years ago

ways2read commented 2 years ago

Knowledge base reference: http://kb.daisy.org/publishing/docs/html/mathml.html

LauraB7 commented 1 year ago

User story: "As an end user I can hear/read math with my screen reader/braille display and explore it so I can understand the publications used on my course."

puchchi commented 1 year ago

Hello, we have some questions about this request. Please find them listed below.

  1. Are these mathematical equations saved as live text or svg/eps in the InDesign document? If it's svg, can we not use Object Export Option Dialog to add alt text?
  2. Are these mathematical equation are exported as MathML format or img tag in EPUB from InDesign?
gregoriopellegrino commented 1 year ago
  1. Are these mathematical equations saved as live text or svg/eps in the InDesign document?

Content creators use different software outside of InDesign to create the formulas (MathMagic, MathTools, JMathEdit, etc.). In most cases these software export a vector image (optimized for printing) and can embed within the vector image the MathML code, or so can get it from the software itself.

If it's svg, can we not use Object Export Option Dialog to add alt text?

It is not a matter of alt text: for users, the best experience would be to have the formula in MathML, so they can navigate it freely with assistive technologies.

  1. Are these mathematical equation are exported as MathML format or img tag in EPUB from InDesign?

Currently, these formulas imported as vector images are exported as raster images. For accessibility there is the requirement to instead export the EPUB with the formula as MathML.

puchchi commented 1 year ago

As we are using third party plugin to add math equation, which add math equation as svg in InDesign document. Currently this svg file will be exported as img tag in EPUB. But for accessibility, we want this img tag to be converted into proper MathML tag structure. It's not possible for ID to convert math formula based svg to MathML format while exporting EPUB, because ID have no information about the math formula in svg file.

gregoriopellegrino commented 1 year ago

We understand your position, and at the same time we think that ultimately, the goal should be to find a positive, problem-solving approach to address the issue and ensure accessibility for all users.

There may to be several suggestions to address the issue of adding math equations as SVG in InDesign and converting them to proper MathML tag structure in EPUB for accessibility.

One suggestion is to allow plugins that handle formulas to be able to include MathML when exporting the EPUB, for example through the use of hooks or APIs. Another option is to include the MathML directly in the vectorial image file (normally publishers use EPS or AI instead of SVG) from the third-party tool if that is possible, so that ID could export an image for PDF and MathML for EPUB.

If it helps we can have a call with some publishers to present their workflows and explore possible solutions.