View Single Post
Old 10-05-2019, 07:18 AM   #64
sjfan
Addict
sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.
 
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
Quote:
Originally Posted by kovidgoyal View Post
@sjfan links are working fine for me. Note that in pagd mode in both the new viewer and the old a link will only take you to the page that has the target, not the actual location within the page. You might want to use flow mode instead (under page layout in the viewer preferences)
I only use flow mode (I just re-confirmed in settings), and it's not working for me; it jumps to the very top of the file, but the ID seems to be ignored.

A minimal epub that exhibits the problem for me is attached. The TOC "Link Destination" entry doesn't jump down to the "Link Destination" h2 header. Neither does the inline link at the top of the document.

Both work fine in calibre 3.x (I just re-tested in 3.42 on another machine, but it was working in a more recent 3.x on my primary machine until I updated to 4.0 yesterday).

This is on Ubuntu 16, with calibre 4.0.
Code:
$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.6 LTS"

$ ebook-viewer --version
ebook-viewer (calibre 4.0)
Screenshots confirming the flow mode in preferences and the location in the file after clicking on "Link Destination" in the TOC included.

Thanks for your time.
Attached Thumbnails
Click image for larger version

Name:	PreferencesScreenshot.png
Views:	228
Size:	121.5 KB
ID:	173987   Click image for larger version

Name:	LocationAfterClickingLinkDestinationInTOC.png
Views:	222
Size:	546.1 KB
ID:	173988  
Attached Files
File Type: epub TOC_IDLink_Test.epub (2.7 KB, 110 views)
sjfan is offline   Reply With Quote