Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-24-2023, 07:13 AM   #16
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,516
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Interrobang View Post
If specifying line-height, extra spacing between text blocks and any padding around images should be a multiple of the specified line-height to keep text aligned across the spine.
"Should" is not "must", but anyway...

"If specifying line-height". You should not do that, so the rest can be ignored.

"extra spacing between text blocks and any padding around images should be a multiple of the specified line-height". This is easy to comply with. You set line-height to, say, 1.2, and then set extra padding to 0.6... oh, wait, they mean integer multiple. Well, set the padding to 1.2 or 2.4

"to keep text aligned across the spine". Nonsense. This won't happen (except maybe in some very specific broken applications). It might work with some vanilla code, but first, line-height works weirdly (and you should not specify it, and the user can change it), elements with different font size will alter line spacing, then they don't say what's the image size, or what to do with margins.
Jellby is offline   Reply With Quote
Old 07-24-2023, 07:50 AM   #17
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,675
Karma: 87654321
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by Jellby View Post
"Should" is not "must", but anyway...

"If specifying line-height". You should not do that, so the rest can be ignored.
Exactly. None of the stuff we have on Apple Books has any line-height properties.

Also we use Smashwords/D2D to publish on Apple, Kobo and Barnes & Noble.
Quoth is offline   Reply With Quote
Old 07-24-2023, 08:34 AM   #18
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,568
Karma: 84812983
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
According to the change log that requirement was added to the Assets Guide in version 4.8 dated December 8, 2011. I suspect that it made more sense then given the simpler e-book formatting that was common at that time.

Or perhaps it was added by someone with a print book background and a poor understanding of HTML/CSS.

Last edited by jhowell; 07-24-2023 at 08:58 AM.
jhowell is online now   Reply With Quote
Old 07-24-2023, 03:17 PM   #19
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Jellby View Post
It might work with some vanilla code, but first, line-height works weirdly (and you should not specify it, and the user can change it), elements with different font size will alter line spacing, then they don't say what's the image size, or what to do with margins.
Yep. Throw in:
  • a formula or two
  • + a chart/graph and a caption
  • + footnotes
  • + superscripts/subscripts
  • + all sorts of "weird" things...

If you have entire pages of pure text + an occasional heading—like a Fiction book—it's a little easier.

But deal with Non-Fiction, and trying to enforce grid-based layouts... you'll be pulling your hair out in no time! :P

Quote:
Originally Posted by jhowell View Post
Or perhaps it was added by someone with a print book background and a poor understanding of HTML/CSS.
Yes, I'd suspect this too.

Even carryovers from a lot of their InDesign->iBooks / physical book workflows.

- - -

And... bleedthrough is one of the big reasons "grid-based" is/was pushed in certain books.

With thin paper (or certain lighting conditions), you could SEE THROUGH the physical pages. So, you might flip open a book and see:
  • pages 10 + 11

but "the back" of each page:
  • page 9 = back of page 10
  • page 12 = back of page 11

you might see page 9/12's "grayish/see-through text" overlapping in-between lines on your current page—this may have gotten distracting to some people.

Aligning all text on the grid would mitigate some of that problem...

But that issue DOES NOT EXIST in ebooks.

- - -

Complete Side Note: Another interesting "grid-based" rabbit hole I've been researching recently is CJK typography.

In CJK text, aligning on a grid becomes much more important, and a heck of a lot more complicated than the simple Western languages.

If you want some technical details, see the fantastic images/discussion in:

Auto-Translation is another reason why I don't like messing too much with overly-complicated book CSS.

If a reader Auto-Translated from English->Japanese, and you implemented all this complicated (and "Western-focused" CSS layouts)... it would interfere with the translated text!

In physical books, you don't have to worry about readers wildly changing the underlying formulas.

But in ebooks, users can be interacting and flipping all sorts of bells and whistles, completely changing the look of your ebook.

(And, as Hitch has previously explained many times—most users ARE NOT "using the Publisher defaults" on their devices.)

For more info on that, also see my recent:

Last edited by Tex2002ans; 07-24-2023 at 03:33 PM.
Tex2002ans is offline   Reply With Quote
Old 07-25-2023, 03:08 AM   #20
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,516
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Tex2002ans View Post
With thin paper (or certain lighting conditions), you could SEE THROUGH the physical pages. [...]

But that issue DOES NOT EXIST in ebooks.
There is ghosting with e-ink, though
Jellby is offline   Reply With Quote
Old 08-06-2023, 06:34 AM   #21
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
When laying out a book for print, you do this by making sure that all elements are a whole number of the same unit high. So if the body text is 11 pt with 14pt leading, then a heading may be 16 pts on 28 pt leading, with 14 points top margin. I.e., for this book, everthing is a multiple of 14 points high.

But ebooks, the reader can override or ignore much of your formatting, so it's a lost cause, and few read books two-up anyway.
AlanHK is offline   Reply With Quote
Old 08-06-2023, 08:09 AM   #22
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,675
Karma: 87654321
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by AlanHK View Post
When laying out a book for print, you do this by making sure that all elements are a whole number of the same unit high.
No, you basically do it by Register = True (in Wordprocessor), though obviously the spacing of some styles will be unexpectedly wider depending on the font and margins and line spacing.
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two-pages image (facing pages) / How to? 42piratas ePub 24 11-10-2022 02:01 PM
optional (double pages, facing pages) kelly33 Kindle Formats 0 11-08-2012 01:02 AM
Right Aligning Wrapped Text Only ghostyjack ePub 7 11-04-2010 08:54 AM
Correctly Aligning Text Within a Table ghostyjack ePub 3 07-28-2010 07:18 AM
Turning Scanned PDFs with facing pages into single pages jimteacher Workshop 5 11-09-2009 02:59 PM


All times are GMT -4. The time now is 07:06 PM.


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