]> git.lyx.org Git - features.git/commit
Advanced search with format: Prepare latex for find
authorKornel Benko <kornel@lyx.org>
Fri, 12 Oct 2018 14:47:07 +0000 (16:47 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:50 +0000 (14:39 +0200)
commit540244adb60216b4abdeb5e628d5c546eb2d9aaf
tree002a43600775961dd97f1bada3d7c59adaa8cf4b
parentb8b092a1f3438995eb91afc7473f1a6e5ad7d78a
Advanced search with format: Prepare latex for find

Our findadv expects something like
prefix + 'search'
so that the regex (which is latexified too)
can work on 'search'
(In the source, the prefix is denoted by lead_as_string)

The latex output contains structs like
\foreignlaguage(abc}{xx\textbf{boldxx\textcolor{blue}{blue 1 blue 2} XX}}
which would never match the simple prefix.

Now the above is converted to
\foreignlaguage(abc}{xx}\\
\foreignlaguage(abc}{\textbf{boldxx}}
\foreignlaguage(abc}{\textbf{\textcolor{blue}{blue 1 blue 2}}}\\
\foreignlaguage(abc}{\textbf{ XX}}
Of course, more than one language or color in an inset can be searched for now.
src/lyxfind.cpp