View Single Post
Old 03-28-2019, 09:11 PM   #23
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by lumpynose View Post
From my misadventure with this it seems to me that what calibre would work best with is EPUBs where the text between the beginning and ending p tags is one long line with no linefeeds.
Because of the way epubs work, it doesn't really matter. Any epub reader/device that doesn't handle them is broken. The one place it causes a little confusion is highlighting text on my Kobo devices. If there is a line feed in the text, it shows in the annotations list on the device. But, the main reason I fix it is because I don't like the look of it.
Quote:
It sounds like you may have a regex that does that? If so could you post it with instructions for where (which program) you use it?
It's a saved search in the calibre editor. It started as:

Code:
(\w)
(\w)
with the replacement:
Code:
\1 \2
And has expanded to add other possible characters for the last and first of the lines. There's probably a better way to do, but, this is the quick and dirty way. There's always one or two lines that it doesn't catch. It's on my home machine. I'll try and remember to post it tonight.

After seeing what the conversion heuristics does, I might have a look at it and see how it works and if I can use it. My current version misses just enough to be annoying.
davidfor is offline   Reply With Quote