New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MathML Font Settings doesn't (yet?) support SeaMonkey #27

Closed
tonymec opened this Issue Oct 12, 2014 · 8 comments

Comments

Projects
None yet
2 participants
@tonymec

tonymec commented Oct 12, 2014

IMHO the MathML Font Settings extension ought to support SeaMonkey.

The "Add-on Converter" site (see http://forums.mozillazine.org/viewtopic.php?f=40&t=2834855 and http://addonconverter.fotokraina.com/ ) might help, but I don't know if it will be enough.

See also https://developer.mozilla.org/en-US/Add-ons/SeaMonkey_2 about writing extensions for SeaMonkey (and the differences compared to Firefox and Thunderbird).

@tonymec tonymec changed the title from SeaMonkey isn't (yet?) supported to MathML Font Settings doesn't (yet?) support SeaMonkey Oct 12, 2014

@fred-wang

This comment has been minimized.

Show comment
Hide comment
@fred-wang

fred-wang Oct 12, 2014

Owner

Thank you for the report. As I said in http://www.maths-informatique-jeux.com/blog/frederic/?post/2014/06/18/Mozilla-MathML-Add-ons, my initial hope was that the Add-on SDK would eventually provide a single interface to generate add-ons on all platforms, but I don't know MoCo's plan on that... So I guess the best way for now will be to rewrite add-ons specifically for Seamonkey :-(

In the particular case of MathML font settings, first there is a bug https://bugzilla.mozilla.org/show_bug.cgi?id=947654#c50 to make font-family directly configurable from Gecko config. If you need a temporary solution to configure the math font (without a special UI), you can just download

https://addons.mozilla.org/en-US/firefox/addon/mathml-fonts/

which is compatible with all Gecko platforms and modify the CSS stylesheet (https://github.com/fred-wang/Mathzilla/blob/master/mathml-fonts/MathML-fonts/resource/mathml.css) to hardcode the desired font-family on the <math> element, for example:

math {
   font-family: Latin Modern Math;
}

The repository https://github.com/fred-wang/MathFonts contains more examples and even WOFF fonts.

Owner

fred-wang commented Oct 12, 2014

Thank you for the report. As I said in http://www.maths-informatique-jeux.com/blog/frederic/?post/2014/06/18/Mozilla-MathML-Add-ons, my initial hope was that the Add-on SDK would eventually provide a single interface to generate add-ons on all platforms, but I don't know MoCo's plan on that... So I guess the best way for now will be to rewrite add-ons specifically for Seamonkey :-(

In the particular case of MathML font settings, first there is a bug https://bugzilla.mozilla.org/show_bug.cgi?id=947654#c50 to make font-family directly configurable from Gecko config. If you need a temporary solution to configure the math font (without a special UI), you can just download

https://addons.mozilla.org/en-US/firefox/addon/mathml-fonts/

which is compatible with all Gecko platforms and modify the CSS stylesheet (https://github.com/fred-wang/Mathzilla/blob/master/mathml-fonts/MathML-fonts/resource/mathml.css) to hardcode the desired font-family on the <math> element, for example:

math {
   font-family: Latin Modern Math;
}

The repository https://github.com/fred-wang/MathFonts contains more examples and even WOFF fonts.

@tonymec

This comment has been minimized.

Show comment
Hide comment
@tonymec

tonymec Oct 12, 2014

Thanks for the answer and the pointer. AFAIK, I already have installed all the math-enabled font packages available from my Linux openSUSE 13.1 distro.

tonymec commented Oct 12, 2014

Thanks for the answer and the pointer. AFAIK, I already have installed all the math-enabled font packages available from my Linux openSUSE 13.1 distro.

@fred-wang

This comment has been minimized.

Show comment
Hide comment
@fred-wang

fred-wang Oct 12, 2014

Owner

My point was that you might be able to adapt the MathML-fonts add-on to implement the behavior of the MathML font-settings add-on. Just update the CSS.

Owner

fred-wang commented Oct 12, 2014

My point was that you might be able to adapt the MathML-fonts add-on to implement the behavior of the MathML font-settings add-on. Just update the CSS.

@tonymec

This comment has been minimized.

Show comment
Hide comment
@tonymec

tonymec Oct 12, 2014

BTW, SeaMonkey supports restartless add-ons but lacks most of the "special" backends required by the SDK so only the simplest Jetpacks will run on it. Restartless add-ons coded without the SDK are OK (e.g.: Adblock Plus, Restartless Restart, Flagfox, …).

tonymec commented Oct 12, 2014

BTW, SeaMonkey supports restartless add-ons but lacks most of the "special" backends required by the SDK so only the simplest Jetpacks will run on it. Restartless add-ons coded without the SDK are OK (e.g.: Adblock Plus, Restartless Restart, Flagfox, …).

@fred-wang

This comment has been minimized.

Show comment
Hide comment
@fred-wang

fred-wang Oct 18, 2014

Owner

Some testing: the preference menu seems to work. The context menu does not appear, but sdk/context-menu is mentioned on https://bugzilla.mozilla.org/show_bug.cgi?id=1074341. Finally, I'll need to determine how addons like greasemonkey or adblock plus insert JS script into pages and make them communicate with the add-on script.

There is a bug https://bugzilla.mozilla.org/show_bug.cgi?id=1023661

Owner

fred-wang commented Oct 18, 2014

Some testing: the preference menu seems to work. The context menu does not appear, but sdk/context-menu is mentioned on https://bugzilla.mozilla.org/show_bug.cgi?id=1074341. Finally, I'll need to determine how addons like greasemonkey or adblock plus insert JS script into pages and make them communicate with the add-on script.

There is a bug https://bugzilla.mozilla.org/show_bug.cgi?id=1023661

@fred-wang

This comment has been minimized.

Show comment
Hide comment
@fred-wang

fred-wang Oct 26, 2014

Owner

@tonymec OK, so as I said on bug 1023661, you can build a custom version of the add-on:

  1. git clone https://github.com/fred-wang/addon-sdk.git (or directly from the trunk when the pull request is accepted)
  2. Go to addon-sdk/ and start the python environment: https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Installation (e.g. source bin/activate)
  3. git clone https://github.com/fred-wang/Mathzilla.git
  4. Move to Mathzilla/mathml-fontsettings and do cfx xpi -o --no-strip-xpi to generate the add-on
  5. Add SeaMonkey to the install.rdf (for example with http://addonconverter.fotokraina.com/)

Note: I tested with a trunk build of SeaMonkey.

Owner

fred-wang commented Oct 26, 2014

@tonymec OK, so as I said on bug 1023661, you can build a custom version of the add-on:

  1. git clone https://github.com/fred-wang/addon-sdk.git (or directly from the trunk when the pull request is accepted)
  2. Go to addon-sdk/ and start the python environment: https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Installation (e.g. source bin/activate)
  3. git clone https://github.com/fred-wang/Mathzilla.git
  4. Move to Mathzilla/mathml-fontsettings and do cfx xpi -o --no-strip-xpi to generate the add-on
  5. Add SeaMonkey to the install.rdf (for example with http://addonconverter.fotokraina.com/)

Note: I tested with a trunk build of SeaMonkey.

@fred-wang

This comment has been minimized.

Show comment
Hide comment
@fred-wang

fred-wang Feb 7, 2015

Owner

I'm closing this issue, since it will be fixed in Gecko 38 (SeaMonkey 2.35):
https://bugzilla.mozilla.org/show_bug.cgi?id=1114752#c36

Owner

fred-wang commented Feb 7, 2015

I'm closing this issue, since it will be fixed in Gecko 38 (SeaMonkey 2.35):
https://bugzilla.mozilla.org/show_bug.cgi?id=1114752#c36

@fred-wang fred-wang closed this Feb 7, 2015

@fred-wang fred-wang self-assigned this Feb 7, 2015

@fred-wang

This comment has been minimized.

Show comment
Hide comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment