11-11-2011, 04:14 AM | #1 |
-----
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
|
Tagging and styles in ePub
I am about to start making my first serious ePub. The author gave me some .doc file and I'm about to apply styles to it (it's all done visually). But I think I can use and abuse the HTML tags instead of creating classes.
For example there is a motto at the begining of each chapter. What would you say about styling it as an address for example, instead of a paragraf class motto? Are there disadvantages to use the markup I don't use? |
11-11-2011, 07:13 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
The reading application might not support it. With paragraph classes you are safer.
Also, the visual interpretation of the tags might differ per reading application, giving a non-consistent appearance. |
Advert | |
|
11-11-2011, 08:03 AM | #3 |
-----
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
|
You are right. It never crossed my mind, although it's that obvious: with the broken support of today tools, better safe than sorry.
As for the display: it should take all description from the CSS file, no? |
11-11-2011, 09:51 AM | #4 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It should.
|
11-11-2011, 11:24 AM | #5 | |
Wizard
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
... the style descriptions in the CSS are the lowest priority of all style descriptions in the ePUB. When the same tag or class repeats in the several possible style locations (e.g. a margin set on the <p> tag) the style applied directly to the tag in the (x)html body is the one used. Priority (in order of highest to lowest):
If there are no conflicts, the style description in the CSS will be used. provided the reader app supports it. When there are conflicts, the CSS looses out to the higher priority style. Last edited by dwig; 11-11-2011 at 11:27 AM. |
|
Advert | |
|
11-11-2011, 11:59 AM | #6 |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
11-17-2011, 12:20 PM | #7 | |
-----
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
|
Quote:
True Mr. Google. Yet, from a typographical standpoint HTML it's such a bad option and ePub seems to be only part implemented just as the browsers don't bother with all the features listed in W3 docs. As I don't have a motto tag I can use a special paragraph class or reuse some other tag already in. Sure, the drones will have issues harvesting relevant info for their masters, but should that concern me? |
|
11-25-2011, 05:48 PM | #8 |
Resident Curmudgeon
Posts: 73,660
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Most readers use ADE and ADE works with CSS.
|
11-27-2011, 12:11 PM | #9 |
-----
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
|
Actually, from what I gather they don't use the same ADE I can download from Adobe.com. It's an ADE API bundled with whatever was thought useful by the hacker employed to build up the system.
I have discovered first hand that ADE can be quite precise on the standards involved (ex. @include must be before everything even comments). But it's functionality is rather spartan: can't find a way to tweak the CSS according to my [the user] needs. Only a zoom function that involves both font and page size. |
11-27-2011, 12:15 PM | #10 | |
Resident Curmudgeon
Posts: 73,660
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Strip specific styles from EPUB conversion? | kurokaze | Conversion | 1 | 04-06-2011 07:04 AM |
Styles not showing in ePub. | Vijay | ePub | 5 | 11-19-2010 10:43 PM |
Tagging endnotes | jbrew | Sigil | 3 | 11-08-2010 11:41 PM |
Any way to assign different styles to web pages vs. epub | richieadler | ePub | 3 | 08-30-2009 04:38 PM |