]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/CJK.lyx.lyx
Revert broken tex2lyx test reference update
[lyx.git] / src / tex2lyx / test / CJK.lyx.lyx
1 #LyX file created by tex2lyx 2.2
2 \lyxformat 490
3 \begin_document
4 \begin_header
5 \origin roundtrip
6 \textclass article
7 \begin_preamble
8 \usepackage{babel}
9
10
11 % It is impossible to get the document language because the document could start with a command,
12 % whitespace, and English word or whatever and the rest is in Japanese. Checking for the first CJK
13 % environment is no solution because the document could be English and contain only some Japanese.
14
15
16 \end_preamble
17 \options english
18 \use_default_options false
19 \maintain_unincluded_children false
20 \language japanese-cjk
21 \language_package default
22 \inputencoding utf8
23 \fontencoding T1
24 \font_roman default
25 \font_sans default
26 \font_typewriter default
27 \font_math auto
28 \font_default_family default
29 \use_non_tex_fonts false
30 \font_sc false
31 \font_osf false
32 \font_sf_scale 100
33 \font_tt_scale 100
34 \graphics default
35 \default_output_format default
36 \output_sync 0
37 \bibtex_command default
38 \index_command default
39 \paperfontsize default
40 \spacing single
41 \use_hyperref false
42 \papersize default
43 \use_geometry false
44 \use_package amsmath 1
45 \use_package amssymb 0
46 \use_package cancel 0
47 \use_package esint 1
48 \use_package mathdots 0
49 \use_package mathtools 0
50 \use_package mhchem 0
51 \use_package stackrel 0
52 \use_package stmaryrd 0
53 \use_package undertilde 0
54 \cite_engine basic
55 \cite_engine_type default
56 \biblio_style plain
57 \use_bibtopic false
58 \use_indices false
59 \paperorientation portrait
60 \suppress_date false
61 \justification true
62 \use_refstyle 0
63 \index Index
64 \shortcut idx
65 \color #008000
66 \end_index
67 \secnumdepth 3
68 \tocdepth 3
69 \paragraph_separation indent
70 \paragraph_indentation default
71 \quotes_language english
72 \papercolumns 1
73 \papersides 1
74 \paperpagestyle default
75 \tracking_changes false
76 \output_changes false
77 \html_math_output 0
78 \html_css_as_file 0
79 \html_be_strict false
80 \end_header
81
82 \begin_body
83
84 \begin_layout Standard
85
86 \lang japanese-cjk
87 Japanese 
88 \end_layout
89
90 \begin_layout Standard
91
92 \lang chinese-traditional
93 Chinese traditional
94 \end_layout
95
96 \begin_layout Standard
97
98 \lang japanese-cjk
99  Japanese 
100 \end_layout
101
102 \begin_layout Standard
103 hello 
104 \end_layout
105
106 \begin_layout Standard
107
108 \lang chinese-simplified
109 Chinese simplified 
110 \end_layout
111
112 \begin_layout Standard
113
114 \begin_inset ERT
115 status collapsed
116
117 \begin_layout Plain Layout
118
119 \backslash
120 begin{CJK}{EUC-JP}{hei}
121 \end_layout
122
123 \end_inset
124
125  Japanese
126  (this CJK environment will be put in ERT because LyX supports only one CJK
127  font mapping per document, this environment uses the 
128 \begin_inset ERT
129 status collapsed
130
131 \begin_layout Plain Layout
132
133 \backslash
134
135 \end_layout
136
137 \end_inset
138
139 texttt{hei} mapping,
140  and the first mapping is empty.
141 \begin_inset ERT
142 status collapsed
143
144 \begin_layout Plain Layout
145
146 \backslash
147 end{CJK}
148 \end_layout
149
150 \end_inset
151
152
153 \end_layout
154
155 \begin_layout Standard
156
157 \lang chinese-simplified
158 Chinese simplified 
159 \end_layout
160
161 \begin_layout Standard
162
163 \begin_inset ERT
164 status collapsed
165
166 \begin_layout Plain Layout
167 % The following Bg5 encoded text cannot be processed as is by latex.
168 \end_layout
169
170 \end_inset
171
172
173 \begin_inset ERT
174 status collapsed
175
176 \begin_layout Plain Layout
177 % It needs to be preprocessed by bg5conv or bg5latex needs to be used.
178 \end_layout
179
180 \end_inset
181
182
183 \begin_inset ERT
184 status collapsed
185
186 \begin_layout Plain Layout
187 % See the documentation of CJK.sty for details.
188 \end_layout
189
190 \end_inset
191
192
193 \end_layout
194
195 \begin_layout Standard
196
197 \lang chinese-traditional
198  Big5 文鼎楷書 
199 \end_layout
200
201 \begin_layout Standard
202
203 \lang english
204 English
205 \end_layout
206
207 \begin_layout Standard
208
209 \begin_inset ERT
210 status collapsed
211
212 \begin_layout Plain Layout
213 % The following SJIS encoded text cannot be processed as is by latex.
214 \end_layout
215
216 \end_inset
217
218
219 \begin_inset ERT
220 status collapsed
221
222 \begin_layout Plain Layout
223 % It needs to be preprocessed by sjisconv or sjislatex needs to be used.
224 \end_layout
225
226 \end_inset
227
228
229 \begin_inset ERT
230 status collapsed
231
232 \begin_layout Plain Layout
233 % See the documentation of CJK.sty for details.
234 \end_layout
235
236 \end_inset
237
238
239 \end_layout
240
241 \begin_layout Standard
242
243 \lang japanese-cjk
244  Shift_JIS 日本語の文章 
245 \end_layout
246
247 \begin_layout Standard
248 hello
249 \end_layout
250
251 \begin_layout Standard
252
253 \begin_inset ERT
254 status collapsed
255
256 \begin_layout Plain Layout
257
258 \backslash
259 begin{CJK}{JIS}{}
260 \end_layout
261
262 \end_inset
263
264
265  JIS-code \e
266 \begin_inset ERT
267 status collapsed
268
269 \begin_layout Plain Layout
270 $
271 \end_layout
272
273 \end_inset
274
275 BF|K
276 \begin_inset ERT
277 status collapsed
278
279 \begin_layout Plain Layout
280
281 \backslash
282
283 \end_layout
284
285 \end_inset
286
287 8l
288 \begin_inset ERT
289 status collapsed
290
291 \begin_layout Plain Layout
292 $
293 \end_layout
294
295 \end_inset
296
297 NJ8>O\e(B
298
299 \begin_inset ERT
300 status collapsed
301
302 \begin_layout Plain Layout
303
304 \backslash
305 end{CJK}
306 \end_layout
307
308 \end_inset
309
310
311 \end_layout
312
313 \begin_layout Standard
314
315 \lang korean
316 Korean 
317 \end_layout
318
319 \end_body
320 \end_document