From 25ad85a69c52b1b9192dc442f8b718d0bcf65dab Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 9 Mar 2024 11:30:52 +0530 Subject: [PATCH] Full text search: Ignore text inside tags when indexing books. Fixes #2056614 [Ruby text interferes with fulltext search](https://bugs.launchpad.net/calibre/+bug/2056614) --- src/calibre/db/fts/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/fts/text.py b/src/calibre/db/fts/text.py index 0beb0a405a..ea30acc39a 100644 --- a/src/calibre/db/fts/text.py +++ b/src/calibre/db/fts/text.py @@ -20,7 +20,7 @@ class SimpleContainer(ContainerBase): 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):