![]() |
#16 |
Member
![]() Posts: 10
Karma: 10
Join Date: Sep 2022
Device: Kobo Libra H2O
|
That's what this is. It was originally an azw file (if I remember right, there are other Amazon extensions I think, but most are (or were) .azw) that was converted to an epub to work on Aldiko on an Android tablet. There were a few that never really worked well that were converted to and from different formats trying to solve things--one of the books I remember suddenly got misspellings in it like it was not reading but OCR-ing and transcribing, as in 'd' became 'cl', 'i' became 'l', 'D' became 'l)', etc. So I was converting them from file format to file format trying to find some that worked. I don't think this is one, though, since I remember buying the first...four(?) of the series then she wrote a fifth, or then I learned of the fifth. The fifth I bought as epub. The cover is different and that bothers me.
|
![]() |
![]() |
![]() |
#17 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,841
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Is there by any chance a page-template (.xpgt) xml file or adobe-template.xpgt file inside the epub. If so, try removing that as some older epub2 epubs used this to create columns.
Last edited by KevinH; 09-14-2022 at 12:57 PM. |
![]() |
![]() |
![]() |
#18 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 777
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
|
If you make a testing copy of the epub (perhaps in a test Calibre library), you could strip the css out of the stylesheet, copy the book (with a different name) over to your Kobo and see if the narrowness goes away. That, at least would let you focus on the css and not something else.
I've gone through that stylesheet you posted, removed everything that's not obviously table related, added some of my generic stuff in at the top and posted it below. You could try deleting everything in your test book's stylesheet page and copying mine in. Then go to the Tools menu and Remove Unused CSS Rules, then Fix HTML Files - All Files and then Beautify All Files. I'm pretty sure that will remove all the no-longer-present classes in your text. All the fancy stylings will go away, but it should be semi-decent. Code:
@page { margin-top: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; } body { /* Basic Styling for BODY Sections of a File */ height: 100%; margin: 0; orphans: 1; padding: 0; widows: 1; } * + * { /* Lobotomized Owl Selector - what to do any time two objects follow each other - limit to margin-top */ margin-top: 0.6em; } h1, h2, h3, h4 { /* Basic Chapter Heading Styling */ page-break-before: always; page-break-after: avoid; text-align: center; } h1 + p, h2 + p, h3 + p, h4 + p, hr + p, ol + p, ul + p, .chapquote + p, .headline + p, .letter + p, .note + p, .poem + p, .placard + p, .song + p { /* Non-indented Paragraphs Styling (for paragraphs that follow something and shouldn't be indented) */ text-indent: 0; } h1 + p::first-letter, h2 + p::first-letter, h3 + p::first-letter, h4 + p::first-letter, hr + p::first-letter, .chapquote + p::first-letter { /* First-Letter Styling (for the first letter following certain things (IOW, dropcaps)) */ font-weight: bold; } h2 + p::first-line, h3 + p::first-line, h4 + p::first-line, hr + p::first-line, .chapquote + p::first-line { /* Make first line of first paragraphs smallcap */ font-size: 1.05em; font-variant: small-caps; } hr { /* Thematic break to use 3 asterisks between parts of story */ margin-top: 0.9em; margin-bottom: 0.9em; border: none; } hr::before { content: "***"; display: block; text-align: center; } p { /* Basic paragraph styling */ display: block; text-indent: 1.2em; } blockquote { /* Blockquote Styling */ display: block; font-size: small; font-style: italic; margin-left: 1.7em; margin-right: 1.7em; } .calibre14 { display: table-row-group; vertical-align: middle; } .calibre15 { display: table-row; vertical-align: inherit; } .calibre16 { display: table-cell; text-align: inherit; vertical-align: top; width: 3.45in; padding: 0 5.4pt; } .calibre17 { display: block; font-family: Arial; font-size: 1.125em; font-weight: bold; line-height: 1.2; page-break-after: avoid; text-autospace: none; margin: 12pt 0 3pt; } .calibre18 { display: table-cell; text-align: inherit; vertical-align: top; width: 49.5pt; padding: 0 5.4pt; } .calibre19 { display: table-cell; text-align: inherit; vertical-align: top; width: 135pt; padding: 0 5.4pt; } .calibre33 { display: table-cell; text-align: inherit; vertical-align: top; width: 0.75in; padding: 0 5.4pt; } .msotablegrid { border-collapse: collapse; border-spacing: 2px; display: table; margin-bottom: 0; margin-top: 0; text-indent: 0; } .msotablegrid1 { border-collapse: collapse; border-spacing: 2px; display: table; margin-bottom: 0; margin-left: 54.9pt; margin-top: 0; text-indent: 0; } Last edited by enuddleyarbl; 09-12-2022 at 03:26 PM. |
![]() |
![]() |
![]() |
#19 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,811
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#20 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
GIGO
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="Microsoft Word 10 (filtered)"/>
<title>THE</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
<link rel="stylesheet" type="text/css" href="page_styles.css"/>
</head>
<body lang="EN-US" link="blue" vlink="purple" class="calibre">
<span class="calibre12"><br clear="all" class="calibre13" id="calibre_pb_2"/>
</span>
![]() |
![]() |
![]() |
![]() |
#21 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 777
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
|
I'm trying to figure out what that naked span is even intended to do. Everything in it, except for the deprecated <br clear="all" appears to have been added by Calibre's conversion process. "calibre12 and 13 are nothing but classes to set font, size and block. So, I'm assuming that in the original epub, that first line immediately after the body statement was:
<br clear="all"/> Am I missing something? Is there any object anywhere at that point whose bottom margin needs to be cleared? I hope the OP followed Jon's advice and re-downloaded the book from Amazon and re-converted it, because it sure looks odd. |
![]() |
![]() |
![]() |
#22 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,235
Karma: 105299897
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
I've only ever needed <br clear="all"/> in Wordpress to stop text wrapping on an image. Never needed it in an ebook.
|
![]() |
![]() |
![]() |
#23 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 777
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
|
And, looking at the body statement, itself:
Code:
<body lang="EN-US" link="blue" vlink="purple" class="calibre"> Code:
.calibre { display: block; font-size: 1em; padding-left: 0; padding-right: 0; text-align: justify; text-justify-trim: punctuation; margin: 0 5pt; } Code:
text-justify-trim: punctuation; |
![]() |
![]() |
![]() |
#24 | ||||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
He explains all the weird edge-cases found in documents people create... like multiple left/right floats in the same paragraphs. Quote:
Quote:
![]() Quote:
Quote:
Quote:
Code:
auto | none | inter-word | inter-character Tons and tons of needless CSS + overrides + every which type of obscure/obsolete CSS + IE-specific crap. That is definitely not needed in English. Last edited by Tex2002ans; 09-18-2022 at 08:40 PM. |
||||||
![]() |
![]() |
![]() |
#25 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
#26 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
IIRC Clear=All was supposed to end a Float
I use <br /> inside a normal block when I want to force to 2 lines at a certain point. It also allows the TOC tool to treat both pieces as if the break was not there. Code:
<h2>Chapter 42 <br> Life without a Universe</h2> |
![]() |
![]() |
![]() |
#27 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,235
Karma: 105299897
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Method to Convert Fancy CSS to Everyday CSS? | enuddleyarbl | ePub | 25 | 07-25-2022 02:07 PM |
Customize viewer css. pygments.css not found | drglenn | Viewer | 2 | 12-18-2020 04:52 PM |
pagestyle.css extra / integrated in stylesheet.css / or not at all? | chaot | Workshop | 14 | 02-24-2017 11:10 PM |
Broken PW screen, anyway to widen margins? | Xelnok | Amazon Kindle | 5 | 04-10-2013 01:51 PM |
css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 05:09 PM |