View Single Post
Old 08-11-2010, 06:24 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by billingd View Post
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.
Most folks are trying to create a way to do flowable text that doesn't screw up poetry in ePubs. Kovid even gave us a nice demo.epub that we can view in Sigil to see how basic things can be encoded so they will look good in the ePub format. Why you would want to go backwards is beyond me.

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.
DoctorOhh is offline   Reply With Quote