|
|
#91 | ||
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,181
Karma: 539735
Join Date: Sep 2009
Device: PRS-505
|
Quote:
From the spec: Quote:
|
||
|
|
|
|
|
#92 |
|
Connoisseur
![]() Posts: 76
Karma: 34
Join Date: Oct 2009
Device: none
|
|
|
|
|
|
Enthusiast
|
|
|
|
#93 |
|
Connoisseur
![]() Posts: 76
Karma: 34
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? |
|
|
|
|
|
#95 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,226
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
It's done that way so we cannot read what's there.
__________________
|
|
|
|
|
|
#96 |
|
Chocolate Grasshopper ...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26,684
Karma: 16550486
Join Date: Mar 2008
Location: Scotland
Device: Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
Perhaps but they could have been post with a little more clarity so that we can see the point that is being raised ....
__________________
> My Cats |
|
|
|
|
|
#97 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,147
Karma: 2505637
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
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. |
|
|
|
|
|
#98 | |
|
Chocolate Grasshopper ...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26,684
Karma: 16550486
Join Date: Mar 2008
Location: Scotland
Device: Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
Quote:
__________________
> My Cats |
|
|
|
|
|
|
#99 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,181
Karma: 539735
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. |
|
|
|
|
|
|
#100 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,226
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Please, don't use Adobe's page-template. I delete that out of every ePub that has it.
__________________
|
|
|
|
|
|
#102 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,831
Karma: 2831780
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS 650, Kindle3, iPad2, Sony PRS T1, Sony PRS T2
|
|
|
|
|
|
|
#103 |
|
Connoisseur
![]() Posts: 76
Karma: 34
Join Date: Oct 2009
Device: none
|
|
|
|
|
|
|
#104 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,181
Karma: 539735
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. |
|
|
|
|
|
#105 |
|
ePub Headbanger
![]() ![]() Posts: 42
Karma: 166
Join Date: Aug 2009
Location: Korea
Device: 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...
http://www.mobileread.com/forums/sho...d.php?p=815201 |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
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 |