View Single Post
Old 07-19-2017, 08:46 AM   #159
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by AlanHK View Post
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!

Last edited by Tex2002ans; 07-19-2017 at 08:48 AM.
Tex2002ans is offline   Reply With Quote