MathType
John Norman
john at caret.cam.ac.uk
Wed Feb 18 15:45:19 UTC 2009
cc'ing to Fluid in case we get any accessibility guidance from our
friends there.
John
On 18 Feb 2009, at 15:11, Steven Githens wrote:
> Oh yeah, oops! I missed the CSS Class at the bottom.
>
> Steve Swinsburg wrote:
> > How complete is the plugin in order to change this functionality?
> I'm sure there a few bugs, but the FCK Plugin works as is with the
> images and re-editing them with a context menu, so it should be pretty
> straightforward to fiddle around the the javascript for the plugin
> to do
> this instead of just an <img/>
>
> If Mike Elledge is still on the line here, how does that sound as
> far as
> accessiblity? Having display:none MathML below the image?
>
> cheers,
> Steve
> > cheers,
> > Steve
> >
> > ---
> > Steve Swinsburg
> > Portal Systems Developer
> > Centre for e-Science
> > Lancaster University
> > Lancaster
> > LA1 4YT
> >
> > email: s.swinsburg at lancaster.ac.uk
> > phone: +44 (0) 1524 594870
> >
> >
> >
> >
> >
> >
> >
> > On 18 Feb 2009, at 14:58, Steven Githens wrote:
> >
> >> Good Morning Steve... of the Swinsburg variety,
> >>
> >> I had thought a little about doing this sort of thing but ran into
> >> the following problematic bullet points:
> >>
> >> * Making it re-editable in FCK. The right click context menu
> >> basically has a listener that receives the tag(s) that are under
> your
> >> pointer when you right click somewhere. We could probably group the
> >> <img/> and <mathml/> together in a bigger tag, so I don't think
> this
> >> is a showstopper, but something that would take a fair amount of
> time
> >> of dinking around with and testing.
> >> * What happens when someone actually has MathML support in their
> >> browser? They end up seeing 2 of everything, since we can't really
> >> have any javascript in resource content to test for MathML support
> >> and then toggle one or the other. I don't think CSS has any
> >> constructs with enough logic to optionally hide something like this
> >> either.
> >>
> >> However! We could have both the image and MathML, but always hide
> >> the MathML from visual display. That would at least make it more
> >> available for users with sensory impairments?
> >>
> >> -Steve
> >>
> >>
> >> Steve Swinsburg wrote:
> >>> Hi Steve,
> >>>
> >>> Rather than having the MathML encoded into the alt attribute on
> the
> >>> img tag, why not have both the img and the math tags inline. The
> >>> base math tag would have a class to hide it (and to hide it from
> >>> screenreaders as well). You could then have a more textual
> >>> description of the math formula as the alt tag which would be more
> >>> accessible to screenreaders than having to wade through math tags.
> >>>
> >>> In the future, when more browsers support MathML natively, the
> class
> >>> could just be adjusted, the images removed and the MathML would
> work.
> >>>
> >>> ie the quadratic roots equation would be represented like so:
> >>>
> >>> <img src="quadratic_roots.png" alt="x={-b +- sqrt {b^2 - 4ac}}
> over
> >>> 2a" />
> >>> <math xmlns="http://www.w3.org/1998/Math/MathML" >
> >>> <mi>x</mi>
> >>> <mo>=</mo>
> >>> <mfrac>
> >>> <mrow>
> >>> <mrow>
> >>> <mo>-</mo>
> >>> <mi>b</mi>
> >>> </mrow>
> >>> <mo>±</mo>
> >>> <msqrt>
> >>> <msup>
> >>> <mi>b</mi>
> >>> <mn>2</mn>
> >>> </msup>
> >>> <mo>-</mo>
> >>> <mrow>
> >>> <mn>4</mn>
> >>> <mo>⁢</mo>
> >>> <mi>a</mi>
> >>> <mo>⁢</mo>
> >>> <mi>c</mi>
> >>> </mrow>
> >>> </msqrt>
> >>> </mrow>
> >>> <mrow>
> >>> <mn>2</mn>
> >>> <mo>⁢</mo>
> >>> <mi>a</mi>
> >>> </mrow>
> >>> </mfrac>
> >>> </math>
> >>>
> >>>
> >>>
> >>> and in the CSS
> >>>
> >>> math {
> >>> display:none;
> >>> }
> >>>
> >>> later to be adjusted so the MathML displays.
> >>>
> >>>
> >>>
> >>>
> >>> cheers,
> >>> Steve
> >>>
> >>>
> >>>
> >>> ---
> >>> Steve Swinsburg
> >>> Portal Systems Developer
> >>> Centre for e-Science
> >>> Lancaster University
> >>> Lancaster
> >>> LA1 4YT
> >>>
> >>> email: s.swinsburg at lancaster.ac.uk <mailto:s.swinsburg at lancaster.ac.uk
> >
> >>> phone: +44 (0) 1524 594870
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> On 17 Feb 2009, at 23:54, Steven Githens wrote:
> >>>
> >>>> Stephen Swinsburg wrote:
> >>>>>
> >>>>> The points about IE7 not working with it echo on and on... it
> >>>>> would be great to develop an FCK plugin that works according to
> >>>>> the standard. Those that want/need Math symbols may end up
> using a
> >>>>> browser that works!
> >>>>> I guess the images+MathML is the workaround for now?
> >>>> Exactly. The images work right now for browsers and users across
> >>>> the board**, and we'll need to push ahead with native MathML
> >>>> solution going forward.
> >>>>
> >>>> And yeah, I'd still like to experiment with having an option to
> >>>> choose between images and mathml.
> >>>>
> >>>> ~steve
> >>>>
> >>>> ** Well, ok, as The Mike Elledge pointed out it's probably not
> >>>> accessible. If there was somehow to put the MathML hidden on the
> >>>> img tag in a way that would make it available to visually
> impaired
> >>>> users for the moment that would be awesome. Again, at the current
> >>>> revision, the MathML is on the alt tag. (This is also what allows
> >>>> you to re-edit an existing equation. It reads the mathml off the
> >>>> alt tag to prepopulate the applet, and then replaces the image
> and
> >>>> alt text when you're done)
> >>>
> >>
> >
>
>
> This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org//portal
> ) from the DG: User / Using Sakai site.
> You can modify how you receive notifications at My Workspace >
> Preferences.