]> git.lyx.org Git - features.git/blob - src/tex2lyx/test/CJK.lyx.lyx
tex2lyx: Add a newline at the end of comment if not at the end of a paragraph.
[features.git] / src / tex2lyx / test / CJK.lyx.lyx
1 #LyX file created by tex2lyx 2.2
2 \lyxformat 502
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" "default"
25 \font_sans "default" "default"
26 \font_typewriter "default" "default"
27 \font_math "auto" "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 100
33 \font_tt_scale 100 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 \begin_layout Plain Layout
171
172 \end_layout
173
174 \end_inset
175
176
177 \begin_inset ERT
178 status collapsed
179
180 \begin_layout Plain Layout
181 % It needs to be preprocessed by bg5conv or bg5latex needs to be used.
182 \end_layout
183
184 \begin_layout Plain Layout
185
186 \end_layout
187
188 \end_inset
189
190
191 \begin_inset ERT
192 status collapsed
193
194 \begin_layout Plain Layout
195 % See the documentation of CJK.sty for details.
196 \end_layout
197
198 \end_inset
199
200
201 \end_layout
202
203 \begin_layout Standard
204
205 \lang chinese-traditional
206  Big5 文鼎楷書 
207 \end_layout
208
209 \begin_layout Standard
210
211 \lang english
212 English
213 \end_layout
214
215 \begin_layout Standard
216
217 \begin_inset ERT
218 status collapsed
219
220 \begin_layout Plain Layout
221 % The following SJIS encoded text cannot be processed as is by latex.
222 \end_layout
223
224 \begin_layout Plain Layout
225
226 \end_layout
227
228 \end_inset
229
230
231 \begin_inset ERT
232 status collapsed
233
234 \begin_layout Plain Layout
235 % It needs to be preprocessed by sjisconv or sjislatex needs to be used.
236 \end_layout
237
238 \begin_layout Plain Layout
239
240 \end_layout
241
242 \end_inset
243
244
245 \begin_inset ERT
246 status collapsed
247
248 \begin_layout Plain Layout
249 % See the documentation of CJK.sty for details.
250 \end_layout
251
252 \end_inset
253
254
255 \end_layout
256
257 \begin_layout Standard
258
259 \lang japanese-cjk
260  Shift_JIS 日本語の文章 
261 \end_layout
262
263 \begin_layout Standard
264 hello
265 \end_layout
266
267 \begin_layout Standard
268
269 \begin_inset ERT
270 status collapsed
271
272 \begin_layout Plain Layout
273
274 \backslash
275 begin{CJK}{JIS}{}
276 \end_layout
277
278 \end_inset
279
280
281  JIS-code \e
282 \begin_inset ERT
283 status collapsed
284
285 \begin_layout Plain Layout
286 $
287 \end_layout
288
289 \end_inset
290
291 BF|K
292 \begin_inset ERT
293 status collapsed
294
295 \begin_layout Plain Layout
296
297 \backslash
298
299 \end_layout
300
301 \end_inset
302
303 8l
304 \begin_inset ERT
305 status collapsed
306
307 \begin_layout Plain Layout
308 $
309 \end_layout
310
311 \end_inset
312
313 NJ8>O\e(B
314
315 \begin_inset ERT
316 status collapsed
317
318 \begin_layout Plain Layout
319
320 \backslash
321 end{CJK}
322 \end_layout
323
324 \end_inset
325
326
327 \end_layout
328
329 \begin_layout Standard
330
331 \lang korean
332 Korean 
333 \end_layout
334
335 \end_body
336 \end_document