]> 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)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:58 +0000 (14:39 +0200)
commit6eb241c3754b7e433844b7eb5f184e73feb63213
tree18df52a49f068740e32b1c4b67be35367b9ddabb
parent7b42168fdb6e3116ce98cfb026730e2a124f82bb
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