]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/test/CJK.lyx.lyx
Implement forced local layouts
[lyx.git] / src / tex2lyx / test / CJK.lyx.lyx
index c8c1a7e7b609ef8d19525d23d11291145baf8f1f..014de532324a72770b16deadb707ff64bfa95469 100644 (file)
@@ -1,10 +1,9 @@
 #LyX file created by tex2lyx 2.1.0dev
-\lyxformat 457
+\lyxformat 470
 \begin_document
 \begin_header
 \textclass article
 \begin_preamble
-
 \usepackage{babel}
 
 
 
 
 \end_preamble
+\options english
 \use_default_options false
 \maintain_unincluded_children false
-\language english
+\language japanese-cjk
 \language_package default
 \inputencoding utf8
 \fontencoding T1
@@ -42,6 +42,7 @@
 \use_geometry false
 \use_package amsmath 1
 \use_package amssymb 0
+\use_package cancel 0
 \use_package esint 1
 \use_package mathdots 0
 \use_package mathtools 0
@@ -120,7 +121,22 @@ begin{CJK}{EUC-JP}{hei}
 
 \end_inset
 
- Japanese 
+ Japanese
+ (this CJK environment will be put in ERT because LyX supports only one CJK
+ font mapping per document, this environment uses the 
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+
+\end_layout
+
+\end_inset
+
+texttt{hei} mapping,
+ and the first mapping is empty.
 \begin_inset ERT
 status collapsed
 
@@ -147,23 +163,27 @@ Chinese simplified
 status collapsed
 
 \begin_layout Plain Layout
-
-\backslash
-begin{CJK}{Bg5}{}
+% The following Bg5 encoded text cannot be processed as is by latex.
 \end_layout
 
 \end_inset
 
 
-Big5 文鼎楷書
-
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
+% It needs to be preprocessed by bg5conv or bg5latex needs to be used.
+\end_layout
 
-\backslash
-end{CJK}
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+% See the documentation of CJK.sty for details.
 \end_layout
 
 \end_inset
@@ -173,6 +193,12 @@ end{CJK}
 
 \begin_layout Standard
 
+\lang chinese-traditional
+ Big5 文鼎楷書 
+\end_layout
+
+\begin_layout Standard
+
 \lang english
 English
 \end_layout
@@ -183,23 +209,27 @@ English
 status collapsed
 
 \begin_layout Plain Layout
-
-\backslash
-begin{CJK}{SJIS}{}
+% The following SJIS encoded text cannot be processed as is by latex.
 \end_layout
 
 \end_inset
 
 
-Shift_JIS 日本語の文章
-
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
+% It needs to be preprocessed by sjisconv or sjislatex needs to be used.
+\end_layout
 
-\backslash
-end{CJK}
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+% See the documentation of CJK.sty for details.
 \end_layout
 
 \end_inset
@@ -207,6 +237,12 @@ end{CJK}
 
 \end_layout
 
+\begin_layout Standard
+
+\lang japanese-cjk
+ Shift_JIS 日本語の文章 
+\end_layout
+
 \begin_layout Standard
 hello
 \end_layout
@@ -225,7 +261,7 @@ begin{CJK}{JIS}{}
 \end_inset
 
 
-JIS-code \e
+ JIS-code \e
 \begin_inset ERT
 status collapsed