Re: Special logo characters in regex (for Adv find)

2020-12-17 Thread Jürgen Spitzmüller
Am Donnerstag, dem 17.12.2020 um 16:07 +0100 schrieb Kornel Benko: > Thanks Jürgen. I am lost here. It should behave as if in normal text, > that is > display the logo (draw) and insert e.g. \LyX{} in (latex?)_output. > For instance > regexp{\LaTeXe{}\endregexp{}} > so that the findadv could

Re: Special logo characters in regex (for Adv find)

2020-12-17 Thread Kornel Benko
Am Thu, 17 Dec 2020 15:45:48 +0100 schrieb Jürgen Spitzmüller : > Am Donnerstag, dem 17.12.2020 um 15:15 +0100 schrieb Kornel Benko: > > Sorry for being dumb, I saw these already, alas I could not find > > where the actual decision is made. > > Like this: > > diff --git

Re: Special logo characters in regex (for Adv find)

2020-12-17 Thread Jürgen Spitzmüller
Am Donnerstag, dem 17.12.2020 um 15:15 +0100 schrieb Kornel Benko: > Sorry for being dumb, I saw these already, alas I could not find > where the actual decision is made. Like this: diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index f0df1d90fd..2f7bb40bb8 100644 ---

Re: Special logo characters in regex (for Adv find)

2020-12-17 Thread Kornel Benko
Am Thu, 17 Dec 2020 14:02:57 +0100 schrieb Jürgen Spitzmüller : > Am Donnerstag, dem 17.12.2020 um 12:31 +0100 schrieb Jürgen > Spitzmüller: > > InsetMathNest::getStatus() > > > > The regexp inset is a math hull inset, thus restrictions to math > > apply. > > You could add an exception to

Re: Special logo characters in regex (for Adv find)

2020-12-17 Thread Jürgen Spitzmüller
Am Donnerstag, dem 17.12.2020 um 14:36 +0100 schrieb Jean-Marc Lasgouttes: > Was there a real good reason for the regex inset to be a math inset, > or is just a case of laziness? Is it because it can be inserted in > math and text? I suspect laziness. I was also surprised to find it in mathed.

Re: Special logo characters in regex (for Adv find)

2020-12-17 Thread Jean-Marc Lasgouttes
Le 17/12/2020 à 12:31, Jürgen Spitzmüller a écrit : The regexp inset is a math hull inset, thus restrictions to math apply. You could add an exception to InsetMathHull::getStatus() for InsetSpecialChar and type == hullRegexp for case LFUN_INSET_INSERT. Was there a real good reason for the

Re: Special logo characters in regex (for Adv find)

2020-12-17 Thread Jürgen Spitzmüller
Am Donnerstag, dem 17.12.2020 um 12:31 +0100 schrieb Jürgen Spitzmüller: > InsetMathNest::getStatus() > > The regexp inset is a math hull inset, thus restrictions to math > apply. > You could add an exception to InsetMathHull::getStatus() for > InsetSpecialChar and type == hullRegexp for case

Re: Special logo characters in regex (for Adv find)

2020-12-17 Thread Jürgen Spitzmüller
Am Donnerstag, dem 17.12.2020 um 11:52 +0100 schrieb Kornel Benko: > I would like to handle the logo characters (\LyX{}, \LaTeX{}, ...) in > regexes too, > but > 1.) It is disabled to paste the chars in regex > 2.) selecting the part together with the special in search field and > applying

Special logo characters in regex (for Adv find)

2020-12-17 Thread Kornel Benko
Hi, I would like to handle the logo characters (\LyX{}, \LaTeX{}, ...) in regexes too, but 1.) It is disabled to paste the chars in regex 2.) selecting the part together with the special in search field and applying 'regexp-mode' will change the char to text (LyX, LaTeX, ...) So the