odt2txt (000001)
XSSFilter could not parse (X)HTML:


<p><a href="odt2txt.py">odt2txt.py</a> is a Python script that converts Open
Document Text (ODT) files to plain text.  The output text is marked up
using <a href="http://en.wikipedia.com/wiki/Markdown/">Markdown</a> 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.</p>

<pre><code>odt2txt.py myDoc.odt | less
</code></pre>

<p>On the other hand, enough formatting is preserved that the resulting
text can be converted into HTML using <a href='/projects/python-markdown/'>markdown.py</a>:</p>

<pre><code>odt2txt.py myDoc.odt > tmp.txt
markdown.py tmp.txt > myDoc.html
</code></pre>

<p>You might want to have a look at a <a href="/projects/python-markdown/odt2txt_test.odt">sample ODT document</a> and the corresponding <a href="/projects/python-markdown/odt2txt_test.txt">text</a> and <a href="/projects/python-markdown/odt2txt_test.html">html</a> files.</p>

<h2>Status</h2>

<p>The following ODT formatting is converted to corresponding Markdown
syntax:</p>

<ul>
    <li>italics (becomes <code>_italics_</code>)</li>
    <li>bold (becomes <code>**bold**</code>)</li>
    <li>bold italics (<code>***bold italics***</code>)</li>
    <li>simple ordered and unordered lists</li>
    <li>block quotes (indented paragraphs become Markdown blockquotes)</li>
    <li>code blocks (monospace paragraphs become Markdown code-blocks)</li>
    <li>hyperlinks</li>
    <li>footnotes</li>
</ul>

<p>The following ODT features are not supported but hopefully will be soon:</p>

<ul>
    <li>simple tables</li>
    <li>images</li>
</ul>

<h2>Installation and Usage</h3></h2>

<p>Download <a href="odt2txt.py">odt2txt.py</a> then run it from the command line:</p>

<pre><code>python odt2txt.py myDoc.odt \> myDoc.txt
</code></pre>

<p>To convert it the file to HTML, use <a href='/projects/python-markdown/'>markdown.py</a>:</p>

<pre><code>python markdown.py -footnotes myDoc.txt > myDoc.html
</code></pre>

<h2>License</h2>

<p>The code is dual-licensed under
<a href="http://www.gnu.org/copyleft/gpl.html">GPL</a> and <a href="http://www.opensource.org/licenses/bsd-license.php">BSD
License</a>.  Other
licensing arrangements can be discussed.</p>

<h2>Change Log</h2>

<p><em>Aptil 7, 2006:</em> First version.</p>
Powered by Sputnik | XHTML 1.1