Commit Graph

42611 Commits

Author SHA1 Message Date
Thibaut Cuvelier
c6fe1fbe5f DocBook: implement svglobal. 2020-11-16 20:15:34 +01:00
Yuriy Skalko
9b55d2f71e Bump minimal GCC version to 4.9 2020-11-16 19:37:12 +02:00
Yuriy Skalko
87dd31c0db Remove old duplicated files, newer are in autotests/mathmacros 2020-11-16 19:37:05 +02:00
Kornel Benko
06b09452d7 Typo in message 2020-11-16 12:40:35 +01:00
Kornel Benko
53e064ce2e Cmake export tests: Use the temporary directory for checked results
This amends also dbb72a37 (fix race condition for parallel testing)
Thanks Scott to pointing this out.
2020-11-16 12:22:33 +01:00
Thibaut Cuvelier
d64b3f5397 DocBook: implement Elsevier. 2020-11-16 06:09:03 +01:00
Thibaut Cuvelier
059b268e0d DocBook: do a little something for variable-width minipages. 2020-11-16 00:08:11 +01:00
Thibaut Cuvelier
afba0672d0 DocBook: do a little something for Sweave & co. 2020-11-15 23:54:23 +01:00
Scott Kostyshak
dbb72a370a ctests: fix race condition for parallel testing
The unicode tests would often fail when tested in parallel because
we were not exporting to unique file names. From what I understand,
a variant similar to the following race condition occurred:

1. Thread A exports to file blah.pdf.
2. Thread B exports to file blah.pdf.
3. Thread A confirms file blah.pdf exists.
4. Thread A deletes exported file blah.pdf to clean up.
5. Thread B fails to find file blah.pdf and reports a failure.
2020-11-15 17:40:02 -05:00
Thibaut Cuvelier
b75b0d2a83 DocBook: some features are not yet in the DocBook schema. 2020-11-15 21:46:11 +01:00
Yuriy Skalko
888ff9c114 Amend 9b1dc338b2. Fix compilation in GCC 4.9 2020-11-15 22:41:38 +02:00
Thibaut Cuvelier
e94c7871cc DocBook: implement fancy color box. 2020-11-15 19:29:57 +01:00
Thibaut Cuvelier
dc94abf039 DocBook: specific fix for Localization_Test.lyx.
In one paragraph, there was both a float and a list of floats in a paragraph: the list of floats has no DocBook output, so that there should be no surrounding <para>.
2020-11-15 19:04:21 +01:00
Thibaut Cuvelier
0ed820fa0b DocBook: fix for nomenclature xml:id and glossary paragraphs.
Previously, the xml:id's were not consistent among <glossterm> in the text and <glossentry> in the glossary.
2020-11-15 18:43:58 +01:00
Pavel Sanda
eb0194081b Add Sam Crawley to credits. 2020-11-15 10:43:04 +01:00
Sam Crawley
f3c1fa0b04 Added test for nested insets bug (#9395) 2020-11-15 10:36:10 +01:00
Sam Crawley
434ac146bd Added tests for compare function
Runs the compare via the command line, and then compares the output to the
expected result. Required adding a script to do the comparison, so that
the timestamps on changes in the lyx file are ignored.
2020-11-15 10:36:01 +01:00
Sam Crawley
f457a32a13 Fix issue in running compare from the command line
Because Compare uses threads, we need to make sure it is finished when a
compare is executed from the command line. This was a problem for command
sequences, because the next command would start running before the compare
was done, and the buffer with differences was available.

So this commit adds the "run-blocking" parameter when using
LFUN_DIALOG_SHOW to run a Compare. When calling Compare with run-sync, the
LFUN will wait for the compare worker thread to finish before returning and
possibly running the next command.
2020-11-15 10:35:28 +01:00
Pavel Sanda
3784d79882 Add Phil to credits 2020-11-15 10:10:12 +01:00
Scott Kostyshak
7210f5d3c2 Fix a comment
Without the comment prefix, these lines would be treated as regular
expressions.
2020-11-14 23:35:59 -05:00
Scott Kostyshak
7f3904498d ctests: invert JSS tests which fail with new cls
The new JSS cls has been failing on an updated TeX Live 2020 for a
while, both with the template they provide and with LyX's template.
I expect this will be fixed eventually but for now it's best to
invert it as a "texissue".
2020-11-14 23:23:07 -05:00
Thibaut Cuvelier
46cbd6d234 DocBook: refactor code about retrieving captions and labels.
There was already an existing method in InsetCaptionable for captions, but not yet for labels. It was at least already useful at two places, that's why I moved it to InsetCaptionable.
2020-11-15 04:03:04 +01:00
Thibaut Cuvelier
c4bbff8ecb DocBook: fix handling of listings with titles.
Also implement a code path for inline listings.
2020-11-15 04:03:04 +01:00
Thibaut Cuvelier
39e1665194 DocBook: implement simple CV. 2020-11-15 04:03:04 +01:00
Thibaut Cuvelier
f18c00418a DocBook: implement modern CV. 2020-11-15 04:03:04 +01:00
Thibaut Cuvelier
46daa3865b DocBook: missing support for customisation of layouts in inset arguments. 2020-11-15 04:03:04 +01:00
Thibaut Cuvelier
045c8d6537 DocBook: remove output for some paragraphs in CVs. 2020-11-15 04:03:04 +01:00
Thibaut Cuvelier
6bc04367cf DocBook: add support for IGNORE tags.
These paragraphs will simply have no output (no enclosing DocBook tag, no content). This change is as backward-compatible as possible: without this commit, the paragraphs will be output, but in an <IGNORE> tag (not much more can be achieved without this). It is mostly made for metadata and formatting instructions. (As opposed to NONE, which corresponds to outputting the paragraph without enclosing DocBook tag.)
2020-11-15 04:03:04 +01:00
Jean-Marc Lasgouttes
222a317dd2 Store correctly the window position with Wayland
To do this, hard-coded test for xcb had to be replaced with a call to
platformName(). Since this method does not exist in Qt4, we emulate
it.

Note that Qt5 uses xcb bindings for X11 system, while Qt4 relies on
older X11 bindings. We return platorm == "qt4x11" in this case.

Fixes bug #11746.
2020-11-14 17:55:59 +01:00
Pavel Sanda
21ca33745e Remerge id.po 2020-11-14 16:14:42 +01:00
Kornel Benko
c6e6b6de07 Cmake build: Partly revert 6f696151
1.) cmake errors on old versions with 'LIST does not recognize sub-command PREPEND'
2.) using Windows settings on non-Windows platforms is wrong
2020-11-14 12:21:48 +01:00
Thibaut Cuvelier
6f696151cf DocBook: implement European CV. 2020-11-14 05:46:36 +01:00
Scott Kostyshak
93bb04f907 ctests: invert Hebrew tutorial LuaTeX tests
With an updated TeX Live 2020 an assertion is given. The assertion
was reported on the LuaTeX ML [1], and will be converted into the
following error as of LuaTeX svn commit r7385:

  ! the word doesn't start with a character

The error could likely be worked around with a change to the
document but since the document compiles without error with XeTeX I
did not change anything since I do not understand the issue.

[1]
https://www.mail-archive.com/search?l=mid&q=20201030030430.4y4i6bdpwx633qs7%40vbox-VirtualBox
2020-11-13 23:30:23 -05:00
Scott Kostyshak
b20d01681c Noweb_Listerrors.lyx: do not force ps2pdf
Export to all formats seems to work well after removing the "ps2pdf"
option to the hyperref package.

Accordingly we uninvert the tests for the other formats. All ctests
pass on an updated TeX Live 2020.
2020-11-13 21:30:22 -05:00
Thibaut Cuvelier
1c19a04c7a DocBook: implement EuropassCV. 2020-11-14 03:14:51 +01:00
Kornel Benko
05e0c6b94c Update sk.po 2020-11-14 00:37:39 +01:00
Kornel Benko
5680a4d3be Cmake build: Check for perl before use
(Define PERL_EXCUTABLE to be used while calling perl scripts)
2020-11-14 00:34:20 +01:00
Thibaut Cuvelier
03a8208dc5 DocBook: implement chess. 2020-11-14 00:28:45 +01:00
Scott Kostyshak
3963ef0891 ctests: Invert two LyX HTML tests that were broken
These exports have not worked (i.e., failed our xmllint checks) for
a while. We have a bug open to track them at #10355.
2020-11-12 12:07:29 -05:00
Yuriy Skalko
9b1dc338b2 Simplify Changers 2020-11-12 14:22:00 +02:00
Kornel Benko
2308647740 Amend 1354dcdef0 (Typo)
Regexes in *Tests files require to contain the first and
also the last character ot the testname
2020-11-12 10:38:11 +01:00
Thibaut Cuvelier
1354dcdef0 Amend c11b8a15cb
Typo...
2020-11-12 04:42:58 +01:00
Thibaut Cuvelier
c11b8a15cb DocBook: bicaptions cannot be implemented only with templates. 2020-11-12 04:39:54 +01:00
Thibaut Cuvelier
185f34b20e DocBook: implement aa. 2020-11-12 04:17:49 +01:00
Thibaut Cuvelier
14887dda1c DocBook: implement achemso. 2020-11-12 03:18:03 +01:00
Thibaut Cuvelier
2f8443afbe DocBook: mark more tests to be ignored. 2020-11-12 02:33:19 +01:00
Yuriy Skalko
14bcdb2bc7 Update Development.lyx 2020-11-12 00:24:54 +02:00
Yuriy Skalko
61a80ab6d3 Merge CodingRulesAndAdvice.lyx into Development.lyx 2020-11-11 20:28:01 +02:00
Richard Kimberly Heck
fdd0a6f849 Revert "Improve structure of updateMacros"
The problem here is that the check against TEXT_CODE only
catches InsetText, and not its subclasses. Same for the check
against MATH_HULL_CODE. So there is reason not to check codes
here.

This reverts commit 5a54ccfa87.
2020-11-11 11:26:11 -05:00
Jean-Marc Lasgouttes
63300c3ba8 Fixup aeb51be9: set current font correctly when editing inset
When using InsetText::edit(), invoke Cursor::setCurrentFont (note that
editXY does it already). It is a good idea in general, especially
after commit 411333fa95, which sets languagecorrectly in ERT.

This allows to comment out (again!) the trick added to fix ticket #9042.
2020-11-10 15:43:48 +01:00