Special logo characters in regex (for Adv find)

Jürgen Spitzmüller spitz at lyx.org
Thu Dec 17 11:31:55 UTC 2020


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 'regexp-mode' will change the char to text (LyX,
> LaTeX, ...)
> 
> So the question: where is the responsible code?

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 LFUN_INSET_INSERT.

Jürgen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20201217/cc541cbe/attachment.asc>


More information about the lyx-devel mailing list