From: Ximin L. <inf...@us...> - 2022-10-28 14:21:11
|
--- ** [patches:#197] MathML: support pandoc(1) as an external converter** **Status:** open **Group:** None **Created:** Fri Oct 28, 2022 02:21 PM UTC by Ximin Luo **Last Updated:** Fri Oct 28, 2022 02:21 PM UTC **Owner:** nobody **Attachments:** - [0001-MathML-support-pandoc-1-as-an-external-converter.patch](https://sourceforge.net/p/docutils/patches/197/attachment/0001-MathML-support-pandoc-1-as-an-external-converter.patch) (3.5 kB; text/x-patch) In my personal experience, `pandoc` is more reliable than `latexml`, e.g. the current support for the latter in docutils does not automatically include amsfonts which prevents things like mathbb from working. In `pandoc` it Just Works. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/patches/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Guenter M. <mi...@us...> - 2022-10-29 22:17:36
|
Thank you for the patch. A test with the maths documentation source "docutils/docs/ref/rst/mathematics.txt" revealed: * it takes loooong to run, * there are > 120 conversion errors (unknown AMSmath macros), * the error messages need getting used to, * the successfull conversions are similar to the native MathML support. What are the advantages over native MathML? |
From: Günter M. <mi...@us...> - 2022-11-01 06:49:10
|
Thank you for the patch. What are the advantages over the native LaTeX -> MathML converter? A test of the new conversion route with the maths documentation source [mathematics.txt](https://docutils.sourceforge.io/docs/ref/rst/mathematics.txt) revealed: * it takes long to run (considerably longer than the native converter but far shorter than `latexml`), * there are > 120 conversion errors (unknown AMSmath macros), * the error messages need getting used to (instead of reporting an unknown macro, it tells about expecting "%", "\\label", "\\nonumber" or whitespace) * the successfull conversions are similar to the native MathML support. BTW: a fix for "amsfonts" commands with `latexml` is ready and will be soon in the repository. --- ** [patches:#197] MathML: support pandoc(1) as an external converter** **Status:** open **Group:** None **Created:** Fri Oct 28, 2022 02:21 PM UTC by Ximin Luo **Last Updated:** Fri Oct 28, 2022 02:21 PM UTC **Owner:** nobody **Attachments:** - [0001-MathML-support-pandoc-1-as-an-external-converter.patch](https://sourceforge.net/p/docutils/patches/197/attachment/0001-MathML-support-pandoc-1-as-an-external-converter.patch) (3.5 kB; text/x-patch) In my personal experience, `pandoc` is more reliable than `latexml`, e.g. the current support for the latter in docutils does not automatically include amsfonts which prevents things like mathbb from working. In `pandoc` it Just Works. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/patches/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Ximin L. <inf...@us...> - 2022-11-01 11:42:53
|
One big advantage of pandoc is that it supports {align} and {gather}. Pandoc and latex2mathml.py supports different subsets of latex. For example, latex2mathml.py does not support \gsime, but pandoc does. The pandoc list of supported symbols is here [1] and it appears to be bigger (~2800 symbols) than the one in latex2mathml.py (~100 symbols), although it does not support some stuff like \underleftrightarrow that latex2mathml does. Actually it appears [1] is written by yourself, and that version is 8 years old, so if you know where a newer version is I can go file a PR to them to support newer stuff like \underleftrightarrow. [1] https://github.com/jgm/texmath/blob/master/lib/totexmath/unimathsymbols.txt --- ** [patches:#197] MathML: support pandoc(1) as an external converter** **Status:** open **Group:** None **Created:** Fri Oct 28, 2022 02:21 PM UTC by Ximin Luo **Last Updated:** Tue Nov 01, 2022 06:48 AM UTC **Owner:** nobody **Attachments:** - [0001-MathML-support-pandoc-1-as-an-external-converter.patch](https://sourceforge.net/p/docutils/patches/197/attachment/0001-MathML-support-pandoc-1-as-an-external-converter.patch) (3.5 kB; text/x-patch) In my personal experience, `pandoc` is more reliable than `latexml`, e.g. the current support for the latter in docutils does not automatically include amsfonts which prevents things like mathbb from working. In `pandoc` it Just Works. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/patches/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Ximin L. <inf...@us...> - 2022-11-01 11:44:49
|
One big advantage of pandoc is that it supports {align} and {gather}. Pandoc and latex2mathml.py supports different subsets of latex. For example, latex2mathml.py does not support \gsime, but pandoc does. The pandoc list of supported symbols is here [1] and it appears to be bigger (~2800 symbols) than the one in latex2mathml.py (~100 symbols), although it does not support some stuff like \underleftrightarrow that latex2mathml does. Actually it appears [1] is written by yourself, and that version is 8 years old, so if you know where a newer version is I can go file a PR to them to support newer stuff like \underleftrightarrow. (Another advantage on top of the other external tools, is that it is still under active development; the last commit to the texmath component was 24 days ago.) [1] https://github.com/jgm/texmath/blob/master/lib/totexmath/unimathsymbols.txt --- ** [patches:#197] MathML: support pandoc(1) as an external converter** **Status:** open **Group:** None **Created:** Fri Oct 28, 2022 02:21 PM UTC by Ximin Luo **Last Updated:** Tue Nov 01, 2022 11:42 AM UTC **Owner:** nobody **Attachments:** - [0001-MathML-support-pandoc-1-as-an-external-converter.patch](https://sourceforge.net/p/docutils/patches/197/attachment/0001-MathML-support-pandoc-1-as-an-external-converter.patch) (3.5 kB; text/x-patch) In my personal experience, `pandoc` is more reliable than `latexml`, e.g. the current support for the latter in docutils does not automatically include amsfonts which prevents things like mathbb from working. In `pandoc` it Just Works. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/patches/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2022-11-01 17:45:05
|
> One big advantage of pandoc is that it supports {align} and {gather}. I see. Active development and widespread use is another bonus (especially over other external tools). > Pandoc and latex2mathml.py supports different subsets of latex. For > example, latex2mathml.py does not support \gsime, but pandoc does. > The pandoc list of supported symbols is here [1] and it appears to be > bigger (~2800 symbols) than the one in latex2mathml.py (~100 symbols) latex2mathml uses the same database and extracts the about 600 symbols supported by the most common math packages. It also supports literal Unicode characters in the input. > Actually it appears [1] is written by yourself, and that version is 8 > years old, so if you know where a newer version is I can go file a PR > to them to support newer stuff like \underleftrightarrow. The database and related work is available under https://milde.users.sourceforge.net/LUCR/Math/ The latest revision is used in latex2mathml but not published yet. The "unimathsymbols" database only contains LaTeX math macros that map directly to Unicode code points. (\underleftrightarrow is implemented using ↔ (\leftrightarrow) in a `<munder>` element.) --- ** [patches:#197] MathML: support pandoc(1) as an external converter** **Status:** open **Group:** None **Created:** Fri Oct 28, 2022 02:21 PM UTC by Ximin Luo **Last Updated:** Tue Nov 01, 2022 11:44 AM UTC **Owner:** nobody **Attachments:** - [0001-MathML-support-pandoc-1-as-an-external-converter.patch](https://sourceforge.net/p/docutils/patches/197/attachment/0001-MathML-support-pandoc-1-as-an-external-converter.patch) (3.5 kB; text/x-patch) In my personal experience, `pandoc` is more reliable than `latexml`, e.g. the current support for the latter in docutils does not automatically include amsfonts which prevents things like mathbb from working. In `pandoc` it Just Works. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/patches/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2022-11-04 11:18:45
|
- **status**: open --> open-accepted - **Comment**: The patch is committed in [r9216]. Thank you for your contribution. --- ** [patches:#197] MathML: support pandoc(1) as an external converter** **Status:** open-accepted **Group:** None **Created:** Fri Oct 28, 2022 02:21 PM UTC by Ximin Luo **Last Updated:** Tue Nov 01, 2022 11:44 AM UTC **Owner:** nobody **Attachments:** - [0001-MathML-support-pandoc-1-as-an-external-converter.patch](https://sourceforge.net/p/docutils/patches/197/attachment/0001-MathML-support-pandoc-1-as-an-external-converter.patch) (3.5 kB; text/x-patch) In my personal experience, `pandoc` is more reliable than `latexml`, e.g. the current support for the latter in docutils does not automatically include amsfonts which prevents things like mathbb from working. In `pandoc` it Just Works. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/patches/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2023-05-10 11:05:09
|
- **status**: open-accepted --> closed-accepted - **Comment**: Fixed in [Docutils 0.20](https://pypi.org/project/docutils/0.20) Thanks again for your contribution. --- **[patches:#197] MathML: support pandoc(1) as an external converter** **Status:** closed-accepted **Group:** None **Created:** Fri Oct 28, 2022 02:21 PM UTC by Ximin Luo **Last Updated:** Fri Nov 04, 2022 11:18 AM UTC **Owner:** nobody **Attachments:** - [0001-MathML-support-pandoc-1-as-an-external-converter.patch](https://sourceforge.net/p/docutils/patches/197/attachment/0001-MathML-support-pandoc-1-as-an-external-converter.patch) (3.5 kB; text/x-patch) In my personal experience, `pandoc` is more reliable than `latexml`, e.g. the current support for the latter in docutils does not automatically include amsfonts which prevents things like mathbb from working. In `pandoc` it Just Works. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/patches/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |