From: Kornel Benko Date: Sun, 17 Mar 2019 12:06:56 +0000 (+0100) Subject: FindAdv: Expand the list of handled chars for ogonek X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0ac91ccaf9a67ff7920f0d4ea27c9e33e782525c;p=features.git FindAdv: Expand the list of handled chars for ogonek --- diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 90d4ca5c21..4ba16b95d9 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -1328,6 +1328,8 @@ static void buildAccentsMap() "àÀèÈìÌòÒùÙǹǸẁẀỳỲ"); // grave buildaccent("subdot|d", "BbDdHhKkLlMmNnRrSsTtVvWwZzAaEeIiOoUuYy", "ḄḅḌḍḤḥḲḳḶḷṂṃṆṇṚṛṢṣṬṭṾṿẈẉẒẓẠạẸẹỊịỌọỤụỴỵ"); // dot below + buildaccent("ogonek|k", "AaEeIiUuOo", + "ĄąĘęĮįŲųǪǫ"); // ogonek } /* @@ -1338,7 +1340,7 @@ void Intervall::removeAccents() { if (accents.empty()) buildAccentsMap(); - static regex const accre("\\\\((.|grave|breve|lyxmathsym|text|ddot|dot|acute|dacute|mathring|check|hat|bar|tilde|subdot)\\{[^\\{\\}]+\\}|(i|imath|jmath)(?![a-zA-Z]))"); + static regex const accre("\\\\((.|grave|breve|lyxmathsym|text|ddot|dot|acute|dacute|mathring|check|hat|bar|tilde|subdot|ogonek)\\{[^\\{\\}]+\\}|(i|imath|jmath)(?![a-zA-Z]))"); smatch sub; for (sregex_iterator itacc(par.begin(), par.end(), accre), end; itacc != end; ++itacc) { sub = *itacc;