[LyX/master] Disable unicode math symbol replacement.
commit 23752e6114aab1d88b60fa59620d4100eeb94e9b Author: Georg Baum b...@lyx.org Date: Sun Mar 9 10:56:05 2014 +0100 Disable unicode math symbol replacement. This seems to work only in some cases, so better display the symbol in ERT. diff --git a/src/mathed/MathFactory.cpp b/src/mathed/MathFactory.cpp index 961e70e..274acd9 100644 --- a/src/mathed/MathFactory.cpp +++ b/src/mathed/MathFactory.cpp @@ -120,6 +120,8 @@ bool canBeDisplayed(char_type c) bool isUnicodeSymbolAvailable(docstring const name, char_type c) { + // this is too fragile, e.g. prodes W instead of capital omega on OS X +#if 0 docstring cmd(from_ascii(\\) + name); bool is_combining; bool termination; @@ -133,6 +135,7 @@ bool isUnicodeSymbolAvailable(docstring const name, char_type c) is_combining, termination); } return c != 0 !is_combining; +#endif }
[LyX/master] Disable unicode math symbol replacement.
commit 23752e6114aab1d88b60fa59620d4100eeb94e9b Author: Georg BaumDate: Sun Mar 9 10:56:05 2014 +0100 Disable unicode math symbol replacement. This seems to work only in some cases, so better display the symbol in ERT. diff --git a/src/mathed/MathFactory.cpp b/src/mathed/MathFactory.cpp index 961e70e..274acd9 100644 --- a/src/mathed/MathFactory.cpp +++ b/src/mathed/MathFactory.cpp @@ -120,6 +120,8 @@ bool canBeDisplayed(char_type c) bool isUnicodeSymbolAvailable(docstring const & name, char_type & c) { + // this is too fragile, e.g. prodes W instead of capital omega on OS X +#if 0 docstring cmd(from_ascii("\\") + name); bool is_combining; bool termination; @@ -133,6 +135,7 @@ bool isUnicodeSymbolAvailable(docstring const & name, char_type & c) is_combining, termination); } return c != 0 && !is_combining; +#endif }