Quote:
Originally Posted by Alan77
however I can see the hyperlinks working in the viewer, but when I put the file into my Kindle, none of the links work.
|
Links to other documents not on the Internet and not in the epub never work.
Links to the Internet only work on ereaders that support that, and are actually connected to the internet.
Internal links (within an epub) can easily be tested if you are creating in Word or LO Writer. These are called bookmarks or anchors.
A footnote involves two links; one to the unique footnote and then the footnote has a link back to the source. Thus if two or more places use the same footnote it needs repeated. A link can be anywhere within a paragraph or heading, but the destination ought to be at the start of a paragraph or heading.
An internal link source looks like this in the file
Code:
<p id="id_ret1" class="block_5"><span class="text_1">“Well you’d best keep it to yourself. Whatever you do, don’t get involved. You don’t want to get tangled up with the </span><a href="index_split_028.html#id_note1" class="text_">Department of Internal Investigations</a><span class="text_1">. They don’t like people meddling and more particularly they don’t like people seeing them at work.” Damoclus warned.</span></p>
The actual link can be anywhere in a heading or paragraph.
The destination might look like
Code:
<p id="id_note1" class="block_18">The Seaton Department of Internal Investigations</p>
<p class="block_4">The organisation involved in counter intelligence, investigating corruption and assessing other departments. Something like secret police. Generally held to be one of the more powerful agencies. If you have any dealings with them, they tend to leave a lot of paper work behind – even if they find you innocent. This latter being rare, attributable to the great efficiency and competency of the department and nothing at all to do with being very good at finding alleged evidence. Known more commonly as the Department of Infernal Investigations.</p>
<p class="block_13"><span class="text_1">[</span><a href="index_split_017.html#id_ret1" class="text_">Return to place in Chapter 12</a><span class="text_1">]</span></p>
These can be tested in the Calibre Editor via Control & Left mouse click.
An external link looks like this
Code:
<p class="block_4"><a href="https://www.corvidspress.com/" class="text_">https://www.corvidspress.com/</a></p>
They should never be used for external content in an ebook (such as an image).
All images, text etc need to be in the epub. Example:
Code:
<p class="block_3"><img src="images/image.png" alt="Image" class="calibre1"/></p>
and
Code:
<p class="block_9"><img src="images/image-3.jpeg" alt="Image" class="calibre11"/></p>
The alt should be a useful description if it's important.