[sage-support] Re: jsmath fonts bafflement
OK, thanks for the detailed description of what is happening. Now this makes me think that this IS a jsMath bug, and not an improper image font installation. If the image fonts are working in Firefox, then they are installed properly. The error you are getting about jsMath thinking that you are trying to load jsMath from a different server is the key, here. It is not able to load ANY of its extra files (including things like the control panel, and IS-specific customization files) because jsMath is confused about where it was loaded from. What I suspect is the problem is that the port number is confusing jsMath in IE. Every browser except IE normalizes URL's so that they include the protocol, host, port number, etc, so when jsMath looks to see where it was loaded from so that it can load additional files, that information is all right there. But in IE, the URL is left as it is originally in the HTML file, so jsMath must reconstruct it itself. It looks like it is leaving out the port number, and so jsMath is looking for its components in the wrong place, and so not finding them. As an experiment, if you could insert the lines script jsMath.Autoload = {root: https://99.240.209.8:8000/} /script to the font test HTML file just before the script tag where jsMath.js is loaded, and then see if that makes it work in IE7, that would tell us if this is really the problem. In the meanwhile, I will work on that part of the jsMath code and get it to include the port number. Davide On Apr 20, 11:15 am, Kevin Horton khorto...@rogers.com wrote: On 20 Apr 2009, at 10:16, Jason Grout wrote: dpvc wrote: By works correctly, I mean that Firefox displays the nicely rendered equations, while IE only displays raw latex code. OK, thanks for the clarification. I had misunderstood. In Firefox, can you click on the jsMath button in the lower right and tell me what font mode is reported next to the jsMath version number? For some reason, the fall back to image fonts is not working for me, using my sage server on OS X, and viewing the worksheet on a PC running IE7. I don't know if there is a problem with the image font installation in sage, a jsMath problem, or an IE problem. But, as long as Firefox will work, I am happy, and feel no need to spend more time on this issue. But, if you think there could be a jsMath bug that you want to investigate, I would be happy to help out. I suspect it is probably an installation problem with the image fonts. In any case, I'm happy not to spend any more time on it myself. If an installation problem is the conclusion, then I'd like to spend at least a bit more of my time on it, as it would clearly be a Sage problem then. It seems funny to me that it would work in one browser, but not another. I think Davide's suggestion above (look at the font mode and jsmath version number for both IE and Firefox) might help pinpoint the problem. Do you see the same problem with sagenb.org? That server has the image fonts installed as well. When I attempt to load a worksheet from my server with IE7, I get a dialog In order for jsMath to be able to load the additional components that it may need, the jsMath.js file must be loaded from a server in the same domain as the page that contains it. Because that is not the case for this page, the mathematics displayed here may not appear correctly. When I view worksheets in IE, I see raw latex where I should see rendered latex. In IE, nothing happens when I click on the jsMath button at the bottom right - i.e. I cannot open the jsMath control panel. Also note that the jsMath button is only seen when I scroll all the way to the end of the worksheet, unlike with other browsers where it is always visible at the bottom right of the screen. I assume IE is not properly rendering this element. In Firefox, no jsMath font dialogs appear, and the latex code is rendered. The font mode is shown as Image symbol fonts, and the jsMath version is 3.6a. At sabenb.org, I get no jsMath font warnings in IE. Initially, I see raw latex, but eventually it is replaced with properly rendered latex. The control panel shows the font mode as Image symbol fonts. I viewed my server again in IE, and had the same problems that I reported above. I conclude that I have a problem with the image font installation on my server. But I have no idea how to troubleshoot it. For info, my public worksheets are athttps://99.240.209.8:8000/pub/ -- Kevin Horton Ottawa, Canada --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org
[sage-support] Re: jsmath fonts bafflement
On 21 Apr 2009, at 06:53, dpvc wrote: As an experiment, if you could insert the lines script jsMath.Autoload = {root: https://99.240.209.8:8000/} /script to the font test HTML file just before the script tag where jsMath.js is loaded, and then see if that makes it work in IE7, that would tell us if this is really the problem. I need some help deciphering how to do this. I am very new to sage, and have not yet dug too deep into the underpinnings. I can't find an html file for my font test worksheet. Looking at the text file that appears to define the worksheet, I don't see any script tags. I tried adding those script lines directly before the first cell, and in the first cell that appears to call for jsMath fonts, and at the very start of the file, but neither change made any difference in IE. But, if I look at the Font test page html source in my browser, I see that even if I add your script at the very start of the worksheet file, the script is loaded well _after_ jsMath.js is loaded. I clearly have not accomplished your request. Maybe I need to test a temporary modification to jsMath.js, but I do not know javascript, so I don't know what changes to make. Or maybe I need to temporarily modify whatever code creates the html headers for worksheets, but I have not yet found where that code is. -- Kevin Horton Ottawa, Canada --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
OK, from the testing that I've done, it looks like this is, indeed, the problem, and you won't have to do the testing that I suggested. It turns out that this problem was fixed in version 3.6b of jsMath, and you are running 3.6a, so if you download the latest version of jsMath and replace the copy at javascript_local/jsmath on your site, it should take care of the problem. When you unpack the new jsMath, move the fonts folder from the old one to the new one before replacing the old copy, or you will loss the image fonts that you have installed. You can get the new jsMath from http://sourceforge.net/project/showfiles.php?group_id=172663 Hope that clears up your problem. Davide --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
dpvc wrote: OK, from the testing that I've done, it looks like this is, indeed, the problem, and you won't have to do the testing that I suggested. It turns out that this problem was fixed in version 3.6b of jsMath, and you are running 3.6a, so if you download the latest version of jsMath and replace the copy at javascript_local/jsmath on your site, it should take care of the problem. When you unpack the new jsMath, move the fonts folder from the old one to the new one before replacing the old copy, or you will loss the image fonts that you have installed. You can get the new jsMath from http://sourceforge.net/project/showfiles.php?group_id=172663 Hope that clears up your problem. Alternatively, you could install the updated spkg that will be in the next release of Sage. You can find it at: http://sage.math.washington.edu/home/jason/jsmath-3.6b.p1.spkg (see http://trac.sagemath.org/sage_trac/ticket/5611 ) Or you could just wait a few days for the next release of Sage to be out, which will include this update. Thanks, Jason -- Jason Grout --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
Kevin Horton wrote: On 21 Apr 2009, at 11:38, Jason Grout wrote: dpvc wrote: OK, from the testing that I've done, it looks like this is, indeed, the problem, and you won't have to do the testing that I suggested. It turns out that this problem was fixed in version 3.6b of jsMath, and you are running 3.6a, so if you download the latest version of jsMath and replace the copy at javascript_local/jsmath on your site, it should take care of the problem. When you unpack the new jsMath, move the fonts folder from the old one to the new one before replacing the old copy, or you will loss the image fonts that you have installed. You can get the new jsMath from http://sourceforge.net/project/showfiles.php?group_id=172663 Hope that clears up your problem. Alternatively, you could install the updated spkg that will be in the next release of Sage. You can find it at: http://sage.math.washington.edu/home/jason/jsmath-3.6b.p1.spkg Installing jsMath 3.6b solved my jsMath issues with IE + my server. Math is now nicely rendered. Thanks to everyone for their patience and assistance. Thanks Davide for tracking this issue down! Jason -- Jason Grout --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
By works correctly, I mean that Firefox displays the nicely rendered equations, while IE only displays raw latex code. OK, thanks for the clarification. I had misunderstood. In Firefox, can you click on the jsMath button in the lower right and tell me what font mode is reported next to the jsMath version number? For some reason, the fall back to image fonts is not working for me, using my sage server on OS X, and viewing the worksheet on a PC running IE7. I don't know if there is a problem with the image font installation in sage, a jsMath problem, or an IE problem. But, as long as Firefox will work, I am happy, and feel no need to spend more time on this issue. But, if you think there could be a jsMath bug that you want to investigate, I would be happy to help out. I suspect it is probably an installation problem with the image fonts. In any case, I'm happy not to spend any more time on it myself. Davide --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
dpvc wrote: By works correctly, I mean that Firefox displays the nicely rendered equations, while IE only displays raw latex code. OK, thanks for the clarification. I had misunderstood. In Firefox, can you click on the jsMath button in the lower right and tell me what font mode is reported next to the jsMath version number? For some reason, the fall back to image fonts is not working for me, using my sage server on OS X, and viewing the worksheet on a PC running IE7. I don't know if there is a problem with the image font installation in sage, a jsMath problem, or an IE problem. But, as long as Firefox will work, I am happy, and feel no need to spend more time on this issue. But, if you think there could be a jsMath bug that you want to investigate, I would be happy to help out. I suspect it is probably an installation problem with the image fonts. In any case, I'm happy not to spend any more time on it myself. If an installation problem is the conclusion, then I'd like to spend at least a bit more of my time on it, as it would clearly be a Sage problem then. It seems funny to me that it would work in one browser, but not another. I think Davide's suggestion above (look at the font mode and jsmath version number for both IE and Firefox) might help pinpoint the problem. Do you see the same problem with sagenb.org? That server has the image fonts installed as well. Thanks, Jason -- Jason Grout --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
On 20 Apr 2009, at 10:16, Jason Grout wrote: dpvc wrote: By works correctly, I mean that Firefox displays the nicely rendered equations, while IE only displays raw latex code. OK, thanks for the clarification. I had misunderstood. In Firefox, can you click on the jsMath button in the lower right and tell me what font mode is reported next to the jsMath version number? For some reason, the fall back to image fonts is not working for me, using my sage server on OS X, and viewing the worksheet on a PC running IE7. I don't know if there is a problem with the image font installation in sage, a jsMath problem, or an IE problem. But, as long as Firefox will work, I am happy, and feel no need to spend more time on this issue. But, if you think there could be a jsMath bug that you want to investigate, I would be happy to help out. I suspect it is probably an installation problem with the image fonts. In any case, I'm happy not to spend any more time on it myself. If an installation problem is the conclusion, then I'd like to spend at least a bit more of my time on it, as it would clearly be a Sage problem then. It seems funny to me that it would work in one browser, but not another. I think Davide's suggestion above (look at the font mode and jsmath version number for both IE and Firefox) might help pinpoint the problem. Do you see the same problem with sagenb.org? That server has the image fonts installed as well. When I attempt to load a worksheet from my server with IE7, I get a dialog In order for jsMath to be able to load the additional components that it may need, the jsMath.js file must be loaded from a server in the same domain as the page that contains it. Because that is not the case for this page, the mathematics displayed here may not appear correctly. When I view worksheets in IE, I see raw latex where I should see rendered latex. In IE, nothing happens when I click on the jsMath button at the bottom right - i.e. I cannot open the jsMath control panel. Also note that the jsMath button is only seen when I scroll all the way to the end of the worksheet, unlike with other browsers where it is always visible at the bottom right of the screen. I assume IE is not properly rendering this element. In Firefox, no jsMath font dialogs appear, and the latex code is rendered. The font mode is shown as Image symbol fonts, and the jsMath version is 3.6a. At sabenb.org, I get no jsMath font warnings in IE. Initially, I see raw latex, but eventually it is replaced with properly rendered latex. The control panel shows the font mode as Image symbol fonts. I viewed my server again in IE, and had the same problems that I reported above. I conclude that I have a problem with the image font installation on my server. But I have no idea how to troubleshoot it. For info, my public worksheets are at https://99.240.209.8:8000/pub/ -- Kevin Horton Ottawa, Canada --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
On Mon, Apr 20, 2009 at 8:15 AM, Kevin Horton khorto...@rogers.com wrote: On 20 Apr 2009, at 10:16, Jason Grout wrote: dpvc wrote: By works correctly, I mean that Firefox displays the nicely rendered equations, while IE only displays raw latex code. OK, thanks for the clarification. I had misunderstood. In Firefox, can you click on the jsMath button in the lower right and tell me what font mode is reported next to the jsMath version number? For some reason, the fall back to image fonts is not working for me, using my sage server on OS X, and viewing the worksheet on a PC running IE7. I don't know if there is a problem with the image font installation in sage, a jsMath problem, or an IE problem. But, as long as Firefox will work, I am happy, and feel no need to spend more time on this issue. But, if you think there could be a jsMath bug that you want to investigate, I would be happy to help out. I suspect it is probably an installation problem with the image fonts. In any case, I'm happy not to spend any more time on it myself. If an installation problem is the conclusion, then I'd like to spend at least a bit more of my time on it, as it would clearly be a Sage problem then. It seems funny to me that it would work in one browser, but not another. I think Davide's suggestion above (look at the font mode and jsmath version number for both IE and Firefox) might help pinpoint the problem. Do you see the same problem with sagenb.org? That server has the image fonts installed as well. When I attempt to load a worksheet from my server with IE7, I get a dialog In order for jsMath to be able to load the additional components that it may need, the jsMath.js file must be loaded from a server in the same domain as the page that contains it. Because that is not the case for this page, the mathematics displayed here may not appear correctly. When I view worksheets in IE, I see raw latex where I should see rendered latex. In IE, nothing happens when I click on the jsMath button at the bottom right - i.e. I cannot open the jsMath control panel. Also note that the jsMath button is only seen when I scroll all the way to the end of the worksheet, unlike with other browsers where it is always visible at the bottom right of the screen. I assume IE is not properly rendering this element. In Firefox, no jsMath font dialogs appear, and the latex code is rendered. The font mode is shown as Image symbol fonts, and the jsMath version is 3.6a. At sabenb.org, I get no jsMath font warnings in IE. Initially, I see raw latex, but eventually it is replaced with properly rendered latex. The control panel shows the font mode as Image symbol fonts. That's because I installed the jsmath-image-fonts-1.3 spkg into sagenb.org's sage install. I have jsmath-image-fonts-1.3 and not jsmath-image-fonts-1.3p1 installed; that could make a difference. I'm guessing that whatever jsmath-image-fonts-1.3* you're installing is totally broken. Try typing sage -f jsmath-image-fonts-1.3 -- William I viewed my server again in IE, and had the same problems that I reported above. I conclude that I have a problem with the image font installation on my server. But I have no idea how to troubleshoot it. For info, my public worksheets are at https://99.240.209.8:8000/pub/ -- Kevin Horton Ottawa, Canada -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
William Stein wrote: That's because I installed the jsmath-image-fonts-1.3 spkg into sagenb.org's sage install. I have jsmath-image-fonts-1.3 and not jsmath-image-fonts-1.3p1 installed; that could make a difference. Really? Are you sure you have jsmath-image-fonts-1.3.spkg installed? If I recall correctly, one of the differences between jsmath-image-fonts-1.3.spkg and jsmath-image-fonts-1.3p1.spkg was where the image fonts went. However, for sagenb.org, I'm showing an image location corresponding to the new location (i.e., p1), not the old location. Thanks, Jason -- Jason Grout --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
On 20 Apr 2009, at 11:32, William Stein wrote: On Mon, Apr 20, 2009 at 8:15 AM, Kevin Horton khorto...@rogers.com wrote: On 20 Apr 2009, at 10:16, Jason Grout wrote: dpvc wrote: By works correctly, I mean that Firefox displays the nicely rendered equations, while IE only displays raw latex code. OK, thanks for the clarification. I had misunderstood. In Firefox, can you click on the jsMath button in the lower right and tell me what font mode is reported next to the jsMath version number? For some reason, the fall back to image fonts is not working for me, using my sage server on OS X, and viewing the worksheet on a PC running IE7. I don't know if there is a problem with the image font installation in sage, a jsMath problem, or an IE problem. But, as long as Firefox will work, I am happy, and feel no need to spend more time on this issue. But, if you think there could be a jsMath bug that you want to investigate, I would be happy to help out. I suspect it is probably an installation problem with the image fonts. In any case, I'm happy not to spend any more time on it myself. If an installation problem is the conclusion, then I'd like to spend at least a bit more of my time on it, as it would clearly be a Sage problem then. It seems funny to me that it would work in one browser, but not another. I think Davide's suggestion above (look at the font mode and jsmath version number for both IE and Firefox) might help pinpoint the problem. Do you see the same problem with sagenb.org? That server has the image fonts installed as well. When I attempt to load a worksheet from my server with IE7, I get a dialog In order for jsMath to be able to load the additional components that it may need, the jsMath.js file must be loaded from a server in the same domain as the page that contains it. Because that is not the case for this page, the mathematics displayed here may not appear correctly. When I view worksheets in IE, I see raw latex where I should see rendered latex. In IE, nothing happens when I click on the jsMath button at the bottom right - i.e. I cannot open the jsMath control panel. Also note that the jsMath button is only seen when I scroll all the way to the end of the worksheet, unlike with other browsers where it is always visible at the bottom right of the screen. I assume IE is not properly rendering this element. In Firefox, no jsMath font dialogs appear, and the latex code is rendered. The font mode is shown as Image symbol fonts, and the jsMath version is 3.6a. At sabenb.org, I get no jsMath font warnings in IE. Initially, I see raw latex, but eventually it is replaced with properly rendered latex. The control panel shows the font mode as Image symbol fonts. That's because I installed the jsmath-image-fonts-1.3 spkg into sagenb.org's sage install. I have jsmath-image-fonts-1.3 and not jsmath-image-fonts-1.3p1 installed; that could make a difference. I'm guessing that whatever jsmath-image-fonts-1.3* you're installing is totally broken. Try typing sage -f jsmath-image-fonts-1.3 I ran this command, which appeared to run successfully. See tail end of transcript: Finished extraction Host system uname -a: Darwin iMac.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 GCC Version gcc -v Using built-in specs. Target: i686-apple-darwin9 Configured with: /var/tmp/gcc/gcc-5490~1/src/configure --disable- checking -enable-werror --prefix=/usr --mandir=/share/man --enable- languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ $/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic -- host=i686-apple-darwin9 --target=i686-apple-darwin9 Thread model: posix gcc version 4.0.1 (Apple Inc. build 5490) Extracting and installing jsMath Image Fonts to: /Applications/sage/data/extcode/notebook/javascript/jsmath Finished installing jsMath Image Fonts. real0m18.726s user0m1.417s sys 0m3.278s Successfully installed jsmath-image-fonts-1.3 Now cleaning up tmp files. Making Sage/Python scripts relocatable... Making script relocatable Finished installing jsmath-image-fonts-1.3.spkg I restarted sage, and the PC with the problem, but the problems in IE remain the same as before. One small clarification to what I reported earlier: I reported that in IE7, a click on the jsMath button does not bring up the jsMath control panel. This is true when connected to my server. But, the jsMath button does work correctly when connected to sagenb.org. Perhaps this is a more
[sage-support] Re: jsmath fonts bafflement
Kevin Horton wrote: I am happy with the workaround of using Firefox, so this is only worth working on if it may represent a bug, or a problem with the installation instructions, etc. Given that things work fine on sagenb.org, I'll not spend more time on this, as it sounds like something specific to your server, for some reason. If other people report problems, we can revisit the issue. Thanks, Jason -- Jason Grout --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
I do not think it is a jsMath bug. If I understand you, by works correctly you mean that Firefox doesn't show the font warning message (while IE7 does, which you consider not working correctly). You have tried several means of installing the jsMath image fonts as a solution to this problem. The jsMath font warning message actually has nothing to do with whether the image fonts are installed or not. It has to do with whether the user who is reading your page has the jsMath TTF fonts installed on their computer or not. If they don't, the message will appear and jsMath will fall back on the image fonts. (If you don't have the image fonts installed, then jsMath would report the infamous -7 error during startup). It turns out that jsMath used to use a different set of TTF fonts that where created by BaKoMa for use with TeX installations, but they ended up being problematic, so I made jsMath-specific TTF fonts to get around those problems. Under some circumstances, however, jsMath can still make use of the older BaKoMa fonts, and so if these are available, it will use them rather than the image fonts. That is probably what is happening for your Firefox, as the BaKoMa fonts are used by Firefox as part of its MathML implementation, so you probably have them for that, whereas your IE7 users don't have them installed. (I'm not sure what fonts the MathPlayer plugin for MathML in IE requires.) In any case, the way to eliminate the font warning message is to install the necessary fonts on the users machine (not install image fonts on the server, which you should do anyway). If you really want to remove the font warning message even when the user doesn't have the fonts, you can change the showFontWarnings setting to 0 in the jsMath/easy/load.js file that you are using. The font warning message is there so that your users can tell that they would have a better experience of your page if they installed the fonts. It is actually an indication of jsMath working CORRECTLY, not an error. When the message is issued, jsMath should continue to work, but will use the image fonts rather than native fonts, which produces somewhat poorer quality rendering, doesn't rescale if you change the font sizes, and doesn't print well. If you remove the warning, the users will never know that they could have better rendering and better printing. Davide On Apr 18, 7:48 pm, Jason Grout jason-s...@creativetrax.com wrote: Kevin Horton wrote: I have made some progress in that I discovered that Firefox 3 works correctly on my work PC. It is only IE 7 that has the problems. I can live with this, so I will not invest any more time on this issue, unless someone wants my assistance to try to beat this bug to death. This sounds like it might be a jsmath bug. Davide (the author) at least occasionally reads this list. He might ask for more details, or he might already know what is going on. I am curious, though: when you click on the jsmath icon in the lower right, a panel pops up and says what types of fonts jsmath is using. Is it using the image fonts? Thanks, Jason Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
On 19 Apr 2009, at 06:54, dpvc wrote: I do not think it is a jsMath bug. If I understand you, by works correctly you mean that Firefox doesn't show the font warning message (while IE7 does, which you consider not working correctly). You have tried several means of installing the jsMath image fonts as a solution to this problem. By works correctly, I mean that Firefox displays the nicely rendered equations, while IE only displays raw latex code. The jsMath font warning message actually has nothing to do with whether the image fonts are installed or not. It has to do with whether the user who is reading your page has the jsMath TTF fonts installed on their computer or not. If they don't, the message will appear and jsMath will fall back on the image fonts. (If you don't have the image fonts installed, then jsMath would report the infamous -7 error during startup). For some reason, the fall back to image fonts is not working for me, using my sage server on OS X, and viewing the worksheet on a PC running IE7. I don't know if there is a problem with the image font installation in sage, a jsMath problem, or an IE problem. But, as long as Firefox will work, I am happy, and feel no need to spend more time on this issue. But, if you think there could be a jsMath bug that you want to investigate, I would be happy to help out. It turns out that jsMath used to use a different set of TTF fonts that where created by BaKoMa for use with TeX installations, but they ended up being problematic, so I made jsMath-specific TTF fonts to get around those problems. Under some circumstances, however, jsMath can still make use of the older BaKoMa fonts, and so if these are available, it will use them rather than the image fonts. That is probably what is happening for your Firefox, as the BaKoMa fonts are used by Firefox as part of its MathML implementation, so you probably have them for that, whereas your IE7 users don't have them installed. (I'm not sure what fonts the MathPlayer plugin for MathML in IE requires.) Thanks for the explanation. Kevin On Apr 18, 7:48 pm, Jason Grout jason-s...@creativetrax.com wrote: Kevin Horton wrote: I have made some progress in that I discovered that Firefox 3 works correctly on my work PC. It is only IE 7 that has the problems. I can live with this, so I will not invest any more time on this issue, unless someone wants my assistance to try to beat this bug to death. This sounds like it might be a jsmath bug. Davide (the author) at least occasionally reads this list. He might ask for more details, or he might already know what is going on. I am curious, though: when you click on the jsmath icon in the lower right, a panel pops up and says what types of fonts jsmath is using. Is it using the image fonts? Thanks, Jason Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
Kevin Horton wrote: I am running sage 3.4 on OS X. I get the well known jsmath fonts messages when I try to view a notebook worksheet from my work computer. Our work PCs are so locked down that I cannot install additional fonts there, so I need to address this on the server end. I have spent hours reading the docs, messages and trac entries info about jsmath fonts, but I haven't found a solution yet. I tried manually installing the 80 MB of jsmath image fonts on the sage server. That didn't do it. I then tried: sage -i jsmath-3.6a.p0, but that did nothing, as it claimed the fonts were already installed. I tried sage -f jsmath-3.6a.p0 - that at least claimed to install the fonts. I restarted sage, and rebooted the work PC, but I still got the jsmath warnings, and ugly latex output. I then tried, inside sage: install_package('jsmath-image- fonts-1.3p1') I restarted sage, and rebooted the work PC, but I still got the jsmath warnings, and ugly latex output. What else should I try? Other than this small issue, sage is wonderful. Try (from the command line): sage -f jsmath-image-fonts-1.3p1 and (if that doesn't fix the problem), post the output to the above command in a message here. There may be a problem with you getting the jsmath-image-fonts spkg. Thanks, Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
On 18 Apr 2009, at 04:29, Jason Grout wrote: Kevin Horton wrote: I am running sage 3.4 on OS X. I get the well known jsmath fonts messages when I try to view a notebook worksheet from my work computer. Our work PCs are so locked down that I cannot install additional fonts there, so I need to address this on the server end. I have spent hours reading the docs, messages and trac entries info about jsmath fonts, but I haven't found a solution yet. I tried manually installing the 80 MB of jsmath image fonts on the sage server. That didn't do it. I then tried: sage -i jsmath-3.6a.p0, but that did nothing, as it claimed the fonts were already installed. I tried sage -f jsmath-3.6a.p0 - that at least claimed to install the fonts. I restarted sage, and rebooted the work PC, but I still got the jsmath warnings, and ugly latex output. I then tried, inside sage: install_package('jsmath-image- fonts-1.3p1') I restarted sage, and rebooted the work PC, but I still got the jsmath warnings, and ugly latex output. What else should I try? Other than this small issue, sage is wonderful. Try (from the command line): sage -f jsmath-image-fonts-1.3p1 and (if that doesn't fix the problem), post the output to the above command in a message here. There may be a problem with you getting the jsmath-image-fonts spkg. sage -f jsmath-image-fonts-1.3p1 appears to finish without error. It produces: Force installing jsmath-image-fonts-1.3p1 Calling sage-spkg on jsmath-image-fonts-1.3p1 You must set the SAGE_ROOT environment variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory. jsmath-image-fonts-1.3p1 Machine: Darwin iMac.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 Deleting directories from past builds of previous/current versions of jsmath-image-fonts-1.3p1 Extracting package /Applications/sage/spkg/optional/jsmath-image- fonts-1.3p1.spkg ... -rw-r--r-- 1 X admin 3169034 Apr 17 18:13 /Applications/sage/ spkg/optional/jsmath-image-fonts-1.3p1.spkg jsmath-image-fonts-1.3p1/ jsmath-image-fonts-1.3p1/.hgignore jsmath-image-fonts-1.3p1/src/ jsmath-image-fonts-1.3p1/src/fonts/ jsmath-image-fonts-1.3p1/src/fonts/cmsy10/ jsmath-image-fonts-1.3p1/src/fonts/cmsy10/alpha/ jsmath-image-fonts-1.3p1/src/fonts/cmsy10/alpha/249/ jsmath-image-fonts-1.3p1/src/fonts/cmsy10/alpha/249/char59.png ... ... many thousand lines of output skipped ... ... jsmath-image-fonts-1.3p1/spkg-install jsmath-image-fonts-1.3p1/SPKG.txt Finished extraction Host system uname -a: Darwin iMac.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 GCC Version gcc -v Using built-in specs. Target: i686-apple-darwin9 Configured with: /var/tmp/gcc/gcc-5490~1/src/configure --disable- checking -enable-werror --prefix=/usr --mandir=/share/man --enable- languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ $/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic -- host=i686-apple-darwin9 --target=i686-apple-darwin9 Thread model: posix gcc version 4.0.1 (Apple Inc. build 5490) deleting old jsMath fonts Installing jsMath Image Fonts to: /Applications/sage/local/notebook/javascript/jsmath Finished installing jsMath Image Fonts. real0m22.850s user0m0.474s sys 0m4.182s Successfully installed jsmath-image-fonts-1.3p1 Now cleaning up tmp files. Making Sage/Python scripts relocatable... Making script relocatable Finished installing jsmath-image-fonts-1.3p1.spkg == I restarted sage, and the notebook, but the jsmath font display problem persists. I have made some progress in that I discovered that Firefox 3 works correctly on my work PC. It is only IE 7 that has the problems. I can live with this, so I will not invest any more time on this issue, unless someone wants my assistance to try to beat this bug to death. -- Kevin Horton Ottawa, Canada --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
On 18 Apr 2009, at 00:59, Adam Webb wrote: On Apr 18, 12:35 am, Kevin Horton khorto...@rogers.com wrote: I am running sage 3.4 on OS X. I get the well known jsmath fonts messages when I try to view a notebook worksheet from my work computer. Our work PCs are so locked down that I cannot install additional fonts there, so I need to address this on the server end. What else should I try? Other than this small issue, sage is wonderful. Kevin Horton Hi, What worked for me was to download a jsMath font from http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html and install the fonts into my ~/.fonts directory. I find that this is often the easiest way to install fonts and of course does not need root permission. Thanks for the suggestion, but I also want to be able to point other PC users at my published sage worksheets. I don't want to force them to manually install fonts. I have discovered that Firefox works fine - it is only IE7 that has the problem. I suspect most of the people who I wish to show my worksheets to already have Firefox installed, so I will not invest any more time on this issue. -- Kevin Horton Ottawa, Canada --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
Kevin Horton wrote: I have made some progress in that I discovered that Firefox 3 works correctly on my work PC. It is only IE 7 that has the problems. I can live with this, so I will not invest any more time on this issue, unless someone wants my assistance to try to beat this bug to death. This sounds like it might be a jsmath bug. Davide (the author) at least occasionally reads this list. He might ask for more details, or he might already know what is going on. I am curious, though: when you click on the jsmath icon in the lower right, a panel pops up and says what types of fonts jsmath is using. Is it using the image fonts? Thanks, Jason Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsmath fonts bafflement
On Apr 18, 12:35 am, Kevin Horton khorto...@rogers.com wrote: I am running sage 3.4 on OS X. I get the well known jsmath fonts messages when I try to view a notebook worksheet from my work computer. Our work PCs are so locked down that I cannot install additional fonts there, so I need to address this on the server end. What else should I try? Other than this small issue, sage is wonderful. Kevin Horton Hi, What worked for me was to download a jsMath font from http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html and install the fonts into my ~/.fonts directory. I find that this is often the easiest way to install fonts and of course does not need root permission. Cheers, Adam --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---