]> git.lyx.org Git - features.git/blob - autotests/export/latex/en-th_language-default.lyx
ctest and documentation update
[features.git] / autotests / export / latex / en-th_language-default.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 573
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass article
8 \begin_preamble
9 \AtBeginDocument{\usepackage{fonts-tlwg}}
10 \end_preamble
11 \use_default_options true
12 \maintain_unincluded_children false
13 \language english
14 \language_package default
15 \inputencoding auto-legacy
16 \fontencoding auto
17 \font_roman "lmodern" "default"
18 \font_sans "default" "default"
19 \font_typewriter "default" "default"
20 \font_math "auto" "auto"
21 \font_default_family default
22 \use_non_tex_fonts false
23 \font_sc false
24 \font_osf false
25 \font_sf_scale 100 100
26 \font_tt_scale 100 100
27 \use_microtype false
28 \use_dash_ligatures true
29 \graphics default
30 \default_output_format default
31 \output_sync 0
32 \bibtex_command default
33 \index_command default
34 \float_placement class
35 \float_alignment class
36 \paperfontsize default
37 \spacing single
38 \use_hyperref false
39 \papersize default
40 \use_geometry false
41 \use_package amsmath 1
42 \use_package amssymb 1
43 \use_package cancel 1
44 \use_package esint 1
45 \use_package mathdots 1
46 \use_package mathtools 1
47 \use_package mhchem 1
48 \use_package stackrel 1
49 \use_package stmaryrd 1
50 \use_package undertilde 1
51 \cite_engine basic
52 \cite_engine_type default
53 \biblio_style plain
54 \use_bibtopic false
55 \use_indices false
56 \paperorientation portrait
57 \suppress_date false
58 \justification true
59 \use_refstyle 1
60 \use_minted 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 \is_math_indent 0
70 \math_numbering_side default
71 \quotes_style english
72 \dynamic_quotes 0
73 \papercolumns 1
74 \papersides 1
75 \paperpagestyle default
76 \tablestyle default
77 \tracking_changes false
78 \output_changes false
79 \html_math_output 0
80 \html_css_as_file 0
81 \html_be_strict false
82 \end_header
83
84 \begin_body
85
86 \begin_layout Subsection*
87 Thai
88 \end_layout
89
90 \begin_layout Standard
91 Up to version 2013/03/31 v1.8, Babel’s “thai.ldf” changes character categories
92  and the definitions for up-/dowcasing of letters (catcode, uccode, lccode)
93  
94 \series bold
95 globally
96 \series default
97 .
98  As a result, some high bit characters come out wrong in the output.
99 \end_layout
100
101 \begin_layout Standard
102 For English text, we have (with 
103 \begin_inset Quotes eld
104 \end_inset
105
106 inputenc=auto
107 \begin_inset Quotes erd
108 \end_inset
109
110 ):
111 \end_layout
112
113 \begin_layout Quotation
114
115 \backslash
116 languagename 
117 \begin_inset ERT
118 status open
119
120 \begin_layout Plain Layout
121
122
123 \backslash
124 languagename
125 \end_layout
126
127 \end_inset
128
129
130 \end_layout
131
132 \begin_layout Quotation
133
134 \backslash
135 inputencodingname 
136 \begin_inset ERT
137 status open
138
139 \begin_layout Plain Layout
140
141
142 \backslash
143 inputencodingname
144 \end_layout
145
146 \end_inset
147
148
149 \end_layout
150
151 \begin_layout Quotation
152
153 \backslash
154 familydefault 
155 \begin_inset ERT
156 status open
157
158 \begin_layout Plain Layout
159
160
161 \backslash
162 familydefault
163 \end_layout
164
165 \end_inset
166
167
168 \end_layout
169
170 \begin_layout Quotation
171
172 \backslash
173 f@encoding 
174 \begin_inset ERT
175 status open
176
177 \begin_layout Plain Layout
178
179
180 \backslash
181 makeatletter
182 \backslash
183 f@encoding
184 \backslash
185 makeatother
186 \end_layout
187
188 \end_inset
189
190
191 \end_layout
192
193 \begin_layout Standard
194 and the 
195 \emph on
196 Latin supplement
197 \emph default
198  characters are written
199 \end_layout
200
201 \begin_layout Quotation
202 A0   ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯
203 \end_layout
204
205 \begin_layout Quotation
206 B0 ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿
207 \end_layout
208
209 \begin_layout Quotation
210 C0 À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï
211 \end_layout
212
213 \begin_layout Quotation
214 D0 Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß
215 \end_layout
216
217 \begin_layout Quotation
218 E0 à á â ã ä å æ ç è é ê ë ì í î ï
219 \end_layout
220
221 \begin_layout Quotation
222 F0 ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ
223 \end_layout
224
225 \begin_layout Itemize
226 catcode 11 or 12 means, the characters are directly passed to the font and
227  come out wrong when the T1 font encoding differs from latin9.
228 \end_layout
229
230 \begin_layout Itemize
231 uc/lccode changes prevent up/downcasing of high-bit characters
232 \begin_inset Newline newline
233 \end_inset
234
235 (lösen → 
236 \begin_inset ERT
237 status open
238
239 \begin_layout Plain Layout
240
241
242 \backslash
243 MakeUppercase{
244 \end_layout
245
246 \end_inset
247
248 lösen
249 \begin_inset ERT
250 status open
251
252 \begin_layout Plain Layout
253
254 }
255 \end_layout
256
257 \end_inset
258
259 , LÖSEN → 
260 \begin_inset ERT
261 status open
262
263 \begin_layout Plain Layout
264
265
266 \backslash
267 MakeLowercase{
268 \end_layout
269
270 \end_inset
271
272 LÖSEN
273 \begin_inset ERT
274 status open
275
276 \begin_layout Plain Layout
277
278 }
279 \end_layout
280
281 \end_inset
282
283 ).
284 \end_layout
285
286 \begin_layout Standard
287
288 \lang thai
289 Setting the text language to Thai:
290 \end_layout
291
292 \begin_layout Quotation
293
294 \lang thai
295
296 \backslash
297 languagename 
298 \begin_inset ERT
299 status open
300
301 \begin_layout Plain Layout
302
303
304 \backslash
305 languagename
306 \end_layout
307
308 \end_inset
309
310
311 \end_layout
312
313 \begin_layout Quotation
314
315 \lang thai
316
317 \backslash
318 inputencodingname 
319 \begin_inset ERT
320 status open
321
322 \begin_layout Plain Layout
323
324
325 \backslash
326 inputencodingname
327 \end_layout
328
329 \end_inset
330
331
332 \end_layout
333
334 \begin_layout Quotation
335
336 \lang thai
337
338 \backslash
339 familydefault 
340 \begin_inset ERT
341 status open
342
343 \begin_layout Plain Layout
344
345
346 \backslash
347 familydefault
348 \end_layout
349
350 \end_inset
351
352
353 \end_layout
354
355 \begin_layout Quotation
356
357 \lang thai
358
359 \backslash
360 f@encoding 
361 \begin_inset ERT
362 status open
363
364 \begin_layout Plain Layout
365
366
367 \backslash
368 makeatletter
369 \backslash
370 f@encoding
371 \backslash
372 makeatother
373 \end_layout
374
375 \end_inset
376
377
378 \end_layout
379
380 \begin_layout Standard
381
382 \lang thai
383 All 
384 \emph on
385 Latin supplement
386 \emph default
387  characters are converted to LICR macros by LyX and come out right:
388 \end_layout
389
390 \begin_layout Quotation
391
392 \lang thai
393 A0   ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯
394 \end_layout
395
396 \begin_layout Quotation
397
398 \lang thai
399 B0 ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿
400 \end_layout
401
402 \begin_layout Quotation
403
404 \lang thai
405 C0 À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï
406 \end_layout
407
408 \begin_layout Quotation
409
410 \lang thai
411 D0 
412 \begin_inset Note Note
413 status open
414
415 \begin_layout Plain Layout
416
417 \lang thai
418 Ð
419 \end_layout
420
421 \end_inset
422
423  Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý 
424 \begin_inset Note Note
425 status open
426
427 \begin_layout Plain Layout
428
429 \lang thai
430 Þ
431 \end_layout
432
433 \end_inset
434
435  ß
436 \end_layout
437
438 \begin_layout Quotation
439
440 \lang thai
441 E0 à á â ã ä å æ ç è é ê ë ì í î ï
442 \end_layout
443
444 \begin_layout Quotation
445
446 \lang thai
447 F0 
448 \begin_inset Note Note
449 status open
450
451 \begin_layout Plain Layout
452
453 \lang thai
454 ð
455 \end_layout
456
457 \end_inset
458
459  ñ ò ó ô õ ö ÷ ø ù ú û ü ý 
460 \begin_inset Note Note
461 status open
462
463 \begin_layout Plain Layout
464
465 \lang thai
466 þ
467 \end_layout
468
469 \end_inset
470
471  ÿ
472 \end_layout
473
474 \begin_layout Standard
475 Example text in Thai.
476  Emphasizing works, if 
477 \begin_inset Quotes eld
478 \end_inset
479
480 fonts-tlwg
481 \begin_inset Quotes erd
482 \end_inset
483
484  is loaded 
485 \series bold
486 after 
487 \series default
488 Babel (see preamble):
489 \end_layout
490
491 \begin_layout Quote
492
493 \series bold
494 \lang thai
495 ภาษาไทย
496 \series default
497  หรือ 
498 \emph on
499 ภาษาไทยกลาง
500 \emph default
501  เป็นภาษาราชการและภาษาประจำชาติของประเทศไทย ภาษาไทยเป็นภาษาในกลุ่มภาษาไท
502  ซึ่งเป็นกลุ่มย่อยของตระกูลภาษาไท-กะได สันนิษฐานว่า ภาษาในตระกูลนี้มีถิ่นกำเนิดจ
503 ากทางตอนใต้ของประเทศจีน และนักภาษาศาสตร์บางส่วนเสนอว่า ภาษาไทยน่าจะมีความเชื่อมโ
504 ยงกับตระกูลภาษาออสโตร-เอเชียติก ตระกูลภาษาออสโตรนีเซียน และตระกูลภาษาจีน-ทิเบต
505 \end_layout
506
507 \end_body
508 \end_document