Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doi2rdm: figure out how to transform mml markup #36

Open
tmorrell opened this issue Jun 13, 2023 · 3 comments
Open

doi2rdm: figure out how to transform mml markup #36

tmorrell opened this issue Jun 13, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@tmorrell
Copy link
Member

Some records like https://doi.org/10.1103/physrevb.85.144303 use mml markup in the descriptions and titles. We need to figure out whether this can be displayed in InvenioRDM or a clever way to clean or transform it into utf8.

@rsdoiel
Copy link
Member

rsdoiel commented Jul 27, 2023

I think we can find a MathML to AsciiMath converted, that'd probably do the trick.

https://en.wikipedia.org/wiki/AsciiMath

There appears to be a Python package for working with AsciiMath https://pypi.org/project/py-asciimath/

If not MathJax (JavaScript/TypeScript) can probably do the job, https://www.mathjax.org

This could be done in the Python based fixup code.

@tmorrell
Copy link
Member Author

py-asciimath conversion to LateX might be an initial solution.

We might need to strip out xml stuff https://stackoverflow.com/questions/25952401/declaring-xml-namespaces-for-mathml.

Now the resulting mml as the result should..theoretically render in the browser. But we'd need to figure out how to get RDM to stop transforming the title into characters.

I'd ideally like to just convert to just utf8, but I haven't found a good program since mml is so much more complicated than superscripts and subscripts.

@tmorrell
Copy link
Member Author

Might be able to look at WOS as a source for titles instead

@rsdoiel rsdoiel added the enhancement New feature or request label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants