View Single Post
Old 03-14-2021, 08:32 PM   #15
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Pedro Magnifico View Post
I'm working with a conversion from pdf made with Calibre, which converts all line breaks (which my client's writing style uses generously) to paragraph breaks, so I must manually change them back to line breaks. fixing all of the wonky code with find & replace is still much faster than working in code.
So let's say your original PDF is some poetry, like this:

Code:
this is an
example poem
that ends like this.
and Calibre is converting it into:

Code:
<p>this is an example poem that ends like this.</p>
and you're manually re-inserting all the breaks, so you get this?

Code:
<p>this is an<br/>
example poem<br/>
that ends like this.</p>
When converting the PDF in Calibre:

1. Right-Click the book > Convert books > Convert individually.

2. Under "PDF Input", there's a "Line un-wrapping factor".

You'll want to mess with that number.

That tells Calibre how strongly it will try to put lines back together.
Tex2002ans is offline   Reply With Quote