]> git.lyx.org Git - lyx.git/blob - autotests/export/latex/textcyr-textgreek-test.lyx
Remove unneeded std::move
[lyx.git] / autotests / export / latex / textcyr-textgreek-test.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 508
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass article
8 \begin_preamble
9 \usepackage{parskip}
10 \end_preamble
11 \use_default_options true
12 \maintain_unincluded_children false
13 \language english
14 \language_package default
15 \inputencoding auto
16 \fontencoding global
17 \font_roman "libertine" "DejaVu Serif"
18 \font_sans "biolinum" "default"
19 \font_typewriter "txtt" "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 \graphics default
28 \default_output_format pdf2
29 \output_sync 0
30 \bibtex_command default
31 \index_command default
32 \paperfontsize default
33 \spacing single
34 \use_hyperref false
35 \pdf_author ""
36 \pdf_keywords ""
37 \pdf_bookmarks true
38 \pdf_bookmarksnumbered false
39 \pdf_bookmarksopen false
40 \pdf_bookmarksopenlevel 1
41 \pdf_breaklinks true
42 \pdf_pdfborder true
43 \pdf_colorlinks false
44 \pdf_backref false
45 \pdf_pdfusetitle true
46 \papersize a4paper
47 \use_geometry false
48 \use_package amsmath 1
49 \use_package amssymb 1
50 \use_package cancel 1
51 \use_package esint 1
52 \use_package mathdots 0
53 \use_package mathtools 1
54 \use_package mhchem 1
55 \use_package stackrel 1
56 \use_package stmaryrd 1
57 \use_package undertilde 1
58 \cite_engine basic
59 \cite_engine_type default
60 \biblio_style plain
61 \use_bibtopic false
62 \use_indices false
63 \paperorientation portrait
64 \suppress_date false
65 \justification false
66 \use_refstyle 0
67 \index Ευρετήριο
68 \shortcut idx
69 \color #008000
70 \end_index
71 \leftmargin 3cm
72 \topmargin 2cm
73 \rightmargin 3cm
74 \bottommargin 1cm
75 \secnumdepth 3
76 \tocdepth 3
77 \paragraph_separation skip
78 \defskip smallskip
79 \quotes_language english
80 \papercolumns 1
81 \papersides 1
82 \paperpagestyle headings
83 \tracking_changes false
84 \output_changes true
85 \html_math_output 0
86 \html_css_as_file 0
87 \html_be_strict false
88 \author -1402925745 "Günter Milde"
89 \end_header
90
91 \begin_body
92
93 \begin_layout Section*
94 \noindent
95 Font-encoding changes for non-Latin scripts
96 \end_layout
97
98 \begin_layout Standard
99 LyX supports letters in non-Latin scripts (Greek and Cyrillic) with 8-bit
100  LaTeX fonts via automatic insertion of 
101 \emph on
102 font encoding
103 \emph default
104  switches in the LaTeX source.
105 \end_layout
106
107 \begin_layout Itemize
108 \noindent
109 The 
110 \begin_inset Quotes eld
111 \end_inset
112
113
114 \backslash
115 textgreek
116 \begin_inset Quotes erd
117 \end_inset
118
119  command switches to the Greek font
120 \emph on
121  
122 \emph default
123 encoding
124 \emph on
125  
126 \emph default
127
128 \begin_inset Quotes eld
129 \end_inset
130
131 LGR
132 \begin_inset Quotes erd
133 \end_inset
134
135 , the 
136 \begin_inset Quotes eld
137 \end_inset
138
139
140 \backslash
141 textcyrillic
142 \begin_inset Quotes erd
143 \end_inset
144
145  command switches to 
146 \begin_inset Quotes eld
147 \end_inset
148
149 T2A
150 \begin_inset Quotes erd
151 \end_inset
152
153 .
154 \end_layout
155
156 \begin_layout Itemize
157 \noindent
158 If the text language is Greek/Russian, the font encoding switch is handled
159  by 
160 \begin_inset Quotes eld
161 \end_inset
162
163 Babel
164 \begin_inset Quotes erd
165 \end_inset
166
167 .
168  In any other case, the 
169 \begin_inset Quotes eld
170 \end_inset
171
172 textgreek
173 \begin_inset Quotes erd
174 \end_inset
175
176 /
177 \begin_inset Quotes erd
178 \end_inset
179
180 textcyr
181 \begin_inset Quotes erd
182 \end_inset
183
184  wrapper is required to select a font that supports the Greek/Cyrillic script.
185 \end_layout
186
187 \begin_layout Itemize
188 \noindent
189 The test (and eventual wrapping) must be done for all characters requiring
190  the textgreek/textcyr feature (not only for the characters that cannot
191  be encoded in the \SpecialChar LaTeX
192  input encoding).
193 \end_layout
194
195 \begin_layout Subsection*
196 \noindent
197 Test
198 \end_layout
199
200 \begin_layout Itemize
201 \noindent
202 Greek script in English text: 
203 \begin_inset Quotes eld
204 \end_inset
205
206 τελευταίας έκδοσης του GRASS
207 \begin_inset Quotes erd
208 \end_inset
209
210
211 \end_layout
212
213 \begin_layout Itemize
214 \noindent
215 Greek script in Greek text: 
216 \begin_inset Quotes eld
217 \end_inset
218
219
220 \lang greek
221 τελευταίας έκδοσης του
222 \lang english
223  GRASS
224 \begin_inset Quotes erd
225 \end_inset
226
227
228 \end_layout
229
230 \begin_layout Itemize
231 \noindent
232 Cyrillic script in English text: добро пожаловать!
233 \end_layout
234
235 \begin_layout Itemize
236 \noindent
237 Cyrillic script in Russian text: 
238 \lang russian
239 добро пожаловать!
240 \end_layout
241
242 \begin_layout Standard
243 \noindent
244 Test wrapper boundaries:
245 \end_layout
246
247 \begin_layout Itemize
248 \noindent
249 Adjacent Greek and Cyrillic letters: λογοςдобро and доброλογος.
250 \end_layout
251
252 \begin_layout Itemize
253 \noindent
254 Adjacent Latin and 
255 \begin_inset Quotes eld
256 \end_inset
257
258 alien
259 \begin_inset Quotes erd
260 \end_inset
261
262  letters: γσsg gsσγ гсsg gsсг.
263 \end_layout
264
265 \begin_layout Itemize
266 \noindent
267 Adjacent Latin and 
268 \begin_inset Quotes eld
269 \end_inset
270
271 alien
272 \begin_inset Quotes erd
273 \end_inset
274
275  letters in Greek/Russian: 
276 \lang greek
277 γσsg gsσγ
278 \lang english
279  
280 \lang russian
281 гсsg gsсг
282 \lang english
283 .
284 \end_layout
285
286 \begin_layout Itemize
287 \noindent
288 Insets, table: 
289 \begin_inset Note Greyedout
290 status open
291
292 \begin_layout Plain Layout
293 добро
294 \end_layout
295
296 \end_inset
297
298
299 \begin_inset Note Greyedout
300 status open
301
302 \begin_layout Plain Layout
303 λογος
304 \end_layout
305
306 \end_inset
307
308
309 \begin_inset Tabular
310 <lyxtabular version="3" rows="1" columns="2">
311 <features tabularvalignment="middle">
312 <column alignment="center" valignment="top">
313 <column alignment="center" valignment="top">
314 <row>
315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
316 \begin_inset Text
317
318 \begin_layout Plain Layout
319 добро
320 \end_layout
321
322 \end_inset
323 </cell>
324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
325 \begin_inset Text
326
327 \begin_layout Plain Layout
328 λογος
329 \end_layout
330
331 \end_inset
332 </cell>
333 </row>
334 </lyxtabular>
335
336 \end_inset
337
338 .
339 \end_layout
340
341 \begin_layout Itemize
342 \noindent
343 Font attribute change: 
344 \series bold
345 доб
346 \series default
347 ро λογ
348 \series bold
349 ος
350 \series default
351
352 \strikeout on
353 доб
354 \strikeout default
355 ро λογ
356 \strikeout on
357 ος
358 \end_layout
359
360 \begin_layout Itemize
361 \noindent
362 Language change: 
363 \lang afrikaans
364 доб
365 \lang english
366 ро λογ
367 \lang afrikaans
368 ος.
369 \end_layout
370
371 \begin_layout Itemize
372 Change-tracking: 
373 \change_deleted -1402925745 1551826123
374 доб
375 \change_unchanged
376 ро λο
377 \change_deleted -1402925745 1551826128
378 γος
379 \change_unchanged
380
381 \change_inserted -1402925745 1551826325
382 доб
383 \change_unchanged
384 ро λο
385 \change_inserted -1402925745 1551826220
386 γος
387 \change_unchanged
388 .
389 \end_layout
390
391 \begin_layout Standard
392 \noindent
393 Test combining unicode characters,
394 \end_layout
395
396 \begin_layout Quote
397 \noindent
398
399 \lang greek
400 ᾶ/
401 \lang english
402 ᾶ, 
403 \lang greek
404 ά
405 \lang english
406 /ά (pre-composed) vs.
407  
408 \lang greek
409 α̃
410 \lang english
411 /α̃ (combining tilde).
412 \end_layout
413
414 \begin_layout Quote
415 \noindent
416 Greek: α̃ α̊ α̂ and να̃ να̊ να̂ (e.g.
417  Ἀθη̃ναι)
418 \end_layout
419
420 \begin_layout Quote
421 Cyrillic: и̃ и̊ а́ and си̃ си̊ са́ (e.g.
422  Самова́р)
423 \end_layout
424
425 \end_body
426 \end_document