Login
or
register
Overview
Introduction
Features
Credits
License
This Wiki
Status
News
Releases
Change Log
Recent Wiki Edits
User Guide
Installation
Command Line
Using as a Module
Integration
Reporting Bugs
Advanced
Mailing List
Source Code
Test Suite
Extensions
Extensions
Writing Extensions
Available Extensions
Related Projects
odt2txt
Anonymous users must enter
captcha
below.
Page Parameters
Don't put anything here
Page Name (for URL)
Don't put anything here
Don't put anything here
Page Title
Show Advanced Options
Category
Prototype
Don't put anything here
Don't put anything here
Page Content
[[odt2txt_py|odt2txt.py]] is a Python script that converts Open Document Text (ODT) files to plain text. The output text is marked up using [Markdown](http://en.wikipedia.com/wiki/Markdown/) syntax, which preserves some of the most important formatting. In other words, you get the best of both worlds. It's text, so you can use your favorite text-processing tools, e.g. odt2txt.py myDoc.odt | less On the other hand, enough formatting is preserved that the resulting text can be converted into HTML using [[Overview|markdown.py]]: odt2txt.py myDoc.odt > tmp.txt markdown.py tmp.txt > myDoc.html You might want to have a look at a [sample ODT document](/projects/odt2txt/odt2txt_test.odt) and the corresponding [text](/projects/odt2txt/odt2txt_test.txt) and [html](/projects/odt2txt/odt2txt_test.html) files. ## Status The following ODT formatting is converted to corresponding Markdown syntax: * italics (becomes `_italics_`) * bold (becomes `**bold**`) * bold italics (`***bold italics***`) * simple ordered and unordered lists * block quotes (indented paragraphs become Markdown blockquotes) * code blocks (monospace paragraphs become Markdown code-blocks) * hyperlinks * footnotes The following ODT features are not supported but hopefully will be soon: * simple tables * images ## Installation and Usage Download [odt2txt.py](/projects/odt2txt/odt2txt.py) then run it from the command line: python odt2txt.py myDoc.odt > myDoc.txt To convert it the file to HTML, use [[Overview|markdown.py]]: python markdown.py -footnotes myDoc.txt > myDoc.html ## License The code is dual-licensed under [GPL](http://www.gnu.org/copyleft/gpl.html) and [BSD License](http://www.opensource.org/licenses/bsd-license.php). Other licensing arrangements can be discussed. ## Change Log *Aptil 7, 2006:* First version.
About this Edit
Minor Edit
Edit Summary
Don't put anything here
Powered by
Sputnik
|
XHTML 1.1