On Tue, Nov 29, 2011 at 12:44 AM, Roan Kattouw <roan.katt...@gmail.com>wrote:

> On Tue, Nov 29, 2011 at 1:42 AM, Brion Vibber <br...@pobox.com> wrote:
> > Most compatible thing is probably to let it include the images/text form
> > as-is, then make sure MathJax goes over and replaces them in-place. It
> > might need tweaks to understand the images (source in alt text).
> >
> You may want to do a quick check for MathJax support in a script in
> the <head> (which executes before the browser renders the page) which
> then adds some CSS that ensures the images aren't loaded but the space
> is still reserved (something like visibility: hidden; on the image).
>

I've started on integrating some of User:Nageh's customizations for the
loader & configuration, which includes special support to find the latex
source bits as we label them with 'tex' class and replace them in-place.

It should be possible to tweak that a bit further so that the image forms
can also get detected and transformed (since the source is on the alt text,
we can use that).

This last update also bundles the MathJax source (Apache license) with the
extension, minus the 112 megabytes of PNG "font" fallbacks. We'll have to
check whether we actually need to be able to use those images for some
browsers or something...

-- brion
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to