]> git.lyx.org Git - features.git/commit
FindAdv: Try to add the possibility to search for accented characters in regex
authorKornel Benko <kornel@lyx.org>
Sat, 2 Mar 2019 14:42:38 +0000 (15:42 +0100)
committerKornel Benko <kornel@lyx.org>
Sat, 2 Mar 2019 14:42:38 +0000 (15:42 +0100)
commit3541a49db41c143cbdfc14ea8ff017c99f45b9d9
tree31c24275dc7ad074f0e40993b2f9133241d87930
parent9ad8c25d7b2053baec5dc057619705c322a90c3f
FindAdv: Try to add the possibility to search for accented characters in regex

The problem is the handling of regex as using math-mode. That is
any accented character is converted to a math macro.
For instance "ä" --> "\\ddot{a}".
Outside of math or regex it is not converted (if used xetex flavour),
but there are other chars which are converted in math and in text (but differently)
For instance "ů"
in math --> "\\mathring{u}"
in text --> "\\r{u}"

TODO: determine the still not handled conversions.
It would be nice, if we could persuade math factory to not convert
these characters, but I was unable to find the place where the
conversion actually takes place.
src/lyxfind.cpp