jsMath.Font.Load("eusm10");
and (I think)
jsMath.Parser = {prototype:{macros: {mathcal: ['Macro','{\\eusm #1}',1]}}};
but you'd need to do this before jsMath.Process(document) is executed.
]]>
"Client-side" means "Anton doesn't do anything".
]]>What's wrong with CMcal?
]]>Even if speed were not an issue, it would pain me to see somebody asking a question using eucal and somebody else responding with mathcal. I still can't come up with any good reason to support multiple calligraphic fonts.
]]>You can download the opentype or truetype fonts directly to your computer, in which case, it is not an issue!
Yes, I know that I can do that. But only die-hards like those that frequent these metaphoric meeting halls are going to both know that they can do that and be bothered to do it. I'm concerned about those who encounter MO for the first time, possibly over a slow connection, and find that it takes a loooooonnnnnnggggggg time to see anything.
]]>I would like to point out a danger of having two calligraphic fonts available. That is, that while it is unlikely that one person will use both, there is usually more than one person involved in what's on a page. So all it takes is for one person to use one font and another to use the other and you've got both being downloaded.
(Incidentally, when the fonts download, do they download the whole font set or just the characters being used?)
]]>I don't really believe either one of them right now. For the first one, I think it would be bad form to use multiple calligraphic fonts in the same post (after all, if it turns out to cause speed issues, we'll probably make them all synonymous, making such a post very difficult to understand), and I don't see why somebody would really want to use one and not another. For the second, I'd like to have a test I can perform that gives me reproducible numbers (or at least a reproducible difference or ratio).
]]>However, you can be pretty sure that I'm going to stick around MO for a while even if jsMath proves such a pain. But it's not me that you should be worrying about: it's the ones who come for the first time, find that it takes half an hour (yeah, yeah) to load even the first page, and go away again.
]]>(Really, all the conversion should be done server-side but that's not possible with the current software so I'm not going to shout about that. I only mention it now because I've been hacking together some MathML-generation scripts and it's on my mind.)
(Oh, and I loathe tex files that start like that. At the very least, they ought to use a loop command to define all the commands in one go.)
Anton, I'll see what I can do when I get back to Norway. I'm currently in Brazil on an extremely buggy and slow connection via a hotel wireless network (at least, I hope it's the hotel's network. If next time I answer a question then I appear to be in the Antarctic then you'll know that it wasn't the hotel's network and someone's stolen my id) so these issues are even more important!
Being away from my desk and trying to do mathematics over slow connections and via non-university subscribers has reminded me that places like MO have extra value because they are completely open. The only bar to joining in is understanding the mathematics: there's no subscription or limitation on who can ask or answer. Let's not get rid of that by putting in loads of stuff to download which is fine for those in the US with super-duper connections, but makes it next to impossible to use for those with more shaky infrastructure.
]]>I'm currently on a slow connection in Brazil and it is painful how long it takes an MO page to load.
]]>