{ "info": { "author": "Lele Gaifax", "author_email": "lele@metapensiero.it", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "License :: OSI Approved :: Python Software Foundation License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Documentation", "Topic :: Text Processing" ], "description": "odt2sphinx\n==========\n\nWhat is it?\n-----------\n\nOdt2sphinx converts OpenDocument Text ``.odt`` file(s) to one or several reStructuredText\n``.rst`` files.\n\nThis is a fork of Christophe de Vienne `odt2sphinx`__.\n\n__ https://bitbucket.org/cdevienne/odt2sphinx\n\nInstall\n-------\n\nPython **3** is required!\n\n::\n\n pip3 install metapensiero.odt2sphinx\n\nUsage\n-----\n\n::\n\n usage: odt2sphinx [-h] [--debug] [--download-source-link] [--embedded-uris]\n [--ignore-original-column-widths] [--encoding ENCODING]\n [--test]\n source [target]\n\n ODT to RST\n\n positional arguments:\n source Source ODT file to be converted, or a directory\n containing ODT files and corresponding .expected.rst\n files in test mode\n target Either destination directory, a single .rst target\n filename or \"-\" for stdout\n\n optional arguments:\n -h, --help show this help message and exit\n --debug Emit debug noise\n --download-source-link\n Add a link to the ODT source file\n --embedded-uris Emit embedded URIs, instead of anonymous refs\n --ignore-original-column-widths\n Do not honor the widths of the columns in the original\n document tables\n --encoding ENCODING Output encoding, by default UTF-8\n --test Run in test mode, comparing output with expected reST\n to be found in \u201csource.expected.rst\u201d\n\nOutput files\n------------\n\nThere are four modes of operation:\n\n1. Sphinx, splitting the source in multiple files, one per chapter\n2. Monolithic single plain reST output\n3. Stdout\n4. Functional test\n\nThe first mode is selected by omitting the second positional argument, or giving it the name of\na directory. The second is selected by specifying a file name with a ``.rst`` extension as the\nsecond positional argument. The third by specifying ``-`` as the target name. The latter by\nusing the ``--test`` option.\n\nMultiple files mode\n~~~~~~~~~~~~~~~~~~~\n\nThe files are generated in the target dir, which by default has the same name as the .odt file\nminus the extension.\n\nAt least one file, ``index.rst``, will be written. Depending on the document content,\nadditional rst files may be generated.\n\nImages are extracted and put together in an \"images\" directory inside the targetdir.\n\nMonolithic output mode\n~~~~~~~~~~~~~~~~~~~~~~\n\nAll the output goes into the single rst file specified as the second positional argument.\n\nImages are extracted and put together in an \"images\" directory inside the directory containing\nthe output file.\n\nStdout mode\n~~~~~~~~~~~\n\nNo files are created, even for images: all the output goes to ``stdout``.\n\nFunctional test mode\n~~~~~~~~~~~~~~~~~~~~\n\nThis mode is used by the automatic tests: when the ``--test`` option is specified, the tool\nloads the *expected* result from a file with the same name as the *source* one but with the\n``.odt`` suffix replaced by ``.expected.rst``.\n\nIt will print out any discrepancy as a *unified diff*.\n\nStyles mapping\n--------------\n\nThe following rules will be applied to particulary styles when converting an .odt file. The\nstyle names are case-insensitive.\n\nTitle\n Becomes the main document title (over- and underlined with ``=``)\n\nSubtitle\n Becomes the document subtitle (over- and underlined with ``-``)\n\nTitle 1 ... Title 6\n Becomes sub-chapter titles, underlined respectively with ``#``, ``=``, ``-``, ``~``, ``+``\n and `````; in `multiple files mode` the source document is splitted on ``Title 1`` sections\n and a reference to the single files is inserted in a ``toctree`` directive in the\n ``index.rst`` file\n\n\"Warning\" (or \"Avertissement\")\n The chapter becomes the content of a ``.. warning`` directive\n\n\"Tip\" (or \"Trucs & Astuces\")\n The chapter becomes the content of a ``.. tip`` directive\n\n\"Note\" or \"Information\"\n The chapter becomes the content of a ``.. note`` directive\n\n\nChanges\n-------\n\n2.11 (2015-11-28)\n~~~~~~~~~~~~~~~~~\n\n- Support also OpenOffice\n\n- Fix corner case when a line-break follow empty spaces\n\n2.10 (2015-11-26)\n~~~~~~~~~~~~~~~~~\n\n- Better recognition of WMF images\n\n2.9 (2015-11-26)\n~~~~~~~~~~~~~~~~\n\n- Recognize ``fixed`` text also using the font pitch\n\n- Optimize ``**bold** **words**`` as ``**bold words**``\n\n2.8 (2015-11-26)\n~~~~~~~~~~~~~~~~\n\n- Fix error when a table contains empty columns\n\n2.7 (2015-11-24)\n~~~~~~~~~~~~~~~~\n\n- Recurse down document sections\n\n- New option --ignore-original-column-widths, to produce tighter tables\n\n2.6 (2015-11-22)\n~~~~~~~~~~~~~~~~\n\n- Eliminate font style from spans in Anchors, since the textual part of it is taken verbatim by\n docutils\n\n- Respect original relative widths of table columns\n\n2.5 (2015-11-21)\n~~~~~~~~~~~~~~~~\n\n- Fix compatibility with Python 3.4\n\n- Fix rendering of tables with columns span greater than two\n\n- Aggregate consecutive admonition directives of the same type\n\n2.4 (2015-11-19)\n~~~~~~~~~~~~~~~~\n\n- Fix representation of list item containing a nested list\n\n- Handle table of contents\n\n- By default hyperlinks are rendered using anonymous refs, the new option ``--embedded-uris``\n reverts to the old behaviour\n\n- Eliminate excessive newlines from the output\n\n- Aggregate consecutive similar elements into a single one\n\n2.3 (2015-11-17)\n~~~~~~~~~~~~~~~~\n\n- Unbreak metafile conversion to PNG\n\n2.2 (2015-11-17)\n~~~~~~~~~~~~~~~~\n\n- Convert also *StarView Metafile* images to PNG\n\n- Fix issue with table rendering\n\n2.1 (2015-11-17)\n~~~~~~~~~~~~~~~~\n\n- Center cell content of header rows\n\n- Let the content of multi-rows cell flow thru the separator border\n\n- Use LibreOffice to convert *Windows Meta File* images to PNG\n\n- Restore handling of --download-source-link option\n\n2.0 (2015-11-14)\n~~~~~~~~~~~~~~~~\n\n- Code overhaul, in particular the reST Writer has been rewritten from scratch and the Visitor\n streamlined\n\n - reST generation is now done using a stack of objects, easier to understand and to extend\n - honor the auto-numerated and nested list styles\n - handle line breaks in paragraphs\n - honor the title and subtitle of the document, using different decorations than those used\n for section titles\n - respect the styling of the section titles\n - support multi-rows header in tables\n - handle subscript and superscript text styles\n\n- New automatic tests, comparing the output with an expected result\n\n- Print to stdout alternative mode\n\n1.1 (2015-11-05)\n~~~~~~~~~~~~~~~~\n\n- Fix release version, removing the date tag\n\n1.0 (2015-11-05)\n~~~~~~~~~~~~~~~~\n\n- Forked from https://bitbucket.org/cdevienne/odt2sphinx\n\n- Drop support for Python 2\n\n- Use Pillow instead of PIL\n\n- Rewrap output text for enhanced readability\n\n- Single monolithic alternative mode\n\n0.2.3 (2012-09-06)\n~~~~~~~~~~~~~~~~~~\n\n- Fix filename generation by replacing any non-alphanumeric character (issue #3).\n\n- Fix handling of non-styled lists.\n\n0.2.2 (2012-07-04)\n~~~~~~~~~~~~~~~~~~\n\n- Fix the sdist archive on pypi.\n\n0.2.1 (2012-06-24)\n~~~~~~~~~~~~~~~~~~\n\n- Add support for numbered lists, hyperlinks, underlined text (translated to italic).\n\n- Fix bold text support.\n\n0.2 (2012-05-28)\n~~~~~~~~~~~~~~~~\n\n- Now supports python 3\n\n- Explicitely added PIL as a dependency (issue #2).\n\n0.1.2 (2012-05-22)\n~~~~~~~~~~~~~~~~~~\n\n- Add \"Information\" to the styles mapping.\n\n- Handle note, tip and warning styles in lists items. This allows to use lists inside a note, a\n tip or a warning.\n\n- Now handle external images (issue #1).\n\n0.1.1 (2011-12-20)\n~~~~~~~~~~~~~~~~~~\n\n- Improved the RstFile for use in third-party code: it is now possible to insert code and not\n just append it.\n\n- Add a README file\n\n0.1.0\n~~~~~\n\nInitial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/lele/metapensiero.odt2sphinx", "keywords": null, "license": "PSF License", "maintainer": null, "maintainer_email": null, "name": "metapensiero.odt2sphinx", "package_url": "https://pypi.org/project/metapensiero.odt2sphinx/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/metapensiero.odt2sphinx/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/lele/metapensiero.odt2sphinx" }, "release_url": "https://pypi.org/project/metapensiero.odt2sphinx/2.11/", "requires_dist": null, "requires_python": null, "summary": "An OpenDocument to reStructuredText/Sphinx converter.", "version": "2.11" }, "last_serial": 1837288, "releases": { "1.0.dev20151105": [ { "comment_text": "", "digests": { "md5": "986c8f0ef6a1085c4acec59ecff54f93", "sha256": "c0ffe21baa00cb6ac9aa851a1218e0781aba9b821731a1b95516f037d320a800" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-1.0.dev20151105.tar.gz", "has_sig": false, "md5_digest": "986c8f0ef6a1085c4acec59ecff54f93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11167, "upload_time": "2015-11-05T15:06:41", "url": "https://files.pythonhosted.org/packages/0b/b1/821a24e6c875b2fa381a363b49858ab8fc593d16893fdb98d6ab07d52e18/metapensiero.odt2sphinx-1.0.dev20151105.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "58526cacf2c616d3b70ede159b539973", "sha256": "ab9691253650f4c553434729a96b8592e4d4dbc432339b9bce0a9a91ed22f4dc" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-1.1.tar.gz", "has_sig": false, "md5_digest": "58526cacf2c616d3b70ede159b539973", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11125, "upload_time": "2015-11-05T15:11:14", "url": "https://files.pythonhosted.org/packages/a3/ad/4a5f987768e636a18cba9cc1d0d782ecc33da42f1415a6fcc1c2ac18228d/metapensiero.odt2sphinx-1.1.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "1b5bbb9bae1a311c71b87d2bf9d9d425", "sha256": "9eddf67abaf6bde568ebd2048e8db3a535a92f421a73a5f2e6d378d77f5b96ca" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-2.0.tar.gz", "has_sig": false, "md5_digest": "1b5bbb9bae1a311c71b87d2bf9d9d425", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14038, "upload_time": "2015-11-14T19:42:00", "url": "https://files.pythonhosted.org/packages/62/20/960d51d52e8727aa8b4c3f0bba73122fcc7fa7d9402ce293408a65de07c2/metapensiero.odt2sphinx-2.0.tar.gz" } ], "2.1": [ { "comment_text": "", "digests": { "md5": "7750cb16ea478442f4b52f1a795baf08", "sha256": "7213c4da2a64c2dd343bfcbc0f16d8acdfcd9e4c6cf4dc626fa2ae2cf3353b3b" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-2.1.tar.gz", "has_sig": false, "md5_digest": "7750cb16ea478442f4b52f1a795baf08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15002, "upload_time": "2015-11-17T14:30:00", "url": "https://files.pythonhosted.org/packages/e1/0c/2e0d8d63e4909fc0531e583e720c2c77be652c34aa9ec515e455dfda9e1a/metapensiero.odt2sphinx-2.1.tar.gz" } ], "2.10": [ { "comment_text": "", "digests": { "md5": "3dcad13807a8801e2b01fdd7f89aeaf4", "sha256": "3515c395483103cec4ce7261b50a4f021c9626211afae9c7f7112eb298fb2427" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-2.10.tar.gz", "has_sig": false, "md5_digest": "3dcad13807a8801e2b01fdd7f89aeaf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17721, "upload_time": "2015-11-26T11:25:56", "url": "https://files.pythonhosted.org/packages/1d/2c/f07a521e9e614b2a884033ca7a7e1893b2358b9f199ea8c0b703463a2058/metapensiero.odt2sphinx-2.10.tar.gz" } ], "2.11": [ { "comment_text": "", "digests": { "md5": "51c7467f79d8b75974d365645d937909", "sha256": "c5666d00b6fe4839104d8a0d91ae0f54bf8fb060f1cf367a18159e151a212a6d" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-2.11.tar.gz", "has_sig": false, "md5_digest": "51c7467f79d8b75974d365645d937909", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18079, "upload_time": "2015-11-28T11:19:39", "url": "https://files.pythonhosted.org/packages/79/a3/0b905b585e8540a9643360307de6d62971627e7fb2ce1e3524fc50468946/metapensiero.odt2sphinx-2.11.tar.gz" } ], "2.2": [ { "comment_text": "", "digests": { "md5": "7faa20361bc2199e33ad38bfe9f4e91c", "sha256": "0e7becb07efc14fae85cc383985f2b9f663c1af516a7a6fefcc8bd137aaca07c" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-2.2.tar.gz", "has_sig": false, "md5_digest": "7faa20361bc2199e33ad38bfe9f4e91c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15177, "upload_time": "2015-11-17T15:40:45", "url": "https://files.pythonhosted.org/packages/d2/e4/a27eabc99265dbae0def6a7ea6e05b7bc4c35d3f81c9966663263e264ccd/metapensiero.odt2sphinx-2.2.tar.gz" } ], "2.3": [ { "comment_text": "", "digests": { "md5": "c0902e6d6cc49a3d8be70ad5edb7e718", "sha256": "011714e85ba608a17f623d8a6cdcff379563995ac0ab1d33aefc4b8da32e33fc" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-2.3.tar.gz", "has_sig": false, "md5_digest": "c0902e6d6cc49a3d8be70ad5edb7e718", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15224, "upload_time": "2015-11-17T16:02:31", "url": "https://files.pythonhosted.org/packages/f1/02/04d45ccd01e59fe9cf29c5d106335b827d74f905a47fb31246768e530b31/metapensiero.odt2sphinx-2.3.tar.gz" } ], "2.4": [ { "comment_text": "", "digests": { "md5": "048ff6962c888f0ef1f2f3308a581ead", "sha256": "1aedafb13e87237d4c63d5f64419997279f7c0088df690d5cdf594100b800908" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-2.4.tar.gz", "has_sig": false, "md5_digest": "048ff6962c888f0ef1f2f3308a581ead", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16422, "upload_time": "2015-11-19T15:36:11", "url": "https://files.pythonhosted.org/packages/6a/11/9a3ae5d371666b61f9e9f52722af78da7f4697591b9baf7d9239d7c3b118/metapensiero.odt2sphinx-2.4.tar.gz" } ], "2.5": [ { "comment_text": "", "digests": { "md5": "16fe4da14b8b85f76c42c6962c4c5b33", "sha256": "b7c0db776fc257e72eccabd2c5f526bb3d6bbb80203ce9800decd1d3421e9d06" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-2.5.tar.gz", "has_sig": false, "md5_digest": "16fe4da14b8b85f76c42c6962c4c5b33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16553, "upload_time": "2015-11-21T15:15:04", "url": "https://files.pythonhosted.org/packages/d4/82/ec2b69b0661d5c8953d4f2842866e2b80764f6c8304dde772e08979e3f03/metapensiero.odt2sphinx-2.5.tar.gz" } ], "2.6": [ { "comment_text": "", "digests": { "md5": "559152ece29651d0f764ec210e4f1288", "sha256": "ab8a1684da4a505950d61f41220fed378d750d7ee173dfb9b422bb9ccb79bb69" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-2.6.tar.gz", "has_sig": false, "md5_digest": "559152ece29651d0f764ec210e4f1288", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17064, "upload_time": "2015-11-22T17:36:01", "url": "https://files.pythonhosted.org/packages/8f/78/f2fe8d4e4448871f7604a8910920a3d6c0c4aa524a2991c149925e198d32/metapensiero.odt2sphinx-2.6.tar.gz" } ], "2.7": [ { "comment_text": "", "digests": { "md5": "4c86c6ea6b70066e40db8b748f9a388b", "sha256": "709f09d672458ad8ecfe6777443817bc2b69e5feb423fccfec786a917dcf1f41" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-2.7.tar.gz", "has_sig": false, "md5_digest": "4c86c6ea6b70066e40db8b748f9a388b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17306, "upload_time": "2015-11-24T09:27:48", "url": "https://files.pythonhosted.org/packages/e3/17/114063db843359903e65a7fca8a49464c342f1f9b7e48b55ed9e79cf4894/metapensiero.odt2sphinx-2.7.tar.gz" } ], "2.8": [ { "comment_text": "", "digests": { "md5": "b93359645f46892e4669eb5bd810d770", "sha256": "dda085b9345d785280f29ffd0a515dc71f39d5a7857481acfa5d84d49cd61d25" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-2.8.tar.gz", "has_sig": false, "md5_digest": "b93359645f46892e4669eb5bd810d770", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17370, "upload_time": "2015-11-26T08:29:56", "url": "https://files.pythonhosted.org/packages/e1/8a/402b9914bbaa50f8689ac7695faff5573c0794fac2346265d7166457f461/metapensiero.odt2sphinx-2.8.tar.gz" } ], "2.9": [ { "comment_text": "", "digests": { "md5": "8c52d7a23afe65ff0f59fc1970da2b46", "sha256": "c41268e449be722f52241a320232fc54fa88028f16c635bee0c2707eb1d7f3a2" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-2.9.tar.gz", "has_sig": false, "md5_digest": "8c52d7a23afe65ff0f59fc1970da2b46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17502, "upload_time": "2015-11-26T09:48:24", "url": "https://files.pythonhosted.org/packages/fa/ff/6ead2b43e80b72b8cddddb50dc1220c1f94a65a9d6bea23af243398e27ea/metapensiero.odt2sphinx-2.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "51c7467f79d8b75974d365645d937909", "sha256": "c5666d00b6fe4839104d8a0d91ae0f54bf8fb060f1cf367a18159e151a212a6d" }, "downloads": -1, "filename": "metapensiero.odt2sphinx-2.11.tar.gz", "has_sig": false, "md5_digest": "51c7467f79d8b75974d365645d937909", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18079, "upload_time": "2015-11-28T11:19:39", "url": "https://files.pythonhosted.org/packages/79/a3/0b905b585e8540a9643360307de6d62971627e7fb2ce1e3524fc50468946/metapensiero.odt2sphinx-2.11.tar.gz" } ] }