Full text search: Ignore text inside <ruby> tags when indexing books. Fixes #2056614 [Ruby text interferes with fulltext search](https://bugs.launchpad.net/calibre/+bug/2056614)

This commit is contained in:
Kovid Goyal 2024-03-09 11:30:52 +05:30
parent abb75711b2
commit 25ad85a69c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -20,7 +20,7 @@ class SimpleContainer(ContainerBase):
tweak_mode = True tweak_mode = True
skipped_tags = frozenset({'style', 'title', 'script', 'head', 'img', 'svg', 'math'}) skipped_tags = frozenset({'style', 'title', 'script', 'head', 'img', 'svg', 'math', 'ruby'})
def tag_to_text(tag): def tag_to_text(tag):