Status

defect
RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: fredw, Unassigned)

Tracking

Details

(Whiteboard: [mentor=fredw][lang=javascript][type:feature])

(Reporter)

Description

6 years ago
Just opening that bug for the record and if some volunteers want to help...

The basic idea will would be to integrate a small TeX/ASCII-to-MathML converter like http://www1.chapman.edu/~jipsen/mathml/asciimath.html to generate MathML client side when editing a page.

More advanced editing features could be helpful like improving the WYSIWYG editor. This is the huge task of the old bug 78128 ; some UI could be added to MDN to insert basic constructions. It would also be possible to allow a simple syntax in the source and doing the MathML conversion server side, but that would be a bit more involved and so should be addressed in a separate bug.

Comment 1

5 years ago
There is a plugin for CKEditor4 to cover this in https://github.com/r-gaia-cs/CKEditor-TeXZilla (demo at http://www.ime.unicamp.br/~ra092767/ck-texzilla). I still have to test it with Kuma and maybe backport it to the CKEditor version that Kuma use.

The plugin make use of Frédéric's parse: https://github.com/fred-wang/TeXZilla.
(Reporter)

Comment 2

5 years ago
(In reply to ra092767 from comment #1)
> There is a plugin for CKEditor4 to cover this in
> https://github.com/r-gaia-cs/CKEditor-TeXZilla (demo at
> http://www.ime.unicamp.br/~ra092767/ck-texzilla). I still have to test it
> with Kuma and maybe backport it to the CKEditor version that Kuma use.

Some quick remarks:

- the rendering in the preview seems quite different to the actual rendering (e.g. variables are not italic). I saw somewhere that you have a list of allowed markup so perhaps it is the reason (for example we use _moz attributes in the Gecko release). It is possible that this is some Gecko bugs with Javascript.

- At the moment, I'm not sure an advanced panel is really needed, so perhaps the RTL checkbox could be moved to the main panel...

- when I update the RTL/Display checkbox, this does not seem to be taken into account in the preview (although it is is in the final rendering). The RTL is updated in the preview if I reedit the equation again.

- I updated TeXZilla today so you might want to use the latest version (I'm still not entirely happy with it for a release, though).
Whiteboard: [mentor=fredw][lang=javascript] → [mentor=fredw][lang=javascript][type:feature]
(Reporter)

Updated

5 years ago
Blocks: 974973

Comment 3

5 years ago
Update: The patch for Kuma was accept: https://github.com/mozilla/kuma/pull/2038. Waiting the new version of Kuma be made public to close this bug.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.