]> git.lyx.org Git - lyx.git/commitdiff
Disable unicode math symbol replacement.
authorGeorg Baum <baum@lyx.org>
Sun, 9 Mar 2014 09:56:05 +0000 (10:56 +0100)
committerGeorg Baum <baum@lyx.org>
Sun, 9 Mar 2014 09:57:09 +0000 (10:57 +0100)
This seems to work only in some cases, so better display the symbol in ERT.

src/mathed/MathFactory.cpp

index 961e70e9f459250191b717d16e5d228d006c76b1..274acd997f390cf4d9b2c1d49d7feb23aafd5a0e 100644 (file)
@@ -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
 }