lyx_mirror/src
Enrico Forestieri a2d181905a Fix bug #11586
Do not replace a latex command with the corresponding symbol
in the unicodesymbols file unless it can be encoded in the
document encoding.

The mhchem \ce inset is a text mode environment but allows entering
spaces and mathmode commands. However, even if it doesn't allow unicode
symbols, LyX allows entering them (by copy/paste, for example), causing
latex errors. As a unicode symbol may have a proper latex representation
from the unicodesymbols file, use it instead of the bare symbol. Here, we
don't care about the mode because both text and math mode should be allowed.
For example, the ⟶ symbol is not recognized but its latex representation
(\longrightarrow) is fine. Of course, there may be symbols that are
not recognized anyway, but this is better because they cause explicit
errors from mhchem instead of cryptic iconv errors in case they cannot
be represented in the document encoding.
2019-06-25 22:23:51 +02:00
..
client Add -headerpad_max_install_names option to linker calls and make run path configuration consistent. 2018-09-22 20:33:41 +02:00
convert Add -headerpad_max_install_names option to linker calls and make run path configuration consistent. 2018-09-22 20:33:41 +02:00
frontends Fix bold-like characters when selecting bidi text 2019-04-10 14:19:18 +02:00
graphics Avoid duplicate generation of the same preview 2018-06-07 23:13:33 +02:00
insets Refined fix for #9633 2019-06-25 21:57:00 +02:00
mathed Fix bug #11586 2019-06-25 22:23:51 +02:00
support Fix bug #4269 2019-03-19 21:22:14 +01:00
tests Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
tex2lyx tex2lyx: improve module support 2019-06-19 17:23:26 +02:00
.gitignore
AppleSpellChecker.cpp Fix editorial whitespace error 2017-07-30 09:30:58 +02:00
AppleSpellChecker.h
AspellChecker.cpp Fix editorial whitespace issues, e.g. extra space before semicolon 2017-07-30 00:54:12 +02:00
AspellChecker.h
Author.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Author.h GuiChanges: provide feedback when there are no more changes 2016-05-29 17:55:42 -04:00
BiblioInfo.cpp Differentiate Buffer strings and GUI strings in citeengines 2018-01-30 08:21:21 +01:00
BiblioInfo.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
boost.cpp
Box.cpp
Box.h
BranchList.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
BranchList.h
buffer_funcs.cpp Disambiguate dialog buttons 2018-09-09 10:50:01 +02:00
buffer_funcs.h
Buffer.cpp reset bibitem counter in the second updateBuffer() routine as well 2019-06-19 09:20:25 +02:00
Buffer.h Do not consider deleted labels in ambiguity check 2019-01-09 09:06:53 +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 Handle properly undo groups in embedded work areas 2017-12-23 19:21:12 +01:00
BufferList.h Handle properly undo groups in embedded work areas 2017-12-23 19:21:12 +01:00
BufferParams.cpp CJKutf8 is only to be used with the dedicated utf8-cjk encoding 2019-01-12 17:40:19 +01:00
BufferParams.h Copy modules into the Advanced F&R pane as well. 2018-12-11 18:05:53 -05:00
BufferView.cpp Do not consider deleted labels in ambiguity check 2019-01-09 09:06:53 +01:00
BufferView.h Adapt caret height to context in mathed. 2018-05-10 12:53:30 +02:00
Bullet.cpp
Bullet.h
Changes.cpp Amend bd21aa9 2018-12-08 23:16:08 +01:00
Changes.h Make the generation of children's tocs more robust 2017-01-14 23:13:14 +01:00
Chktex.cpp Adapt to new ChkTeX return values. 2018-03-17 15:44:05 -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 Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
CiteEnginesList.h Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
CMakeLists.txt Updates to cmake scripts needed to build with mingw on Fedora. 2018-08-30 15:28:13 -04:00
CmdDef.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
CmdDef.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
Color.cpp Collapsable -> Collapsible (part 2) 2017-10-16 11:24:41 +02:00
Color.h
ColorCode.h Collapsable -> Collapsible (part 2) 2017-10-16 11:24:41 +02:00
ColorSet.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
Compare.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Compare.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
CompletionList.h
Converter.cpp Load hyperref with a suitable driver 2018-04-09 15:17:11 +02:00
Converter.h Load hyperref with a suitable driver 2018-04-09 15:17:11 +02:00
ConverterCache.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
ConverterCache.h
CoordCache.cpp Improve debug message 2015-11-20 22:43:45 +01:00
CoordCache.h Get rid of ParagraphMetrics::insetDimension 2015-10-19 13:17:16 +02:00
Counters.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
Counters.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
Cursor.cpp Fix bug #10498 2019-06-25 21:27:33 +02:00
Cursor.h Backport 641ae5c7ad. 2018-12-14 19:20:36 +01:00
CursorSlice.cpp Rename some macro-related insets 2017-07-05 14:46:34 +02:00
CursorSlice.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
CutAndPaste.cpp Merge paragraphs when pasted into an inset that forbids multipars 2018-10-14 09:06:38 +02:00
CutAndPaste.h Do not remove character at start of paragraph when cutting 2018-09-18 22:57:41 +02:00
DepTable.cpp Use FileName::lastModified() intead of stat() in DepTable 2017-03-13 17:06:42 +01:00
DepTable.h Fix compilation warning in DepTable.cpp 2017-03-20 15:38:08 +01:00
Dimension.cpp Fix LASSERT correction 2015-10-10 21:38:17 +02:00
Dimension.h Fix embarrassing typo 2018-12-17 17:22:42 +01:00
DispatchResult.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
DocIterator.cpp Properly communicate forced encodings 2018-01-27 18:35:16 +01:00
DocIterator.h Introduce "inherit" encoding for latex_language 2018-01-20 09:22:38 +01:00
DocumentClassPtr.h Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
EnchantChecker.cpp Add support for enchant 2.x 2018-03-19 17:33:17 +01:00
EnchantChecker.h
Encoding.cpp Fix bug #11526 2019-03-24 22:19:05 +01:00
Encoding.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04: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 Collapsable -> Collapsible (part 2) 2017-10-16 11:24:41 +02:00
factory.h
Floating.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Floating.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
FloatList.cpp Add more Float tags to allow to disable wide and sideways feature 2015-05-22 18:59:17 +02:00
FloatList.h Add more Float tags to allow to disable wide and sideways feature 2015-05-22 18:59:17 +02:00
Font.cpp Fix nesting problem with numbers in RTL text 2018-07-22 10:16:32 +02:00
Font.h Fix bugs #10650 and #9598 2017-06-03 17:26:05 +02:00
FontEnums.h Correct computation of math font size 2016-11-21 00:02:35 +01:00
FontInfo.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
FontInfo.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
FontList.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
FontList.h Rewrite setRowHeight using row information 2016-05-30 14:55:41 +02:00
Format.cpp Fix bug #9622 2018-12-14 18:57:48 +01:00
Format.h Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
FuncCode.h Fix bug #7404. 2018-12-11 17:43:17 -05:00
FuncRequest.cpp Fix #8338. 2018-04-20 23:48:50 -04:00
FuncRequest.h Fix #8338. 2018-04-20 23:48:50 -04:00
FuncStatus.cpp
FuncStatus.h
Graph.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
Graph.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
HunspellChecker.cpp Support new hunspell C++ ABI if LyX is built against hunspell >= 1.5 2018-04-14 10:35:59 +02:00
HunspellChecker.h
IndicesList.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
IndicesList.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
InsetIterator.cpp
InsetIterator.h
InsetList.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
InsetList.h Fix some spelling errors reported by Sven 2017-09-22 09:34:51 +02:00
Intl.cpp
Intl.h
KeyMap.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
KeyMap.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
KeySequence.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
KeySequence.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
Language.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
Language.h Issue an error message if conflicting languages are used 2016-10-27 09:59:01 +02:00
LaTeX.cpp Consider sub-subfiles on log file parsing. 2018-04-15 00:04:40 -04:00
LaTeX.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
LaTeXFeatures.cpp Add support for U+2693 (ANCHOR) 2019-01-12 08:34:11 +01:00
LaTeXFeatures.h Use proper listings font styles with polyglossia and RTL 2019-04-20 08:37:45 +02:00
LaTeXFonts.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LaTeXFonts.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
LaTeXPackages.cpp
LaTeXPackages.h
Layout.cpp Fix some parsing glitches in Autonest and IsAutonestedBy 2018-12-29 18:36:20 +01:00
Layout.h Implement auto-nesting. 2018-01-01 12:30:34 +01:00
LayoutEnums.h Implement PassThru option to arguments. 2016-10-21 10:39:55 +02:00
LayoutFile.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LayoutFile.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
LayoutModuleList.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LayoutModuleList.h Fix bug #11055. 2018-04-15 00:29:36 -04:00
Length.cpp Preferences shows current zoom instead of preference's default zoom (#10455) 2017-05-07 14:17:54 +02:00
Length.h Define new inPixels helper in BufferView 2017-04-28 15:06:30 +02:00
lengthcommon.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
Lexer.cpp Fix Lexer::getLongString prefix pruning logic 2017-08-29 16:05:09 +02:00
Lexer.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
lyx_commit_hash.h.in
LyX.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
LyX.h Move the global formats and system_formats variables into the 2017-03-13 23:40:29 -04:00
LyXAction.cpp Fix bug #7404. 2018-12-11 17:43:17 -05:00
LyXAction.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
lyxfind.cpp Fix #11241, FindAdv for wedge in subscript 2018-12-11 12:12:02 +01:00
lyxfind.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
LyXRC.cpp Update screen as needed when preferences are changed 2019-02-27 12:04:09 +01:00
LyXRC.h Make it possible to select (not)native file dialogs at run time 2018-03-21 10:56:57 +01:00
LyXVC.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LyXVC.h Do some caching of window title and related UI 2016-10-19 11:59:47 +02:00
lyxwinres.rc
main.cpp Avoid an assertion when compiling in debug mode with MSVC 2015 2017-04-12 21:19:42 +02:00
Makefile.am Add -headerpad_max_install_names option to linker calls and make run path configuration consistent. 2018-09-22 20:33:41 +02:00
MetricsInfo.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
MetricsInfo.h Use a unicode character for menu separator on screen 2018-09-11 10:59:26 +02:00
ModuleList.cpp Fix indentation 2016-06-26 14:26:35 +02:00
ModuleList.h Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
Mover.cpp
Mover.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
output_docbook.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
output_docbook.h
output_latex.cpp Refined fix for #9633 2019-06-25 21:57:00 +02:00
output_latex.h Use TeXOnePar for the inpreamble layouts 2018-02-16 17:25:06 +01:00
output_plaintext.cpp Fix bracket output in RTL languages 2018-07-21 10:40:59 +02:00
output_plaintext.h
output_xhtml.cpp Revert "ABOVE and CENTERED labels need special treatment." 2017-10-16 21:37:59 -04:00
output_xhtml.h Add support to cross out characters 2017-04-05 00:01:19 +02:00
output.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
output.h
OutputEnums.h
OutputParams.cpp Refined fix for #9633 2019-06-25 21:57:00 +02:00
OutputParams.h Refined fix for #9633 2019-06-25 21:57:00 +02:00
paper.h Convert remaining C++ files to UTF-8 2015-12-05 19:33:24 +00:00
Paragraph.cpp update buffer after fixBiblio 2019-06-19 09:23:52 +02:00
Paragraph.h Only show Accept/Reject Change options if relevant 2018-12-22 14:57:40 -05:00
ParagraphList.h
ParagraphMetrics.cpp Remove row crc computation 2018-02-15 12:29:25 +01:00
ParagraphMetrics.h Remove row crc computation 2018-02-15 12:29:25 +01:00
ParagraphParameters.cpp
ParagraphParameters.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
ParIterator.cpp
ParIterator.h
PDFOptions.cpp Load hyperref with a suitable driver 2018-04-09 15:17:11 +02:00
PDFOptions.h Add some missing member variable initializations 2015-09-13 19:47:21 +02:00
PersonalWordList.cpp
PersonalWordList.h
PrinterParams.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
PrinterParams.h
Row.cpp Fixup 7686af1ba8: japanese-cjk got forgotten 2019-06-08 09:45:15 +02:00
Row.h Make sure that rows are repainted when they get (un)selected 2018-02-15 12:29:25 +01:00
RowPainter.cpp Always paint text decoration when painting inset. 2019-05-24 10:36:13 +02:00
RowPainter.h Paint underline for insets too. 2018-09-20 17:07:10 +02:00
Server.cpp Fix LyX server on Windows 2018-08-08 13:15:56 +02:00
Server.h Properly track the lifetime of signals2::slots (#8261) 2017-06-11 19:51:17 +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 Avoid asserting when reading the session file 2017-12-02 21:37:02 +01:00
Session.h The shell escape patch 2017-08-03 13:07:41 +02:00
sgml.cpp Make static counters atomic 2016-07-31 18:34:33 +01:00
sgml.h
Spacing.cpp Fix switch of language and line spacing in InTitle commands. 2018-02-16 17:24:00 +01:00
Spacing.h Fix switch of language and line spacing in InTitle commands. 2018-02-16 17:24:00 +01:00
SpellChecker.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04: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 Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
texstream.h Amend bd21aa9 2018-12-08 23:16:08 +01:00
Text2.cpp Improve DEPM when change tracking is on 2019-02-15 11:04:28 +01:00
Text3.cpp Do not auto-insert separator for keepempty layouts 2018-12-29 18:32:47 +01:00
Text.cpp Do not consider deleted labels in ambiguity check 2019-01-09 09:06:53 +01:00
Text.h Improve DEPM 2018-09-18 23:00:46 +02:00
TextClass.cpp Differentiate Buffer strings and GUI strings in citeengines 2018-01-30 08:21:21 +01:00
TextClass.h Add special chain for Modules with OutputFormat for pLaTeX (Japanese) 2017-09-01 10:32:22 +02:00
TextMetrics.cpp Handle orphaned bibitems 2019-06-19 09:12:23 +02:00
TextMetrics.h Update insets position in cache in more cases 2018-02-15 12:29:25 +01:00
Thesaurus.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
Thesaurus.h Forbid wrong compiler generated copy constructors 2015-09-20 19:43:06 +02:00
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 Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04: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 Add missing intializations 2015-10-10 21:04:28 +02:00
Undo.cpp Skip paint event when in the middle of a buffer operation 2018-06-15 14:12:32 +02:00
Undo.h Skip paint event when in the middle of a buffer operation 2018-06-15 14:12:32 +02:00
update_flags.h Allow multiple calls to processUpdateFlags before redraw 2018-02-15 12:29:25 +01:00
VCBackend.cpp RCS: commit undo allowed only in unlocked state. 2018-01-11 23:47:41 +01:00
VCBackend.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
version.cpp
version.h Fix bug #9101 2017-06-07 00:55:23 +02:00
VSpace.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
VSpace.h
WordLangTuple.h #9496 factor out getting language from LFUN args or cursor position in speller LFUNs 2015-07-16 21:59:15 +02:00
WordList.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
WordList.h Fix memory leak with WordLists 2016-12-31 15:29:43 +01:00