John Maddock | 2 Feb 12:19
Favicon

More equation woes.....

Some more experimentation reveals that:

* IE9 will only support the MathJax scripts if the script is loaded from a 
subdirectory of the one containing the HTML (a non-starter) otherwise you 
get a security warning (which I missed the first time), and if you either 
miss the warning or just follow IE9's advice and block the script then all 
the equations disappear :-(
* I tried using SVG's instead of MathML or Tex, and Oh dear that's as bad 
:-(
Yes IE9 supports SVG's, but in order for a graceful fallback be provided for 
earlier IE users you have to use <object> tags - that's OK that's what the 
Docbook stylesheets generate - except IE9 (and only IE9) won't then display 
either the SVG or the fallback image unless the image has explicit width and 
height attributes.  If that's not bad enough, IE and all the other browsers 
handle the width and height attributes differently.   I'm mean seriously 
what the &&^%$$ does MS think it's doing here?  Anyhow, I simply can't find 
a magic combination of factors that works on all the browsers... possibly 
removing the width/height attributes from the SVG and adding them to the 
HTML only would work (just checked it does work - but content gets blocked 
by default, and breaks PDF generation, besides how do you know what 
attributes to use once they're gone from the SVG?  Two sets of SVG's 
maybe?????), having the attributes on both just totally screws up the IE 
display BTW.   Likewise using <embed> doesn't help at all.

Sorry for the rant, but really, there's no way this should be this hard!

Anyhow, if anyone wants to play, I've committed an equation test page to the 
test project under doc/test.  Just don't use IE.

Still looking for ideas yours, John. 
(Continue reading)

Paul A. Bristow | 2 Feb 13:52

Re: More equation woes.....

> -----Original Message-----
> From: boost-docs-bounces <at> lists.boost.org [mailto:boost-docs-bounces <at> lists.boost.org] On
Behalf Of
> John Maddock
> Sent: Thursday, February 02, 2012 11:19 AM
> To: Discussion of Boost Documentation
> Subject: [Boost-docs] More equation woes.....
> 
> Some more experimentation reveals that:
> 
> * IE9 will only support the MathJax scripts if the script is loaded from a subdirectory of the one
containing
> the HTML (a non-starter) otherwise you get a security warning (which I missed the first time), and
if you
> either miss the warning or just follow IE9's advice and block the script then all the equations
disappear :-(

Looks a non-starter :-(

But MathML should 'just work'. IE9 says clearly

"Note: Your browser does not support Native MathML rendering".

So IE users will not get equations - end of story?

> * I tried using SVG's instead of MathML or Tex, and Oh dear that's as bad :-( Yes IE9 supports
SVG's,

:-)   - they all look the same, and are nice and sharp and can be magnified without going fuzzy.

(Continue reading)

Mika Heiskanen | 2 Feb 15:05
Picon

Re: More equation woes.....

On 02/02/2012 01:19 PM, John Maddock wrote:

> Still looking for ideas yours, John.

Never tested this myself:

   http://en.wikipedia.org/wiki/MathPlayer

Also, have you tried using an Apache RewriteRule to redirect all MathJax 
requests into subdirectories into a unique location?

Disclaimer: Never heard about MathJax before this.

Mika Heiskanen
John Maddock | 2 Feb 17:16
Favicon

Re: More equation woes.....

>> Still looking for ideas yours, John.
>
> Never tested this myself:
>
>   http://en.wikipedia.org/wiki/MathPlayer
>
> Also, have you tried using an Apache RewriteRule to redirect all MathJax 
> requests into subdirectories into a unique location?
>
> Disclaimer: Never heard about MathJax before this.

Unfortunately neither help with offline reading of the docs - we could 
probably get MathJax working acceptably well for online docs - it's reading 
the docs on your hard drive that's the issue.

Cheers, John. 

Gmane