06-23-2013, 05:17 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2013
Device: none
|
Hypertext and EPUB?
I consider writing some interactive stories. EPUB looks like a good platform.
However, the normal page turning is a problem. This means that if the users clumsy fingers misses the hyperlink text, he will instead go forward (or backward) one page. I could, of course, duplicate each page. This will cause the book to be twice as big, but would mean that "going forward" one page won't make any difference. However, this would be a bother to do manually, and I don't know any way to script it. Is there any 'legal' way to expand the clickable area of a hyperlink beyond that of a simple text area? I know that I could do nasty hacks like put a <table> inside a <a>, but this not the kind of coding e-book readers will expect. Is it possible to disable page turning by toying with content.opf or toc.ncx? So that the book thinks there is no next page, or that the next page is the same page? Is it possible to avoid page breaks in certain areas of the text? (this is to avoid that the user misses a hyperlink option because it is on the next page.) If anyone has any experience in using hypertext inside EPUB books, I would love to hear about it. Thanks for reading this far! |
06-23-2013, 09:04 PM | #2 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
If by hypertext you mean links in the book, they are used all the time. You just have to point back to where it came from, since some older readers do not have a back button.
Avoiding page breaks can be a bit of a problem since the user can zoom to a large text size. You might succeed but leave big gaps of empty space since you have forced the whole paragraph onto the next page. Sigil, the epub editor has buttons to provide both links and anchors. But you have to do them yourself. You could make the link text larger or color it differently or include the following and leading space, but the colors will not show up on a number of e-ink readers. Image maps don't work either. Many many links can slow things down on e-ink readers as opposed to tablet computers. If you must lay things out exactly, then a pdf might be the way to go. How much pdf internal links would be honored by a reader I don't know. |
06-23-2013, 09:22 PM | #3 |
Resident Curmudgeon
Posts: 75,834
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Make sure the links in the ePub are large enough to be easily touched.
One book I've recently fixed up to make the links big enough, I change the superscripted numbers to [1] [2], etc. also removing the superscript so they were the same size as the main text. No problem touching them to move to the footnote. |
06-24-2013, 03:32 AM | #4 | ||||
frumious Bandersnatch
Posts: 7,531
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
Unless you are creating one of those concoctions called "fixed-format" ePub. A PDF would be much better in this case. Quote:
Quote:
|
||||
06-24-2013, 02:04 PM | #5 |
Resident Curmudgeon
Posts: 75,834
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
This one very good reason why Sony did it right. They decided on a swipe for page turns and not just a tap. This means that trying to tap on a link won't cause a page turn by mistake.
|
06-24-2013, 07:08 PM | #6 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2013
Device: none
|
Thanks guys, for this goldmine of info! :-)
|
06-26-2013, 04:53 AM | #7 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
The "<spine>" section of the OPF file defines the "browsing sequence" of pages in the book. I believe (although I haven't tried it) that you could stop the user from paging forward from one "topic" to the next by NOT having those files listed in the "spine". Hyperlinks would still work, but not paging.
|
06-26-2013, 06:07 AM | #8 | |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Theoretically, a linear="no" spine entry attribute should prevent pages from being displayed when paging through a book, but, AFAIK, only iBooks and some other epub 3 reading systems actually observe this attribute. |
|
06-26-2013, 06:13 AM | #9 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
That's a pity. As I say, I haven't actually tried it - it was merely a thought.
I believe it does work for Mobi, if that's of any interest for the OP. |
06-26-2013, 08:16 AM | #10 | |
frumious Bandersnatch
Posts: 7,531
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
And Calibre, if I remember correctly. That's a pity, because it would be a very useful attribute for endnotes, especially when they are at the end of each chapter. |
|
06-27-2013, 10:50 PM | #11 |
Resident Curmudgeon
Posts: 75,834
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What I do is put the footnotes/endnotes at the end of the spine so when I read forward, I won't be having to skip past them.
|
06-28-2013, 07:43 AM | #12 |
frumious Bandersnatch
Posts: 7,531
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Of course, that's what I do as well, but even in that case it would be nice if readers obeyed the linear="no" attribute, especially if the notes are not included in the global page count.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A New Epub Creator: txt to epub, word to epub | oxen | ePub | 120 | 07-22-2019 02:28 PM |
InDesign creates hypertext element that won't validate | Eweforia | ePub | 0 | 04-20-2012 11:01 AM |
epub to epub conversion problem with regex spanning multiple input files | ctop | Conversion | 2 | 02-12-2012 01:56 AM |
Mobi hypertext link not working | newbi | Calibre | 5 | 11-16-2011 05:36 PM |
epub, ePub, EPUB, warum blos ePub? | flowoeB | Lounge | 5 | 11-27-2009 09:37 AM |