Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-11-2011, 05:14 AM   #1
Artha
-----
Artha began at the beginning.
 
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
Wink 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?
Artha is offline   Reply With Quote
Advert
Old 11-11-2011, 08:13 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,265
Karma: 113755271
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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.
Toxaris is offline   Reply With Quote
Old 11-11-2011, 09:03 AM   #3
Artha
-----
Artha began at the beginning.
 
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?
Artha is offline   Reply With Quote
Old 11-11-2011, 10:51 AM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,265
Karma: 113755271
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
It should.
Toxaris is offline   Reply With Quote
Old 11-11-2011, 12:24 PM   #5
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,262
Karma: 2230068
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro - Retired:Kindle 3, Clie UX50, T415, ...
Quote:
Originally Posted by Artha View Post
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?
It might ...

... 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):
  • style applied in the tag - <p style="margin-top: 1em;">
  • style placed in the <STYLE></STYLE> section in the (x)HTML file's <HEAD> section
  • style placed in the last CSS file linked to in the <HEAD> section
  • ...
  • style placed in the first CSS file linked to in the <HEAD> section

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 12:27 PM.
dwig is offline   Reply With Quote
Advert
Old 11-11-2011, 12:59 PM   #6
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,009
Karma: 8796505
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Artha View Post
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?
If it is not an address, don't call it an address.
Jellby is offline   Reply With Quote
Old 11-17-2011, 01:20 PM   #7
Artha
-----
Artha began at the beginning.
 
Posts: 114
Karma: 10
Join Date: Jun 2011
Device: Samsung SNE65
Quote:
Originally Posted by dwig View Post
It might ...

... 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.
Nice to have the list of priorities. But once it's in the CSS, I won't use any inline styles, just for the sake of my sanity.

Quote:
Originally Posted by Jellby View Post
If it is not an address, don't call it an address.
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?
Artha is offline   Reply With Quote
Old 11-25-2011, 06:48 PM   #8
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: 45,937
Karma: 33161788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Most readers use ADE and ADE works with CSS.
JSWolf is online now   Reply With Quote
Old 11-27-2011, 01:11 PM   #9
Artha
-----
Artha began at the beginning.
 
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.
Artha is offline   Reply With Quote
Old 11-27-2011, 01:15 PM   #10
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: 45,937
Karma: 33161788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by Artha View Post
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.
Please explain what exactly it is you are trying to do. And if need be, give CSS/XML samples.
JSWolf is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strip specific styles from EPUB conversion? kurokaze Conversion 1 04-06-2011 08:04 AM
Styles not showing in ePub. Vijay ePub 5 11-19-2010 11:43 PM
Tagging endnotes jbrew Sigil 3 11-09-2010 12:41 AM
Any way to assign different styles to web pages vs. epub richieadler ePub 3 08-30-2009 05:38 PM


All times are GMT -4. The time now is 03:23 PM.


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