Dear Enrico, thank you for the patch.
On 2017-06-01, Enrico Forestieri wrote: > On Thu, Jun 01, 2017 at 02:12:56PM +0000, Guenter Milde wrote: > Please, try the attached. I don't know what you are trying to do, > but I hope you are not trying to sabotage the last fixes to the > en/emdash mess. > I would be really upset to see all of them as ert. > If this is a first step toward a really clean solution (to solve I > don't know what), that would be fine, though. I am trying to clean up the mess after the last fixes just moved the problems to another area (see http://www.lyx.org/trac/ticket/10543, comment 3 section "LyX 2.3dev"). ERT is the only fully backwards compatible solution for 2.2. It can be converted to plain -- or --- in backward conversion from 2.2 to 2.1. For 2.3, we can use a new "SpecialChar" inset. Then, * a "ligature dash" can be back-converted to "\twohyphens" or "\threehyphens" with lyx2lyx. It will become ERT in 2.2 and (unmarked) -- or --- in 2.1 and earlier. * an ERT with just -- or --- can be converted to the SpecialChar inset with lyx2lyx forward conversion from 2.2. to 2.3. Günter