06-07-2017, 04:40 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2017
Location: Paris - France
Device: Kobo H2O
|
Disable touch screen event
Hi guys.
I make ePub for my own on Kobo H2O. I get questions especially around footnote. Ever if I am following good rules to implement footnote the behaviors around touch screen could get borrowing. Depending of the place of the footnote call, it could happen, when I touch the screen shortly either the high or low menu is displayed ; when I hit screen on the boarder, the page is turned. Actually, doesn't it exist any xhtml tag to punctually disable the normal behavior of the touch screen ? Martin |
06-07-2017, 05:39 PM | #2 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
You don't need to disable the normal touch screen actions to make footnote links work, you just need to make the link to the footnote large enough to activate it easily.
E.g. if your link is something like this then you might well have problems accurately touching the link at small font sizes: Code:
css: a.fn-link-decoration {color:blue;text-decoration:underline;} xhtml: <p>... Foo<sup><a class="fn-link-decoration" href="notes.xhtml#fn1" id="f1">1</a></sup>, bar, baz. Code:
css: sup.fn-decoration {color:blue;text-decoration:underline} a.fn-link {color:inherit;text-decoration:inherit} xhtml: <p>... <a class="fn-link" href="notes.xhtml#fn1" id="f1">Foo<sup class="fn-decoration">1</sup>,</a> bar, baz.</p> Last edited by GeoffR; 06-07-2017 at 05:53 PM. Reason: fn-link-decoration |
Advert | |
|
06-08-2017, 03:45 PM | #3 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2017
Location: Paris - France
Device: Kobo H2O
|
You are quite true GeoffR.
I will enlarge the area this way. Thanks for suggestion Martin |
06-08-2017, 08:56 PM | #4 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Over the years the "which form of hyperlinked footnote" question has popped up many times.
I found that the best bet is to not use superscript footnotes: Code:
<a href="#fn1" id="ft1"><sup>1</sup></a> Instead, it may be better to use [##] format: Code:
<a href="#fn1" id="ft1">[1]</a> https://www.mobileread.com/forums/sh...14#post2859814 Quote:
That is just asking for spaghetti code and painful headaches in the future (converting to other formats, upgrading to EPUB3's epub:type="noteref" + epub:type="footnote", etc. etc.). Not to mention semantic/accessibility reasons to not clutter up your <a> links. Last edited by Tex2002ans; 06-08-2017 at 09:08 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Disable touch screen event to execute return link of a footnote | MartinMarie | ePub | 2 | 06-07-2017 04:26 PM |
Send touch event to screen / flip page from shell | peterson | Kindle Developer's Corner | 9 | 12-22-2015 02:13 PM |
how to disable touch screen? | FinancialWar | Sony Reader | 1 | 05-13-2012 11:14 PM |
Disable Kindle touch screen saver? | comnread66 | Amazon Kindle | 1 | 02-03-2012 08:42 PM |