![]() |
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 |
Conversion with txt as the input format should have the text run though markdown and it should be creating paragraphs. It should also unwrap hard line broken paragraphs. Open a bug at http://calibre.kovidgoyal.net and attach the text file so I don't forget to look into it.
|
Quote:
Or, more to the point: How does Calibre recognize paragraphs in TXT files? Is it expecting double spacing? The TXT file I tested with only had single spacing... John |
Quote:
So: Code:
line1 is right here.Code:
line 1 is it's own.Code:
para |
Quote:
Not "almost like the file is". As I said, that is exactly the way the file is. Single spaced. Every native Windows based tool I've used uses a single hard return as a paragraph marker. Is there a way to configure Calibre to recognize a single hard return as a paragraph marker? Earlier in this thread you mentioned "markdown". What is "markdown"? John |
|
Quote:
So, calibre is pre-processing text with markdown? That's cool. Good for folks to know, they might want to do a quick edit before adding to calibre. m a r |
Quote:
Quote:
|
| All times are GMT -4. The time now is 08:19 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.