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 01-14-2013, 10:04 AM   #1
ebookn00b
Member
ebookn00b began at the beginning.
 
ebookn00b's Avatar
 
Posts: 19
Karma: 10
Join Date: Apr 2012
Device: Kindle Fire, iPad 2
XML 1.0 vs 1.1 does it really matter?

Most of the documents that I convert to ePub are Word docs with heavy formatting. Many times these are training/user manuals with small paragraphs, bullets, italicized and center headers and so on. If I have a XML1.1 document and I have a paragraph that is centered with <p align="center"> this gets flagged by FlightCrew, however if the XML is 1.0 it does not get flagged, I understand why it gets flagged in XML 1.1 (certain hmtl tags are being phased out) but my question is does it really matter if I use <p align="center>? Whether I use that or a CSS class to center the section it is centered either way. The reason I ask is that when if I copy and paste a paragraph from word to an HTML editor the centered text is designtated with <p align> Its not that difficult to create classes and do a find replace to the <p align> tags but why spend the extra time if in the end it works even though Flightcrew flags it.
ebookn00b is offline   Reply With Quote
Old 01-14-2013, 10:37 AM   #2
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
The question might be how long these materials might be in use. If it is for a short term, then it probably makes not difference. But for the longer term, you could have trouble. Upgraded devices, new devices may require newer standards. But this has moved pretty slowly so far.

That said, it is much easier to maintain documents that use CSS than all these inline tags. One change in CSS is much easier to do than searching and replacing hundreds of times and potentially blowing up the formatting because of something you did not remember or anticipate.

It may hinge more on the devices than on standards, since none completely adhere to standards, and some are worse than others.

Be sure you are previewing all your fancy formatting on the target device(s). A lot of fancy formatting is lost on small devices of any sort.
mrmikel is offline   Reply With Quote
Old 01-15-2013, 05:01 PM   #3
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: 73,661
Karma: 127838198
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Styles in the XML are just bad form and lazy. Put the styles in the CSS and use classes.
JSWolf is offline   Reply With Quote
Old 01-18-2013, 09:52 PM   #4
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by ebookn00b View Post
If I have a XML1.1 document and I have a paragraph that is centered with <p align="center"> this gets flagged by FlightCrew, however if the XML is 1.0 it does not get flagged, I understand why it gets flagged in XML 1.1 (certain hmtl tags are being phased out) but my question is does it really matter if I use <p align="center>? Whether I use that or a CSS class to center the section it is centered either way.
According to the specification:

Quote:
"Any construct deprecated in XHTML 1.1 is either deprecated or omitted from this specification ..."
which suggests to me that readers are freely allowed to ignore align="center". It probably won't break any readers if you include it (as long as the file passes validation), but you should not count on readers actually supporting it. Try doing a mass search-and-replace, changing align="center" to class="center". Then define a CSS style:

Code:
.center {
    text-align: center;
}
dgatwood is offline   Reply With Quote
Old 01-19-2013, 06:14 AM   #5
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
However, <center> works in some readers like Sony where css does not.
mrmikel is offline   Reply With Quote
Old 01-19-2013, 08:35 AM   #6
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,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Ehm, as far as I know, only iBooks has issues (sometimes) with:
Code:
.center {
    text-align: center;
}
Toxaris is offline   Reply With Quote
Old 01-19-2013, 05:08 PM   #7
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by mrmikel View Post
However, <center> works in some readers like Sony where css does not.
CSS works for me on the Sony readers. Might be a specificity problem in your CSS. Try doing something like

Code:
div.centered {
...
}
instead of just

Code:
.centered {
...
}
dgatwood is offline   Reply With Quote
Old 01-19-2013, 05:12 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: 73,661
Karma: 127838198
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by mrmikel View Post
However, <center> works in some readers like Sony where css does not.
Centering via CSS works with Sony Readers.
JSWolf is offline   Reply With Quote
Old 01-20-2013, 04:16 AM   #9
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,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Except if you try something like:

Code:
<img class="centered" ... />
But that's just wrong XHTML code (or rather a misunderstanding of what the CSS works), and not the device's fault.
Jellby is online now   Reply With Quote
Old 01-20-2013, 06:58 AM   #10
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Perhaps I was thinking of centering tables.
mrmikel is offline   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
What's the Matter with Batman kennyc Reading Recommendations 0 07-15-2012 09:50 PM
Does the format matter? GA Russell Astak EZReader 15 09-06-2009 03:20 PM
Does Size Matter? BurBunny Amazon Kindle 28 02-22-2009 09:44 AM
A matter of understanding kaas Kindle Formats 3 02-03-2009 07:41 AM


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


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