Did you know ... | Search Documentation: |
![]() | Packs (add-ons) for SWI-Prolog |
Title: | Translates mathematical expressions to compounds that can be used by html//1 (SWISH) or html//3 (normal SWIPL, with pack http/html_write). |
---|---|
Rating: | Not rated. Create the first rating! |
Latest version: | 0.2 |
SHA1 sum: | f679c800d857b502f662e9d454475233f5542d34 |
Author: | Matthias Gondan <Matthias.Gondan@psy.ku.dk> |
No reviews. Create the first review!.
Version | SHA1 | #Downloads | URL |
---|---|---|---|
0.0.1 | 4865f15ec28953318e1fe0128040cb42a3342e15 | 6 | https://github.com/mgondan/mathml.git |
0.0.2 | 01ec02c071af6a290c5907307a0c49cf47961615 | 1 | https://github.com/mgondan/mathml.git |
0.0.3 | 238f4dd9e1b19deedb3d5fdb59ccfa74e6dca871 | 1 | https://github.com/mgondan/mathml.git |
0.0.6 | 268e8f948f4d1af533b447e43887296012366d21 | 1 | https://github.com/mgondan/mathml.git |
0.0.8 | 2a076531c6bbf6cf2f392b43ff415896f852ae2c | 1 | https://github.com/mgondan/mathml.git |
da30d170d055b0fd7c2c0a280d24bd76f0014daf | 1 | https://github.com/mgondan/mathml.git | |
0.1 | 333289d085edbeb9647491c5591ab76b21d00707 | 2 | https://github.com/mgondan/mathml.git |
0.2 | 1683d76af508d94c33a6ac2f675e1bb6741fe656 | 1 | https://github.com/mgondan/mathml.git |
176197664aa7cdd58bbff5dc6ea0aadba9aaeaf7 | 1 | https://github.com/mgondan/mathml.git | |
330b73b39f7f1db366de7bb2e9da8a4d5958b235 | 1 | https://github.com/mgondan/mathml.git | |
67410c4691d493eba2b42978d2737ef93fae38dd | 1 | https://github.com/mgondan/mathml.git | |
7d15e7c2acf0edf5f0dc302d9832cabacf172508 | 6 | https://github.com/mgondan/mathml.git | |
88545b2774c717077fb5f088ea63999ab9889881 | 1 | https://github.com/mgondan/mathml.git | |
b0a421076f54e852064da225b0496e66d454c011 | 1 | https://github.com/mgondan/mathml.git | |
c3a9f50844aad6e06873a044dd2c58b8b3068018 | 1 | https://github.com/mgondan/mathml.git | |
c693f94d23cba31038c68067e3a172bfc147ecda | 1 | https://github.com/mgondan/mathml.git | |
d16915010b2fc2d3991afb1244ce099b594b6d14 | 1 | https://github.com/mgondan/mathml.git | |
f679c800d857b502f662e9d454475233f5542d34 | 1 | https://github.com/mgondan/mathml.git |
Prolog package to convert mathematical expressions to MathML that can be rendered by some browsers. Actually, it's mostly Firefox, all the other browsers I tried did not yield satisfactory results.
You can find a SWISH demo here, https://swish.swi-prolog.org/p/mathml-0.1.swinb
Simple usage example from the SWI-Prolog console:
pack_install(mathml). use_module(library(mathml)). use_module(library(http/html_write)). mathml(sin(x), M), html(html(math(M)), Tokens, []), print_html(Tokens).
More fancy things are given as an example:
mathml:example.
At the moment, the library is quite limited, but is is easily extended. So if you need more stuff, just write me a little email and I will see if I can implement it.
Pack contains 8 files holding a total of 172K bytes.