On 2018-01-12, Kornel Benko wrote:
> Am Donnerstag, 11. Januar 2018 um 23:36:25, schrieb Guenter Milde
>> On 2018-01-10, Kornel Benko wrote:
>> > Am Mittwoch, 10. Januar 2018 um 11:34:14, schrieb Guenter Milde:

>> > The error-message is (surprisingly) again
>> >    Warning: This document contained both literal and "ligature" dashes.
>> >     Line breaks may have changed. See UserGuide chapter 3.9.1 for details.

>> > You get it only if you remove the strings from filterCheckWarnings.

...

> The only remaining now are
>       export/examples/lilypond_lyx21
>       export/examples/ja/lilypond_lyx21
>       export/doc/UserGuide_lyx21
>       export/doc/de/UserGuide_lyx21

> Same error message.

"lilypond.lyx" does not use the logical markup module but has some instances
of "--lily-output-dir" and similar (in \family typewriter).
The UserGuide explains the background of "ligature dashes" (-- and ---)
vs. literal dashes and includes examples.
In both cases, "--" and "---" are typeset correctly since LyX 2.2
(exported to LaTeX as "-{}-" and "-{}-{}-") but as they will ligate to
en and em dashes in LyX <= 2.1.

When re-converting to 2.2 format, "ligature dashes" are converted to
\twohyphens and \threehyphens (lyx2lyx does not know that some case were
not meant to be dashes originally). Conversion to 2.3 format will then
see a mix of "ligature" and "literal" dashes which results in the warning.

A fix of the back-conversion would also fix the tests:
Suggestion: Add a rule inserting ligature breaks between sequences of
hyphens in running text in lyx2lyx/lyx_2_2.py "revert_dashes()".

A complete fix to #10836 (alternative c): use ERT for ligature dashes if
there is a mix) will also cure the test failures.

Günter

Reply via email to