E-book viewer: Displays links marked up as glossary and bibliography links as popups. Fixes #1954715 [Support ARIA doc-biblioref and doc-glossref](https://bugs.launchpad.net/calibre/+bug/1954715)

This commit is contained in:
Kovid Goyal 2021-12-14 11:54:03 +05:30
parent 842e99428e
commit 27b2f3a92a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -31,7 +31,7 @@ def get_containing_block(node):
def is_footnote_link(a, dest_name, dest_frag, src_name, link_to_map):
roles = elem_roles(a)
if roles['doc-noteref']:
if roles['doc-noteref'] or roles['doc-biblioref'] or roles['doc-glossref']:
return True
if roles['doc-link']:
return False