07-17-2009, 05:31 AM | #1 |
Wizard
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Does it have to be XHTML 1.1 Strict?
I'm groping towards trying to set up an ebook template in HTML/CSS so that I can put books into this template and use Calibre to generate different ebook formats from the same document.
I have a template in HTML 4.01 strict, and was able to convert a test book to adequate Mobipocket. But the same document was a disaster when converted to ePub and read with ADE. Might this be because it is HTML 4.01 Strict and not XHTML 1.1 Strict? Regards, Alex |
07-17-2009, 07:24 AM | #2 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
short answer : yes.
there are a few differences between html 4.01 and xhtml 1.1 and epub is based on xhtml, so reverting to html *will* work (more or less) but will not give as good results. on the other hand, when you say it was a "disaster" that surprises me a bit, how bad was it ? |
Advert | |
|
07-17-2009, 12:49 PM | #3 |
Evangelist
Posts: 412
Karma: 546196
Join Date: Mar 2009
Location: UK canal boat
Device: sony prs505, prs650, kobo Glo HD liseuses
|
Blimey! I logged in today intending to ask an almost identical question about html v. xhtml and I find the psychic serendipity of mr has given the answer before I have even formulated the question!
Thanks |
07-17-2009, 12:50 PM | #4 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
hm, perhaps people sharing the first 3 letters of their names have some sort of psychic link ?? :
|
07-17-2009, 01:01 PM | #5 |
Evangelist
Posts: 412
Karma: 546196
Join Date: Mar 2009
Location: UK canal boat
Device: sony prs505, prs650, kobo Glo HD liseuses
|
Or down to the influence of ale? I note that 'ale' appears slightly mangled in 'Zelda' as well.
|
Advert | |
|
07-17-2009, 01:02 PM | #6 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
|
07-17-2009, 01:02 PM | #7 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
But calibre will convert your HTML 4.01 internally to XHTML 1.1 Strict and use that for the .epub creation.
You should open the resulting .epub (with zip, winzip or winrar) and see exactly what changes calibre applied. Then you can try to "fix" your HTML to find a better work-around. I too like using a single HTML source file to then produce many different ebooks formats from. See Creating multiple ebook formats from same source files! or the Perl code used with GuteBook - the Project Gutenberg eBook Maker/Front-end for my efforts thus far. |
07-18-2009, 07:51 AM | #8 | |
Wizard
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
It's even more puzzling that my first check, where the output was very poor, was with ADE on my desktop - I don't yet have an epub reader - but when I checked the same ePub document on Calibre's built in viewer it looked fine. In fact it looked far better than the Mobipocket version. So I still don't know what's going on - unless of course Calibre changed my file to XHTML 1.1 and ADE can't or won't. On a slightly divergent topic, I haven't yet caught up with XHTML 1.1, and none of the books I have mention it. Can you point me to a source please where I can read up on it? And on another divergent topic, I was Alec until adolescence (a long time ago) when I met a friend who was also called Alec. So we tossed a coin and I became Alex and have remained that way since. Regards, Alex |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
xhtml file name change | bobcdy | Sigil | 11 | 10-23-2010 12:05 AM |
KindleGen and XHTML/CSS2 | pdurrant | Amazon Kindle | 33 | 09-12-2010 01:50 PM |
xhtml from epub | georger | ePub | 8 | 10-13-2009 07:14 AM |
xhtml document | deadite66 | iRex | 1 | 08-02-2006 03:15 PM |