Am Sonntag, dem 13.02.2022 um 04:19 +0100 schrieb Thibaut Cuvelier:
> You mean, with code like
> https://github.com/cburschka/lyx/blob/d3c335a5d524e2edeb73ae1a891fcc58ba5bfd1a/src/BiblioInfo.cpp#L421-L428
> for the search? I thought it would be good to have a file to store
> this information, but I wasn't aware of unicodesymbols. I believe
> that the file shouldn't even be modified at all, thanks to the
> presence of the Unicode character number at the beginning of the line
> (0x00c0 "\\`{A}", whith 0xC0 corresponding to 192,
> https://github.com/cburschka/lyx/blob/master/src/insets/InsetERT.cpp#L131
> ).
> 
> Based on the contents of unicodesymbols, how could I match " \`{A}",
> "\`A", and  "\` A" at once? Should I just use tricks like
> https://github.com/cburschka/lyx/blob/d3c335a5d524e2edeb73ae1a891fcc58ba5bfd1a/src/BiblioInfo.cpp#L414-L418
> (which I'm already doing, in a sense, in
> https://github.com/cburschka/lyx/blob/master/src/insets/InsetERT.cpp#L452-L463
> )? 

I don't know how to do it exactly, but yes, I mean that the information
you need here should all be in unicodesymbols, or added if not, and
could be retrieved by the methods defined in Encoding.cpp.

There should be no need to store LaTeX<>Unicode mappings anywhere else.

Jürgen

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
lyx-devel mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to