From f07ba75a5cdf6b1307491035d684bc13d31b437f Mon Sep 17 00:00:00 2001 From: Abs62 Date: Mon, 23 May 2022 20:43:58 +0300 Subject: [PATCH] Epwing: Fix full-text search for some CJK dictionaries (issue #1490) --- epwing_book.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/epwing_book.cc b/epwing_book.cc index 28d8eadc3..50e6b4b31 100644 --- a/epwing_book.cc +++ b/epwing_book.cc @@ -1099,6 +1099,9 @@ void EpwingBook::getArticle( QString & headword, QString & articleText, headword = QString::fromUtf8( buffer, length ); finalizeText( headword ); + if( text_only ) + fixHeadword( headword ); + articleText = getText( pos.page, pos.offset, text_only ); }