Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 11:49 AM   #1
galax
Enthusiast
galax began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Sep 2023
Device: none
Broken index

Greetings,

After creating an index in Sigil, which works in the program, koreader is injecting some weird string in ALL nav links:

Code:
#_doc_fragment_24_
The end result is a broken index.

All I am doing is using this in pages

Code:
<a href="#place_01"></a>
And in the TOC this:

Code:
<li><a href="page_01.xhtml#place_01"><b>CHAPTER TITLE</b></a></li>

I would appreciate some help with this.

Thanks
galax is offline   Reply With Quote
Old Today, 12:58 PM   #2
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,652
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
That means it's linking to the 24th "doc fragment", or in other words the 24th .xhtml file within the EPUB. It's supposed to be there, otherwise it wouldn't be able to find it.

What you're doing wouldn't work anywhere because you're supposed to link to id="place_01". It's generally recommended to use that like:
Code:
<h2 id="place_01">CHAPTER TITLE</h2>
Rather than sprinkling in meaningless elements in the general vicinity of what you actually want to refer to.
Frenzie is offline   Reply With Quote
Advert
Old Today, 02:51 PM   #3
galax
Enthusiast
galax began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Sep 2023
Device: none
What a careless oversight!!

Let me get this straight, in nav this:

Code:
<li><a href="page_01.xhtml#place_01"><b>CHAPTER TITLE</b></a></li>
Then in the linked page this:

page_01.xhtml

Code:
<a id="place_01"></a>
What about the # sign in the linked page? In Sigil it works with both but I am not sure what's more correct for epub 3.0:

Code:
<a id="place_01"></a>
or
Code:
<a id="#place_01"></a>
I use the <a> tag because it's for linking images, there are no chapters.

Code:
<div>
<a id=something></a>
<img src=../Images/image.png>
</div>
By the way, in order to prevent the <a> tag to upset the layout rendering are there any options to hide it?

Thanks.
galax is offline   Reply With Quote
Old Today, 02:57 PM   #4
galax
Enthusiast
galax began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Sep 2023
Device: none
Quote:
Originally Posted by Frenzie View Post
Rather than sprinkling in meaningless elements in the general vicinity of what you actually want to refer to.
Would it work linking for the <img> tag?

Code:
<img id="location_01" src="../Images/image_01.png">
Thanks.
galax is offline   Reply With Quote
Old Today, 03:29 PM   #5
galax
Enthusiast
galax began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Sep 2023
Device: none
It's working now.

The only remaining issue whether <img> tag should be linked with 'id' or not.

Thanks
galax is offline   Reply With Quote
Advert
Old Today, 03:44 PM   #6
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,526
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
You can put an id in any tag, and link to it.
Jellby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle PW3 5.9.6.1 ssh broken pipe leaves broken ssh xception Kindle Developer's Corner 8 01-27-2019 10:23 AM
Recipe broken due to missing index.html on site kentmatt Recipes 1 04-20-2016 09:49 PM
Index: Making a linked index in epub virtual_ink ePub 21 10-19-2011 11:23 PM
Broken PRS-505; any place to buy chrome bottom piece? Or anyone with broken 505? erikk Sony Reader 1 12-09-2009 06:51 PM
Broken Ipod works Fine! except that its broken Andybaby Lounge 1 06-04-2009 02:03 AM


All times are GMT -4. The time now is 06:23 PM.


MobileRead.com is a privately owned, operated and funded community.