]> git.lyx.org Git - lyx.git/commit
Fix bug 1527
authorEnrico Forestieri <forenr@lyx.org>
Mon, 16 Jun 2008 01:21:17 +0000 (01:21 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 16 Jun 2008 01:21:17 +0000 (01:21 +0000)
commit90837aaf6eee523fd594c0ea7f44c053bb49a3cf
tree5efbf27d77d025dea9918444f34ffaee5b59d952
parent4044737b8dfb7d951f1afa9dd61d0ec53b49337a
Fix bug 1527
http://bugzilla.lyx.org/show_bug.cgi?id=1527

* src/mathed/*.cpp:
- Track mode (math or text) when outputting latex code and
  properly wrap commands that are in the wrong mode with
  either \ensuremath or \lyxmathsym.

* src/mathed/MathParser.cpp:
- Parse \ensuremath and \lyxmathsym, such that exported latex
  produces the same result when imported back.
- Replace latex commands with corresponding unicode symbols.

* src/Encoding.cpp:
- Implement Encodings::fromLaTeXCommand() for converting either
  a single or a sequence of latex commands to unicode symbols.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25270 a592a061-630c-0410-9148-cb99ea01b6c8
39 files changed:
src/Encoding.cpp
src/Encoding.h
src/mathed/CommandInset.cpp
src/mathed/CommandInset.h
src/mathed/InsetMath.cpp
src/mathed/InsetMathAMSArray.cpp
src/mathed/InsetMathArray.cpp
src/mathed/InsetMathBig.cpp
src/mathed/InsetMathBoldSymbol.cpp
src/mathed/InsetMathBox.cpp
src/mathed/InsetMathCases.cpp
src/mathed/InsetMathDecoration.cpp
src/mathed/InsetMathDelim.cpp
src/mathed/InsetMathEnv.cpp
src/mathed/InsetMathFrac.cpp
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathNest.cpp
src/mathed/InsetMathOverset.cpp
src/mathed/InsetMathPhantom.cpp
src/mathed/InsetMathRef.cpp
src/mathed/InsetMathRoot.cpp
src/mathed/InsetMathScript.cpp
src/mathed/InsetMathSize.cpp
src/mathed/InsetMathSpace.cpp
src/mathed/InsetMathSplit.cpp
src/mathed/InsetMathSqrt.cpp
src/mathed/InsetMathStackrel.cpp
src/mathed/InsetMathString.cpp
src/mathed/InsetMathSubstack.cpp
src/mathed/InsetMathSymbol.cpp
src/mathed/InsetMathTabular.cpp
src/mathed/InsetMathUnderset.cpp
src/mathed/InsetMathXArrow.cpp
src/mathed/InsetMathXYArrow.cpp
src/mathed/InsetMathXYMatrix.cpp
src/mathed/MathMacro.cpp
src/mathed/MathParser.cpp
src/mathed/MathStream.cpp
src/mathed/MathStream.h