|
|
#31 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,626
Karma: 150265991
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#32 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,293
Karma: 16800000
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
|
|
|
|
|
|
#33 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,626
Karma: 150265991
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
[Reading] webkitTextRendering=geometricPrecision Plus, the English hyphenation dictionary has before and after values. I use the one I made because the values Kobo use are too big. |
|
|
|
|
|
|
#34 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49,582
Karma: 174632684
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
As for not being part of any ePub spec? Not that big a concern to me since I've found virtually all renderers treat a properly structured but unknown entry in a CSS stylesheet as a null operation. |
|
|
|
|
|
|
#35 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49,582
Karma: 174632684
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
I will admit to preferring to use: Code:
hyphens: auto; hyphenate-limit-chars: 8 3 3; Last edited by DNSB; 01-15-2026 at 10:17 PM. |
|
|
|
|
|
|
#36 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,905
Karma: 8987599
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Here the main issue is to AVOID a break after some elements. Or to have all elements joined (break-inside: avoid|avoid-column). The problem is how to avoid fragmentation, not how to generate it (that is easy).
|
|
|
|
|
|
#37 | |
|
Connoisseur
![]() Posts: 65
Karma: 10
Join Date: Nov 2025
Device: none
|
Quote:
I should consider using different css for title page and actual article page. So both can have cleaner tags. Or should I use div instead of p to hold title text? Do plain text behave the same in div and p? Last edited by icearch; Yesterday at 05:53 AM. |
|
|
|
|
|
|
#38 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,626
Karma: 150265991
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#39 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,626
Karma: 150265991
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#40 |
|
Connoisseur
![]() Posts: 65
Karma: 10
Join Date: Nov 2025
Device: none
|
The thing is I don't think it should be using p either. It's a couple of short words in title page.
See the top three line in attached pic. |
|
|
|
|
|
#41 |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,441
Karma: 20456789
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
You are correct that it’s not technically a <p>. Same as with things like poetry where each line is also not a paragraph. There is definitely an argument that <div> is the more correct to use for semantic reasons. I personally use a <p> but that is only because I created a template long ago that I haven’t gotten around to changing…
![]() What does matter, imo, is to use the proper <h> tag for any titles (book/chapter) because titles are usually defining a new section. |
|
|
|
|
|
#42 | |
|
Connoisseur
![]() Posts: 65
Karma: 10
Join Date: Nov 2025
Device: none
|
Quote:
![]() Having correct h is absolutely important, I'm not going to mess with that. |
|
|
|
|
|
|
#43 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,905
Karma: 8987599
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
And in that title page, where would the properties supposedly come into play to control fragmentation? What do you want to do there? Keep the entire block together? Force (or prevent) a break before or after it? On a title page, you shouldn't need to control fragmentation (at least not with the properties that were discussed).
|
|
|
|
|
|
#44 | |
|
Connoisseur
![]() Posts: 65
Karma: 10
Join Date: Nov 2025
Device: none
|
Quote:
|
|
|
|
|
|
|
#45 |
|
Connoisseur
![]() Posts: 65
Karma: 10
Join Date: Nov 2025
Device: none
|
And with some testing, div and p do have different attributes, that is p have margin-block-start and margin-block-end with both 1em, which div does not have.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| page-break-before: always; | avresbo | Kobo Reader | 1 | 03-02-2023 09:30 AM |
| Do you use page-break-after and page-break-inside? | fluoresce | ePub | 14 | 05-24-2017 02:57 AM |
| No page break for H2 | RickAltman | Calibre | 2 | 06-25-2012 12:02 PM |
| PAGE BREAK | JFS-NMF | Recipes | 0 | 03-04-2011 10:15 AM |
| Page break before <b> | flowoeB | Calibre | 14 | 04-12-2009 04:05 PM |