Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-28-2016, 08:53 PM   #1
LadyKate
Fanatic
LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
Problem with some titles that have major margin issues

I have some titles that have major margin issues in Calibre viewer. The margins seem to be off the page and change with every page (getting worse). For some reason things look ok in the editor and horrid in the viewer.

Any suggestions on how best to handle this problem is welcome. Can't upload a copy of this as it is not my personal work.
LadyKate is offline   Reply With Quote
Old 05-28-2016, 09:02 PM   #2
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: 30,959
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A

Cascading styles, instead of maintaining a Block

Validate the Stylesheet at W3C, there is probably a colon or semicolon in the wrong place(very hard to spot visually)
theducks is offline   Reply With Quote
Advert
Old 06-03-2016, 01:24 AM   #3
LadyKate
Fanatic
LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
Would that be an issue with a retail book? Just curious as this is a retail book that I converted to epub.
LadyKate is offline   Reply With Quote
Old 06-03-2016, 11:25 AM   #4
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: 30,959
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by LadyKate View Post
Would that be an issue with a retail book? Just curious as this is a retail book that I converted to epub.
You would not believe some of the stuff I see in some 'Retail' books.
(Retail, simply means that it was sold, not home made )
Even BPH crank out cr*p because they hire coders that can't even follow 'House Stylesheet' rules.

Even Baens (conversion?) EPUBs include an additional nested Div for each chapter split, so by the 10th chapter, the CODE is indented half way across the screen. I have a 'BaenDeDiv saved search&replace that I run against all files (sometimes as many as 50 passes). The book looks fine. The code was bloated and Ugly.

I suspect you have a bad case of nested Blockquote (they should have used a Div (or nothing) )

Amateurs (coders):
They come in all kinds. Top Quality to 'Not a clue"

If the book won't validate (with no red error level), I can figure where they fall.
Validate, is only the first step
Next is getting rid of code that only appears to work (Calibre class viewers tolerate lots of cr*p that many devices abort or lockup on)
stuff like:
Code:
<p></p>
<span> </span>
(somebody's REGEX was wrong )
theducks is offline   Reply With Quote
Old 06-03-2016, 12:02 PM   #5
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,180
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by theducks View Post
Even Baens (conversion?) EPUBs include an additional nested Div for each chapter split, so by the 10th chapter, the CODE is indented half way across the screen. I have a 'BaenDeDiv saved search&replace that I run against all files (sometimes as many as 50 passes). The book looks fine. The code was bloated and Ugly.
Ducks I use Diapdealers "Diap's Editing Toolbag" to delete them.
Code:
  • Action: delete
  • tag name: div
  • Having the attribute: id
  • whose value is: calibre_pb_\d+
  • and tick the regex box.
Get's rid of them in one pass.

bernie
gbm is offline   Reply With Quote
Advert
Old 06-03-2016, 12:53 PM   #6
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: 30,959
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by gbm View Post
Ducks I use Diapdealers "Diap's Editing Toolbag" to delete them.
Code:
  • Action: delete
  • tag name: div
  • Having the attribute: id
  • whose value is: calibre_pb_\d+
  • and tick the regex box.
Get's rid of them in one pass.

bernie
Thanks for that tip. I have been doing it the other way so long, that I never thought to revisit newer tools
theducks is offline   Reply With Quote
Old 08-01-2016, 08:09 AM   #7
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by LadyKate View Post
I have some titles that have major margin issues in Calibre viewer. The margins seem to be off the page and change with every page (getting worse). For some reason things look ok in the editor and horrid in the viewer.

Any suggestions on how best to handle this problem is welcome. Can't upload a copy of this as it is not my personal work.
I have come across the same problem, I think it is a bug in the Calibre ebook-viewer and so I've submitted a bug report.

This problem only seems to occur when all of these conditions exist:

* The "Text layout in paged mode --> Override the page margin settings specified in the book" option is un-ticked in the ebook-viewer preferences.

* The publisher hasn't specified a @page margin style in the book's stylesheet.

Edit:
* The publisher has used a percentage value for the body margin in the book's stylesheet.

Easiest work-around is probably just to tick the "Override the page margin settings specified in the book" option.

(Edit: The problem I experienced has been fixed in Calibre 2.64, not sure if it is quite the same problem the OP had though.)

Last edited by GeoffR; 08-31-2016 at 10:32 PM. Reason: Fixed in Calibre 2.64
GeoffR is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New to H2O and need help with margin issues sparklemotion Kobo Reader 23 01-25-2015 10:31 PM
K5 Margin issues ? wolw Amazon Kindle 1 08-12-2012 12:07 PM
Touch My Kobo is having major issues... PLEASE HELP Looler Kobo Reader 10 02-24-2012 10:56 PM
PRS-505 Any major issues with larger than 2GB SD cards? avariel Sony Reader 6 09-07-2011 06:07 PM
Major issues with eBook Library v2.2 - Sony Support Acknowledges MSWallack Sony Reader 69 08-16-2009 12:08 PM


All times are GMT -4. The time now is 01:56 AM.


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