![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 2119794
Join Date: Jan 2016
Device: Kindle Paperwhite 2019
|
Formatting changes while converting
I import EPUBs to Calibre before converting them to AZW3 and side-loading them to my Kindle. I prefer to read single-spaced text, so I often have to convert a given book to DOCX, change the formatting in Word, and convert back to AZW3.
Is there a way to do this automatically (the formatting change to single-spaced) as part of the conversion process? Is this what the "Transform Styles" tab is for under Bulk Convert->Look & Feel? |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,465
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
You can edit the epub directly in the Calibre editor, there's no need to convert to anything else for that.
As the css and the html can be coded in hundreds of different ways, there is no sure-fire way that always works other than to edit a book manually. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I agree with @Sirtel. The best way to do it is to edit the HTML/CSS as needed to get the look you want.
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,069
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
I would think that double spaced EPUBs would be fairly rare. Are you perhaps referring to spacing used between paragraphs? If so then the "Remove spacing between paragraphs" conversion option under Look & feel / Layout may be helpful.
|
![]() |
![]() |
![]() |
#5 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,012
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Also simply delete all lines with a line height in CSS as it's not needed and stops the spacing being changed on Kobo or Kindle!
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,465
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
![]() |
![]() |
![]() |
#7 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
As I've never used that option, how does it handle section breaks where it's just space?
|
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,069
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
|
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 2119794
Join Date: Jan 2016
Device: Kindle Paperwhite 2019
|
Thanks to all who responded, the line-height fix was exactly what I was looking for.
|
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 2119794
Join Date: Jan 2016
Device: Kindle Paperwhite 2019
|
|
![]() |
![]() |
![]() |
#12 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,156
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Generally, I replace them with 3 bolded asterisks. Since the code used is generally the same throughout the book, it's relatively easy to copy/paste the original code into the find and my replacement code into the replace field and then do a replace all.
|
![]() |
![]() |
![]() |
#13 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify; } hr { margin-top: 1em; margin-right: 40%; margin-bottom: 0.9em; margin-left: 40%; border-top: 2px solid; } p { margin-top: 0; margin-bottom: 0; text-indent: 1.2em; } .noindent { text-indent: 0; } Code:
<p>Normally being pelted by a chocolate Easter egg wouldn’t be a big deal, but these weren’t chocolate. They’d made that mistake only once.</p> <hr/> <p class="noindent">A few years earlier, when the village of Three Pines first decided to have an egg hunt on Easter Sunday, there’d been great excitement. The villagers met at Olivier’s Bistro and over drinks and Brie they divvied up bags of chocolate eggs to be hidden the next day. ‘Ooohs’ and ‘Aaaaahs’ tinged with envy filled the air. Would that they were children again. But their pleasure would surely come from seeing the faces of the village children. Besides, the kids might not find them all, especially those hidden behind Olivier’s bar.</p> Last edited by JSWolf; 04-12-2022 at 04:42 AM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Formatting Wrong After Converting To PDF | jwchameleoncorp | Conversion | 3 | 01-13-2017 06:05 PM |
Converting Books - Formatting? | marty1990 | Calibre | 6 | 06-11-2012 01:07 PM |
Losing formatting when converting PDB | Edwin Fong | Calibre | 5 | 10-25-2009 07:20 PM |
How do I maintain formatting when converting to lrf? | corroonb | Calibre | 2 | 03-11-2009 12:59 PM |
Converting pdf or Word to mobi with formatting | pfisterfarm | Kindle Formats | 4 | 01-01-2009 11:50 AM |