Thread: HTML?
View Single Post
Old 05-18-2022, 10:56 PM   #23
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,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by 1eduard View Post
Which browser is the best to read EPUB files? (my browser says that it doesn't support them!)
Use Windows/Mac?

It's an actual EPUB-reader program...

but nothing beats testing on an actual, physical ereader. (A Kobo, Nook, [Kindle], etc.)

Why Test Using Actual Devices? The devices are a lot more strict + a lot less lenient compared to browsers.

While you're messing with different:
  • margins
  • fonts
  • font sizes
  • rotation
  • [...]

you may run across bugs/issues that ADE/browsers don't show.

(For example, some older ereaders would throw away all CSS if you had the tiniest error inside. Browsers may trick you into thinking everything is perfect, ignoring just that broken line.)

Use Android/iOS? If you only have a cellphone/tablet, then you can use a standards-compliant EPUB reader:
  • On Android
    • PocketBook Reader
    • Gitden Reader
      • This was one of my favorites, but sadly, the creator ran into health problems. Older version APKs are still floating around though.
  • On iOS
    • iBooks
      • Although this is closer to a browser (letting many things slide compared to actual ereaders).
  • Still want to use a browser? (Chrome/Firefox/Edge)
    • Thorium Reader
      • Again, while this follows much of the latest EPUB standards, it is very lenient compared to older ereaders.

Quote:
Originally Posted by 1eduard View Post
What do I need to know about HTML using Sigil?
KISS (Keep It Simple Stupid).

Really.

Just keep your HTML+CSS very simple, building yourself up step-by-step... and you can guarantee it'll work across devices + not break.

For your typical book, all you'll really need is basic HTML:
  • <h1> -> <h6> = Headings
    • Used for Part/Chapter Titles
  • <p> = Paragraphs
  • <blockquote> = Long quotes

then, for CSS, you'll need is a handful of simple CSS classes:
  • First paragraphs
    • With no indent.
  • Scenebreak
    • Centered Asterisks.
  • Occasional Canter/Right-aligned text
  • [...]

Example HTML:

Spoiler:
Code:
<h1>Chapter 1</h1>

<p class="first">This is an example first sentence.</p>

<p class="scenebreak">* * *</p>

<p class="first">And the beginning of a new scene.</p>

<p>Today, it was a dark and stormy night.</p>


Example CSS:

Spoiler:
Code:
h1, h2, h3, h4 {
	text-align: center;
	text-indent: 0;
}

p {
	margin-top: 0;
	margin-bottom: 0;
	line-height: 1.2em;
	text-align: justify;
	text-indent: 2em;
}

p.first {
	text-indent: 0;
}

p.scenebreak {
	text-align: center;
	margin-top: 1em;
	margin-bottom: 1em;
}


If you want more basic CSS/Styles info, please see my posts in:

And like others said, MR's EPUB Library is a good place to look. Open up ebooks and see how they work.

* * *

Side Note: If you want an example EPUB, see this 2021 book published by FEE (Foundation for Economic Education):

That HTML+CSS is pretty much what I've used across all 600+ ebooks I've worked on.

(I only do extremely minor tweaks here and there if needed.)

* * *

A lot of the other stuff is just thinking about all the different ways users may be reading your ebooks. For example:

Last edited by Tex2002ans; 05-18-2022 at 11:51 PM.
Tex2002ans is offline   Reply With Quote