]> git.lyx.org Git - features.git/commitdiff
FindAdv: Expand the list of handled chars for ogonek
authorKornel Benko <kornel@lyx.org>
Sun, 17 Mar 2019 12:06:56 +0000 (13:06 +0100)
committerKornel Benko <kornel@lyx.org>
Sun, 17 Mar 2019 12:06:56 +0000 (13:06 +0100)
src/lyxfind.cpp

index 90d4ca5c21614435bf8ee5f8eab002d896a0286b..4ba16b95d95fdc0f06589e81db8d7c63148d1cf5 100644 (file)
@@ -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;