From 3f5aff4a47d2ffe862a7df710c54befb8325260f Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 29 Jan 2026 11:29:33 +0100 Subject: [PATCH] wip #7950 @0.5 --- app/Fluidbook/Compiler/Compiler.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Fluidbook/Compiler/Compiler.php b/app/Fluidbook/Compiler/Compiler.php index 48bf0101d..a33d188dd 100644 --- a/app/Fluidbook/Compiler/Compiler.php +++ b/app/Fluidbook/Compiler/Compiler.php @@ -2755,7 +2755,12 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError public function addSearchWord($to, $page, $array) { - + $words = Text::splitWords(mb_strtolower(Text::deaccent($to))); + foreach ($words as $word) { + $w = $this->config->get('searchWords.' . $word, []); + $w[] = ['page' => $page, 'coords' => $array]; + $this->config->set('searchWords.' . $word, $w); + } } } -- 2.39.5