]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/CJKutf8.tex
Fix #10778 (issue with CJK and language nesting)
[lyx.git] / src / tex2lyx / test / CJKutf8.tex
1 \documentclass[english]{article}
2 \usepackage[T1]{fontenc}
3 \usepackage[utf8]{inputenc}
4 \usepackage{CJKutf8}
5 \usepackage{babel}
6
7 % It is impossible to get the document language because the document could start with a command,
8 % whitespace, and English word or whatever and the rest is in Japanese. Checking for the first CJK
9 % environment is no solution because the document could be English and contain only some Japanese.
10
11 \begin{document}
12  
13 \begin{CJK}{UTF8}{}%
14 Japanese \end{CJK} \begin{CJK}{UTF8}{}Chinese traditional\end{CJK} \begin{CJK}{UTF8}{}
15 Japanese \end{CJK}
16 hello
17 \begin{CJK}{UTF8}{}%
18 Chinese simplified \end{CJK}\begin{CJK}{UTF8}{hei} Japanese \end{CJK} \begin{CJK}{UTF8}{}Chinese simplified
19 \end{CJK}
20
21 \begin{CJK}{UTF8}{}
22 Big5 文鼎楷書
23 \end{CJK}
24
25 \inputencoding{latin9}%
26 \selectlanguage{english}%
27 English
28
29 \begin{CJK}{UTF8}{}
30 日本語の文章
31 \end{CJK}
32
33 hello
34
35 \begin{CJK}{UTF8}{}%
36 Korean
37 \end{CJK}
38
39 \end{document}