View Single Post
Old 09-07-2025, 01:19 PM   #15
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: 15,004
Karma: 111111255
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by Sarmat89 View Post
That's what I'm talking about: It is 2025, but you still have to build stupid CSS rules and write several paragraphs and ton of attributes manually just to make a simple chapter heading and make it to the TOC automatically. That's ridiculous.
CSS replaces inline styles. That works on HTML3 without CSS. It's much easier to use and edit CSS as the multiple Style strings need repeat on each instance and CSS replaces three to eight styles with one sensibly named class. The docx styles from LO Writer or MS Word usually map 1:1 to CSS classes for epub but have to be styles on mobi as it's HTML3. Thankfully old mobi is nearl gone now.

There are many ways to automatically do the ToC and at least 2 work with "headings" done using <p tags, though sematically that's wrong, even though it looks perfect.


You don't have to build anything, unless for some mad reason you are writing an entire novel directly in HTML. I've not done even websites that way for nearly 30 years. I do sometimes edit epubs or web content, but I'd not dream of writing them from scratch.

Do you use "Styles" in MS Word / LO Writer (=CSS), or use direct formatting (= HTML3 styles)?
Quoth is offline   Reply With Quote