{"id":26520626,"url":"https://github.com/amedama41/mathml2omml","last_synced_at":"2025-03-21T12:23:02.191Z","repository":{"id":57440002,"uuid":"219138782","full_name":"amedama41/mathml2omml","owner":"amedama41","description":"Python library to convert MathML to OMML (Office Math Markup Language)","archived":false,"fork":false,"pushed_at":"2019-11-24T07:27:47.000Z","size":31,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T18:04:38.917Z","etag":null,"topics":["mathml","office","omml","python","python3","xml"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/mathml2omml/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amedama41.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-02T10:35:54.000Z","updated_at":"2024-09-21T10:18:12.000Z","dependencies_parsed_at":"2022-09-26T17:20:58.621Z","dependency_job_id":null,"html_url":"https://github.com/amedama41/mathml2omml","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amedama41%2Fmathml2omml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amedama41%2Fmathml2omml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amedama41%2Fmathml2omml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amedama41%2Fmathml2omml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amedama41","download_url":"https://codeload.github.com/amedama41/mathml2omml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244566931,"owners_count":20473451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mathml","office","omml","python","python3","xml"],"created_at":"2025-03-21T12:23:01.597Z","updated_at":"2025-03-21T12:23:02.161Z","avatar_url":"https://github.com/amedama41.png","language":"Python","readme":"math2omml\n=========\n\nPure Python library to convert MathML to OMML (Office Math Markup Language).\n\nInstallation\n------------\n\nUse pip:\n\n.. code:: sh\n\n   pip install mathml2omml\n\nor, use setup.py:\n\n.. code:: sh\n\n   python3 setup.py install\n\nUsage\n-----\n\nMathml2omml takes a MathML as string, and outputs an OMML as string:\n\n.. code:: python\n\n   import mathml2omml\n\n   mathml = '\u003cmath\u003e\u003cmi\u003ex\u003c/mi\u003e\u003cmo\u003e+\u003c/mo\u003e\u003cmi\u003ey\u003c/mi\u003e\u003c/math\u003e'\n   omml = math2omml.convert(mathml)\n\nBy default, mathml2omml recognises only entities defined in MathML specification.\nIf the input includes other entities, pass the entity information\nas a dictionary to the second argument:\n\n.. code:: python\n\n   import html.entities\n\n   mathml = '\u003cmath\u003e\u003cmsubsup\u003e\u003cmo\u003e\u0026int;\u003c/mo\u003e\u003cmn\u003e1\u003c/mn\u003e\u003cmi\u003ex\u003c/mi\u003e\u003c/msubsup\u003e\u003c/math\u003e'\n   omml = math2omml.convert(mathml, html.entities.name2codepoint)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famedama41%2Fmathml2omml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famedama41%2Fmathml2omml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famedama41%2Fmathml2omml/lists"}