(1) If one wants to disable the font message, comment out (with /* */) line 253
of SAGE_ROOT/devel/sage/sage/server/notebook/js.py and do "sage -br":
/* jsMath = {Font: {Message: function () {}}} */
I do not think this should be the default in Sage. However, a nicer error
message would be good, which provides a link to a _local_ download page
for the jsmath fonts, which is much easier to understand and follow than
the official jsmath page.
(2) Any typesetting in the notebook basically looks like crap without the jsmath
fonts, so it would be bad to encourage people to completely remove the warning
message.
(3) The fonts are tiny (120KB) and fairly easy to install:
http://www.math.union.edu/~dpvc/jsmath/download/jsMath-fonts.html
-- William
And where should they be installed? I can't work out where the
notebook server expects to find them.
I thought they were included as part of the Sage distribution, anyway?
Bill
--
+---------------------------------------+
| Bill Purvis, Amateur Mathematician |
| email: b...@beeb.net |
| http://bil.members.beeb.net |
+---------------------------------------+
They say unpack them in the server tree. I know where my Apache server
keeps things, and I've installed them in there.
Where is the server tree for the notebook server?
??! There is nothing about "server trees" here:
http://www.math.union.edu/~dpvc/jsmath/download/jsMath-fonts.html
You just download a 120KB zipped font file, extract it and install it
as explained there.
It has nothing whatever to do with servers.
> Where is the server tree for the notebook server?
The fonts are installed in the computer that is running the browser,
not the one that is running the Sage server :-) The idea is that the
browser loads the fonts from the hard drive that it was launched from
when it visits a web page that uses jsMath. For example, here is a
web page that uses jsMath and it will also show the warning message if
your system does not have the fonts installed:
http://www.math.union.edu/~dpvc/jsmath/examples/TeXbook16.html
Ted
Sage (the SERVER) actually does *not* include the 80MB jsMath Image Fonts.
I made the decision not to include them a long time ago, mostly because of disk
space and configuration issues, and it hasn't been revisited yet.
> These are what get used if the browser
> doesn't have access to the jsMath TeX fonts described above; that is,
> when you see the font warning message, it is these image fonts that
> jsMath falls back on.
Actually since Sage does not include those fonts, the fallback math
typesetting is currently using unicode.
> A normal user doesn't have to worry about the jsMath image fonts, only
> the jsMath TeX fonts, but since you are really running a jsMath server
> locally, sage users do have to have (and understand) both.
I don't think we have to have both, since in fact we don't have both.
> > And where should they be installed? I can't work out where the
> > notebook server expects to find them.
>
> The jsMath TeX fonts are installed in the place that all other fonts
> go on your system (e.g., in the Fonts control panel under Windows, or
> ~/Library/Fonts on Mac OS X, or ~/.fonts on linux).
>
> The jsMath image fonts are unpacked into the jsMath source directory
> (somewhere inside the sage directories, I assume), and that is
Presumably here:
SAGE_ROOT/data/extcode/javascript/jsmath/
> documented on the author's download page of the jsMath website. But
> you should not be having to deal with that, as I suspect the sage
> distribution already includes these image font files in the correct
> place.
We don't due to size issues, as mentioned above.
William
I guess we have been somehow talking at cross purposes here.
I'll check further to see if there's something gone adrift.
This is not about installing TeX fonts which are on your system anyways.
Jsmath is a javascript implementation of TeX that runs in a web browser.
It requires its own version of the tex fonts, which are that 120KB zipped
file mentioned above. It certainly does not make use of fonts that come
with, e.g., the teTex tex install.
> I guess we have been somehow talking at cross purposes here.
>
> I'll check further to see if there's something gone adrift.
>
>
> Bill
> --
> +---------------------------------------+
> | Bill Purvis, Amateur Mathematician |
> | email: b...@beeb.net |
> | http://bil.members.beeb.net |
> +---------------------------------------+
>
> >
>
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org
I agree with that. When one clicks the print button in the notebook it should
render the html with jsmath but with no warning at all. I've made this
trac #1950:
http://trac.sagemath.org/sage_trac/ticket/1950
William
Davide,
What is the current status of your sprite fonts plugin? That seems like
that would address the size issues. Also, what is the possibility that
we could automagically extract the character images on the server side
and send those, so that from the client, it would appear as if the
original image fonts plugin was loaded.
Thanks,
Jason
You've convinced me. We'll make an optional spkg that people can
install on servers to enable this functionality:
http://trac.sagemath.org/sage_trac/ticket/1971
William