{ "info": { "author": "Matteo Romanello", "author_email": "matteo.romanello@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Science/Research", "Operating System :: POSIX", "Programming Language :: Python :: 2.7" ], "description": "CitationParser\n==============\n\nCanonical references (e.g. \"Hom. *Il.* 1,124-125\") use punctuation symbols in a consistent way, meaning that we can define a formal grammar to process them.\n\nWhen encountering the reference \"Hom. *Il.* 1,124-125\", the human reader will parse it as follows:\n\n* the text preceding the numbers contains information about work and author being cited\n* the hyphen is used to specify a range of text passages, e.g. lines 124 to 125;\n* the semicolon separates a reference from another within the sanme citation (is common to chain together references to mutiple of the same work or of different works);\n* the comma separates the hierarchical levels of the work being cited. In the example above 1,124-5 stands for from Book 1, Line 124 to Book 1, Line 125\n* when the citation scope is a range, the identical hierarchical level are collapsed: 1.124 - 1.125 can be written as both 1.124-125 or 1.124 s. without any loss of information for the human reader.\n\nThe CitationParser is composed by a lexer, a parser and a tree parser written in ANTLR and compiled into Python code. The parsed reference is then serialized into JSON.\n\nAn example:\n\n >>> cp = CitationParser()\n >>> cp.parse(\"Hom. Il. 1,124-125\")\n [{'work': u'Hom. Il.', 'scp': {'start': ['1', '124'], 'end': ['1', '125']}", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mromanello/CitationParser", "keywords": null, "license": "GPL v3", "maintainer": null, "maintainer_email": null, "name": "citation-parser", "package_url": "https://pypi.org/project/citation-parser/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/citation-parser/", "project_urls": { "Homepage": "https://github.com/mromanello/CitationParser" }, "release_url": "https://pypi.org/project/citation-parser/0.4.1/", "requires_dist": null, "requires_python": null, "summary": "A parser for canonical references.", "version": "0.4.1" }, "last_serial": 2659961, "releases": { "0.4.1": [ { "comment_text": "", "digests": { "md5": "2ad1cd39fd3d2ee528f920a27a452798", "sha256": "c127747f5cd34e2d41e8281942f56b03d1063f0a779b570d1ec9ad3b0af85ceb" }, "downloads": -1, "filename": "citation_parser-0.4.1-py2-none-any.whl", "has_sig": false, "md5_digest": "2ad1cd39fd3d2ee528f920a27a452798", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 18556, "upload_time": "2017-02-22T08:55:39", "url": "https://files.pythonhosted.org/packages/03/67/891e473acac551118c1821c3de0f5f91b25a347438688f0549682b24201e/citation_parser-0.4.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "39e072720b168b2c72dd9a920f830284", "sha256": "44ef08bf25795e3454182e976538d5e3e2d2bfdfc0bf81c254e9ad85166fe257" }, "downloads": -1, "filename": "citation_parser-0.4.1.tar.gz", "has_sig": false, "md5_digest": "39e072720b168b2c72dd9a920f830284", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14277, "upload_time": "2017-02-22T08:55:41", "url": "https://files.pythonhosted.org/packages/cf/2e/81771bc14635e767853f1ca06d841fa6f4355a33012a896c8de9641b0223/citation_parser-0.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2ad1cd39fd3d2ee528f920a27a452798", "sha256": "c127747f5cd34e2d41e8281942f56b03d1063f0a779b570d1ec9ad3b0af85ceb" }, "downloads": -1, "filename": "citation_parser-0.4.1-py2-none-any.whl", "has_sig": false, "md5_digest": "2ad1cd39fd3d2ee528f920a27a452798", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 18556, "upload_time": "2017-02-22T08:55:39", "url": "https://files.pythonhosted.org/packages/03/67/891e473acac551118c1821c3de0f5f91b25a347438688f0549682b24201e/citation_parser-0.4.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "39e072720b168b2c72dd9a920f830284", "sha256": "44ef08bf25795e3454182e976538d5e3e2d2bfdfc0bf81c254e9ad85166fe257" }, "downloads": -1, "filename": "citation_parser-0.4.1.tar.gz", "has_sig": false, "md5_digest": "39e072720b168b2c72dd9a920f830284", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14277, "upload_time": "2017-02-22T08:55:41", "url": "https://files.pythonhosted.org/packages/cf/2e/81771bc14635e767853f1ca06d841fa6f4355a33012a896c8de9641b0223/citation_parser-0.4.1.tar.gz" } ] }