08-10-2010, 10:51 PM | #1 |
Enthusiast
Posts: 42
Karma: 8616
Join Date: May 2010
Location: Melbourne, Australia
Device: Kobo
|
Preserving <br /> on epub -> txt conversion
Does calibre have an option to preserve <br /> breaks when exporting from epub to txt? I have looked but can't find one.
I am trying to preserve the formatting of poetry, etc embedded in a book. The current behavior is (roughly) a conversion from Code:
<p>line 1,<br/> line 2,<br/> line 3,<br/> line 4.</p> Code:
line 1, line 2, line 3, line 4. Code:
line 1, line 2, line 3, line 4. Last edited by billingd; 08-10-2010 at 11:19 PM. Reason: Attach simple test case |
08-11-2010, 06:24 AM | #2 | |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
I couldn't do it in just calibre and still have the space between verses. The only way I found to do this reliably is to use calibre to convert to RTF and then use Wordpad to convert the RTF to text. I attached two formatted epubs (with the resultant RTF and Text files) that use different methods to get the space between verses. One uses Non-breaking spaces in a paragraph tag and the other uses all <br /> line breaks. The one with non-breaking spaces uses paragraph tags on all the lines. Take a look. |
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Preserving format from ePub (Sigil) to Mobi | jeff47 | Calibre | 9 | 10-22-2010 10:17 PM |
Conversion: EPUB to TXT | Starson17 | Calibre | 11 | 05-29-2010 12:31 PM |
TXT conversion to ePub or LRF - paragraph formatting | Zapped | Calibre | 6 | 10-23-2009 05:06 PM |
Preserving Formatting through conversion? | Ham88 | 16 | 08-31-2009 02:22 AM | |
Preserving TOC upon conversion from Lit to Mobi | mobelby | Calibre | 0 | 07-31-2009 07:59 AM |