]> git.lyx.org Git - features.git/commit
Fix bug #8468: Wrong import of UTF8 CJK.
authorGeorg Baum <baum@lyx.org>
Sun, 30 Dec 2012 10:58:21 +0000 (11:58 +0100)
committerGeorg Baum <baum@lyx.org>
Sun, 30 Dec 2012 19:52:49 +0000 (20:52 +0100)
commitde5e34872740363afbf058dac9bd71c0b31209ad
tree78667cfc7e5bf42b596459ad338a6a496466752e
parent6c54a081fa207316dd2b9b8b1cef660399e6fe98
Fix bug #8468: Wrong import of UTF8 CJK.

Actually, the test case showed several problems:
- ERT insets did use layout "Standard", not "Plain Layout"
- The font scale was read correctly, but tex2lyx claimed that it did ignore
  the option "scaled=0.95"
- If a third argument of the CJK environment was given, it caused the whole
  environment to be put in ERT with a broken encoding. This is now fixed for
  the bug test case by using the \font_cjk header variable, but the encoding
  problem still exists for unsupported encodings. I'll file a separate bug
  for that.
- The CJKutf8 package was not handled in the preamble parsing. Therefore the
  chinese comment in the preamble was read with a wrong encoding, and guessing
  the document language did not work.
The new file CJKutf8.tex was created by copying and modifying CJK.tex, but
unfortunately it is impossible to tell git to inherit the history of CJK.tex
for the new file (search the web for git svn copy if you want to know details).
23 files changed:
src/mathed/InsetMathChar.cpp
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathString.cpp
src/mathed/MathFactory.cpp
src/mathed/MathMacro.cpp
src/output_latex.cpp
src/tex2lyx/Context.cpp
src/tex2lyx/Makefile.am
src/tex2lyx/Preamble.cpp
src/tex2lyx/Preamble.h
src/tex2lyx/TODO.txt
src/tex2lyx/test/CJK.lyx.lyx
src/tex2lyx/test/CJKutf8.lyx.lyx [new file with mode: 0644]
src/tex2lyx/test/CJKutf8.tex [new file with mode: 0644]
src/tex2lyx/test/CMakeLists.txt
src/tex2lyx/test/XeTeX-polyglossia.lyx.lyx
src/tex2lyx/test/box-color-size-space-align.lyx.lyx
src/tex2lyx/test/runtests.py
src/tex2lyx/test/test-insets.lyx.lyx
src/tex2lyx/test/test-modules.lyx.lyx
src/tex2lyx/test/test-structure.lyx.lyx
src/tex2lyx/test/test.lyx.lyx
src/tex2lyx/text.cpp