Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 02-11-2024, 03:16 PM   #1
mg10
Connoisseur
mg10 began at the beginning.
 
Posts: 77
Karma: 10
Join Date: Jul 2013
Device: Kindle Scribe, PW, Kobo Aura One
Error in azw3 books with negative margins to reduce them

Hi All
I retake this topic from Calibre forum because maybe here thare are more possibilities of answer.
With my Scribe I'm using this option in Calibre (styles --> additional css), when converting from epub to azw3, in order to get desired margins:

html {
margin-right: -130px;
margin-left: -130px;
break-inside: avoid !important;
}


After updating a PW, I could see that this option caused an error when opening the book, or trying to change fonts: the one I indicated at the beginning of this thread:
"An error occurred. If you purchased this item from Amazon, delete the item and download it from the Cloud"

In order to avoid this behavior with my Scribe, I stay on an old firmware version because don't know if this error is going to be repeated in the Scribe.

My question is: can someone who has 5.16.6 release or latest in a Scribe, confirm if this happens as well? Someone who uses Calibre and transfers the books through it. I'd like to avoid upgrading if I can no longer use the margins I like, because I won't be able to downgrade it.

Thanks in advance
mg10 is offline  
Old 02-11-2024, 03:47 PM   #2
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,523
Karma: 87454321
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Try a percentage -1.5% or only in the body text, not the html property, though that might be more work.
Leave out the
Code:
break-inside: avoid !important;
Quoth is offline  
Old 02-11-2024, 06:33 PM   #3
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: 74,513
Karma: 129668758
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 Quoth View Post
Try a percentage -1.5% or only in the body text, not the html property, though that might be more work.
Leave out the
Code:
break-inside: avoid !important;
Do not leave that out. I don't recall why it's there. But it is there to fix a bug in some version firmware at the time and for all we know, the bug could still be there.

I use this and it works. I've even used it on a PW5.

Code:
html {
  margin-right: -45px;
  margin-left: -45px;
  break-inside: avoid !important;
}
JSWolf is online now  
Old 02-11-2024, 07:16 PM   #4
issybird
o saeclum infacetum
issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.
 
issybird's Avatar
 
Posts: 20,320
Karma: 223032092
Join Date: Oct 2010
Location: New England
Device: H2O, Aura One, PW5
Moderator Notice
Please don't cross post. Report a post and ask for it to be moved.
issybird is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in azw3 books with reduced margins after conversion with Calibre mg10 Kindle Developer's Corner 41 02-26-2024 10:41 AM
Negative margins Gandulf Viewer 6 02-24-2021 02:27 PM
Conversion epub-->azw3 with negative margins snoeki Conversion 60 12-07-2018 06:03 AM
Negative margins JSWolf Kobo Developer's Corner 0 07-08-2016 04:51 AM
Using negative margins Agama Conversion 0 03-03-2012 07:29 AM


All times are GMT -4. The time now is 05:34 AM.


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