Opened 13 years ago
Closed 13 years ago
#6483 closed defect (invalid)
jsmath font broken in Firefox 3.5 on Linux
Reported by: | mpatel | Owned by: | boothby |
---|---|---|---|
Priority: | minor | Milestone: | sage-duplicate/invalid/wontfix |
Component: | notebook | Keywords: | |
Cc: | was | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | Work issues: | ||
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
In Firefox 3.5 on Linux, jsMath's cmmi10
font appears to be decoded improperly. Try this test. Other fonts seem fine.
See sage-devel for more.
Attachments (2)
Change History (11)
Changed 13 years ago by
comment:1 Changed 13 years ago by
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
, replacehead += '<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!
comment:2 follow-up: ↓ 3 Changed 13 years ago by
Note: This approach substitutes the font cmmi10
for jsMath-cmmi10
, which, for some reason, Firefox 3.5 is unable to decode properly. It may help to check the system for cmmi10.ttf
. The relevant Fedora 10 package is mathml-fonts
.
Some Unicode links:
comment:3 in reply to: ↑ 2 Changed 13 years ago by
That should be UTF-8 conversion tool.
comment:4 Changed 13 years ago by
Davide has updated his fonts at http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html to include a special one from Firefox 3.5 on Linux. I've been using his special font, and it seems to work great.
comment:5 Changed 13 years ago by
I've also asked Davide of his opinion of this workaround, as compared to downloading the new font he created. I'll post here what he says if he does not post directly to sage-devel.
comment:6 Changed 13 years ago by
Using the new font, I think, is a much better solution. I view the workaround mainly as a byproduct of trying to learn a bit more about how jsMath works. Its modular design and lazy-loading feature, in particular, could be useful examples for other projects. Then again, I'm more of a library user than a writer.
Please feel free to close this ticket.
comment:7 Changed 13 years ago by
- Cc was added
- Milestone set to sage-4.1.1
Can someone invalidate this ticket? I apparently don't have permissions to close it.
comment:8 Changed 13 years ago by
- Summary changed from jsmath font broken in Firefox 3.5 on Linux to [invalid, should be closed] jsmath font broken in Firefox 3.5 on Linux
comment:9 Changed 13 years ago by
- Milestone changed from sage-4.1.2 to sage-duplicate/invalid/wontfix
- Resolution set to invalid
- Status changed from new to closed
- Summary changed from [invalid, should be closed] jsmath font broken in Firefox 3.5 on Linux to jsmath font broken in Firefox 3.5 on Linux
Closing this as invalid. Use the latest jsMath fonts from http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html.
$SAGE_ROOT/local/notebook/javascript/jsmath/cmmi10.js