![]() |
#1 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Feb 2019
Device: MacBook and iPad
|
problems making an image a hyperlink in epub
Discovering that images inserted with Sigil weren't scaling properly in iBooks, you fine folks here helped me correct the issue so that now I'm using the sample code:
<div style="text-align: center; padding: 0pt; margin: 0pt;"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="width:100%; max-width:100%; height:auto; max-height:100%;" version="1.1" viewBox="0 0 600 525" preserveAspectRatio="xMidYMid meet"> <image width="600" height="525" xlink:href="../Images/C01Ilus01.png"/> </svg> </div> Moving on, I want to add an index of illustrations. I've done so in my NeoOffice master file, but am having problems in my epub file. I can link to an image from the index I created and from the image back to the index in the NeoOffice (.odt) master. It's simply a matter of wrapping an <img ...> tag in an <a ...> tag. However, in my epub I can't seem to make an image a hyperlink to get back to the index. So far I've tried wrapping various tags within the above sample code with: <a href="../Text/cEM03.xhtml#c0101ie” id=“c0101”> . . . </a> all to no avail. Is there a way to make an image displayed with the sample code a clickable hyperlink? Thank you :-) |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Feb 2019
Device: MacBook and iPad
|
Seems I got something to work. Studying the confusing W3C SVG Links page at:
https://www.w3.org/wiki/SVG_Links I came up with the expanded sample code for inserted images (the red is what I added): <div style="text-align: center; padding: 0pt; margin: 0pt;"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="width:100%; max-width:100%; height:auto; max-height:100%;" version="1.1" viewBox="0 0 600 525" preserveAspectRatio="xMidYMid meet"> <a xlink:href="../Text/cEM03.xhtml#c0101ie" xlink:title="Click image to return to illustrations index" id="c0101"> <image width="600" height="525" xlink:href="../Images/C01Ilus01.png"/> </a> </svg> </div> It works fine in iBooks and Calibre ebook-viewer on my Mac (Apple is updating my iPad this evening so I'll have to wait to test there), including the tool tip (see xlink:title=". . ." above), though in ADE the tool tip doesn't show but the linking works. If you have any thoughts about how this may cause issues that I haven't discovered, please speak up :-) Thank you PS: I understand why some don't like using an image for a clickable link, and that's why I included a tool tip. Even if a reader inadvertently clicks an image before the tool tip comes up, they're positioned in the illustration index to immediately jump back to where they were. Last edited by klgc; 04-17-2019 at 11:46 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,357
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
And how would the reader KNOW the image is a hotlink? Would it actually say "Click Me"?
|
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,628
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Feb 2019
Device: MacBook and iPad
|
Quote:
As with having to go the SVG route because illustrations weren't resized correctly in some major readers/apps, the underlying problem is that there is no industry wide consensus [i.e. understanding/respect/whatever] for even the standards that are in place. That, of course, is aggravated by older readers/apps, but applies to the current range of available readers/apps. If one gets beyond simple text, sooner or later they're going to find that some of the intended functionality fails in some number of readers/apps. Such may be ok with some tech people, and some businesses, but it's a real pita for authors. ![]() |
|
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,357
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#8 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Probably more people read on tablets and phones today than use e-ink e-readers. Still, there'd be a significant minority who wouldn't see that blue border.
|
![]() |
![]() |
![]() |
#9 | |||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Quote:
I suspect that Amazon's sold more eInks than they'll ever admit. I mean, c'mon, you think that they keep coming out with eInks out of sentimentality? No, brother. They come out with them because they sell like crazy. Hitch |
|||
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,357
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I don't think that's as true as it once was. I can't speak for the world at large, but I can certainly witness a change on these boards. More and more serious readers read on tablets/phones all the time (and not just in a pinch). I'm sure a majority of members still have dedicated eink devices, but we've certainly crossed the rubicon where a reader's "seriousness" gets to be called into question based on the screen technology of their primary reading device. Eink purists are about like pbook purists in that regard: a novelty that serious readers in general don't really have much time for. They just read. *shrug* I suspect the ereading world at large is changing similarly.
Last edited by DiapDealer; 04-27-2019 at 10:42 AM. |
![]() |
![]() |
![]() |
#11 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Let me rephrase my answer--I don't think that anyone or any company knows the answer to that. Too diverse, too disparate, too many peoples and devices of various types. I tend to run a running poll of my customers. Now, frankly, MOST of my customers aren't eReaders--a fact that always makes me sad (not because I give a hoot, but because it makes MY job so much harder...), but of those that are, it's heavily majority eInks. Could it be that they're a segment of the population that bought eReaders early on, and don't upgrade? I guess, sure. I tend to harken back to the "golden number" (yup, in typography too) for line-lengths, and there're reasons for it. On smartphones, it's very hard to reach that number. That's kinda the fundamental reason for my thinking. (Not that that impacts real tablets, of course. I have a Kindle Fire 10", which is actually a pretty decent tablet, although I HATE where they put the damn buttons for all the functions.) The golden number exists due to physiological reactions, to eye-flicks, at the end of the line, before the eye lands on the next line. I suspect that reading on the much-shorter line-length smartphones triggers the physiological reaction to those muc-shorter lines. {shrug}. That's my thinking. Hitch |
|
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,357
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,311
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I guess I'm not sure why the "golden number" would apply to reading devices. I get how it applies to pictures...as in, I understand the concept... but I've seen great pics that don't conform to that rule. I think it is more a training aid to get the photographer to think about composition...
I don't see how getting up to 60-66 characters on a line really makes a difference?? I use my phone to read, exclusively. I typically have it in landscape, but that is so the tables that are often in the books display nicely. It feels like the same width as an old style paperback book - maybe even a little wider. Although, my eyes have reached that 42+ years old range ![]() FWIW, I counted the number of characters in a line and it is about 45-50. |
![]() |
![]() |
![]() |
#14 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,628
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Maybe its a locality thing, but I'm sure I see more gen-Z's reading p-books than I saw a few years ago. This is borne out by one of the librarians at my local bricks & mortar library who has said he's noticed the same thing with borrowing.
And they're building a new B&M library, and another regular bookshop opened recently. BR Last edited by BetterRed; 04-27-2019 at 06:38 PM. |
![]() |
![]() |
![]() |
#15 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,311
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
![]() I also think it's awesome to have B&M book stores. I like browsing for my next good book...I just hope the new stores closely integrate buying ebooks when you find a good one. My dream: Lots of aisles - with good book organization, a good hot chocolate stand in the corner, plush chairs to sit in...and a barcode or something that the store's app on my device can scan and automatically purchase/download to my reading software of choice.... ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
hyperlink from an image with sigil? | Jeremy Taylor | Sigil | 9 | 12-30-2018 07:03 AM |
full page image problems with iBooks/cover problems in iTunes | iain robinson | ePub | 1 | 06-28-2013 11:10 AM |
Hyperlink an image | scheife | ePub | 2 | 03-07-2013 07:43 AM |
Making ePubs show cover image on Kobo. | Vanguard3000 | ePub | 3 | 01-03-2011 02:11 PM |
Another firmware upgrade coming to support Hyperlink in EPUB | Robertb | Astak EZReader | 12 | 09-11-2009 09:46 AM |