> We have an optional sage package for the
> image fonts that is easy to install.  You're right, we decided to not
> make it standard because of the size.

OK, sounds good.

> Currently, if the jsmath image fonts are not installed, we add the
> following code to the header of the page:
>
> <script type="text/javascript"
> src="/javascript/jsmath/plugins/noImageFonts.js"></script>
>
> and then later, we have:
>
> <script src="/javascript/jsmath/jsMath.js" type="text/javascript">
>
> Should the order of these lines be reversed?

Yes, that looks correct.  I'm not sure why people are getting the
error -7 under these conditions.  It means that something has gone
wrong when trying to load the fallback method, and that usually means
it can't read the image font definition files.  There are a couple of
other possibilities as well:  perhaps the noImageFonts plugin was not
able to be read (permission issue?) or the unicode fallback file could
not be read.  Given your use of noImageFonts, I suspect it may be the
latter.  If the users who are getting error -7 are using Firefox3,
that may well be it.  There were changes to the same-origin security
policy in Firefox3 that prevent jsMath from loading local files from
directories other than the one in which the HTML file is found.  I
worked around this in jsMath v3.6 (released Sept. 2008), so those
users should update to the latest version of jsMath to avoid that
problem.

> I'm pretty sure we don't use the easy/load.js (and I'm not sure why).

Probably because it didn't exist when jsMath support was added to
sage.  The easy/load.js file was a relatively late addition to jsMath,
but certainly makes things easier for people.  You might consider
whether you want to use that instead.

> For references on the optional spkg, see the discussion from
>
> http://groups.google.com/group/sage-support/browse_thread/thread/e186...

Thanks, I was part of that discussion.  :-)

Davide
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to