]> git.lyx.org Git - lyx.git/commit
Fix output of en- and em-dashes with TeX fonts
authorEnrico Forestieri <forenr@lyx.org>
Sun, 19 Mar 2017 19:50:34 +0000 (20:50 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 19 Mar 2017 19:50:34 +0000 (20:50 +0100)
commit72a488d7e6b56432263c80dd92cd6acc565e03a7
treeb7864f5d280b246ec56f199b7c9ec4b38ab2bbfe
parent1a8fd56333f2070c997046b9aa3dde7567623779
Fix output of en- and em-dashes with TeX fonts

This commit fixes the regression introduced in 2.2 about the
output of en- and em-dashes. In 2.2 en- and em-dashes are output as
the \textendash and \textemdash macros when using TeX fonts, causing
changed output in old documents and also bugs (for example, #10490).

Now documents produced with older versions work again as intended,
while documents produced with 2.2 can be made to produce the exact
same output by simply checking "Don't use ligatures for en-and
em-dashes" in Document->Settings->Fonts.

When exporting documents using TeX fonts to earlier versions, in order
to avoid changed output, a zero-width space character is inserted after
each en/em-dash if dash ligatures are allowed. These characters are
removed when reloading  documents with 2.3, so that they don't accumulate.
25 files changed:
development/FORMAT
lib/RELEASE-NOTES
lib/lyx2lyx/lyx_2_3.py
src/BufferParams.cpp
src/BufferParams.h
src/Paragraph.cpp
src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/ui/FontUi.ui
src/tex2lyx/test/CJK.lyx.lyx
src/tex2lyx/test/CJKutf8.lyx.lyx
src/tex2lyx/test/DummyDocument.lyx.lyx
src/tex2lyx/test/Dummy~Document.lyx.lyx
src/tex2lyx/test/XeTeX-polyglossia.lyx.lyx
src/tex2lyx/test/algo2e.lyx.lyx
src/tex2lyx/test/box-color-size-space-align.lyx.lyx
src/tex2lyx/test/test-insets-basic.lyx.lyx
src/tex2lyx/test/test-insets.lyx.lyx
src/tex2lyx/test/test-memoir.lyx.lyx
src/tex2lyx/test/test-modules.lyx.lyx
src/tex2lyx/test/test-refstyle-theorems.lyx.lyx
src/tex2lyx/test/test-scr.lyx.lyx
src/tex2lyx/test/test-structure.lyx.lyx
src/tex2lyx/test/test.lyx.lyx
src/tex2lyx/test/verbatim.lyx.lyx
src/version.h