{ "info": { "author": "Hyeongseok.Oh.hulk", "author_email": "snuboy89@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3.5" ], "description": "hml-equation-parser\n===================\n\nUsage\n-----\n\nIf you have ``equation string`` from ``hml`` document, you can convert\nit to latex string by using ``eq2latex`` function.\n\n.. code:: python\n\n >>> import hml_equation_parser as hp\n >>> hp.eq2latex(\"LEFT \u230a a+b RIGHT \u230b\")\n '\\\\left \\\\lfloor a+b \\\\right \\\\rfloor'\n\nSample code\n-----------\n\nLet's assume that you have ``test.hml`` file for converting. There are\nsome sample code to show how to parse hml documents. You can refer to\nthis sample codes in ``hmlParser.py``\\ (``parseHmlSample``,\n``convertEquationSample``, ``extract2HtmlStrSample``).\n\n.. code:: python\n\n import hml_equation_parser as hp\n\n doc = hp.parseHmlSample(\"test.hml\") # parse hml document and make ElementTree\n\n doc = hp.convertEquationSample(doc) # find equations from ElementTree and convert them to latex string\n string = hp.extract2HtmlStrSample(doc) # convert ElementTree to html document with MathJax.\n\n import codecs\n\n f = codecs.open(\"test.html\", \"w\", \"utf8\")\n f.write(string)\n f.close()\n\nhml-equation-parser \ud55c\uae00 \ubb38\uc11c\n=============================\n\n\uc0ac\uc6a9\ubc95\n------\n\n``hml``\\ \ubb38\uc11c\uc5d0\uc11c \uc218\uc2dd ``string``\\ \uc744 \ubf51\uc544\ub0c8\ub2e4\uba74 ``eq2latex`` \ud568\uc218\ub97c\n\uc774\uc6a9\ud558\uc5ec ``latex`` \uc218\uc2dd\uc73c\ub85c \ubcc0\ud658\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n\n.. code:: python\n\n >>> import hml_equation_parser as hp\n >>> hp.eq2latex(\"LEFT \u230a a+b RIGHT \u230b\")\n '\\\\left \\\\lfloor a+b \\\\right \\\\rfloor'\n\n\uc608\uc81c \ucf54\ub4dc\n---------\n\nhml\ubb38\uc11c\ub97c \ud30c\uc2f1\ud558\uc5ec \uc804\uccb4 \ubb38\uc11c\uc5d0\uc11c \uc218\uc2dd\uc744 \ubc14\uafb8\uace0\uc2f6\ub2e4\uba74 \ub2e4\uc74c \ucf54\ub4dc\ub97c\n\ucc38\uc870\ud558\uba74 \ub429\ub2c8\ub2e4. \uc608\uc81c\uc5d0\uc11c\ub294 ``test.hml``\\ \uc744 \ud30c\uc2f1\ud558\uc5ec html\ubb38\uc11c\ub85c\n\ubc14\uafc9\ub2c8\ub2e4. \ud30c\uc2f1\uc5d0 \ub300\ud55c \ub354 \uc790\uc138\ud55c \ub0b4\uc6a9\uc740 library\uc758 ``hmlParser.py`` \ucf54\ub4dc\ub97c\n\ucc38\uc870\ud558\uc138\uc694(\\ ``parseHmlSample``, ``convertEquationSample``,\n``extract2HtmlStrSample``).\n\n.. code:: python\n\n import hml_equation_parser as hp\n\n doc = hp.parseHmlSample(\"test.hml\") # parse hml document and make ElementTree\n\n doc = hp.convertEquationSample(doc) # find equations from ElementTree and convert them to latex string\n string = hp.extract2HtmlStrSample(doc) # convert ElementTree to html document with MathJax.\n\n import codecs\n\n f = codecs.open(\"test.html\", \"w\", \"utf8\")\n f.write(string)\n f.close()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/OpenBapul/hml-equation-parser", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "hml_equation_parser", "package_url": "https://pypi.org/project/hml_equation_parser/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/hml_equation_parser/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/OpenBapul/hml-equation-parser" }, "release_url": "https://pypi.org/project/hml_equation_parser/1.0.12/", "requires_dist": null, "requires_python": null, "summary": "Convert eqaution string in hml to latex string.", "version": "1.0.12" }, "last_serial": 2548048, "releases": { "1.0.11": [], "1.0.12": [ { "comment_text": "", "digests": { "md5": "a078c8f3f9216386b84a03287727773c", "sha256": "28f3e053e493095aec6259f07f15e62bd76e4778aa39262db7489a8da60f32ab" }, "downloads": -1, "filename": "hml_equation_parser-1.0.12.tar.gz", "has_sig": false, "md5_digest": "a078c8f3f9216386b84a03287727773c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7707, "upload_time": "2017-01-01T06:24:11", "url": "https://files.pythonhosted.org/packages/08/99/718a46dcbca6497d76431864a35fcf8038d8e3495f082336f04916683695/hml_equation_parser-1.0.12.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a078c8f3f9216386b84a03287727773c", "sha256": "28f3e053e493095aec6259f07f15e62bd76e4778aa39262db7489a8da60f32ab" }, "downloads": -1, "filename": "hml_equation_parser-1.0.12.tar.gz", "has_sig": false, "md5_digest": "a078c8f3f9216386b84a03287727773c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7707, "upload_time": "2017-01-01T06:24:11", "url": "https://files.pythonhosted.org/packages/08/99/718a46dcbca6497d76431864a35fcf8038d8e3495f082336f04916683695/hml_equation_parser-1.0.12.tar.gz" } ] }