rst2odt(1)
β¨ rst2odt β¨
okay bestie, so this is the rst2odt(1) page from the text processing corner of the manual world, and it's literally your ticket to turning reStructuredText into OpenDocument text files. let's get into it π«Ά
πΈ NAME πΈ
rst2odt β convert reST documents to OpenDocument text (ODT) π
π SYNOPSIS π
rst2odt [options] [<source> [<destination>]]
π¦ DESCRIPTION π¦
Generate OpenDocument text (ODT) documents from standalone reStructuredText sources β the details live at https://docutils.sourceforge.io/docs/user/odt.html.
It reads from <source> (default is stdin, no cap) and writes to <destination> (default is stdout, iconic). And if you want the full settings reference, it's right here: https://docutils.sourceforge.io/docs/user/config.html β¨
π OPTIONS π
π General Docutils Options
--output-path=<destination>,--output=<destination>β the output destination name. this obsoletes the<destination>positional argument. Default: None (i.e. stdout).--title=<title>β specify the document title as metadata.--generator,-gβ include a "Generated by Docutils" credit and link.--no-generatorβ do not include a generator credit.--date,-dβ include the date at the end of the document (UTC).--time,-tβ include the time & date (UTC).--no-datestampβ no datestamp of any kind, periodt.--root-prefix=<path>β base directory for absolute paths when reading from the local filesystem. Default"".--source-link,-sβ include a "View document source" link.--source-url=<URL>β use<URL>for a source link; this implies--source-link.--no-source-linkβ do not include a "View document source" link.--toc-entry-backlinksβ link from section headers to TOC entries. (default)--toc-top-backlinksβ link from section headers to the top of the TOC.--no-toc-backlinksβ disable backlinks to the table of contents.--footnote-backlinksβ link from footnotes/citations to references. (default)--no-footnote-backlinksβ disable backlinks from footnotes and citations.--section-numberingβ enable section numbering by Docutils. (default)--no-section-numberingβ disable section numbering by Docutils.--strip-commentsβ remove comment elements from the document tree.--leave-commentsβ leave comment elements in the document tree. (default)--strip-elements-with-class=<class>β remove all elements withclasses="<class>"from the document tree. > β οΈ Warning: potentially dangerous; use with caution. (Multiple-use option.)--strip-class=<class>β remove allclasses="<class>"attributes from elements in the document tree. > β οΈ Warning: potentially dangerous; use with caution. (Multiple-use option.)--report=<level>,-r <level>β report system messages at or higher than<level>:"info"or"1","warning"/"2"(default),"error"/"3","severe"/"4","none"/"5".--verbose,-vβ report all system messages. (Same as"--report=1".)--quiet,-qβ report no system messages. (Same as"--report=5".)--halt=<level>β halt execution at system messages at or above<level>. Levels work just like--report. Default: 4 (severe).--strictβ halt at the slightest problem. Same as"--halt=info".--exit-status=<level>β enable a non-zero exit status for non-halting system messages at or above<level>. Default: 5 (disabled).--debugβ enable debug-level system messages and diagnostics.--no-debugβ disable debug output. (default)--warnings=<file>β send the output of system messages to<file>.--tracebackβ enable Python tracebacks when Docutils is halted.--no-tracebackβ disable Python tracebacks. (default)--input-encoding=<name[:handler]>β specify the encoding, and optionally the error handler, of input text. Default:utf-8.--output-encoding=<name[:handler]>β specify the text encoding, and optionally the error handler, for output. Default:utf-8.--error-encoding=<name[:handler]>,-e <name[:handler]>β specify text encoding, and optionally the error handler, for error output. Default: system encoding.--language=<tag>,-l <tag>β specify the language (as a BCP 47 language tag). Default:en.--record-dependencies=<file>β write output file dependencies to<file>.--config=<file>β read configuration settings from<file>, if it exists.--version,-Vβ show this program's version number and exit.--help,-hβ show this help message and exit.
π Generic Parser Options
--no-file-insertionβ disable directives that insert the contents of an external file; replaced with a"warning"system message.--file-insertion-enabledβ enable directives that insert the contents of an external file. (default)--no-rawβ disable the"raw"directive; replaced with a"warning"system message.--raw-enabledβ enable the"raw"directive. (default)--line-length-limit=<length>β maximal number of characters in an input line. Default 10 000.--legacy-idsβ keep identifiers backwards compatible. Default.--matching-idsβ explicit targets use identifiers matching the reference name.--validateβ validate the document tree after parsing.--no-validationβ do not validate the document tree. (default)
π§ reStructuredText Parser Options
--pep-referencesβ recognize and link to standalone PEP references (like"PEP 258").--pep-base-url=<URL>β base URL for PEP references (default"https://peps.python.org/").--pep-file-url-template=<URL>β template for the PEP file part of the URL. (default"pep-%04d")--rfc-referencesβ recognize and link to standalone RFC references (like"RFC 822").--rfc-base-url=<URL>β base URL for RFC references (default"https://tools.ietf.org/html/").--tab-width=<width>β set number of spaces for tab expansion (default 8).--trim-footnote-reference-spaceβ remove spaces before footnote references.--leave-footnote-reference-spaceβ leave spaces before footnote references.--syntax-highlight=<format>β token name set for parsing code with Pygments: one of"long","short", or"none"(no parsing). Default is"long".--smart-quotes=<yes/no/alt>β change straight quotation marks to typographic form: one of"yes","no","alt[ernative]"(default"no").--smartquotes-locales=<language:quotes[,language:quotes,...]>β characters to use as"smart quotes"for<language>.--word-level-inline-markupβ inline markup recognized at word boundaries only (adjacent to punctuation or whitespace). Force character-level inline markup recognition with""(backslash + space). Default.--character-level-inline-markupβ inline markup recognized anywhere, regardless of surrounding characters. Backslash-escapes must be used to avoid unwanted markup recognition. Useful for East Asian languages. Experimental.
πΈ Standalone Reader Options
--no-doc-titleβ disable the promotion of a lone top-level section title to document title (and the subsequent section title to document subtitle promotion; enabled by default).--no-doc-infoβ disable the bibliographic field list transform (enabled by default).--section-subtitlesβ activate the promotion of lone subsection titles to section subtitles (disabled by default).--no-section-subtitlesβ deactivate the promotion of lone subsection titles.
π ODF-Specific Options
--stylesheet=<filename>β specify a stylesheet. Default:"/usr/share/docutils/writers/odf_odt/styles.odt"--odf-config-file=<file>β specify an ODF-specific configuration/mapping file relative to the current working directory.--cloak-email-addressesβ obfuscate email addresses to confuse harvesters.--no-cloak-email-addressesβ do not obfuscate email addresses.--table-border-thickness=<int>β specify the thickness of table borders in thousands of a cm. Default is 35.--add-syntax-highlightingβ add syntax highlighting in literal code blocks.--no-syntax-highlightingβ do not add syntax highlighting in literal code blocks. (default)--create-sectionsβ create sections for headers. (default)--no-sectionsβ do not create sections for headers.--create-linksβ create links.--no-linksβ do not create links. (default)--endnotes-end-docβ generate endnotes at end of document, not footnotes at bottom of page.--no-endnotes-end-docβ generate footnotes at bottom of page, not endnotes at end of document. (default)--generate-list-tocβ generate a bullet list table of contents, not a native ODF table of contents.--generate-oowriter-tocβ generate a native ODF table of contents, not a bullet list. (default)--custom-odt-header=<customheader>β specify the contents of an custom header line. See ODF/ODT writer documentation for details about special field character sequences.--custom-odt-footer=<customfooter>β specify the contents of an custom footer line. See ODF/ODT writer documentation for details.
and that's the whole page, bestie π this is the rst2odt(1) page, filed under text processing β go forth and make ODTs, you absolute icon πβ¨
π¦ where this page comes from
- ubuntu stonking: docutils-common 0.23+dfsg-2 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms