Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-28-2020, 11:03 AM   #1
seannymurrs
Member
seannymurrs began at the beginning.
 
seannymurrs's Avatar
 
Posts: 19
Karma: 10
Join Date: Jun 2018
Device: iPhone X, iPad Pro (10.5")
Question re: vertical scrolling margins in Apple Books

I’m in the process of trying to figure out the best app/device/format in which to read my collection of ebooks. Since most of my devices reside in the Apple ecosystem, I’ve tried giving Apple Books a shot. When reading on my iPhone, I prefer to use vertical scrolling rather than turning the page due to the aspect ratio of the device. I’ve noticed that some books have absurdly wide margins when viewed this way (see my attached screenshot for an example). I’ve found that converting the epub to epub (I know that sounds redundant), and using the tablet output profile, will fix this margins issue. Unfortunately, it tends to add other formatting issues in the process (such as chapter headings no longer looking correct or weird formatting for block indented text). I’ve also attached a screenshot showing what I mean by this.

I don’t really know enough about the structure of an epub file to know how to begin troubleshooting this issue. I’m hoping someone here could point me in the right direction on how to fix the original issue with wide margins without messing up the rest of the ebook in the process.

Click image for larger version

Name:	NvSW7sb.jpg
Views:	282
Size:	193.0 KB
ID:	184322 Click image for larger version

Name:	EcQpFFh.jpg
Views:	276
Size:	164.8 KB
ID:	184323

Last edited by issybird; 12-28-2020 at 04:28 PM. Reason: Thumbnail oversize images.
seannymurrs is offline   Reply With Quote
Old 12-28-2020, 03:58 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,552
Karma: 167913281
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Not sure if you have the capability yet but if you do, edit your message and use the Attachments tool to attach the image instead of placing it in the message.
DNSB is online now   Reply With Quote
Advert
Old 12-28-2020, 04:15 PM   #3
seannymurrs
Member
seannymurrs began at the beginning.
 
seannymurrs's Avatar
 
Posts: 19
Karma: 10
Join Date: Jun 2018
Device: iPhone X, iPad Pro (10.5")
Sorry about that. It doesn’t look like I have the ability to edit my post. I’d delete it and repost, but I’m not sure if I can delete the post either.
seannymurrs is offline   Reply With Quote
Old 12-28-2020, 04:30 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: 21,110
Karma: 234185759
Join Date: Oct 2010
Location: New England
Device: H2O, Aura One, PW5
I’ve attached the images. If you run into an issue with a post that you can’t fix (can’t edit, wrong place) report the post and a mod will attend to it.
issybird is offline   Reply With Quote
Old 12-29-2020, 04:28 AM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I'd guess that side margins are specified as a percent. According to the CSS specification a percent side margin is sized relative to the height of the element (which in the absence of more information could be the screen). Maybe in scroll mode the height is the whole book or chapter, which then makes the side margins larger. (Ignore this, it's actually the other way around.)

I don't think there's an automated solution to fix that and only that. But if you know the basics of CSS and peek into the book's code, it should be relatively easy to find and fix the offending rules (I usually remove all side margins in <p>, and <body>, and add a 2mm margin in @page).

Last edited by Jellby; 12-30-2020 at 11:05 AM.
Jellby is offline   Reply With Quote
Advert
Old 12-29-2020, 08:45 AM   #6
seannymurrs
Member
seannymurrs began at the beginning.
 
seannymurrs's Avatar
 
Posts: 19
Karma: 10
Join Date: Jun 2018
Device: iPhone X, iPad Pro (10.5")
Quote:
Originally Posted by Jellby View Post
I'd guess that side margins are specified as a percent. According to the CSS specification a percent side margin is sized relative to the height of the element (which in the absence of more information could be the screen). Maybe in scroll mode the height is the whole book or chapter, which then makes the side margins larger.

I don't think there's an automated solution to fix that and only that. But if you know the basics of CSS and peek into the book's code, it should be relatively easy to find and fix the offending rules (I usually remove all side margins in <p>, and <body>, and add a 2mm margin in @page).
Thanks! I’ll give it a peek in Calibre and do some trial and error. Thanks again for pointing me in the right direction.
seannymurrs is offline   Reply With Quote
Old 12-30-2020, 11:08 AM   #7
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Please ignore what I said, it's bullshit. It's the other way around, percent in top/bottom margins is relative to the width. If you're getting larger margins in scroll mode, it could be that the reading software is applying a different default stylesheet, or that the style is doing something strange.

Still the solution would probably be the same: examine the CSS and fix some rules.
Jellby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vertical Scrolling aristide Marvin 2 01-23-2019 08:05 PM
Vertical Scrolling Ricky D'Angelo Kindle Fire 6 12-05-2018 10:40 PM
Vertical scrolling vs40 Marvin 1 10-22-2015 12:58 PM
Vertical scrolling... Holx Marvin 6 07-17-2014 04:35 PM
Touch Vertical scrolling using app holgalee Nook Developer's Corner 3 06-18-2012 09:29 AM


All times are GMT -4. The time now is 11:13 PM.


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