View Single Post
Old 07-10-2022, 02:06 PM   #1
orebmur
Veteran Linux user
orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.
 
Posts: 150
Karma: 1000000
Join Date: Mar 2017
Location: Barcelona/Spain
Device: Boyue Likebook Note & Mimas, Hisense A5, hopefully soon a PineNote
Out of sequence entries break TOC

Just noted an unexpected behaviour for out of sequence TOC entries in koreader for Linux and Android.

Manually created a TOC (see attached toc.txt) for the new koreader user guide . In addition to the TOC entries made from the section headers, an additional custom tree named 'IMAGES' directly pointing to the pictures of the document was inserted.

Following command was used to merge both the pdf and the TOC text file (in Linux):

Code:
pdftk koreader-user-guide.pdf update_info bookmarks.txt output koreader-ug-with-toc.pdf
The resulting pdf file 'koreader-ug-with-toc.pdf' is attached to this post.

As can be seen already on the attached screenshots, while the additional entries show the referenced pages within brackets, the actual redirection always points to the same page 1.

This is reproducible for any koreader version on both amd64/arm64 Linux and Android/arm using a Boyue Note/Mimas.

Using either xpdf or acroread-9.5.5 (via Wine) in Linux, the TOC display and jumping to the expected page works as expected.

Expected behaviour for koreader TOC would be to function the same as the forementioned pdf readers.
Attached Thumbnails
Click image for larger version

Name:	koreader_toc_01.png
Views:	121
Size:	45.3 KB
ID:	194854   Click image for larger version

Name:	koreader_toc_02.png
Views:	108
Size:	47.3 KB
ID:	194855  
Attached Files
File Type: pdf koreader-ug-with-toc.pdf (2.61 MB, 403 views)
File Type: txt toc.txt (7.5 KB, 98 views)
orebmur is offline   Reply With Quote