]> git.lyx.org Git - lyx.git/blob - autotests/export/latex/lyxbugs/3059-language-in-tables.lyx
Remove unneeded std::move
[lyx.git] / autotests / export / latex / lyxbugs / 3059-language-in-tables.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 574
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass article
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 %This preamble is designed to ensure that the document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 \usepackage{ifpdf} % part of the hyperref bundle
19 \ifpdf % if pdflatex is used
20
21 % XeTeX with Hebrew does not like this bookmark code
22 % so it is in the conditional.
23 % The pages of the TOC is numbered roman
24 % and a pdf-bookmark for the TOC is added
25 \pagenumbering{roman}
26 \let\myTOC\tableofcontents
27 \renewcommand\tableofcontents{%
28   \pdfbookmark[1]{\contentsname}{}
29   \myTOC
30   \cleardoublepage
31   \pagenumbering{arabic} }
32
33 \fi % end if pdflatex is used
34
35 %disable hyphenation (breaking words at end of line)
36 \usepackage[none]{hyphenat}
37
38 %disable double space after end-of-sentence period
39 \frenchspacing
40 \end_preamble
41 \use_default_options false
42 \maintain_unincluded_children false
43 \language hebrew
44 \language_package default
45 \inputencoding auto-legacy
46 \fontencoding auto
47 \font_roman "lmodern" "FreeSerif"
48 \font_sans "default" "FreeSans"
49 \font_typewriter "default" "FreeMono"
50 \font_math "auto" "auto"
51 \font_default_family default
52 \use_non_tex_fonts false
53 \font_sc false
54 \font_osf false
55 \font_sf_scale 100 100
56 \font_tt_scale 100 100
57 \use_microtype false
58 \use_dash_ligatures false
59 \graphics default
60 \default_output_format default
61 \output_sync 0
62 \bibtex_command default
63 \index_command default
64 \float_placement class
65 \float_alignment class
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref false
69 \pdf_bookmarks false
70 \pdf_bookmarksnumbered false
71 \pdf_bookmarksopen false
72 \pdf_bookmarksopenlevel 1
73 \pdf_breaklinks false
74 \pdf_pdfborder false
75 \pdf_colorlinks false
76 \pdf_backref false
77 \pdf_pdfusetitle false
78 \papersize default
79 \use_geometry false
80 \use_package amsmath 1
81 \use_package amssymb 1
82 \use_package cancel 1
83 \use_package esint 1
84 \use_package mathdots 1
85 \use_package mathtools 1
86 \use_package mhchem 1
87 \use_package stackrel 1
88 \use_package stmaryrd 1
89 \use_package undertilde 1
90 \cite_engine basic
91 \cite_engine_type default
92 \biblio_style plain
93 \use_bibtopic false
94 \use_indices false
95 \paperorientation portrait
96 \suppress_date false
97 \justification true
98 \use_refstyle 0
99 \use_minted 0
100 \index אינדקס
101 \shortcut idx
102 \color #008000
103 \end_index
104 \secnumdepth 3
105 \tocdepth 2
106 \paragraph_separation indent
107 \paragraph_indentation default
108 \is_math_indent 0
109 \math_numbering_side default
110 \quotes_style english
111 \dynamic_quotes 0
112 \papercolumns 1
113 \papersides 1
114 \paperpagestyle default
115 \tablestyle default
116 \tracking_changes false
117 \output_changes false
118 \html_math_output 0
119 \html_css_as_file 0
120 \html_be_strict false
121 \end_header
122
123 \begin_body
124
125 \begin_layout Standard
126
127 \lang english
128 In this Hebrew document, content of the right table column (
129 \lang hebrew
130 יחידה
131 \lang english
132 ) comes out as Latin accented characters (ÄÃÉÇÉ) in the output if the tables
133  
134 \begin_inset Quotes eld
135 \end_inset
136
137 outer
138 \begin_inset Quotes erd
139 \end_inset
140
141  language is English and the input encoding is set to 
142 \begin_inset Quotes eld
143 \end_inset
144
145 language default
146 \begin_inset Quotes erd
147 \end_inset
148
149  (auto-legacy):
150 \end_layout
151
152 \begin_layout Standard
153 \align center
154
155 \lang english
156 \begin_inset Tabular
157 <lyxtabular version="3" rows="2" columns="2">
158 <features tabularvalignment="middle">
159 <column alignment="center" valignment="top">
160 <column alignment="center" valignment="top">
161 <row>
162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
163 \begin_inset Text
164
165 \begin_layout Plain Layout
166 יחידה
167 \end_layout
168
169 \end_inset
170 </cell>
171 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
172 \begin_inset Text
173
174 \begin_layout Plain Layout
175 יחידה
176 \end_layout
177
178 \end_inset
179 </cell>
180 </row>
181 <row>
182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
183 \begin_inset Text
184
185 \begin_layout Plain Layout
186 יחידה
187 \end_layout
188
189 \end_inset
190 </cell>
191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
192 \begin_inset Text
193
194 \begin_layout Plain Layout
195 יחידה
196 \end_layout
197
198 \end_inset
199 </cell>
200 </row>
201 </lyxtabular>
202
203 \end_inset
204
205
206 \end_layout
207
208 \begin_layout Standard
209
210 \lang english
211 Compare with a table where the 
212 \begin_inset Quotes eld
213 \end_inset
214
215 outer
216 \begin_inset Quotes erd
217 \end_inset
218
219  language is Hebrew:
220 \end_layout
221
222 \begin_layout Standard
223 \align center
224 \begin_inset Tabular
225 <lyxtabular version="3" rows="2" columns="2">
226 <features tabularvalignment="middle">
227 <column alignment="center" valignment="top">
228 <column alignment="center" valignment="top">
229 <row>
230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
231 \begin_inset Text
232
233 \begin_layout Plain Layout
234 יחידה
235 \end_layout
236
237 \end_inset
238 </cell>
239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
240 \begin_inset Text
241
242 \begin_layout Plain Layout
243 יחידה
244 \end_layout
245
246 \end_inset
247 </cell>
248 </row>
249 <row>
250 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
251 \begin_inset Text
252
253 \begin_layout Plain Layout
254 יחידה
255 \end_layout
256
257 \end_inset
258 </cell>
259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
260 \begin_inset Text
261
262 \begin_layout Plain Layout
263 יחידה
264 \end_layout
265
266 \end_inset
267 </cell>
268 </row>
269 </lyxtabular>
270
271 \end_inset
272
273
274 \end_layout
275
276 \begin_layout Standard
277
278 \lang english
279 What would you expext from a table in an Englisch paragraph like this 
280 \begin_inset Tabular
281 <lyxtabular version="3" rows="2" columns="2">
282 <features tabularvalignment="middle">
283 <column alignment="center" valignment="top">
284 <column alignment="center" valignment="top">
285 <row>
286 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
287 \begin_inset Text
288
289 \begin_layout Plain Layout
290 top left
291 \end_layout
292
293 \end_inset
294 </cell>
295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
296 \begin_inset Text
297
298 \begin_layout Plain Layout
299
300 \numeric on
301 12
302 \end_layout
303
304 \end_inset
305 </cell>
306 </row>
307 <row>
308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
309 \begin_inset Text
310
311 \begin_layout Plain Layout
312
313 \numeric on
314 21
315 \end_layout
316
317 \end_inset
318 </cell>
319 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
320 \begin_inset Text
321
322 \begin_layout Plain Layout
323 bottom right
324 \end_layout
325
326 \end_inset
327 </cell>
328 </row>
329 </lyxtabular>
330
331 \end_inset
332
333 ? IMO, the table content should inherit the 
334 \begin_inset Quotes eld
335 \end_inset
336
337 outer
338 \begin_inset Quotes erd
339 \end_inset
340
341  language but here it is the document language and therefore mirrored (RTL)
342  and in small-caps.
343 \end_layout
344
345 \begin_layout Standard
346
347 \lang ngerman
348 Absatz in Deutsch mit Tablle: 
349 \begin_inset Tabular
350 <lyxtabular version="3" rows="1" columns="1">
351 <features tabularvalignment="middle">
352 <column alignment="center" valignment="top">
353 <row>
354 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
355 \begin_inset Text
356
357 \begin_layout Plain Layout
358 Da kommt größter Mist raus! HE
359 \numeric on
360 8
361 \numeric off
362  misses ð and þ
363 \end_layout
364
365 \end_inset
366 </cell>
367 </row>
368 </lyxtabular>
369
370 \end_inset
371
372
373 \end_layout
374
375 \end_body
376 \end_document