02-02-2017, 10:52 PM | #1 |
Banned
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Combined Fixed/Reflowable Epub?
Probably a dumb question, but I have to ask. Though I haven't tried it yet, I've read that you can use CSS styles to target screens of various widths, just like websites. I think the term is "break points."
Therefore, would it be possible to create an epub that is functionally a fixed layout on bigger devices (e.g. Kindle and iPad) but breaks down into a reflowable epub on smaller devices? I'm guessing the answer is no, because, if it could be done, it would probably be all the rage - unless it's just really hard to do. |
02-03-2017, 02:29 AM | #2 |
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
Something was in EPUB Multiple Rendition:
http://www.idpf.org/epub/renditions/multiple/ But I think only readium has some support on this. |
02-03-2017, 03:30 AM | #3 | |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
AFAIK, break points are inserted into programs to simplify debugging. |
|
02-03-2017, 06:17 AM | #4 |
Resident Curmudgeon
Posts: 73,894
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Support for ePub 3 is very poor. Don't expect it to work in many programs/apps.
|
02-03-2017, 07:22 AM | #5 | |
Do-er, All of the Things
Posts: 26
Karma: 1970
Join Date: Jan 2017
Location: Midwest
Device: Androids
|
Quote:
I've heard of cases for switching between Fixed Layout and Reflowable for specific areas of content in a book - but am not clear why you would want to do that the for SAME section of content (sounds like there's a different issue in play with the content on a small/big screen). Regardless, it seems to me that most Readers expect the EPUB to be completely Fixed Layout or Reflowable - and don't handle a mixed case very well (or if they do, don't switch between the necessary UI/UX specific to each type of content to alert the user, etc.). |
|
02-03-2017, 01:36 PM | #6 |
A Hairy Wizard
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I haven't coded for fixed layout yet, I'm just curious... Is there some code in the html header or ePub in general that defines if it is a fixed layout? If it were in the header it seems you could have the fixed layout portion as it's own html page which would display properly when opened, but not display at all if the screen was too small (style="display:none").
...just thinking out loud... ePub3 support is gaining momentum. The more people use the features in their books, the more developers will support them. In the meantime, though, you would be wise to code alternatives for non-supporting apps/readers. Cheers! |
02-03-2017, 04:26 PM | #7 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
For fixed layout you declare the entire document and/or individual html files as being "pre-paginated" in the OPF. You also have to declare the page height and width in pixels (viewport). The reading device is supposed to scale pages if its screen doesn't have those dimensions. Generally there is one HTML file per page in fixed layout.
Last edited by jhowell; 02-03-2017 at 04:33 PM. |
02-03-2017, 05:21 PM | #8 |
Banned
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Well, you talked me out of it.
|
02-03-2017, 05:22 PM | #9 | |
Banned
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Quote:
|
|
02-04-2017, 11:35 AM | #10 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
There is a reference for this in our wiki that you may find useful. Fixed layout ePub. It covers all known fixed layout versions.
Dale |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Animation in a Reflowable ePub | jrett | ePub | 5 | 02-03-2017 11:57 AM |
EPUB Fixed-Layout Style | grailbeltran | ePub | 0 | 01-27-2014 02:01 AM |
Fixed layout epub | curiousgeorge | ePub | 3 | 01-18-2013 04:27 PM |
Images as fixed layout epub | Dillinquent | ePub | 6 | 06-10-2011 02:22 PM |
Fixed-layout epub | bhuvana786 | ePub | 2 | 04-07-2011 08:00 AM |