#6483: jsmath font broken in Firefox 3.5 on Linux
----------------------+-----------------------------------------------------
 Reporter:  mpatel    |       Owner:  boothby
     Type:  defect    |      Status:  new    
 Priority:  minor     |   Milestone:         
Component:  notebook  |    Keywords:         
 Reviewer:            |      Author:         
   Merged:            |  
----------------------+-----------------------------------------------------

Comment(by mpatel):

 I've attached a preliminary workaround.  Suggested directions:

  * Save `cmmi10.js` as
 `$SAGE_ROOT/local/notebook/javascript/jsmath/cmmi10.js`
  * Around line 1750 of
 `$SAGE_ROOT/devel/sage/sage/server/notebook/notebook.py`, replace
 {{{
             head += '<script type="text/javascript"
 src="/javascript_local/jsmath/jsMath.js"></script>\n'
 }}}
 with
 {{{
             head += '<script type="text/javascript"
 src="/javascript_local/jsmath/jsMath.js"></script>\n'
             head += '<script type="text/javascript">jsMath.Setup.UserEvent
 ["pre-font"] = function () { jsMath.Setup.Script("cmmi10.js");
 };</script>\n'
 }}}
  * `sage -br`
  * Optional tests: Load and execute `cmmi10.txt` as a worksheet in the
 notebook.

 This seems to work for me, but I haven't accounted for every character.
 Feel free to improve the code or tests!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6483#comment:1>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to