08-15-2023, 11:02 AM | #46 | |
Resident Curmudgeon
Posts: 74,395
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
The following code works very well for the epigraphs. The following image is from the calibre editor to show how the code looks. CSS Code:
blockquote { margin-top: 1em; margin-right: 1.5em; margin-bottom: 1em; margin-left: 1.5em; } body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify; } h2 { text-align: center; text-indent: 0; margin-top: 0.8em; margin-bottom: 0.8em; } p { margin-top: 0; margin-bottom: 0; text-indent: 1.2em; } .chapterOpenerText { text-indent: 0; } .extractSource { text-align: right; text-indent: 0; } .extractVerse-v { text-indent: -1.2em; margin-left: 1.2em; } .smallCaps { font-size: 0.8333em; } Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>The Crippled God</title> <link href="9781429969475.css" rel="stylesheet" type="text/css"/> </head> <body> <h2>Chapter Three</h2> <blockquote> <p class="extractVerse-v"><i>Time now to go out into the cold night</i></p> <p class="extractVerse-v">And that voice was chill enough</p> <p class="extractVerse-v">To awaken me to stillness</p> <p class="extractVerse-v">There were cries inviting me into the sky</p> <p class="extractVerse-v">But the ground held me fast –</p> <p class="extractVerse-v">Well that was long ago now</p> <p class="extractVerse-v">Yet in this bleak morning the wings</p> <p class="extractVerse-v">Are shadows hunched on my shoulders</p> <p class="extractVerse-v">And the stars feel closer than ever before</p> <p class="extractVerse-v">The time is soon, I fear, to set out in search</p> <p class="extractVerse-v">Of that voice, and I will draw to the verge</p> <p class="extractVerse-v"><i>Time now to go out into the cold night</i></p> <p class="extractVerse-v">Spoken in so weary a tone</p> <p class="extractVerse-v">I can make nothing worthy from it</p> <p class="extractVerse-v">If dreams of flying are the last hope of freedom</p> <p class="extractVerse-v">I will pray for wings with my last breath</p> <p class="extractSource"><i>Cold Night</i></p> <p class="extractSource">Beleager</p> </blockquote> <p class="chapterOpenerText"><span class="smallCaps">SMOKE HUNG IN THICK WREATHS IN THE CABIN. THE PORTHOLES WERE</span> all open, shutters locked back, but the air did not stir and the sweltering heat lapped exposed flesh like a fevered tongue. Clearing her throat against a pervasive itchiness in her upper chest, Felash, Fourteenth Daughter of Queen Abrastal, tilted her head back on the soft, if soiled and damp, pillow.</p> <p>Her handmaid set about refilling the pipe bowl.</p> <p>‘Are you certain of the date?’ Felash asked.</p> <p>‘Yes, Highness.’</p> Last edited by JSWolf; 08-15-2023 at 11:22 AM. |
|
08-15-2023, 11:17 AM | #47 |
Groupie
Posts: 180
Karma: 1074916
Join Date: Jan 2021
Device: Likebook Ares
|
Thanks!
Sent from my 22081212UG using Tapatalk |
08-15-2023, 11:24 AM | #48 |
Resident Curmudgeon
Posts: 74,395
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Go back and have a look as I've edited the post to add in some more code and a screen grab.
Oh and forget a calibre conversion as it doesn't work well. Editing the code works best. calibre doesn't fix poor code in the eBook. |
08-15-2023, 11:47 AM | #49 | |
Groupie
Posts: 180
Karma: 1074916
Join Date: Jan 2021
Device: Likebook Ares
|
Quote:
Sent from my 22081212UG using Tapatalk |
|
08-15-2023, 12:48 PM | #50 |
Grand Sorcerer
Posts: 10,322
Karma: 225099840
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Checking "Remove margins" in the conversion settings is one of the worst things to do, as it removes all margins in the book. Best to do that one by hand. (I do most of my editing by hand, but there are some things that often work with converting as well. Margin removal is not one of them, and paragraph spacing doesn't always work well either or even not at all, depending on the coding of the book. Font removal mostly works with conversion.)
|
08-15-2023, 12:55 PM | #51 | |
Resident Curmudgeon
Posts: 74,395
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
08-15-2023, 01:19 PM | #52 | |
Groupie
Posts: 180
Karma: 1074916
Join Date: Jan 2021
Device: Likebook Ares
|
Quote:
They are very simple changes I will be doing editing the files since KOreader tweaks don't work always. Nearly all my books are Calibre converted with css flattening since they come from azw3 format. Not sure if you know a way to convert them without the calibrexxx generated classes which is fine to me but I am curious. Sent from my 22081212UG using Tapatalk |
|
08-15-2023, 01:35 PM | #53 |
Grand Sorcerer
Posts: 10,322
Karma: 225099840
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
No, there's no way to convert without calibre-generated classes, but there should be a way to extract the epub without converting, using the KindleUnpack plugin. I don't know much about this, however, as I don't mind calibre conversions (with most options unchecked).
|
08-15-2023, 01:37 PM | #54 | |
Resident Curmudgeon
Posts: 74,395
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Last edited by JSWolf; 08-15-2023 at 03:59 PM. |
|
08-15-2023, 01:41 PM | #55 | |
Groupie
Posts: 180
Karma: 1074916
Join Date: Jan 2021
Device: Likebook Ares
|
Quote:
Sent from my 22081212UG using Tapatalk |
|
08-15-2023, 01:43 PM | #56 |
Grand Sorcerer
Posts: 10,322
Karma: 225099840
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
There are some cases where conversion is actually preferable, and those are the books where the author has used inline styles instead of proper css. Calibre converts those styles to css when you convert the book, which makes it a lot easier to edit.
|
08-15-2023, 04:07 PM | #57 | |
Resident Curmudgeon
Posts: 74,395
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I've edited a number of books that had a combination of CSS and inline styles. Most of the inline styles were the same for the paragraphs and easy enough to edit. |
|
08-19-2023, 04:45 PM | #58 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Nov 2019
Device: Huawei Mate 20 X
|
AlReaderX (universal version). Prefer it over Librera or Moon+
With "Linux Biolinum" font. Screenshot related. https://4pda.to/forum/index.php?showtopic=945616 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
From Library, how to return to Reading app? | playful | Onyx Boox | 3 | 09-07-2020 02:41 PM |
Best app for reading djvu files Like Book Mars? | Waddle | Boyue | 2 | 02-21-2020 07:37 PM |
Mobile app for browsing, reading my library? | mcandre | Calibre | 7 | 01-12-2019 03:08 PM |
Axis 360 now enforcing the use of their app for e-book reading | jhowell | News | 77 | 05-29-2016 12:35 PM |
Reading a non-amazon book on my iphone kindle app locks up the phone | palex481 | Amazon Kindle | 21 | 03-23-2009 12:32 PM |