Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-06-2025, 04:43 PM   #16
ElMiko
Evangelist
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 471
Karma: 65460
Join Date: Jun 2011
Device: Kindle
@Quoth - I wasn't sure what you meant by "Any top padding more than a few times the heading size will fail"— in terms of what you meant by "few" and what you meant by "fail". Could you clarify?
ElMiko is offline   Reply With Quote
Old 08-06-2025, 06:35 PM   #17
Quoth
Still reading
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: 14,287
Karma: 105299897
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by ElMiko View Post
@Quoth - I wasn't sure what you meant by "Any top padding more than a few times the heading size will fail"— in terms of what you meant by "few" and what you meant by "fail". Could you clarify?
On small screen or larger font it will break on to separate pages.
Quoth is offline   Reply With Quote
Old 08-06-2025, 07:08 PM   #18
ElMiko
Evangelist
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 471
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Okay, but, since font size can theoretically be scaled infinitely, this goes to my initial question. What font size/screen size ranges are you assuming when determining your formatting parameters. What's the smallest screen at the largest font size that you're using as the idealized constraint on how you format books?

Just to give a little context here by way of example, in other threads I've asked about creating column-like formatting that will be preserved under "stressed" conditions. e.g. transcript-like text where the speaker's name is on the right and their speech is on the left. My default has long-been to use table formatting, but users like RbnJrg have also exposed me to span/float combos that will have similar effects. However, there are unavoidable combinations of font size/screen size that make it impossible to guarantee that the formatting will be effectively preserved. As you noted, that's just the nature of the reflowable beast. Therefore, an ebook producer has to ultimately make SOME assumptions about likely user settings and accept that SOME outlier cases will result in losses to formatting fidelity. The question is, therefore: What are the idealized assumptions that ebook producers are making to dermine the boundaries of what constitutes and outlier?

Last edited by ElMiko; 08-06-2025 at 07:21 PM.
ElMiko is offline   Reply With Quote
Old 08-08-2025, 06:37 AM   #19
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: 79,898
Karma: 146918083
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 ElMiko View Post
I know there are some strong feelings out there about trying to simulate paperbook layouts in the context of reflowable, re-sizeable ebooks. For example, I've seen repeated calls against top margins on chapter headings or simulating text that starts "half-way" down the page, presumably because screen sizes and text sizes could potentially result in blank pages, unusual gaps between text, etc.

However...

I'm wondering how the pros here handle content that is seemingly necessary to format with various top & bottom margins and variable font sizes (see attached image). Do you assume a certain font-size (i.e. assume 1em is the size of some referent physical book, or assume a certain number of lines of text per ereader page) and screen size and hope for the best? What are these assumptions?
Keep chapter titles small meaning not too much wasted space. All that wasted space looks really ugly. Keep it simple when possible. An eBooks is not the same as a pBook. What works for a pBook may not work for an eBook. a pBook needs margins. An eBook should have no margins, no line-height, and no paragraph spaces.
JSWolf is offline   Reply With Quote
Old 08-08-2025, 06:41 AM   #20
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: 79,898
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Get the smallest cell phone screen you can find hat you can view your layout on. That will show you that all that excess spacing is not a good idea. Also, try large font sizes to see how it looks. You don't know how people will set things so you have to test all different things to see what works best.
JSWolf is offline   Reply With Quote
Old 08-08-2025, 06:55 PM   #21
ElMiko
Evangelist
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 471
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Quote:
Originally Posted by JSWolf View Post
Get the smallest cell phone screen you can find hat you can view your layout on. That will show you that all that excess spacing is not a good idea. Also, try large font sizes to see how it looks. You don't know how people will set things so you have to test all different things to see what works best.
Yes, all of this is consistent with what I wrote....

... and yet!

Ebook producers must make certain assumptions. You write "you don't know how people will set things so you have to test all different things" [emphasis added]. This is impossible right? And impractical. You don't test user setting assuming a 2.5" x 4" screen with font size set to 1500%, do you? I mean, if you have to test ALL different things...

But clearly that's not what's literally meant here. What's meant by it is: you have to test it against an idealized range and accept that SOME outlier cases will result in undesired rendering of your formatting. My question is/was what is that idealized range? For example, I assume that most people will have their font setting larger on a dedicated ereader than on a phone because they are usually held at different distances from one's face. This is an assumption, not an empirically tested observation, but it is part of what goes into creating the boundaries around what constitutes the aforementioned "idealized range". Likewise, I assume that for an ereader, there is a range of font sizes on an approximately 6.5" screen in which formatting will look great, a range of font sizes in which it'll look fine, a range in which it'll look crummy, and a range of at which it will become unreadable... (usually it's around 9pt-11pt, 12-15, 16-20, and greater than 20)...

---

Separately, you mentioned that "an ebook should have no margins". I'm assuming that you meant left/right margins (since 0em top/bottom would make headings run directly into the body text). But even under that assumption, how do you deal with blockquotes? Don't they need margins to offset them from the rest of the text??
ElMiko is offline   Reply With Quote
Old 08-08-2025, 11:20 PM   #22
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: 46,737
Karma: 169712580
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by ElMiko View Post
Separately, you mentioned that "an ebook should have no margins". I'm assuming that you meant left/right margins (since 0em top/bottom would make headings run directly into the body text). But even under that assumption, how do you deal with blockquotes? Don't they need margins to offset them from the rest of the text??
I set the default body margins to 0 for all four. Blockquotes and other blocks where I want to add left/right margins, it's easy enough to do. Ditto for top/bottom for headers, etc.

What I don't want to see is the example set by several commercial ePubs where the default left/right margins are set ridiculously high—one recent example had the left/right default margins set to 2cm. On my Clara HD, that left 5cm of width left to display text.
DNSB is offline   Reply With Quote
Old 08-09-2025, 04:39 AM   #23
Quoth
Still reading
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: 14,287
Karma: 105299897
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by ElMiko View Post
Separately, you mentioned that "an ebook should have no margins". I'm assuming that you meant left/right margins (since 0em top/bottom would make headings run directly into the body text). But even under that assumption, how do you deal with blockquotes? Don't they need margins to offset them from the rest of the text??
A heading and first paragraph styles in CSS would have each their own margins (and a padding-top for anything first item in a file), if not text-align: center;.

The blockquote is really an HTML 3 or something throwback. It can have a useful semantic meaning and each kind would have its own CSS and thus margins.

If it's simply to have a different set of margins and maybe font, then a <p class="myquote1"> etc may be better.

I don't use blockquotes at all, usually. The different paragraph styles in the docx give different 1:1 CSS.
Quoth is offline   Reply With Quote
Old 08-09-2025, 09:39 AM   #24
ElMiko
Evangelist
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 471
Karma: 65460
Join Date: Jun 2011
Device: Kindle
@Quoth - yeah, I wasn't just referring to the html tag <blockquote> but rather more broadly to the concept of "blockquotes": blocks of quoted text within the body of a main text. (In fiction, this is often going to be something like quoted verse or epistolary text.) I was trying to understand the strongly stated proscription against all margins, as I'm struggling to see how that would work. As I said, no margins at all would result in headings running into body text (with perhaps font-size as the only distinguishing factor between them?) and ditto for blockquoted text. But maybe I'm not correctly visualizing the JSWolf's formatting implications.
ElMiko is offline   Reply With Quote
Old 08-09-2025, 10:30 AM   #25
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,557
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I usually format blockquotes with some left margin (and top/bottom, but no right). Not much, just about the same as the first-line indent, that's enough to set them apart and still conserve most of the line width (at least for my preferred screen/font sizes )
Jellby is offline   Reply With Quote
Old 08-09-2025, 10:32 AM   #26
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,827
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by ElMiko View Post
I was trying to understand the strongly stated proscription against all margins, as I'm struggling to see how that would work...But maybe I'm not correctly visualizing the JSWolf's formatting implications.
Of course, you need to employ margin! (and padding). And JSWolf do employ margins! Watch for example one of the epubs made by him:

https://www.mobileread.com/forums/sh...d.php?t=177182
RbnJrg is offline   Reply With Quote
Old 08-09-2025, 12:21 PM   #27
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: 79,898
Karma: 146918083
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 ElMiko View Post
Yes, all of this is consistent with what I wrote....

... and yet!

Ebook producers must make certain assumptions. You write "you don't know how people will set things so you have to test all different things" [emphasis added]. This is impossible right? And impractical. You don't test user setting assuming a 2.5" x 4" screen with font size set to 1500%, do you? I mean, if you have to test ALL different things...

But clearly that's not what's literally meant here. What's meant by it is: you have to test it against an idealized range and accept that SOME outlier cases will result in undesired rendering of your formatting. My question is/was what is that idealized range? For example, I assume that most people will have their font setting larger on a dedicated ereader than on a phone because they are usually held at different distances from one's face. This is an assumption, not an empirically tested observation, but it is part of what goes into creating the boundaries around what constitutes the aforementioned "idealized range". Likewise, I assume that for an ereader, there is a range of font sizes on an approximately 6.5" screen in which formatting will look great, a range of font sizes in which it'll look fine, a range in which it'll look crummy, and a range of at which it will become unreadable... (usually it's around 9pt-11pt, 12-15, 16-20, and greater than 20)...

---

Separately, you mentioned that "an ebook should have no margins". I'm assuming that you meant left/right margins (since 0em top/bottom would make headings run directly into the body text). But even under that assumption, how do you deal with blockquotes? Don't they need margins to offset them from the rest of the text??
You get a small cell phone and test at reasonably large font sizes to see where it first goes off (formatting). Sure there will people who will go as big as possible and have other sorts of settings, but the thing is that you cannot please everyone. Buy you can test at reasonable extremes.

As for margins, I am meaning the overall left/right margins. I've seen plenty of eBooks with stupidly large L/R margins to try to match the pBook. You can't do that as this is an eBook and not a pBook.
JSWolf is offline   Reply With Quote
Old 08-09-2025, 12:29 PM   #28
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: 79,898
Karma: 146918083
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
A heading and first paragraph styles in CSS would have each their own margins (and a padding-top for anything first item in a file), if not text-align: center;.

The blockquote is really an HTML 3 or something throwback. It can have a useful semantic meaning and each kind would have its own CSS and thus margins.

If it's simply to have a different set of margins and maybe font, then a <p class="myquote1"> etc may be better.

I don't use blockquotes at all, usually. The different paragraph styles in the docx give different 1:1 CSS.
I dislike not using blockquotes where they should be used which is to offset text.
JSWolf is offline   Reply With Quote
Old 08-09-2025, 01:46 PM   #29
Quoth
Still reading
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: 14,287
Karma: 105299897
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by JSWolf View Post
I dislike not using blockquotes where they should be used which is to offset text.
See letters, poems, hymns, songs. Better done with suitable multiple classes and a <p>

The quote here is an example of the kind of thing a "blockquote" is sematically for.
Quoth is offline   Reply With Quote
Old 08-09-2025, 03:31 PM   #30
ElMiko
Evangelist
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 471
Karma: 65460
Join Date: Jun 2011
Device: Kindle
@JSWolf - Ah, ok, that's a lot clearer re: margins. Regarding stress-testing the screen/font size, it seems that you're restating the original premise of the question. What's missing is quantification: What is "small" to you (in terms of screen size)? What is "reasonable" to you (in terms of font-size)?

@Quoth - I'm not sure I understand your post: are you saying that (in the context of a work of fiction) blocks of text which contain "letters, poems, hymns, songs" stylistically set apart from the main text do not constitute block quotations?
ElMiko is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you prefer text- or image-based title pages? Fitz Frobozz ePub 6 10-07-2024 11:27 PM
Chapter title pages not showing in Kindle MchneGunCarrie Sigil 18 12-15-2022 06:40 AM
Chapter & Text file counts and Chapter splits BetterRed Library Management 0 04-06-2021 06:25 PM
Possible bug I noticed if a chapter has a title page on a separate text file dibster Kobo Reader 6 07-05-2019 10:00 AM
Different text in TOC & actual chapter title Algiedi Conversion 25 07-24-2011 01:12 AM


All times are GMT -4. The time now is 11:57 AM.


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