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 07-17-2009, 05:31 AM   #1
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
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
AlexBell is offline   Reply With Quote
Old 07-17-2009, 07:24 AM   #2
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
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 ?
zelda_pinwheel is offline   Reply With Quote
Advert
Old 07-17-2009, 12:49 PM   #3
alecE
Evangelist
alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.
 
alecE's Avatar
 
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
alecE is offline   Reply With Quote
Old 07-17-2009, 12:50 PM   #4
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
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 ?? :
zelda_pinwheel is offline   Reply With Quote
Old 07-17-2009, 01:01 PM   #5
alecE
Evangelist
alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.
 
alecE's Avatar
 
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.
alecE is offline   Reply With Quote
Advert
Old 07-17-2009, 01:02 PM   #6
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
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?
Quote:
Originally Posted by alecE View Post
Or down to the influence of ale? I note that 'ale' appears slightly mangled in 'Zelda' as well.
that must be it.
zelda_pinwheel is offline   Reply With Quote
Old 07-17-2009, 01:02 PM   #7
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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.
nrapallo is offline   Reply With Quote
Old 07-18-2009, 07:51 AM   #8
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
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:
Originally Posted by zelda_pinwheel View Post
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 ?
A graphic which was centred in the Mobipocket version was flush with the left margin with ePub version, and lists which displayed adequately (not well) in the Mobipocket version displayed very poorly in the ePub version - for an unordered list there may have been bullets half hidden in the left margin, but there was no indentation, and for an ordered list there was no sign of numbers or indentation.

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
AlexBell 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
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


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


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