Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 03-12-2022, 05:46 AM   #1
paperback
Connoisseur
paperback began at the beginning.
 
Posts: 76
Karma: 10
Join Date: Feb 2022
Device: None
Hyperlink editor: anchors are not listed alphabetically

Linux Mint 20.1 / Calibre 5.35

Open the attached screenshot of the "Insert Hyperlink" window.

Expected result: Anchors are listed strictly alphanumerically, i.e. A to Z, and 0-9.

Actual result: Alphabetical characters are sequenced OK (i.e. alphabetically), but numbers are NOT being sequenced numerically (0-9), but by some other criterion which is not clear.

This is a bug and means that the user has to spend longer looking for anchors with numbers in them.
Attached Thumbnails
Click image for larger version

Name:	insert_hyperlink.png
Views:	127
Size:	2.9 KB
ID:	192715  

Last edited by paperback; 03-12-2022 at 06:07 AM.
paperback is offline   Reply With Quote
Old 03-12-2022, 08:16 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You declaring things as bugs doesnt make them so. The anchors are listed in document order, by design.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-13-2022, 07:59 AM   #3
paperback
Connoisseur
paperback began at the beginning.
 
Posts: 76
Karma: 10
Join Date: Feb 2022
Device: None
Quote:
The anchors are listed in document order, by design.
Open the attached example epub in the editor. Select "Insert Hyperlink > chap1". The order of IDs seems to be higgledy-piggledy, and does not reflect their position in the document. If you beautify the page, the order of IDs changes again, but it's still not the document order.
Attached Files
File Type: epub example_ids.epub (40.7 KB, 82 views)
paperback is offline   Reply With Quote
Old 03-13-2022, 10:51 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I was wrong the list is sorted by the text corresponding to the anchors. Your book has anchors on images so it has no text to sort by. I've changed the code to fallback to using the actual anchors ast the text in such cases.
kovidgoyal is offline   Reply With Quote
Old 03-14-2022, 07:24 AM   #5
paperback
Connoisseur
paperback began at the beginning.
 
Posts: 76
Karma: 10
Join Date: Feb 2022
Device: None
Thanks.
paperback is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
styles not shown alphabetically? stumped Sigil 26 01-29-2020 06:24 AM
Split Chapters & Anchors/Hyperlink Question Trane Sigil 5 12-17-2016 08:51 AM
"files not listed in OPF" ARE listed. what do I do? lucita ePub 8 04-18-2013 04:29 PM
Books not listed alphabetically on glo Nascarfan1972 Kobo Reader 2 12-27-2012 03:48 PM
Is a hyperlink editor in sight? HarryT Sigil 2 08-12-2010 08:18 AM


All times are GMT -4. The time now is 09:40 AM.


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