Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-17-2025, 05:55 PM   #16
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,749
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ianc View Post
DNSB - I was thinking about how I could use the find\replace feature to change that, but that sounds like a more elegant solution than the one I had thought of. I'll give it a whirl. Thanks!

BetterRed, a book I really wanted to read was only available in a wretched image scan PDF. I tried to convert that directly in Calibre but no workie. My workaround was to manually delete the covers in Acrobat, then run it through k2pdfopt.exe with OCR turned on, then open that file in word, save it, and convert that in Calibre. Not sure how to format the Word file using the styles feature, but I'm new at this.... :-)
If you have a recent edition of MS Word try opening the PDF in it… it's OCRing is sometimes surprisingly good.

This addin for Word ==>> MR: Toxaris' eBook Tools has features to help cleanup OCR artefacts.

BR

Last edited by BetterRed; 01-17-2025 at 05:58 PM.
BetterRed is online now   Reply With Quote
Old 01-17-2025, 06:36 PM   #17
ianc
Member
ianc ought to be getting tired of karma fortunes by now.ianc ought to be getting tired of karma fortunes by now.ianc ought to be getting tired of karma fortunes by now.ianc ought to be getting tired of karma fortunes by now.ianc ought to be getting tired of karma fortunes by now.ianc ought to be getting tired of karma fortunes by now.ianc ought to be getting tired of karma fortunes by now.ianc ought to be getting tired of karma fortunes by now.ianc ought to be getting tired of karma fortunes by now.ianc ought to be getting tired of karma fortunes by now.ianc ought to be getting tired of karma fortunes by now.
 
Posts: 16
Karma: 472024
Join Date: Nov 2012
Device: Samsung Galaxy S3
Thanks guys, using the find and replace I was able to get the conversion to add the indents and I think it's looking quite good now. I appreciate your help and all your suggestions to make this onerous task easier in future.

Thanks again for the help!
ianc is offline   Reply With Quote
Old 01-17-2025, 08:27 PM   #18
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,080
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
<p></p> is probably someone writing books like they were on a Typewriter

But as indicated ALL <p> will be treated the same. Usually that is not always 100% of the cases.

<p class="noindent"> for those exceptions (AKA Flush left)


so your CSS would be:

p {text-indent: 1.5em; }

.noindent {text-indent: 0;}
theducks is offline   Reply With Quote
Old 01-18-2025, 07:41 AM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
Which would only work is there no other code between the </h2> and the <p>. Quite a few ebooks seem to place images, subheaders, etc. between the chapter header with the </hx> ending tag and the initial p.
Most eBooks have a single line chapter header. So that would work there.

For cases where you have other stuff between the chapter title and the first paragraph, you could use another h like h3 and then code the relevant CSS for that.
JSWolf is offline   Reply With Quote
Old 01-18-2025, 08:23 AM   #20
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by theducks View Post
<p></p> is probably someone writing books like they were on a Typewriter

But as indicated ALL <p> will be treated the same. Usually that is not always 100% of the cases.

<p class="noindent"> for those exceptions (AKA Flush left)


so your CSS would be:

p {text-indent: 1.5em; }

.noindent {text-indent: 0;}
IMHO, <p> CSS would be better off being...
Code:
<p> {
  text-indent: 1.2em;
  margin-top: 0;
  margin-bottom: 0;
  widows: 1;
  orphans: 1;
}
JSWolf is offline   Reply With Quote
Old 01-18-2025, 11:22 AM   #21
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,410
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Most eBooks have a single line chapter header. So that would work there.

For cases where you have other stuff between the chapter title and the first paragraph, you could use another h like h3 and then code the relevant CSS for that.
I did a quick check on 114 books. 25 of them had nothing between the chapter title and it's </h?>, the other 89 did have something, chapter subheaders, images, data/time, etc.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add blank lines between paragraphs. bn_el KOReader 5 11-02-2017 11:14 AM
blank lines between paragraphs franklekens Kobo Reader 71 01-26-2015 12:52 PM
Blank lines between paragraphs? ascherjim OpenInkpot 30 12-03-2009 12:19 AM
Removing blank lines between paragraphs? corroonb Workshop 3 08-13-2009 04:23 PM
Insert Blank Lines Between Paragraphs Timoleon Calibre 14 03-22-2009 02:43 PM


All times are GMT -4. The time now is 06:42 PM.


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