{ "info": { "author": "Guillaume Lepert", "author_email": "guillaume.d.lepert@free.fr", "bugtrack_url": null, "classifiers": [], "description": "\nConvert Quark Xpress tagged text (Tags, xtags) to XML.\n\nThis module is intended as a pre-processing step in the conversion of\nQuark Xpress tagged text to (semantic) HTML; as such it does not\nattempt to convert every single tag to XML, but only those that are\nrelevant to the production of semantic, HTML5-compliant HTML. \n\nThis means that Paragraph and Character style sheet definitions are\nignored; we only care about the apllied style sheet names. It also\nmeans that import character attributes like and , but ignore \ntags related to print typesseting only (tracking, kerning,\nbaseline shift, etc.) by default , though they can be turned on.\n\nThe module doen't actually produced XML but an Element Tree, in case \nyou'd like to do further processing on the tree itself before\nserialising it with lxml.etree.tostring(). The serialised XML can\nthen be turned to HTML with e.g. BeautifulSoup for postprocessing\n(for example, mapping Quark paragraph stylesheet to CSS classes, \ncharacter tags and stylesheets to semantic HTML tags, rolling up\nindented quotes to
, etc.)\n\nOutputs UTF-8.\n\nUsage:\n\n>>> from quark_tagged_text import get_encoding, to_xml\n>>> from lxml.etree import tostring\n>>> encoding = get_encoding()\n>>> with open(, encoding=encoding) as tagged_text:\n>>> element_tree = to_xml(tagged_text) \n>>> serialised_xml = tostring(element_tree, encoding='utf-8')\n\nYou can also call `to_xml` with a `css=True` argument. This will attempt\nto convert some character styles into inline CSS (works with fonts, \nsmall caps, uppercase, strikethrough).\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Quark-Xpress-Tags-to-xml", "package_url": "https://pypi.org/project/Quark-Xpress-Tags-to-xml/", "platform": "", "project_url": "https://pypi.org/project/Quark-Xpress-Tags-to-xml/", "project_urls": null, "release_url": "https://pypi.org/project/Quark-Xpress-Tags-to-xml/1.1/", "requires_dist": [ "lxml", "pypeg2" ], "requires_python": ">=3", "summary": "Convert Quark Xpress Tags to XML", "version": "1.1" }, "last_serial": 3703177, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "79c7464f20cf3bd1671ebfe02e761c55", "sha256": "72c593f21ef08222737b1df3506b8ed92b4db3655c0eeedf08988089436846fd" }, "downloads": -1, "filename": "Quark_Xpress_Tags_to_xml-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "79c7464f20cf3bd1671ebfe02e761c55", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10318, "upload_time": "2018-02-10T09:28:03", "url": "https://files.pythonhosted.org/packages/a4/af/95fc908bf5ff50a37d3ebdf927fac03401d330fba851620f5e545c028051/Quark_Xpress_Tags_to_xml-1.0-py3-none-any.whl" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "799e5f9056e16c8ad88f2151420c8504", "sha256": "d5a76be9ce9c33c4cc8ca2d6a2eece1a997ecfd275085e8bc0020c4aa8a58b65" }, "downloads": -1, "filename": "Quark_Xpress_Tags_to_xml-1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "799e5f9056e16c8ad88f2151420c8504", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 11017, "upload_time": "2018-03-25T10:10:56", "url": "https://files.pythonhosted.org/packages/c4/88/d34f7f9c6adf2b8ec8bd1743fcb9f7f52d0b027856c171a5e512c227a7c8/Quark_Xpress_Tags_to_xml-1.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "799e5f9056e16c8ad88f2151420c8504", "sha256": "d5a76be9ce9c33c4cc8ca2d6a2eece1a997ecfd275085e8bc0020c4aa8a58b65" }, "downloads": -1, "filename": "Quark_Xpress_Tags_to_xml-1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "799e5f9056e16c8ad88f2151420c8504", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 11017, "upload_time": "2018-03-25T10:10:56", "url": "https://files.pythonhosted.org/packages/c4/88/d34f7f9c6adf2b8ec8bd1743fcb9f7f52d0b027856c171a5e512c227a7c8/Quark_Xpress_Tags_to_xml-1.1-py3-none-any.whl" } ] }