Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/physikerwelt/mediawiki-services-mathoid
- Owner: physikerwelt
- License: mit
- Created: 2014-03-22T03:29:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-07T15:58:03.000Z (over 10 years ago)
- Last Synced: 2023-04-05T07:16:34.057Z (over 1 year ago)
- Language: JavaScript
- Size: 1.06 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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/mathoidAPI 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 -Ssee also https://wikitech.wikimedia.org/wiki/Git-buildpackage
publish as ppa
* dput ppa:physikerwelt/mathoid ../version.changesTesting
-------
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^2aa=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