jsMath and Scorm Module

Re: jsMath and Scorm Module

by Davide Cervone -
Number of replies: 0
Well, there are some issues with that. The main one is that the default fallback method of displaying the mathematics for users who don't have the TeX fonts installed is to use "fonts" that are made of images of each character in the font. There is an image for each character in each font in each size, and that makes for a lot of small images (on the order of 20,000). It would be impractical to include them all in the SCORM file.

There is an alternative, which is to use jsMath's secondary fallback method of unicode fonts, but the results are far less satisfying. If you want to go that route, you need to set the noImageFonts value to 1 in the easy/load.js file. If you do that, you don't have to include the fonts directory in your SCORM, but you should include the rest of the jsMath directory other than the uncompressed and test directories. You can leave out any extensions and plugins that you are not using, but you probably need autoload.js and tex2math, and of course noImageFonts.js.

Without the image fonts, the user will have a much better experience if they install the TeX fonts on their computers, so you should encourage that. One way would be to re-enable the missing-font warnings (despite my admonitions to the contrary, most people turn these off, and so prevent their users from realizing that there is a better possibility, and also add the extra load of transferring all those image files onto their server).

An alternative would be to use jsMath's experimental sprite image fonts, which have only one image for each font in each size, which is an improvement, but may still be too large for most people. It would be possible to reduce the number of different sizes that are available, but that would require some careful customization. If you were careful about the mathematics used, you could probably drop the bold and italic fonts, and that would cut things down by 1/3 as well.

In any case, see the author's documentation on the jsMath web site at

http://www.math.union.edu/locate/jsMath

for more details about the noImageFonts plugin and configuring jsMath in general.

Davide