TeX filter should allow alternative text for accessibility

XMLWordPrintable

Details

• Type: Improvement
• Status: Closed
• Priority: Minor
• Resolution: Fixed
• Affects Version/s: 2.0
• Fix Version/s:
• Component/s:
• Labels:
None
• Affected Branches:
MOODLE_20_STABLE
• Fixed Branches:
MOODLE_20_STABLE

Description

The TeX filter has a variety of ways of entering TeX content, but none of them allow alternative text. It always uses the TeX equation as alternative text. This is not very accessible.

For example, this might be \frac

{1} {x}

, which a screenreader would read as 'backslash frac left brace one right brace left brace x right brace'.

Although this is probably the best possible for general user-created content such as a forum post, when creating course material that is supposed to be accessible, it would be good to allow alternative text so that the creator can manually make the alt text something like 'one over x'.

One of the TeX filter formats is <tex>(TeX code)</tex>. I propose extending this so that when using this format you can specify <tex alt="whatever">(TeX code)</tex>. Users who require alternative text will need to use this format and not one of the others (, etc).

People

• Assignee:
Sam Marshall
Reporter:
Sam Marshall
Tester:
Nicolas Martignoni
Participants:
Component watchers:
Adrian Greeve, Mihail Geshoski, Peter Dias