View Single Post
Old 08-04-2009, 06:22 PM   #1
jmurphy
Zealot
jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.jmurphy ought to be getting tired of karma fortunes by now.
 
Posts: 110
Karma: 1133068
Join Date: Sep 2007
Device: ipaq
Convert TXT to anything - simply wraps with < html > < body > ?

Am I doing something wrong, or is converting from TXT extremely limited?

In trying to convert from TXT to ePub, for instance, the txt simply gets wrapped with html and body tags.

As a result, the ePub has absolutely no paragraphs.

Is this the expected behaviour?

My (unreasonable?) expection is that during the conversion to HTML, Calibre would convert hard-returns (or double hard-returns) to html paragraphs.

What I'd really like to see is roughly round-tripping : Take an ePub, save the content as text, run that text through Calibre and have an ePub that at least resembles the original. In this scenario, Calibre would process the text looking for Keywords like "Chapter" etc, and at least add a header tag to them during the html conversion, before converting to ePub.

So, what should I expect from Calibre when converting a TXT file to another format?

John Murphy
jmurphy is offline   Reply With Quote