03-25-2010, 06:05 AM | #91 | ||
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
From the spec: Quote:
|
||
03-25-2010, 09:07 AM | #92 |
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
|
06-11-2010, 08:11 AM | #93 |
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
Poems with fixed layout
Once again I'm having problems with poems and this time with fixed layout in poems. Take a look at my example pictures.
I'm quite doubtful but is there a way (preferably an easy way) to keep that layout so it would look same in different devices and monitors regardless the screen size? My own answer would be no. Is this just something that cannot be done in EPUB? I have been thinking about adding Page Map but I can't define exact page size that would work in every screen size, right? I could play with div elements but it wouldn't work with every screen size. If this is impossible to do in EPUB, do you have any good suggestions to do such poems in EPUB? Or should these poems be presented only in fixed layout file formats e.g. PDF? |
06-11-2010, 09:40 AM | #94 |
Chocolate Grasshopper ...
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
Yikes !!!!
Has my eyesight gone or are those picture blurry !!!!! |
06-11-2010, 09:43 AM | #95 |
Resident Curmudgeon
Posts: 75,864
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
06-11-2010, 09:52 AM | #96 |
Chocolate Grasshopper ...
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
|
06-11-2010, 10:19 AM | #97 |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I think (s)he wants the "poetry" to be displayed always with the same relative positioning/indentation.
One of the things one has to consider is that ebooks are typically displayed in small screens, so whatever format is used, it must be adaptable to narrow text widths. |
06-11-2010, 11:20 AM | #98 | |
Chocolate Grasshopper ...
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
Quote:
|
|
06-12-2010, 08:27 AM | #99 | |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
Unfortunately, CSS2 doesn't have conditional rules that would be useful here. If you're targeting readers equipped with ADE, though, then you could take advantage of Adobe's page-template extension and the conditional styling it allows. See the section on dynamic styling here. This can be used to set differing selector rules for different sizes of screen. Of course, this is non-standard and would only work on ADE readers (which are still the large majority of devices), but you can set the default rules to suit something like the iPad and then apply conditional rules to match ADE readers with smaller screens. |
|
06-12-2010, 02:48 PM | #100 |
Resident Curmudgeon
Posts: 75,864
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Please, don't use Adobe's page-template. I delete that out of every ePub that has it.
|
06-13-2010, 05:05 AM | #101 |
Chocolate Grasshopper ...
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
obviously one-size does not fit all !!!!
|
06-13-2010, 06:35 AM | #102 |
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
|
|
06-16-2010, 01:26 AM | #103 |
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
|
06-16-2010, 01:25 PM | #104 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Well, a lot of publishers use the page-template badly, putting margins in it that should be specified in the css. In fact it seems a lot of them just paste in a single page-template file that they've found somewhere in the mistaken belief that it makes their output look more professional, but that's a symptom of the poor level of coding skills prevalent in the industry.
Used properly, the page-template extension offers a reasonable amount of extra functionality. It's non-standard, but we're already seeing people playing around with webkit-specific css3 elements to get nice effects on the iPad, so the epub standard is in danger of losing relevance. |
06-18-2010, 10:21 AM | #105 |
ePub Headbanger
Posts: 47
Karma: 7940
Join Date: Aug 2009
Location: Korea
Device: Boox Poke4 / Sony PRS-505
|
I'll invite you to take a look at my epub-formatted book. The 9th section called "Tarot" (adversary) is a collection of poetry. In particular, numbers 19, 20, 22 should prove good examples of a "best-fit" solution. Due to page-width, it's really a matter of doing some "padding-left" and "padding-right" work... coupled with some left, right, or center, alignment... Also, because you don't want stanzas breaking across pages (and when the user selects large size fonts, they will), I made sure to use ".dontbreak { page-break-inside: avoid ; }" in the CSS as well...
https://www.mobileread.com/forums/sho...d.php?p=815201 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
direkter Umlaut oder lieber HTML Code in Epub ? | NASCARaddicted | Erste Hilfe | 14 | 06-16-2011 05:54 AM |
Programming language code snippets in ebooks? | Connochaetes | Writers' Corner | 7 | 10-18-2010 02:43 PM |
ebook-convert HTML to EPUB and problem with <pre><code> | mikegr | Calibre | 2 | 03-09-2010 02:27 PM |
css override code for margins? | Amalthia | Calibre | 15 | 08-11-2009 07:20 PM |
Problems generating ePub from HTML/CSS | AlexBell | Calibre | 3 | 07-17-2009 05:10 AM |