lyx_mirror/src
Enrico Forestieri 72a488d7e6 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.
2017-03-19 20:50:34 +01:00
..
client Add verbose option 2016-08-17 22:32:14 +02:00
frontends Fix output of en- and em-dashes with TeX fonts 2017-03-19 20:50:34 +01:00
graphics Regularly check if graphics is modified when visible on screen (#10596) 2017-03-19 14:41:54 +01:00
insets Regularly check if preview is modified when visible on screen 2017-03-19 14:41:54 +01:00
mathed Remove optimization that avoids drawing some math inset cells. 2017-03-13 11:44:48 +01:00
support Cosmetic 2017-03-19 14:41:17 +01:00
tests Adapt the cmake-build-system to the reworked biblatex handling 2017-01-13 13:17:12 +01:00
tex2lyx Fix output of en- and em-dashes with TeX fonts 2017-03-19 20:50:34 +01:00
.gitignore
AppleSpellChecker.cpp Remove unused include file. 2016-05-29 17:55:45 -04:00
AppleSpellChecker.h
AspellChecker.cpp
AspellChecker.h
Author.cpp GuiChanges: provide feedback when there are no more changes 2016-05-29 17:55:42 -04:00
Author.h GuiChanges: provide feedback when there are no more changes 2016-05-29 17:55:42 -04:00
BiblioInfo.cpp Consider text-mode accents of the form {\v a} in BiblioInfo 2017-03-19 16:15:03 +01:00
BiblioInfo.h Whitespace and const'ing. 2017-03-12 16:27:36 -04:00
boost.cpp
Box.cpp
Box.h
BranchList.cpp
BranchList.h
buffer_funcs.cpp Allow LyX to open empty files (created, e.g., via "touch"). 2017-01-19 15:34:45 -05:00
buffer_funcs.h
Buffer.cpp Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
Buffer.h Disable edition when external modifications are detected 2017-03-11 00:50:57 +01:00
BufferEncodings.cpp Docstringify getLongString in general and preamble snippets in particular 2016-10-17 00:16:59 +02:00
BufferEncodings.h
BufferList.cpp Simple cache for information on exportable formats, since we seem 2016-10-20 23:07:13 -04:00
BufferList.h Simple cache for information on exportable formats, since we seem 2016-10-20 23:07:13 -04:00
BufferParams.cpp Fix output of en- and em-dashes with TeX fonts 2017-03-19 20:50:34 +01:00
BufferParams.h Fix output of en- and em-dashes with TeX fonts 2017-03-19 20:50:34 +01:00
BufferView.cpp Disable edition when external modifications are detected 2017-03-11 00:50:57 +01:00
BufferView.h Move class definitions inside main class 2016-10-22 23:24:01 +02:00
Bullet.cpp
Bullet.h
Changes.cpp Make the generation of children's tocs more robust 2017-01-14 23:13:14 +01:00
Changes.h Make the generation of children's tocs more robust 2017-01-14 23:13:14 +01:00
Chktex.cpp Remove boost/format support 2016-05-29 17:55:45 -04:00
Chktex.h Remove boost/format support 2016-05-29 17:55:45 -04:00
Citation.h Support for "qualified citation lists" 2017-01-21 14:25:17 +01:00
CiteEnginesList.cpp Basic support for natbib & jurabib options 2017-01-13 18:23:42 +01:00
CiteEnginesList.h Basic support for natbib & jurabib options 2017-01-13 18:23:42 +01:00
CMakeLists.txt Cmake build: Adapt handling of mytheslib to automek behaviour 2017-03-07 14:27:08 +01:00
CmdDef.cpp
CmdDef.h
Color.cpp In Color Preferences "frame of button" should be "button frame" 2016-11-03 08:57:35 +01:00
Color.h
ColorCode.h
ColorSet.h
Compare.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
Compare.h
CompletionList.h
Converter.cpp Fixup commit 50060053 2017-03-14 14:26:26 +01:00
Converter.h Let LyX remember what documents 'needauth' converters have been authorized to run over by the user. 2016-11-23 22:17:13 +01:00
ConverterCache.cpp Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
ConverterCache.h
CoordCache.cpp
CoordCache.h
Counters.cpp New layout tags for better counter handling 2016-10-14 20:08:12 +02:00
Counters.h New layout tags for better counter handling 2016-10-14 20:08:12 +02:00
Cursor.cpp repair Cursor::x_target mechanism (#10168) 2017-03-19 14:41:54 +01:00
Cursor.h When pressing math with the mouse, move to the closest edge (#9748) 2017-02-18 23:03:54 +01:00
CursorSlice.cpp Move one Text::setCursor instance to CursorSlice 2016-05-29 17:55:46 -04:00
CursorSlice.h Move one Text::setCursor instance to CursorSlice 2016-05-29 17:55:46 -04:00
CutAndPaste.cpp Introduce (Inset|InsetList|Paragraph)::resetBuffer 2016-12-05 14:48:32 +01:00
CutAndPaste.h Make insertInset use a temporary cut-and-paste area. 2016-11-09 15:28:11 +01:00
DepTable.cpp Use FileName::lastModified() intead of stat() in DepTable 2017-03-13 17:06:42 +01:00
DepTable.h
Dimension.cpp
Dimension.h Only display a blue rectangle for editable empty insets 2016-11-16 18:33:02 +01:00
DispatchResult.h Automatically show the review toolbar if the document has tracked changes 2016-05-29 17:55:42 -04:00
DocIterator.cpp Generalise the deletion protection mechanism from math to text (#9540) 2017-02-18 23:03:23 +01:00
DocIterator.h Generalise the deletion protection mechanism from math to text (#9540) 2017-02-18 23:03:23 +01:00
DocumentClassPtr.h Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr 2016-06-09 15:21:39 +01:00
EnchantChecker.cpp
EnchantChecker.h
Encoding.cpp Fix compilation with MSVC 2016-12-08 16:28:16 +01:00
Encoding.h Fix bug #9616 2016-09-10 13:36:45 +02:00
ErrorList.cpp Initialize pointer class member 2017-03-01 16:34:01 +01:00
ErrorList.h Move class definitions inside main class 2016-10-22 23:24:01 +02:00
Exporter.cpp
Exporter.h
factory.cpp Add 'needauth' option to converters that need explicit user authorization. 2016-11-22 23:54:58 +01:00
factory.h
Floating.cpp Docstringify getLongString in general and preamble snippets in particular 2016-10-17 00:16:59 +02:00
Floating.h Docstringify getLongString in general and preamble snippets in particular 2016-10-17 00:16:59 +02:00
FloatList.cpp
FloatList.h
Font.cpp Do not output bidi direction macros in passthru context 2016-10-21 10:40:19 +02:00
Font.h
FontEnums.h Correct computation of math font size 2016-11-21 00:02:35 +01:00
FontInfo.cpp Fix header 2016-11-23 19:16:18 +01:00
FontInfo.h Simplify Changers interface 2016-11-21 00:08:11 +01:00
FontList.cpp Rewrite setRowHeight using row information 2016-05-30 14:55:41 +02:00
FontList.h Rewrite setRowHeight using row information 2016-05-30 14:55:41 +02:00
Format.cpp Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
Format.h Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
FuncCode.h New LFUN buffer-external-modification-clear 2017-03-11 00:50:57 +01:00
FuncRequest.cpp Fix typo in comment 2017-03-18 11:36:00 -04:00
FuncRequest.h This patch does two closely related things. 2016-06-27 18:16:35 -04:00
FuncStatus.cpp
FuncStatus.h
Graph.cpp Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
Graph.h
HSpace.cpp
HSpace.h
HunspellChecker.cpp Correct path names were to look for RPM based dictionaries for hunspell on Linux. 2016-05-29 17:55:44 -04:00
HunspellChecker.h
IndicesList.cpp
IndicesList.h
InsetIterator.cpp
InsetIterator.h
InsetList.cpp Introduce (Inset|InsetList|Paragraph)::resetBuffer 2016-12-05 14:48:32 +01:00
InsetList.h Introduce (Inset|InsetList|Paragraph)::resetBuffer 2016-12-05 14:48:32 +01:00
Intl.cpp
Intl.h
KeyMap.cpp Add perf comment 2016-06-12 19:17:33 +01:00
KeyMap.h Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr 2016-06-09 15:21:39 +01:00
KeySequence.cpp
KeySequence.h
Language.cpp Issue an error message if conflicting languages are used 2016-10-27 09:59:01 +02:00
Language.h Issue an error message if conflicting languages are used 2016-10-27 09:59:01 +02:00
LaTeX.cpp Support for multiple bibliographies setting "per child" 2017-02-04 19:23:45 +01:00
LaTeX.h Support for multiple bibliographies setting "per child" 2017-02-04 19:23:45 +01:00
LaTeXFeatures.cpp rename BufferParams::font_encoding() to ::main_font_encoding() 2017-02-25 12:49:49 +01:00
LaTeXFeatures.h Fix usage of multiple varieties of the same polyglossia language. 2016-11-02 17:07:49 +01:00
LaTeXFonts.cpp Docstringify getLongString in general and preamble snippets in particular 2016-10-17 00:16:59 +02:00
LaTeXFonts.h Docstringify getLongString in general and preamble snippets in particular 2016-10-17 00:16:59 +02:00
LaTeXPackages.cpp
LaTeXPackages.h
Layout.cpp Implement PassThru option to arguments. 2016-10-21 10:39:55 +02:00
Layout.h Implement PassThru option to arguments. 2016-10-21 10:39:55 +02:00
LayoutEnums.h Implement PassThru option to arguments. 2016-10-21 10:39:55 +02:00
LayoutFile.cpp Allow Input of local includes from local layout files 2017-03-01 09:19:18 +01:00
LayoutFile.h
LayoutModuleList.cpp
LayoutModuleList.h
Length.cpp Output debug message when creating bad length 2017-03-14 15:20:09 +01:00
Length.h
lengthcommon.cpp
Lexer.cpp Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
Lexer.h Docstringify getLongString in general and preamble snippets in particular 2016-10-17 00:16:59 +02:00
lyx_commit_hash.h.in
LyX.cpp Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
LyX.h Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
LyXAction.cpp New LFUN buffer-external-modification-clear 2017-03-11 00:50:57 +01:00
LyXAction.h New LFUN tabular-feature: update prefs2prefs.py 2016-01-27 18:20:53 +01:00
lyxfind.cpp Don't need the else, since all codepaths return. 2016-12-30 11:05:01 -05:00
lyxfind.h Initialize members spotted by coverity 2017-03-08 16:37:53 +01:00
LyXRC.cpp Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
LyXRC.h Make Japanese Biblatex-aware 2017-01-14 12:13:33 +01:00
LyXVC.cpp Disable edition when external modifications are detected 2017-03-11 00:50:57 +01:00
LyXVC.h Do some caching of window title and related UI 2016-10-19 11:59:47 +02:00
lyxwinres.rc
main.cpp
Makefile.am Update bundled mythes to version 1.2.5 2017-03-06 17:08:38 +01:00
MetricsInfo.cpp Some code factoring for changing mode. 2017-01-03 20:18:48 +01:00
MetricsInfo.h Some code factoring for changing mode. 2017-01-03 20:18:48 +01:00
ModuleList.cpp Fix indentation 2016-06-26 14:26:35 +02:00
ModuleList.h
Mover.cpp
Mover.h
output_docbook.cpp Fix missing includes after change 670efa8f64 2016-07-04 12:11:24 +02:00
output_docbook.h
output_latex.cpp Make openbtUnit raunparam mutable instead of using a copy of runparams 2017-02-12 18:12:38 +01:00
output_latex.h Also track local language switches 2016-09-27 23:00:29 +02:00
output_plaintext.cpp
output_plaintext.h
output_xhtml.cpp Fix XHTML export of German Additional Features manual. 2016-08-04 22:43:17 -04:00
output_xhtml.h Rename some variables and routines. 2016-07-10 00:00:03 -04:00
output.cpp
output.h
OutputEnums.h
OutputParams.cpp Support for multiple bibliographies setting "per child" 2017-02-04 19:23:45 +01:00
OutputParams.h Make openbtUnit raunparam mutable instead of using a copy of runparams 2017-02-12 18:12:38 +01:00
paper.h
Paragraph.cpp Fix output of en- and em-dashes with TeX fonts 2017-03-19 20:50:34 +01:00
Paragraph.h Use Paragraph::getAlign in TextMetrics 2017-01-24 19:33:03 +01:00
ParagraphList.h
ParagraphMetrics.cpp Simplifications, mainly removal of boost::function and useless std::bind 2016-07-03 01:39:32 +02:00
ParagraphMetrics.h Take inset dimension into account in row signature 2016-06-03 11:21:09 +02:00
ParagraphParameters.cpp
ParagraphParameters.h
ParIterator.cpp
ParIterator.h
PDFOptions.cpp Rationalise includes 2016-07-04 02:42:17 +02:00
PDFOptions.h
PersonalWordList.cpp
PersonalWordList.h
PrinterParams.cpp Fix cppcheck initialization warnings 2016-06-06 21:55:39 +02:00
PrinterParams.h
Row.cpp Fix warning 2017-03-05 08:45:52 +01:00
Row.h When selecting text with the mouse, inset selection happens in the middle 2017-02-18 23:03:53 +01:00
RowPainter.cpp Add RtL information to Row 2017-02-02 14:53:01 +01:00
RowPainter.h Add RtL information to Row 2017-02-02 14:53:01 +01:00
Server.cpp Whitespace only. 2016-06-27 18:54:14 -04:00
Server.h Use iostream instead of sstream and move it from header to cpp-source of LyX-Server 2016-06-12 13:03:06 +02:00
ServerSocket.cpp Fix missing include for file i/o prototypes after header cleanup in change 489dca71cd 2016-07-04 10:30:19 +02:00
ServerSocket.h Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr 2016-06-09 15:21:39 +01:00
Session.cpp Let LyX remember what documents 'needauth' converters have been authorized to run over by the user. 2016-11-23 22:17:13 +01:00
Session.h Let LyX remember what documents 'needauth' converters have been authorized to run over by the user. 2016-11-23 22:17:13 +01:00
sgml.cpp Make static counters atomic 2016-07-31 18:34:33 +01:00
sgml.h
Spacing.cpp
Spacing.h
SpellChecker.h Fix cppcheck initialization warnings 2016-06-06 21:55:39 +02:00
TexRow.cpp Improvement to the reverse-search algorithm 2016-10-22 23:24:01 +02:00
TexRow.h Fix compilation on cygwin & others 2016-10-23 00:25:05 +02:00
texstream.cpp Thinko 2016-12-18 13:13:19 +01:00
texstream.h texstream: implement way to terminate a command depending on the context 2016-12-12 15:55:28 +01:00
Text2.cpp Move one Text::setCursor instance to CursorSlice 2016-05-29 17:55:46 -04:00
Text3.cpp When selecting text with the mouse, inset selection happens in the middle 2017-02-18 23:03:53 +01:00
Text.cpp Allow inserting consecutive dashes 2017-02-25 14:13:02 +01:00
Text.h Generalise the deletion protection mechanism from math to text (#9540) 2017-02-18 23:03:23 +01:00
TextClass.cpp Try to see if coverity annotations should be in lower case 2017-03-02 15:24:12 +01:00
TextClass.h Allow Input of local includes from local layout files 2017-03-01 09:19:18 +01:00
TextMetrics.cpp Preventive fix inspired from ~ 2017-03-11 00:50:57 +01:00
TextMetrics.h When selecting text with the mouse, inset selection happens in the middle 2017-02-18 23:03:53 +01:00
Thesaurus.cpp Update bundled mythes to version 1.2.5 2017-03-06 17:08:38 +01:00
Thesaurus.h
Toc.h Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr 2016-06-09 15:21:39 +01:00
TocBackend.cpp Make the generation of children's tocs more robust 2017-01-14 23:13:14 +01:00
TocBackend.h Collect the outliner names for the children's tocs 2017-01-14 23:13:14 +01:00
TocBuilder.cpp Reorganise and simplify 2017-01-09 23:15:16 +01:00
TocBuilder.h Reorganise and simplify 2017-01-09 23:15:16 +01:00
Trans.cpp Avoid dereferencing an iterator at the end 2017-03-09 14:26:17 +01:00
Trans.h
Undo.cpp
Undo.h
update_flags.h
VCBackend.cpp Compilation fix 2017-03-11 20:51:39 +01:00
VCBackend.h Set window title according to platform UI 2016-09-08 15:59:44 +02:00
version.cpp
version.h Fix output of en- and em-dashes with TeX fonts 2017-03-19 20:50:34 +01:00
VSpace.cpp
VSpace.h
WordLangTuple.h
WordList.cpp Fix memory leak with WordLists 2016-12-31 15:29:43 +01:00
WordList.h Fix memory leak with WordLists 2016-12-31 15:29:43 +01:00