![]() |
#1 |
Hmm.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#2 |
o saeclum infacetum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#4 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#5 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
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:
Quote:
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:
Code:
<blockquote> This is a blockquote. </blockquote> Code:
<blockquote> <p>This is a blockquote.</p> </blockquote> |
|||
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#9 | |
Hmm.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
|
Quote:
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> 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. |
|
![]() |
![]() |
![]() |
#10 |
Hmm.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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> I have Windows 8. Last edited by crankypants; 10-27-2015 at 09:52 AM. |
![]() |
![]() |
![]() |
#11 | ||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html> Quote:
Quote:
Quote:
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. |
||||
![]() |
![]() |
![]() |
#12 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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>
|
![]() |
![]() |
![]() |
#13 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
Tags |
epub, tags |
|
![]() |
||||
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 |