Code Monkey home page Code Monkey logo

mathmlben's Introduction

GoUldI

Build Status Maintainability Greenkeeper badge

Please use the website https://mathmlben.wmflabs.org to make changes to the data.

Cite this Work

Please cite our work if you use MathMLben:

@inproceedings{SchubotzGSMCG18,
  author = {Schubotz, Moritz and Greiner-Petter, Andr\'{e} and Scharpf, Philipp and Meuschke, Norman and Cohl, Howard S. and Gipp, Bela},
	address = {Fort Worth, Texas, USA},
	title = {Improving the {Representation} and {Conversion} of {Mathematical} {Formulae} by {Considering} their {Textual} {Context}},
	isbn = {978-1-4503-5178-2},
	url = {https://arxiv.org/abs/1804.04956},
	doi = {10.1145/3197026.3197058},
	booktitle = {Proceedings of the 18th {ACM}/{IEEE} on {Joint} {Conference} on {Digital} {Libraries} ({JCDL})},
	publisher = {ACM},
	month = may,
	year = {2018},
	keywords = {mathml, mathmlben, survey, translation},
	pages = {233--242},
}

notes on deployment

  • log in to the server (e.g., drmf-beta)
  • run
sudo useradd gouldi
sudo mkdir /srv/gouldi
sudo chown gouldi /srv/gouldi
sudo su gouldi
mkdir "${HOME}/.npm-packages"
echo "prefix=${HOME}/.npm-packages" > ~/.npmrc
vi .bashrc
  • Allow gouldi to restart apache

use visudo to add the following config

username ALL = NOPASSWD: /etc/init.d/apache2 
  • type Gi to reach the end of the file and switch vi to insert mode and paste the following block
NPM_PACKAGES="${HOME}/.npm-packages"

PATH="$NPM_PACKAGES/bin:$PATH"

# Unset manpath so we can inherit from /etc/manpath via the `manpath` command
unset MANPATH # delete if you already modified MANPATH elsewhere in your config
export MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
  • run
npm i -g pm2
git clone https://github.com/ag-gipp/GoUldI
cd GoUldI/
pm2 deploy ecosystem.json production setup
  • update
sudo su gouldi
cd GoUldI
git pull
pm2 deploy production update

automatic deployment via webhook

sudo apt-get install apache2-suexec-custom
sudo a2enmod suexec
sudo service apache2 restart

drmf-beta:/etc/apache2/sites-available# cat 100-gouldi-deploy.conf 
Listen 34513 
<VirtualHost *:34513>
ServerName gouldi-deploy.wmflabs.org 
SuexecUserGroup gouldi gouldi
ScriptAlias "/cgi-bin/" "/home/gouldi/GoUldI/"
DocumentRoot /home/gouldi/GoUldI
<Directory /home/gouldi/GoUldI>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>

mathmlben's People

Contributors

amstart avatar andreg-p avatar dhananjay-mandalkar avatar greenkeeper[bot] avatar jochenkrattenmacher avatar philsmint avatar physikerwelt avatar snyk-bot avatar vstange avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

physikerwelt

mathmlben's Issues

Andre investigate

  • 79 semantic latex macro for integral
  • 118 investigate the problem
  • investigate all ltx_ERROR
  • create macro 225 e.g. \dimRed{3}{R}
  • 251 fix issue

Example overview for qID 27

For the input we $v=c/n$ we have the following distances

POM SnuggleTeX LatexML Mathematical MathToWeb Latex2MML TeXZilla Mathoid Mathematica
2.0(1.0) -(2.0) 0.0(0.0) -(0.0) -(1.0) -(2.0) -(0.0) -(1.0) 4.0(0.0)
<math xmlns="http://www.w3.org/1998/Math/MathML" id="p1.1.m1.1" class="ltx_Math" alttext="v=\frac{c}{n}" display="inline">
  <semantics id="p1.1.m1.1a">
    <mrow id="p1.1.m1.1.4" xref="p1.1.m1.1.4.cmml">
      <mi id="p1.1.m1.1.1" xref="p1.1.m1.1.1.cmml">v</mi>
      <mo id="p1.1.m1.1.2" xref="p1.1.m1.1.2.cmml">=</mo>
      <mfrac id="p1.1.m1.1.3" xref="p1.1.m1.1.3.cmml">
        <mi id="p1.1.m1.1.3.2" xref="p1.1.m1.1.3.2.cmml">c</mi>
        <mi id="p1.1.m1.1.3.3" xref="p1.1.m1.1.3.3.cmml">n</mi>
      </mfrac>
    </mrow>
    <annotation-xml encoding="MathML-Content" id="p1.1.m1.1b">
      <apply id="p1.1.m1.1.4.cmml" xref="p1.1.m1.1.4">
        <eq id="p1.1.m1.1.2.cmml" xref="p1.1.m1.1.2"/>
        <csymbol cd="latexml" id="p1.1.m1.1.1.cmml" xref="p1.1.m1.1.1">Q13824</csymbol>
        <apply id="p1.1.m1.1.3.cmml" xref="p1.1.m1.1.3">
          <divide id="p1.1.m1.1.3.1.cmml" xref="p1.1.m1.1.3"/>
          <csymbol cd="latexml" id="p1.1.m1.1.3.2.cmml" xref="p1.1.m1.1.3.2">Q2111</csymbol>
          <csymbol cd="latexml" id="p1.1.m1.1.3.3.cmml" xref="p1.1.m1.1.3.3">Q174102</csymbol>
        </apply>
      </apply>
    </annotation-xml>
    <annotation encoding="application/x-tex" id="p1.1.m1.1c">v=\frac{c}{n}</annotation>
  </semantics>
</math>

and the representations

Pom

https://github.com/ag-gipp/GoUldI/blob/d6af7dde1a51861abe7a375a74eeb58a87d9be52/data/pom/27.xml#L1-L11

Mathematica

https://github.com/ag-gipp/GoUldI/blob/d6af7dde1a51861abe7a375a74eeb58a87d9be52/data/mathematica/27.mml#L1-L28

Mathematical

https://github.com/ag-gipp/GoUldI/blob/d6af7dde1a51861abe7a375a74eeb58a87d9be52/data/mathematical/27.mml#L1-L14

mathoid, MathJax ...

https://github.com/ag-gipp/GoUldI/blob/d6af7dde1a51861abe7a375a74eeb58a87d9be52/data/mathoid/27.mml#L1-L16
Link to Dispersion_(optics), qID 27

Investigate content tree structure of all items visually

This task is about investigating the visual tree structure all items manually. And check those who are correct.

Investigate display of formulae

Even if the box in the upper right field is green, the formulae might not be type-setted correctly. Therefore we need to investigate all cases manually. The goal of this task is to ensure that the correct_tex field is correct for all formuale. Also remove , and . the end of a formula.

Issue with 134

der corrected tex muss noch gefixed werden, dann kann #24 geschlossen werden - ich kenne den binomialkoeffizient mit <> klammer nicht

Investigate popup information of all items visually

This task is about investigating the popup information of all items manually. Check those that are correct.

Gold standard for mulitcritical point

I think the gold standard definition for T_c needs to be improved

As an example consider a substance ferromagnetic below a transition temperature T_{c} , and paramagnetic above T_{c} . The parameter space here is the temperature axis, and the critical manifold consists of the point T_{c} . Now add hydrostatic pressure P to the parameter space. Under hydrostatic pressure the substance normally still becomes ferromagnetic below a temperature T_{c}(P).

GUI Improvements

Improvements in GoUldI webpage

  • Put issue / commit settings to another sub menu to improve the visibility
  • Fix blue preview renderer (right-top position) when the current rendering process failed (currently it shows the previous formula, which is absolutely confusing)
  • No line breaks in MML Editor field
  • Line numbers in MML Editor field
  • Change color of Information-Box based on the log (green if everything works fine, to avoid an extra click just to check if a push was successful)
  • Description in parenthesis behind title (not below text field)

Moritz to investage

List of ids

  • Change mathoid output files (or create second mathoid directory with other config)
  • id 2 wikidata ID stimmt aber tree passt noch nicht --> reported as brucemiller/LaTeXML#911
  • id 13 ambigious fix
  • id 17 subscript macro
  • discuss with @hcohl 156
  • http://dlmf.nist.gov/21.7#E16 what does mod 2 mean. does it relate to the whole formulae or ony to the lhs
  • 208
  • infix operator 212

Deploy Update doesn't work

@physikerwelt
Das deploy update geht noch nicht. Ich hab Änderungen gepusht und cgi-bin/deploy.sh aufgerufen. Das hat auch wunderbar geklappt und die Änderungen sind (wenn ich gouldi-deploy.wmflabs.org aufrufe) auch zu sehen.
Aber wenn ich mich bei drmf-beta anmelde und in /srv/gouldi/source nachschaue, sind dort die Änderungen nicht gepullt! Trotzdem wird noch immer von hier der server gestartet.

Sieht so aus als gäbe es jetzt 2 gouldi auf drmf-beta. Die eine wird geupdated, die andere nicht...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.