Quote:
Originally Posted by AlanHK
How about embedding it as img alt?
Code:
<div class="formula"><img alt="f'(x) = x + y" src="Formula1.png"/></div>
And it actually makes good alt text.
|
That was my solution for a while (see
my Post back in 2014 talking about Word formulas -> EPUB)...
but then then there were multiple problems that cropped up:
- Formulas which used characters that are invalid in an alt tag
- Like a dumb double quote: ".

- It would be read aloud by Text-to-Speech (TTS).
- For the vast majority of TTS, you would hear a bunch of gibberish being spouted out.
- See one of my "Complex Examples" in my 2014 post:
- alt="\frac{\displaystyle\frac{\text{widgets} / \text{elapsed-time}}{[\text{widgets} \times (\text{elapsed-time})^{(\alpha-1)}] \cdot [\text{labor-hours} / \text{elapsed-time}]^\phi}}{[\text{labor-hours}]^{\alpha\theta} \cdot [\text{labor-effort}]^{\alpha(1-\theta)}}"
- It would be fantastic if TTS would recognize TeX and be able to read the Math properly... but I currently don't know of any that could (and this reader would be in the extreme minority).
- This is one of the reasons for the push to MathML.
- MathML is split into Presentational/Content Markup... since symbols can mean different things in different contexts. It would allow the TTS to read an equation like a human would in a classroom.
Anyway, I don't want to clutter up this topic with formulas or MathML discussion. We can take this to PM, or discuss it in other topics (like my
Tutorial: Formulas to PNG). I am more than happy to spitball ideas + discuss any of that stuff at any time.
All I know is that comments should be ignored by smarteners! Sometimes there is smart stuff going on that needs to remain dumb!