Changes between Initial Version and Version 14 of Ticket #4714


Ignore:
Timestamp:
10/24/09 19:09:46 (11 years ago)
Author:
mpatel
Comment:

Note: With Jinja2 (cf. #7269, #7249), we can instead use, e.g.,

    macros: {
       {{ jsmath_macros|join(',\n') }}
    },

in jsmath.js (cf. #6673).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4714

    • Property Status changed from new to needs_review
    • Property Authors changed from to Mitesh Patel
    • Property Cc jhpalmieri added
    • Property Summary changed from use easy/load.js when loading jsmath to use easy/load.js when loading jsmath in the notebook
  • Ticket #4714 – Description

    initial v14  
    1 From http://groups.google.com/group/sage-support/t/178d0bd277044918
     1The patch
    22
    3 {{{
    4 Yes, that looks correct.  I'm not sure why people are getting the
    5 error -7 under these conditions.  It means that something has gone
    6 wrong when trying to load the fallback method, and that usually means
    7 it can't read the image font definition files.  There are a couple of
    8 other possibilities as well:  perhaps the noImageFonts plugin was not
    9 able to be read (permission issue?) or the unicode fallback file could
    10 not be read.  Given your use of noImageFonts, I suspect it may be the
    11 latter.  If the users who are getting error -7 are using Firefox3,
    12 that may well be it.  There were changes to the same-origin security
    13 policy in Firefox3 that prevent jsMath from loading local files from
    14 directories other than the one in which the HTML file is found.  I
    15 worked around this in jsMath v3.6 (released Sept. 2008), so those
    16 users should update to the latest version of jsMath to avoid that
    17 problem.
    18 > I'm pretty sure we don't use the easy/load.js (and I'm not sure why).
     3 * [attachment:trac_4714-sagenb_jsmath_init.patch]
    194
    20 Probably because it didn't exist when jsMath support was added to
    21 sage.  The easy/load.js file was a relatively late addition to jsMath,
    22 but certainly makes things easier for people.  You might consider
    23 whether you want to use that instead.
     5consolidates jsMath setup in `/javascript/jsmath.js`. It depends on #6673.  It hard-codes the jsMath macros in `sagenb.misc.misc`, for now.
    246
    25 Davide
     7A quicker fix for shipping Sage 4.2 is this patch:
     8
     9 * [attachment:trac_4714-sagenb_hard_code_macros.patch]
     10
     11It does only the hard-coding, so it does not depend on #6673.