Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-26-2015, 08:48 AM   #1
crankypants
Hmm.
crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
What does a minimal EPUB have as far as tags go?

I'm trying to make an EPUB. So I have 2 related questions.

1. What is the minimal code in the XHTML files of an EPUB? (Where the content goes.)
2. What are the tags I should stick to so the EPUB works with the greatest amount of readers? Not all readers support all the same tags.

I ask because Sigil doesn't support some tags like: <aside>, <blockquote>, and <codeblock>. So I was wondering if those are not supported very much by ebook readers. My workaround thus far is to make a class for the <p> tag for a block quote, and set my own margins.

My Google Play reader for Android doesn't render this list correctly (manually entered in Calibre):
<ol>
<li>One</li>
<li>Two</li>
</ol>

But it does render this list correctly (which Sigil formats correctly):
<ol>
<li>One<br/></li>
<li>Two<br/></li>
</ol>


Thank you.
crankypants is offline   Reply With Quote
Old 10-26-2015, 08:55 AM   #2
issybird
o saeclum infacetum
issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.issybird ought to be getting tired of karma fortunes by now.
 
issybird's Avatar
 
Posts: 21,289
Karma: 234636059
Join Date: Oct 2010
Location: New England
Device: Mini, H2O, Glo HD, Aura One, PW4, PW5
Moved to E-Book Formats forum.
issybird is offline   Reply With Quote
Advert
Old 10-26-2015, 09:02 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
The render engine is at fault.

Lists are cranky at best on e-readers

Remember. EPUB is a subset of HTML

a number of ereader engines are EPUB Plus extras. don't count on the extras accros brands, and sometimes, even models
theducks is offline   Reply With Quote
Old 10-26-2015, 09:37 AM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
The "<BLOCKQUOTE>" tag should be supported by all devices; it's basic HTML. I've certainly not encountered a device which doesn't support it.
HarryT is offline   Reply With Quote
Old 10-26-2015, 10:26 AM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by crankypants View Post
1. What is the minimal code in the XHTML files of an EPUB?
There is no minimal code. Theoretically, you should be able to use any valid XHTML file in an ePub.
Some tags/CSS rules aren't supported, though.
You can easily check your ePub with the online version of the official IDPF checker, ePubCheck.

Quote:
Originally Posted by crankypants View Post
I ask because Sigil doesn't support some tags like: <aside>, <blockquote>, and <codeblock>.
Sigil 0.8.x does support all of these tags, if you use the proper doctype for HTML5 files. However, if you want to use <aside> or <code>, you'll have to convert your book to an ePub3 book with the Sigil ePub3 output plugin. (<blockquote> can also be used in epub2 books.)

Quote:
Originally Posted by crankypants View Post
My Google Play reader for Android doesn't render this list correctly (manually entered in Calibre)
Theoretically, all ePub apps and eInk readers should display valid ePubs correctly, however, very few apps actually support all features defined in the ePub2/3 standards.
There are many other Android epub apps out there that might display your book better. I'd recommend a free Adobe RMSDK based app, e.g. Bluefire Reader.

Quote:
Originally Posted by HarryT View Post
The "<BLOCKQUOTE>" tag should be supported by all devices; it's basic HTML. I've certainly not encountered a device which doesn't support it.
Many ebook designers use <blockquote> tags incorrectly. For example, the following code fragment will be flagged by epubcheck:

Code:
  <blockquote>
    This is a blockquote.
  </blockquote>
However, if you add paragraph tags (or other suitable tags), the book will pass epubcheck:

Code:
    <blockquote>
      <p>This is a blockquote.</p>
    </blockquote>
Doitsu is offline   Reply With Quote
Advert
Old 10-26-2015, 10:44 AM   #6
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Doitsu View Post
Many ebook designers use <blockquote> tags incorrectly. For example, the following code fragment will be flagged by epubcheck:

Code:
  <blockquote>
    This is a blockquote.
  </blockquote>
However, if you add paragraph tags (or other suitable tags), the book will pass epubcheck:

Code:
    <blockquote>
      <p>This is a blockquote.</p>
    </blockquote>
Thanks - that's just ignorance . I find it an extremely useful feature and use it in virtually all the books I create. It's extremely useful for purposes like quoting letters.
HarryT is offline   Reply With Quote
Old 10-26-2015, 12:00 PM   #7
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,548
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Minimal? I guess you can do almost anything with:

<div>, <span>, <img>, <a>

If you want some semantics, you can (and should) use:

<p>, <em>, <strong>, <br/>, <h1>...<h6>, <hr/>, <blockquote>

I think that pretty much covers all I use in my books.
Jellby is offline   Reply With Quote
Old 10-26-2015, 02:19 PM   #8
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
All the information you want is in our wiki. See ePub for ePub 2. There is also a ePub 3 article.

Dale
DaleDe is offline   Reply With Quote
Old 10-27-2015, 09:39 AM   #9
crankypants
Hmm.
crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
Quote:
Sigil 0.8.x does support all of these tags, if you use the proper doctype for HTML5 files.
So what's the proper doctype I should be using for my epub3 books? I'm using this:

Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  <link href="../Styles/Style0001.css" rel="stylesheet" type="text/css" />
</head>
Which was put in there automatically by Sigil.

Wait, am I missing something? I thought EPUB supported XHTML 2 yet the doctype specifies XHTML 1.1. I want to make EPUB3 books with Sigil, that's my whole goal.

Maybe I'm asking the wrong question. How many ereaders actually support EPUB3? EPUB3 has been out for several years, right?

All I want to do is include images in my books. No audio or video yet.

Last edited by crankypants; 10-27-2015 at 09:42 AM.
crankypants is offline   Reply With Quote
Old 10-27-2015, 09:45 AM   #10
crankypants
Hmm.
crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.crankypants ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
About <blockquote> not working in Sigil 0.8.7 preview. When I went to the code/tags view, I typed in a block quote like this:

Code:
<blockquote><p>Some long lines long enough to wrap in the Sigil preview.</p>
</blockquote>
The Sigil preview seemed to update but it didn't indent the block quote until I changed the zoom factor. Or does the Sigil preview wait a few seconds when I stop typing to update the preview window?

I have Windows 8.

Last edited by crankypants; 10-27-2015 at 09:52 AM.
crankypants is offline   Reply With Quote
Old 10-27-2015, 10:09 AM   #11
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by crankypants View Post
So what's the proper doctype I should be using for my epub3 books?
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
Quote:
Originally Posted by crankypants View Post
I want to make EPUB3 books with Sigil, that's my whole goal.
Sigil has only minimal ePub3 support, it's best to start out with an ePub2 and export it with the ePub3 output plugin once you're done to avoid validation issues. (You can't save ePub3 files with Sigil because Sigil'll downconvert them to ePub2 files.)

Quote:
Originally Posted by crankypants View Post
How many ereaders actually support EPUB3? EPUB3 has been out for several years, right?
Very few. Once of them is the Kobo. As for mobile apps, there's iBooks for iOS and Gitden Reader for Android/iOS. Adobe has released a new RMSDK with ePub3 support for eInk readers, but, AFAIK, none of the major reader manufacturers has implemented it yet.

Quote:
Originally Posted by crankypants View Post
All I want to do is include images in my books. No audio or video yet.
In that case epub2 is fully sufficient, because you could easily emulate the functionality of HTML5 tags such as <aside> and <code> with CSS rules.

Quote:
Originally Posted by crankypants View Post
About <blockquote> not working in Sigil 0.8.7 preview.
I haven't been able to reproduce this issue with Windows 10 and Sigil 0.8.7. Did you assign styles to <p> or <blockquote> tags? If so, they might be causing this issue.

Last edited by Doitsu; 10-28-2015 at 03:52 AM.
Doitsu is offline   Reply With Quote
Old 10-27-2015, 10:10 AM   #12
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,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
If you want 100% minimal, than what you want is just <p></p>
JSWolf is offline   Reply With Quote
Old 10-27-2015, 11:47 AM   #13
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
If you want 100% minimal, than what you want is just <p></p>

You know how to get down to the basics.
theducks is offline   Reply With Quote
Old 10-27-2015, 02:48 PM   #14
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by JSWolf View Post
If you want 100% minimal, than what you want is just <p></p>
Try putting that in your table of contents.

Dale
DaleDe is offline   Reply With Quote
Reply

Tags
epub, tags


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub Tags Editor Tanjamuse Android Devices 0 11-24-2014 06:44 AM
PRS-T2 Difference jailbreak.zip/rupor-jailbreak.7z & minimal-root-zeam.zip/rupor-minimal.7z? hyperstruct Sony Reader Dev Corner 9 01-06-2013 02:05 PM
Amazon Tags - Popular tags vs Unique tags. chrisanthropic Writers' Corner 6 09-19-2011 11:18 PM
Epub and removing tags. Billiam Calibre 3 11-13-2010 12:14 PM
epub-meta tags JeffElkins Calibre 2 10-17-2008 04:04 PM


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


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