Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2011, 06:52 AM   #1
rockeh
Junior Member
rockeh began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2010
Device: iriver Story
TXT to EPUB conversion issue

Hi guys, I have a weird issue with TXT > EPUB conversion: all TXT files I have are marked up with markdown, but the paragraph structure doesn't carry across into EPUB. For instance, if I have

Code:
# Chapter

Lorem ipsum.

Dolor sit.

* * *

Amet
I expect the output to be

Code:
<h1 class="calibre4">Chapter</h1>
<p class="calibre3">Lorem ipsum.</p>
<p class="calibre3">Dolor sit.</p>
<hr class="calibre6"/>
<p class="calibre3">Amet</p>
However, what I get instead is this:

Code:
<h1 class="calibre4">Chapter</h1>
<p class="calibre3">Lorem ipsum.
Dolor sit.
<hr class="calibre6"/>
Amet</p>
IE, a single paragraph.

I've tried setting the line endings to off, print, auto, all the values; none of this helps. The strange thing is that with "off" and "markdown" on a different computer, the conversion works just fine.

The TXT lines are ended with CR/LF, UTF-8 (no BOM) encoded, and I'm using calibre 0.7.49.

Any help is appreciated
rockeh is offline   Reply With Quote
Old 03-18-2011, 07:33 AM   #2
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
Worked correctly here.

Txt Input->
Paragraph style = off (options are : auto|block|single|print|unformatted|off)
formatting style = markdown (options are : auto|plain|heuristic|textile|markdown)

Uncheck
Remove indents at the beginning of lines
(with this checked, I get the 'incorrect' conversion of joined lines.)
Perkin is offline   Reply With Quote
Old 03-18-2011, 11:50 AM   #3
rockeh
Junior Member
rockeh began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2010
Device: iriver Story
Quote:
Originally Posted by Perkin View Post
Uncheck
Remove indents at the beginning of lines
*facepalm*

The one thing I hadn't touched...

Thank you
rockeh is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! txt to epub conversion markup: linked notes Sylver Conversion 17 02-25-2011 03:23 PM
Opus Txt files issue with epub firmware davidli Bookeen 1 11-30-2010 07:01 AM
Preserving <br /> on epub -> txt conversion billingd Calibre 1 08-11-2010 07:24 AM
Conversion: EPUB to TXT Starson17 Calibre 11 05-29-2010 01:31 PM
TXT conversion to ePub or LRF - paragraph formatting Zapped Calibre 6 10-23-2009 06:06 PM


All times are GMT -4. The time now is 01:46 AM.


MobileRead.com is a privately owned, operated and funded community.