04-21-2010, 05:14 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
|
Please review my first ePub ebook
I've just uploaded The War Prayer by Mark Twain, which is the first ePub ebook I've been able to make by hand.
It's only a small and simple book, but I really would be grateful if some of the hand made ePub experts would review its format and style, and tell me how it looks on his or her reader. I want to go on to bigger and more complex ebooks, but also want to be sure that I'm starting from a good foundation. Regards, Alex |
04-21-2010, 05:39 AM | #2 |
book creator
Posts: 9,635
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: PB360°
|
I don't find the book. Where have you placed it?
|
Advert | |
|
04-21-2010, 06:08 AM | #3 | |
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:
PS I got it right this time; it's there now. Regards, Alex Last edited by AlexBell; 04-21-2010 at 06:17 AM. Reason: Update |
|
04-21-2010, 08:32 AM | #4 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
It generally looks great, and the css is much better than many commercial books I've seen. But here are a few observations if you want to tweak it.
1) Using absolute values for the cover image width and height causes its aspect ratio to change if the viewing window is smaller than the supplied values. Since the bulk of devices have a 4:3 aspect ratio and your picture is the same proportions it's often safe to leave out the width attribute and simply use height: 100%. But the best method is to wrap the image in some svg to ensure that any scaling is done proportionally. Code:
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 600 800" preserveAspectRatio="xMidYMid meet"> <image width="600" height="800" xlink:href="images/TWPCover.jpg" /> </svg> Code:
div.section { margin: 0; padding: 1em 0 0 0; page-break-after: always; } /* Sets top margin and page break for preface and chapters */ 3) You set the body margin to 2%. This will scale as the text is zoomed up viewport width changes [edit], potentially leading to margins that are too large. The page margins are the one portion that are better done using fixed lengths. I find that margin-left/right values of 12pt are enough the give the text some breathing room on my 505, and they're also enough so that the ADE page number on the right doesn't encroach on the text. To set the margins for the page top and bottom you can use the @page directive instead (the body top and bottom margins will apply to the entire text). 4) I see you defined a class for a flush paragraph but didn't use it. Personally I really think that setting the first paragraph of a section flush looks a lot better. 5) Although most well-behaved readers will respect the css pagebreaks you insert, some don't (they don't show up in the calibre reader for example). The only sure-fire way to make sure the reader puts in a pagebreak is to break the text into separate flows (separate xhtml files). Last edited by charleski; 04-21-2010 at 10:17 AM. |
04-21-2010, 08:58 AM | #5 | |
book creator
Posts: 9,635
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: PB360°
|
While I appreciate your input, charleski, I have to disagree on some finer points. I am speaking from a practical standpoint here:
@1:Using the heigth: 100% for the cover is definitely a good idea, wrapping an image in svg is not always a really good idea as some readers misinterpret those covers or just don't show them at all (FBReader) @3: I think defining the margin in percent is the most wise thing to do as the margin/body relation stays the same all through the hardware and adapts to the reflow. The other points are really valuable. Quote:
|
|
Advert | |
|
04-21-2010, 10:16 AM | #6 | |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
At small values like 2% the difference isn't that great, though the text will be on the verge of colliding with the border for those reading on a small phone. A fixed size allows you to avoid wall-to-wall text while preventing the gutter becoming too obvious. There are ways to incorporate an html fallback for archaic browsers that don't support SVG. |
|
04-21-2010, 11:02 AM | #7 | |
frumious Bandersnatch
Posts: 7,516
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
When an unforced page break occurs here, the used values of the relevant 'margin-top' and 'margin-bottom' properties are set to '0'. When a forced page break occurs here, the used value of the relevant 'margin-bottom' property is set to '0'; the relevant 'margin-top' used value may either be set to '0' or retained. |
|
04-21-2010, 09:00 PM | #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
|
Thanks so much to you all; you've given me a lot to think about, as has Paul Durrant in an email.
I'll try to respond to each persons comments in one message with as little quoting as possible. Charleski - My ECO Reader uses the FB Reader, and as mtravellerh says does not cope with SVG. So though I'll copy your suggested markup for future reference I'll leave it aside for now. - Paul Durrant suggests leaving the height undefined and setting width to 100%, so I guess I'll have to try each suggestion out separately. - I really like your idea of using padding rather than margin, and will certainly try that out. - 'I see you defined a class for a flush paragraph but didn't use it.' The CSS was designed to a standard to be used in other ePub books. Some of them will need to have flush paragraphs. - 'Personally I really think that setting the first paragraph of a section flush looks a lot better.' I suggest we agree to disagree here; it's a matter of taste, I think. - 'Although most well-behaved readers will respect the css pagebreaks you insert, some don't (they don't show up in the calibre reader for example). The only sure-fire way to make sure the reader puts in a pagebreak is to break the text into separate flows (separate xhtml files).' Could I suggest that this is a problem for the Calibre reader? The ebook meets W3C and ePubCheck standards. I don't think, at first glance, that it's any improvement to break a short book into separate pages. - At small values like 2% the difference isn't that great, though the text will be on the verge of colliding with the border for those reading on a small phone. A fixed size allows you to avoid wall-to-wall text while preventing the gutter becoming too obvious.' I must confess that in this first ePub ebook I hadn't even thought of small phones or larger screens. I'll need to think more about this. mtravellerh and Jelby Thanks for your clarifying comments. I really appreciate the time you all spent in reviewing the book. Although I haven't agreed with all your suggestions I will certainly think more about them. Regards, Alex |
04-21-2010, 09:25 PM | #9 | |
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:
Regards, Alex |
|
04-22-2010, 01:02 AM | #10 | ||||||
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
||||||
04-22-2010, 06:44 AM | #11 | |
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:
Regards, Alex |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Classic Review: The Nook Ebook Reader | Steven Lake | Barnes & Noble NOOK | 5 | 06-09-2010 05:48 PM |
Classic Nook as an ePub renderer: review | kjk | Barnes & Noble NOOK | 1 | 12-11-2009 01:36 PM |
Review: My first ebook reader | carpii | Which one should I buy? | 9 | 12-04-2008 05:14 PM |
The Register review of 4 ebook readers | ShortNCuddlyAm | News | 6 | 11-05-2008 06:35 AM |