Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/physikerwelt/mediawiki-services-mathoid

Github mirror of "mediawiki/services/mathoid" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
https://github.com/physikerwelt/mediawiki-services-mathoid

Last synced: 5 days ago
JSON representation

Github mirror of "mediawiki/services/mathoid" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing

Awesome Lists containing this project

README

        

==============
Mathoid-server
==============

Mathoid-server is a service that uses MathJax and PhantomJS to create SVGs and MathML on server side.
Mathoid-server is a based on svgtex - https://github.com/agrbin/svgtex.

Installation
------------
see http://formulasearchengine.com/mathoid

API Description
---------------

to be written

## Create a new release

Checkout the latest version and switch to the master branch:
* git-dch -R -N version
* git-buildpackage --git-tag -S

see also https://wikitech.wikimedia.org/wiki/Git-buildpackage

publish as ppa
* dput ppa:physikerwelt/mathoid ../version.changes

Testing
-------
Base service:

Start the service

```
$ phantomjs main.js &

loading bench page
server started on port 16000
you can hit server with http://localhost:16000/?2^n
.. or by sending latex source in POST (not url encoded)
```

run a test command

```
$ curl localhost:16000/?aa=a^2

aa=a^2.. 6B query, OK 2393B result, took 15ms.
{"tex":"aa=a^2","svg":"","mml":"\n a\n a\n =\n \n a\n 2\n \n"}
```

AsciiMath
---------

```
$ curl -d 'type=asciimath&q=x^2 or a_(m n) or a_{m n} or (x+1)/y or sqrtx' localhost:10042
```
```

{"input":"x^2 or a_(m n) or a_{m n} or (x 1)/y or sqrtx","svg":"","mml":"\n \n \n x\n 2\n \n \n \n or\n \n \n \n a\n \n m\n n\n \n \n \n \n or\n \n \n \n a\n \n m\n n\n \n \n \n \n or\n \n \n \n \n x\n 1\n \n y\n \n \n \n or\n \n \n \n x\n \n \n","log":"0: x^2 or a_(m n) or a_{m n} or (.. 45B query, OK 6607B result, took 19ms.","success":true}i

Stability
---------

experimental.

Read https://github.com/agrbin/svgtex/wiki for more details!

Forked from https://github.com/agrbin/svgtex