Commit Graph

39913 Commits

Author SHA1 Message Date
Juergen Spitzmueller
a936bc2df5 Do not check for duplicates when pasting a label into a non-outputting inset.
Issue mentioned at #10333
2019-01-25 14:40:30 +01:00
Günter Milde
63807af2ca ctests: small correction of inverted tests. 2019-01-24 15:54:13 +01:00
Günter Milde
5ebc0b3f43 Fix second part of #5386.
A \clearpage command issued right before \end{CJK} is recommended by the
package author to prevent any un-processed CJK chars outside the
\begin{CJK} and \end{CJK} scope. Otherwise, TOC, header, footer,
and may contain CJK chars but get processed outside the CJK environment scope.

Tha new dedicated export test fails without the fix.
2019-01-24 14:40:19 +01:00
Günter Milde
197735747e Support for documents in other scripts with parts in CJK scripts.
Fix CJK support for documents using input-encoding "utf8-cjk"
when the main language is not Chinese, Korean, or Japanese.
2019-01-24 00:40:51 +01:00
Kornel Benko
96196b681a Amend d31dc599: Remove intermediate dirs 2019-01-23 23:09:55 +01:00
Kornel Benko
d31dc599ff Cmake lyxxx export tests: Add summary of commands to log 2019-01-23 23:07:54 +01:00
Günter Milde
49583b7dd0 Fix encoding issue with lyx2lyx conversion of "Date" info-insets.
Remaining problem: the name of the day appears in English instead of the document language.
2019-01-23 11:06:04 +01:00
Günter Milde
5a1fb5b5fa Improve readability of the lyx2lyx help output.
Also some small clean-up edits
2019-01-23 10:12:28 +01:00
Günter Milde
16b28ad725 Avoid bitmap fonts for Latin text parts using LatinModern. 2019-01-23 09:11:01 +01:00
Günter Milde
e8c497e33e ctests: export tests for CJK in multilingual documents. 2019-01-23 00:57:20 +01:00
Günter Milde
968a3d06a4 Test for bug #6197.
With language Polish, "amssymb" must be loaded before "babel" to
avoid a name clash for command "\lll".
2019-01-22 23:59:11 +01:00
Günter Milde
d104005151 Add example for mulit-lingual Japanese document with CJKutf8. 2019-01-22 16:06:37 +01:00
Günter Milde
f82030d211 Farsi document with custom font encoding OT1 fails.
Set font encoding in examples to "auto" and add minimal test sample.
2019-01-22 12:02:57 +01:00
Scott Kostyshak
faac4944c4 ctests: invert acmart_lyx23 because of known issue
LyX expectedly gives the following warning:

  TextClass.cpp (1385): The layout does not provide a list command for
  the float `sidebar'. LyX will not be able to produce a float list.

This issue was reported to the maintainer. This commit is consistent
with 00f7a95f.
2019-01-21 13:12:57 -05:00
Scott Kostyshak
b6ac52bf3f ctests: invert also es modernCV 16 and 20 tests
Consistent with 9d7a3e21.
2019-01-21 13:00:32 -05:00
Günter Milde
31420c4ce4 ctest: Patterns in invertedTests must match the full test name. 2019-01-21 16:43:00 +01:00
Günter Milde
9d7a3e21ee ctests: Invert failing lyx2lyx tests for modernCV.
Exports to LyX < 2.1 fails.
2019-01-20 19:57:30 +01:00
Günter Milde
67c5ee439d ctests: Invert failing lyx2lyx tests for beamer.
Some exports to versions < 2.1 fail due to a warning about missing layout name.
2019-01-20 18:24:41 +01:00
Günter Milde
12c301d1ca update latex export tests, add test for bug #9871 2019-01-20 17:23:41 +01:00
Günter Milde
b9833f180a ctests: update inputenc tests.
Use \input in luainputenc-utf8 instead of copying the
content of test documents in latex/unicodesymbols/.
2019-01-20 17:23:41 +01:00
Kornel Benko
4ee1cbe830 Update sk.po 2019-01-20 09:16:45 +01:00
Richard Kimberly Heck
7f8cfde2e7 Add spaces. Thanks, Kornel. 2019-01-19 22:05:47 -05:00
Daniel Ramoeller
f71723c8f3 Fix for #11294: Wrong description for Change bars module 2019-01-19 18:09:36 +01:00
Richard Kimberly Heck
b804e8851c Rename emergency file when it is kept.
Otherwise, we will ask about it again next time, when the file
may have changed. Also, if we crash again, we'll over-write that
file, which we may not want to do.

See bug #11464.
2019-01-17 23:00:23 -05:00
Günter Milde
a925d25085 Improve a warning in lyx2lyx.
If get_containing_layout() finds a layout without name,
it will return an empty string as layoutname.
Calling functions can thus differentiate between missing
\begin_layout and missing layoutname and give a more specific
response or warning.
2019-01-18 00:20:19 +01:00
Kornel Benko
5435b900e4 Cmake build: Add format V2.0 to export tests 2019-01-17 12:27:12 +01:00
Scott Kostyshak
253b12aba1 Fix lyx2lyx export of long tables
For some .lyx files with long tables, this fix reduces the
differences in LaTeX export of master, compared to LaTeX export of
the lyx2lyx exported file. Further, this export fixes the lyx2lyx
roundtrip convergence for these cases. For discussion, see:

  https://www.mail-archive.com/search?l=mid&q=20190102230924.7zgla5lhkwxpx5fi%40barna
2019-01-16 18:38:45 -05:00
Günter Milde
5d5bb53887 The acmart package requires pdflatex, XeTeX or LuaTeX.
The acmart package requires pdflatex (with 8-bit fonts)
or xe/luatex with non-TeX fonts to give the expected output.
2019-01-16 22:55:05 +01:00
Günter Milde
b9041328a0 unicodesymbols Force substitution of NNBSP in utf8.
NNBSP (narrow no break space) is supported by LyX's unicodesymbols
but missing in LaTeX inputenc *.dfu definitions. (TeXLive 2017)
2019-01-16 18:34:35 +01:00
Jean-Marc Lasgouttes
66a3d64346 Try to compute row height like it should be done
Currently, our computation of row height is not completely standard:
* we ignore completely the QFontMetrics::leading() parameter

* we add arbitrarily 2 hardcoded pixels to the height.

This patch reverses these two choices, which leads to
* slightly larger spacing for MinionPro (which has a big leading).

* an additional spacing of 20% font height that depends on dpi and zoom.

Visual inspection with LibreOffice seems to imply that it disregards
the font leading but uses a interline which is 20% larger than the
font height.
2019-01-16 11:04:53 +01:00
Günter Milde
8b46630034 Fix unicodesymbols.
Remove 4 spurious tags that slipped in in [4ebb415/lyxgit].
2019-01-15 16:35:34 +01:00
Günter Milde
cc0ef52a37 Update some special latex export tests. 2019-01-14 22:48:38 +01:00
Günter Milde
4ebb415773 Update unicodesymbols replacements
"textcomp" supports some more characters in its ts1enc.dfu Unicode definition file.
2019-01-14 22:48:38 +01:00
Scott Kostyshak
c40528f634 Development.lyx: check that PDF is good before inv
Before uninverting a test, we should check that the PDF looks
correct.
2019-01-14 12:42:38 -05:00
Scott Kostyshak
fe2dc0887d Development.lyx: remove an unmatched parenthesis 2019-01-14 12:42:01 -05:00
Jean-Marc Lasgouttes
7848d3c90c Allow to type a space in front of another one
This is a follow-up to 714b731e. This fixes the issue when the cursor
is in front of a space
  abc| def
and one inserts another space (to start a word). DEPM would eat one
space and produce
  abc |def
instead of
  abc | def

Additionally, fix the same_par boolean, wheich did not take the cell
index into account.

Related to ticket #11412.
2019-01-14 16:41:12 +01:00
Günter Milde
0594a4fe72 ctests: update test tagging/categorization and export test for accents on Cyrillic letters. 2019-01-14 12:21:34 +01:00
Scott Kostyshak
bf1f3f827a ctests: ignore latex8 LyX 2.2.x and 2.3.x tests
The cls is obsolete, so all PDF exports are disabled. We keep the
1.6.x and 2.1.x tests because those only check roundtrip
convergence, and do not export to PDF.
2019-01-13 14:21:16 -05:00
Scott Kostyshak
4b94d4b285 ctests: ignore minted 2.2.x tests
As explained by Enrico, backward compatibility is not guaranteed for
these cases (and indeed currently fails):

  https://www.mail-archive.com/search?l=mid&q=20190113085555.GA7928%40GIOVE
2019-01-13 13:04:26 -05:00
Scott Kostyshak
70689f8dc0 ctests: add comment about formats that won't work
This way we will not try to test those formats for this file in the
future.
2019-01-13 12:34:44 -05:00
Juergen Spitzmueller
cd6229ee5c Fix copy-paste error 2019-01-13 11:38:28 +01:00
Juergen Spitzmueller
143703f927 Amend 7b639d2db2
Not the (ASCII) encoding matters here, but the (TU) font encoding.
2019-01-13 11:25:17 +01:00
Juergen Spitzmueller
7b639d2db2 Script wrapper is needed with ASCII encoding 2019-01-12 18:45:41 +01:00
Enrico Forestieri
ad0c9a548b Remove PYTHONPATH from the environment on Windows
This make sure to use the the modules distributed with LyX,
avoiding reconfigure failures.
2019-01-12 18:37:41 +01:00
Enrico Forestieri
472bdf5910 Replace environment variables in PATH prefix
The PATH prefix modified through the GUI was set without
replacing embedded environment variables. This might have
caused problems on Windows with external python installations.
2019-01-11 18:15:40 +01:00
Juergen Spitzmueller
ead498f0a6 Add support for U+2693 (ANCHOR)
Fixes: #10706
2019-01-11 16:42:08 +01:00
Jean-Marc Lasgouttes
edb46d2a94 Fix alignment of rows when text width is variable
When several lines of text are in the same variable-width tabular
cell, it is not possible to align properly the rows until the cell
width is known.

Therefore a parameter is added to redoParagraph to skip this
computation, so that it can be done later in TextMetrics::metrics.
Other calls to redoParagraph in the code are not affected. It is not
clear at this point whether they may create artefacts.

computeRowMetrics has been renamed to setRowAlignment to better
reflect its use.

Fixes bug #11447.
2019-01-11 16:23:05 +01:00
Kornel Benko
64901b41b6 Amend 23f7431c: Renamed files
latex/inputenc-utf8-plain.lyx -> latex/luainputenc-utf8.lyx
2019-01-11 13:14:49 +01:00
Juergen Spitzmueller
f6a77d5d82 "Script chars" also need to be output as macro with full utf8 engines and TeX fonts
Fixes rest of #9681
2019-01-11 10:08:49 +01:00
Günter Milde
4848301758 ctests: update sorting and documentation of inverted and ignored tests. 2019-01-10 22:41:53 +01:00