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