02-02-2024, 02:40 PM | #61 |
A Hairy Wizard
Posts: 3,220
Karma: 19000635
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
|
<h1-6> tags are set to determine the level of header:
Code:
h1 h2 h2 h3 h3 h2 h3 h3 h2 h3 h3 h3 h3 Jon...this is an example...you can change it however you want. You DON'T need to tell anyone that you think it's ugly or wrong... Code:
h1, h2, h3, h4, h5, h6 {text-align:center; text-indent:0; font-weight:bold; margin:1 auto} h1 {font-size:1.5em} h2 {font-size:1.3em} h3 {font-size:1.2em} h2.title {text-transform:uppercase} h2.ack {text-decoration:underline} |
02-02-2024, 02:44 PM | #62 | ||
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
Quote:
Quote:
|
||
Advert | |
|
02-02-2024, 02:56 PM | #63 |
A Hairy Wizard
Posts: 3,220
Karma: 19000635
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
|
He said that was his own personal preference. That is OK. I’m assuming that he learned his techniques when it was heavily pushed to have classes for everything, but it’s not required.
Do what’s comfortable to you, and what passes epubcheck. |
02-02-2024, 04:44 PM | #64 | ||
Bibliophagist
Posts: 40,501
Karma: 156983616
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
One horrible example was an ebook I was looking at where the base paragraph class includes font-style: italic; and almost every paragraph style added font-style: normal;. It was a lot simpler to remove the italic styling and add it to the few paragraphs styles that did not have font-style: normal;. Again, this is my personal preference. Most people have them though, unlike certain posters, they don't seem to regard them as if they had been brought down from the mountain top engraved on stone tablets. I like to use h1 for volumes, h2 for parts inside a volume and h3 for chapters inside the parts which is just my personal preference. I find it makes it easy for me to create nested ToCs but there are other ways of reaching the same end. If someone uses different preferences and the ebook still renders properly, more power to them. I'll look at their stylesheets and see if there is anything in them that I want to file the serial numbers off of and add them to my toolbox. |
||
02-03-2024, 03:59 AM | #65 |
Fanatic
Posts: 502
Karma: 2267928
Join Date: Nov 2015
Device: none
|
It makes no sense to use <h#> tags for anything. They were intended for technical documentation, where there is a strict hierarchy of headers having the corresponding inline numeration, and which can be indexed to build the tables of contents.
Books, however, do not have a hierarchy of headings (what level is 'Epilogue', for example), their headers are not numbered (a separate element is used which combines the number with some descriptive text, they can have very long subheadings, which are grammatically connected to the heading itself. That means they cannot be put into ToC automatically, unless another extra element is added, the title attribute. It is better to represent headers as what they are, a set of paragraphs, without inapplicable abstractions. |
Advert | |
|
02-03-2024, 07:29 AM | #66 |
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
Got it now, great, I thought I was doing something wrong.
|
02-03-2024, 07:30 AM | #67 | |
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
Quote:
|
|
02-03-2024, 07:32 AM | #68 | |
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
Quote:
|
|
02-03-2024, 06:21 PM | #69 | ||||
Resident Curmudgeon
Posts: 76,395
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Quote:
Quote:
Quote:
|
||||
02-03-2024, 06:24 PM | #70 |
Resident Curmudgeon
Posts: 76,395
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I do what makes less code bloat. And <h1 class="chapter"> for every chapter is code bloat when I just used <h1>.
Last edited by JSWolf; 02-04-2024 at 05:51 AM. |
02-04-2024, 08:28 AM | #71 | |
the rook, bossing Never.
Posts: 12,344
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
However I do agree that up to a point KISS is a good principle. But I've had to maintain arcane 70s style C using compact muliple statements on one line and also C++ written as if the programmer was more at home with Modula-2 or Ada. I know which I prefer editing. A technical document might use the same style for every h1 (and any h level will use a suitable style). A novel might have h1, h2 or h3 for all the chapter 'titles', but due to limited levels on TOC and TOC layout might use the same level h for other headings with a different style. On a separate issue: Some novels don't have any chapters at all in the body, though there may be named scene breaks with a paragraph in a different style (Dune) or simply a first paragraph style. In such a case the source could have either a handmade TOC or <hx> with no text but a title attribute because a TOC/Navigation system is more needed in an ebook than a paper book. Last edited by Quoth; 02-04-2024 at 08:31 AM. |
|
02-04-2024, 09:34 AM | #72 | |
Resident Curmudgeon
Posts: 76,395
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
02-04-2024, 10:29 AM | #73 |
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
|
02-04-2024, 10:30 AM | #74 |
the rook, bossing Never.
Posts: 12,344
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
02-04-2024, 10:32 AM | #75 |
the rook, bossing Never.
Posts: 12,344
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
I'd name them and make them work, if I had them. I have most of his books on paper and all of Discworld, so I don't have any on ebook. The recent Humble Bundle was only USA.
|
Tags |
indesign, sigil |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Any Addons that aid in Library Cleanup and/or metadata repair/cleanup? | Meido | Calibre | 2 | 01-17-2018 04:49 AM |
Adobe InDesign and poor code | JSWolf | ePub | 15 | 01-18-2017 02:02 PM |
HTML cleanup on epub conversion | Lofwyr23 | Conversion | 4 | 06-06-2014 05:56 PM |
EPUB Expert Needed: Cant properly export epub from InDesign | crottmann | ePub | 17 | 08-27-2010 11:23 AM |
InDesign and epub | FredD | ePub | 2 | 04-13-2009 09:38 PM |