Commit Graph

3918 Commits

Author SHA1 Message Date
Stephan Witt
caa1dd2aee Correct converter configuration for inkscape on Mac
On Mac the inkscape binary is started by a wrapper script. This script changes the
working directory internally and fails to process files with relative path names.
The previous attempt to solve it was to pass the file names with absolute names
by prepending them with the $$p variable (representing the directory name of the files).
This broke the on screen conversion (used for SVGZ to PNG e.g. in the users guide)
because here the $$p variable is undefined.

Now the wrapper script of LyX which is used to locate the Inkscape.app bundle converts
the relative path names into absolute names and the $$p variable is removed from the
converter definitions for inkscape again.
2019-01-06 00:22:32 +01:00
Scott Kostyshak
bf65c9fb38 ctests: invert ko splash lyx22x and lyx23x tests
The Korean splash.lyx is expected to fail with pdflatex. The lyx22x
and lyx23x tests were not failing before because they were exporting
to XeTeX with system fonts, which succeeds. After c9e62dec (which
corrects the export format to the default), the lyx22x and lyx23x
tests should be inverted.
2019-01-05 17:40:43 -05:00
Kornel Benko
c9e62dec53 Cmake lyx2lyx tests: Correct use of value for \use_non_tex_fonts
Amend eec3d1eb,7568571a
We are trying to check if the resulting file after lyx2lyx
is compilable, we have to ensure that copying the original file
to the test directory does not mangle use_non_tex_fonts-entry.
2019-01-05 08:34:00 +01:00
Scott Kostyshak
7f5e7c89b4 ctests: do not invert a test for 2.3.x format
The test 'export/lyx2lyx/lyx_2_3_test_lyx' is expected to fail for
formats before 2.3.x, but is expected to pass for 2.3.x.
2019-01-04 21:50:19 -05:00
Scott Kostyshak
07425a6215 ctests: extend a regex to cover 2.3.x export
The tests of "attic/aastex6_sample" are ignored for previous LyX
format exports, and should also be ignored for the newly extended
2.3.x tests.
2019-01-04 21:50:19 -05:00
Juergen Spitzmueller
c65b146d86 Revert "ctests: invert JSS-article lyx2lyx tests"
This reverts commit 5ad0395dca.
2019-01-04 16:37:57 +01:00
Kornel Benko
21254cd962 lyx2lyx tests: Add conversions to lyx23 2019-01-04 05:58:56 +01:00
Scott Kostyshak
5ad0395dca ctests: invert JSS-article lyx2lyx tests
The regression has been reported at #11448.
2019-01-03 23:32:41 -05:00
Kornel Benko
7568571a24 lyx2lyx tests: Use the temp-dir also for converted lyx files
Important if including data previously copied there.
Fixes test "export/doc/Additional_lyx22"
2019-01-04 05:21:07 +01:00
Kornel Benko
eec3d1eb20 lyx2lyx tests: Copy also original lyx files to temp dir
Necessary only if the lyx-file includes some data from
a relative path, nonetheless it happens in some of our tests.
2019-01-03 08:46:26 +01:00
Scott Kostyshak
8c266ee28d ctests: restore thesis.lyx lyx2lyx tests
These tests failed because of (multiple instances of) the following
warning:

  Warning: a buffer should not have two parents!

This warning is expected, because, for example, chapter-1 includes
Bibliography.lyx and chapter-2 includes Bibliography.lyx. thesis.lyx
includes both chapter-1 and chapter-2, so both are loaded (but
hidden), and Bibliography.lyx is loaded (but hidden), and LyX then
sees that more than one buffer includes Bibliography.lyx

The consequence of ignoring this warning is that we will not catch
any future regression that triggers this warning when it should not.
2019-01-02 14:12:17 -05:00
Kornel Benko
8d927de5ee Amend 12aaeb25, add Bibliography.lyx to the set of not tested subdocuments 2019-01-02 16:32:24 +01:00
José Matos
3f03f0a447 Move all python shebangs from /usr/bin/env to python3.
The change is only relevant to development as all the call to python scripts is done
calling C++ os::python that invoques the appropriate python version.

The change is two fold, on one hand remove all the uses of /usr/bin/env for python.

On the other hand rename all the calls to python from python to python3 making it explicit
and being compliant with PEP 394 -- The "python" Command on Unix-Like Systems:
https://www.python.org/dev/peps/pep-0394/

Remove the sheebang from src/graphics/GraphicsConverter.cpp because it is not necessary.

Some small whitespace changes.
2018-12-29 19:14:41 +00:00
Juergen Spitzmueller
186597b546 Slightly lighter icons
All that's changed here is just the file size due to some file optimization.

Fixes: #10626
2018-12-27 17:17:33 +01:00
Kornel Benko
d2ea9c44b2 findadv tests: Adapt one test for the new greedy behaviour 2018-11-26 16:00:27 +01:00
Kornel Benko
23e2ea358f findadv tests: Remaining test passes now too 2018-11-03 12:30:07 +01:00
Kornel Benko
47455ad65e Added test findadv-22
Related to https://www.lyx.org/trac/ticket/11241
(Find and replace doesn't find a wedge of two things in a subscript.)
2018-10-31 11:19:47 +01:00
Juergen Spitzmueller
0ec295d63e Fix parentheses with Hebrew
Patch by Guy Rutenberg, with some changes of mine.

Fixes: #11191
2018-10-30 12:33:35 +01:00
Kornel Benko
f0d7432608 Findadv: Remaining findadv tests pass now
Exception: findadv-21, but it is not a regression,
because this one never passed.
The problem here is, that we cannot differentiate
between enumeration, itemize, description and labeling
environment here.
2018-10-29 13:17:54 +01:00
Kornel Benko
2d477c5e0a Changes to match math equations
Now tests findadv-01 ... findadv-20 pass too.

keytest.py: Expanded time for controll keys (like \[Return])
findadv*: expanded time for normal keys
lyxfind.cpp: Handle math equations
2018-10-28 19:40:14 +01:00
Richard Kimberly Heck
9794bf5abc mingw build script 2018-09-30 13:50:36 -04:00
Kornel Benko
73188e3821 keytests: regex correction in test findadv-re-04
Use '+' instead of not working '*' as quantifier
for advanced search with format enabled
2018-09-29 12:54:22 +02:00
Richard Kimberly Heck
1f325e69bd Copy over Windows installer updates from stable. 2018-09-28 22:20:01 -04:00
Richard Kimberly Heck
cbc4e2399a Copy over cmake packaging updates from 2.3.x. 2018-09-28 22:18:15 -04:00
Richard Kimberly Heck
da7d927f4f Windows packaging updates.
The main change here is that we need to delete LyX2.3.exe and
tex2lyx2.3.exe from the install directory, so they are not left
there (from previous, versioned installs).

(cherry picked from commit 0cbde8a834)
2018-09-28 21:56:19 -04:00
Stephan Witt
9bbd21cf1f Less verbose framework relocation support output. 2018-09-21 21:50:21 +02:00
Stephan Witt
d4f51e6ed0 Add the option build with different compiler and linker flag extensions. 2018-09-21 21:48:48 +02:00
Stephan Witt
28b84f5ddc Check exit state of install_name_tool calls. 2018-09-21 21:47:29 +02:00
Juergen Spitzmueller
5e26a3a633 Implement layout format in insetinfo
The docs refer to the outdated layout formats. The inset prevents this.
2018-09-20 11:33:03 +02:00
Kornel Benko
f2399f42fe keytests: Add waiting time to ease lyx-logs on some commands 2018-09-13 18:34:18 +02:00
Kornel Benko
2f1c9f67b0 keytests: Adapt test 'keytest/bug-10636' to changed binding for source preview 2018-09-13 16:51:07 +02:00
Kornel Benko
20c280bdfc Cmake export tests: Ignore missing glyph for ar/UserGuide_pdf4_systemF
Scheherezade font misses glyph '␣'
2018-09-10 14:06:12 +02:00
Kornel Benko
d49deef4f9 Export tests: Ignore compilations of copernicus with luatex or xetex
The compilations fail because the macro
	\DeclareUnicodeCharacter
is not defined. Also the sequence
	  \ifnum\pdfoutput=\z@
is making troubles.

The exports to previous lyx-versions is disabled too,
because there is no layout defined there.
2018-09-04 15:56:21 +02:00
Richard Kimberly Heck
29b80c802c Fixes for the build script.
(cherry picked from commit 01c23b3864)
2018-08-28 15:19:48 -04:00
Kornel Benko
2a72fa3a04 Amend 2877032 2018-08-24 13:20:51 +02:00
Juergen Spitzmueller
4533a0b063 Keep format entries together. 2018-08-19 09:33:20 +02:00
Kornel Benko
cbb0d56719 Missed this one in 8a7c109 2018-08-18 17:42:03 +02:00
Juergen Spitzmueller
b124adbd38 Introduce listpreamble argument type
This uses the InsetArgument interface to provide access to a document
part hitherto inaccessible by LyX: the part between \begin and the first
\item in a list (where lengths and counters can be redefined, for
instance).

Fixes: #11098

File format change, layout format change
2018-08-17 10:22:32 +02:00
Kornel Benko
a860c436c9 ctest export tests: Discard obsolete aastex tests 2018-08-14 14:09:09 +02:00
Kornel Benko
6bfd91ead4 New sample for aastex62
aas_sample62.lyx is a adapted version of aas_sample.lyx
2018-08-14 10:29:15 +02:00
Kornel Benko
b4bbfa5ff0 ctests: ignore obsolete aastex6.cls
aastex6.cls is obsolete in TL18 and replaced by aastex62.cls
2018-08-14 09:40:42 +02:00
Juergen Spitzmueller
e9b187af08 New info-inset type l7n
This returns a localized version of a string (in the GUI language)
if available, removing trailing colons and accelerator marks.

This can be used to refer to dialog items in the docs in a portable way.
2018-08-13 17:18:44 +02:00
Kornel Benko
366e37c851 Added latex-DejaVu fonts to lyx-GUI.
Increment lyx-format to 561
2018-08-10 19:38:06 +02:00
Enrico Forestieri
ab72f94595 Update the server_monitor example client to Qt5 2018-08-07 17:47:50 +02:00
Juergen Spitzmueller
7efdf98fc8 Further extend Info insets:
* Add time type (time, modtime, fixtime)
* Add "name-noext" buffer type (file name w/o extension)
2018-08-07 12:14:45 +02:00
Juergen Spitzmueller
e730234e57 Add date-related info insets
With this commit, info insets leave the dark backstage room of an opaque
and quite hidden dev-only feature and come frontstage.

In the UI, they present themselves as "Fields" since this is what people
know from word processors. Other user-related fields that could be
implemented next: time, user name (I plan to do that for 2.4).

Since this supersedes date-insert, I removed Insert > Date from
the menu and propose to ditch date-insert and the corresponding rc.

The lyx2lyx reversion routine has lots of room for improvement and
attractive tasks for pythons (file timestamp, switch of localization).
Please feel invited!

This is a file format change.
2018-08-05 10:01:36 +02:00
Kornel Benko
1111c5c13b Adapt test 'BATCH_outline-beamer' to reflect lokalization changes
See commit abaccec
2018-08-05 09:40:13 +02:00
Kornel Benko
f8f9eec358 Amend 3e92efd: Remove (Begin|End)Frontmatter in elsarticle
1.) Revert changes in elsarticle.lyx
2.) upgrade format to 558
3.) added missing lyx2lyx routines
2018-07-30 13:44:01 +02:00
Juergen Spitzmueller
358436ea1e Split vcs Info inset from buffer Info inset
This should go separately in the GUI, and thus in the inset.
2018-07-29 19:41:34 +02:00
Juergen Spitzmueller
e6e3777363 Add support for bib files encoding
File format change.

Fixes: #6223
2018-07-07 15:25:35 +02:00
Kornel Benko
07084d0e76 Cmake tests: Simplify creation of batch tests 2018-07-07 11:25:36 +02:00
Kornel Benko
c515572f5f Cmake key tests: Corrected test findadv-21
Uses the correct shortcuts from lib/bind/sk/menus.bind, but fails nonetheless
because the regex for advanced search cannot find the correct list type.
(That is: it cannot distinguish between 'enumerate', 'itemize', 'labeling', etc.)
2018-07-07 11:10:20 +02:00
Juergen Spitzmueller
9dcb24d578 Support varwidth's V tabular column type
This effectively enables linebreaks, multipars and layout changes in
non-fixed width (i.e., standard) table columns.

Fixes: #6577

TODO: metrics are wrong (too wide) on screen with linebreaks.
2018-07-01 19:18:38 +02:00
Juergen Spitzmueller
f38816bf16 Add support for tabularx/xltabular
I.e., variable width columns in single and multiple page tables

Files format change.

Fixes: #4154, #4155
2018-06-24 10:05:15 +02:00
Kornel Benko
25ff03d120 Cmake tests: Adapt some keytests due to changed key-bindings 2018-06-23 19:00:04 +02:00
Pavel Sanda
bbe09eada1 lyx-build: check sig in case one really uses download instead of local tarball. 2018-06-19 23:53:36 +02:00
Stephan Witt
1bf4d7b0fc Extend Clang compiler detection to cover Apple CLang
CMake 3.0 and above recognize that Apple Clang is a different compiler than upstream Clang and so it gets a different CMAKE_CXX_COMPILER_ID.
2018-06-12 22:43:03 +02:00
Kornel Benko
aca3031352 Cmake tests: Added check to inspect created pdf in test "AMS-import"
If the command "comparepdf" is found, it will be used.
Also the script lyx_batch.pl is now easier to expand for
possible new comparision tools.
2018-06-09 09:15:21 +02:00
Kornel Benko
08afacc239 Cmake build: Adapt use of some variables
1.) Rename LYX_PATCH_VERSION to LYX_RELEASE_VERSION.
  This matches the use in automake.
2.) Don't display LYX_DATE at configure time.
  This value is evaluated later at build time
2018-06-03 09:16:55 +02:00
Kornel Benko
38f04cb162 Adapt a testfile after commit 7a5184f and fix 5996b2e 2018-05-27 14:31:35 +02:00
Kornel Benko
1a36fee79d Added testcase for ticket #11156
The test is named "AMS-import", with defined test-labels 'tex2lyx' and 'batch'
2018-05-24 20:49:11 +02:00
Juergen Spitzmueller
98621be1ba Support \cite command in tufte classes
This is an extra command used for sidenote citations. Since we do not
provide \cite with natbib (which tufte uses) as a choice, we use the
new AddToCiteEngine feature to add it.

File format change.

Fixes: #11150
2018-05-21 13:46:04 +02:00
Juergen Spitzmueller
aa9543fa2b Add support for global float alignment
It is now possible in the float settings (doc dialog) to specify a global
(inner) alignment for floats, and in the float settings, this can be
overridden (just as with float placement)

Fixes: #8665

File format change.
2018-05-10 20:15:11 +02:00
Juergen Spitzmueller
57dc817581 Add \nospellcheck font property
This revives a ten year old idea (and patch) by Dov.

You can now mark in the character dialog text and exclude it from spell
checking.

Fixes: #1042

File format change

Remaining issue: The instant spell checking marks are not immediately
removed, but only after some editing.
2018-05-06 19:48:21 +02:00
Kornel Benko
d1e0dc7b76 Small corrections in slovak.nsh 2018-05-06 15:29:41 +02:00
Kornel Benko
b47c31d52a 008-greek-and-coptic.lyx now compilable with iso8859-7 inputencoding
Removed from invertedTests
2018-05-05 08:24:50 +02:00
Scott Kostyshak
9d24033d9b ctests: invert ar/UserGuide_pdf4_texF
Consistent with the other ar docs, this file was never meant to
compile with TeX Fonts (for more information, see the note next to
the inversion).
2018-04-28 23:58:23 -04:00
Kornel Benko
432580e397 Cmake export tests: All cyrillic tests pass no 2018-04-23 14:57:21 +02:00
Juergen Spitzmueller
26ea1e1496 Align fontenc with document fonts
Following a request by Günter, we consider the document fonts (only rm
for now) when selecting an appropriate font encoding.

See #9741

The new default font encoding setting "auto" does

* consider the font encoding needed by the language(s), which can now
  have fallback alternatives
* Consider which font encoding is provided by the document font

Thus, cm now will result in OT1 fontenc, if the language can deal with
that.

The font_enc pref is ditched: it is no longer needed.

The automatism is still very basic and is subject to extension.

File format and prefs format change.
2018-04-22 19:06:46 +02:00
Kornel Benko
4f93e28b0c Adapt Format-entry in unix/lyxrc.dist 2018-04-22 12:02:27 +02:00
Kornel Benko
17dc24419a Adapt test outline-beamer' to the synchronous batch export
Also add the 'export'- label to this test
2018-04-22 11:59:19 +02:00
Juergen Spitzmueller
02d37932d0 \textcyr -> \textcyrillic
Use the command as defined by Babel. This allows us to use the (more
advanced) Babel command if provided instead of rolling our own.

I add a dummy file format change in case it turns out we need to
do something here for old documents (e.g. with user preamble definitions)
2018-04-21 16:28:15 +02:00
Kornel Benko
a33d957832 Uninvert some cyrillic and greek tests 2018-04-21 12:13:51 +02:00
Juergen Spitzmueller
1ceb38ab34 Update email address 2018-04-18 14:37:33 +02:00
Juergen Spitzmueller
2551614ff1 Add Landscape module
Support for the (pdf)lscape package.

Fixes: #10801
2018-04-18 14:36:49 +02:00
Kornel Benko
bda9e38ade Amend d7020ea: Add the warn when using system hunspell in stdlib-debug mode also for cmake 2018-04-09 17:13:52 +02:00
Kornel Benko
b7c8033548 Cmake build: Check for correct hunspell only if used 2018-03-30 19:40:08 +02:00
Kornel Benko
4cfc5bb75d Amend 8774ad5, Adapt to new hunspell C++ ABI for cmake
Replace CHECK_CXX_SOURCE_COMPILES() with TRY_COMPILE()
Discarding the link-stage mimics the behaviour used by automake.
Now the testsource is compiled regardless if hunspell
is external or not.
2018-03-30 14:10:45 +02:00
Kornel Benko
8774ad51c0 Adapt to new hunspell C++ ABI for cmake
The compile test for 3rdparty hunspell is omitted,
because the macro check_cxx_source_compiles() tries also to link.
But at the time of the check, the required library is not there.
2018-03-29 22:53:59 +02:00
Kornel Benko
70dac835d3 Cmake export lyx* tests: Omit compilation of lyx16x, lyx20x and lyx21x exported files
These file don't contain the \\origin tag. So the possibly included
files with relative path would not be found. The compilation to
the default pdf would then anyway fail.
2018-03-15 22:34:26 +01:00
Kornel Benko
8502e6c476 Cmake export lyx* tests: Ignore new lyx2lyx warning
Don't know why this warning is unconditionlly emitted
2018-03-15 22:31:48 +01:00
Juergen Spitzmueller
6a0f0d28a5 Add support for xcharter font.
File format change.

Patch by Yuriy Skalko.
2018-03-15 15:44:49 +01:00
Uwe Stöhr
23ba5e8389 Win installer: fix a typo 2018-03-11 14:37:48 +01:00
Uwe Stöhr
9f9450cacd Win installer: respect also 64bit MiKTeX 2018-03-11 02:59:08 +01:00
Uwe Stöhr
d3c51876a9 add support for the PT fonts
- fileformat change
- I also started https://wiki.lyx.org/LyX/NewInLyX24 for new features
2018-03-10 19:59:48 +01:00
Uwe Stöhr
848462a139 Win installer: adapt update process to work with recent MiKTeX
- finally the installer should result in a fully functional LyX, no matter when users installed MiKTeX or updated it the last time (or never)
2018-03-08 22:35:38 +01:00
Uwe Stöhr
426ecc52a4 Win installer: workaround for the MiKTeX update bug 2018-03-04 21:40:16 +01:00
Juergen Spitzmueller
e0a5babde7 Add literal param to InsetInclude
This is used by lstinput

File format change.

Fixes: #10544.
2018-02-23 08:58:16 +01:00
Pavel Sanda
1b9ec2b7c4 Script for creating torrents for files stored on our ftp site. 2018-02-20 00:45:50 +01:00
Uwe Stöhr
7fe5f1f9ea Makefile.am: forgot this in the previous commit 2018-02-18 15:52:30 +01:00
Uwe Stöhr
4c21ca318f Win installer: convert all files to Unicode
- at the moment some files were in Unicode, some in CP1252 which can make unnecessary troubles
- remove an obsolete file
- update InstallerStructure.odg
2018-02-18 15:45:08 +01:00
Uwe Stöhr
3419fa6a9e Win installer: MiKTeX has a new maintenance program
- therefore the command line parameters changed
- all babel packages must be required
- use another default mirror that is hopefully not down 2hours every day
2018-02-18 06:11:11 +01:00
Uwe Stöhr
ac1d6af008 Win installer: fix installation of Arabic dictionaries.nsh
- correct name of Arabic spell checker (fixes bug #11036)
- add Arabic thesaurus
- update sourceforge's mirror list
- update some dictionaries
2018-02-17 06:05:13 +01:00
Kornel Benko
454f56b5f2 Cmake build: Allow cross-compiling with mingw again
1.) The check for "QT_USES_X11" expects the created application
  to run, but the '.exe' file does not run on linux.
2.) Don't use megered build anymore, it is not faster
  on multi-processor machines anyway
2018-02-10 11:21:08 +01:00
Günter Milde
fbfa82b313 ctests: Update dedicated lyx2lyx tests. 2018-02-07 18:49:21 +01:00
Günter Milde
0d9708ef04 Use LaTeX macros instead of Latin transcription for Greek characters.
Use the LaTeX internal character representation (LICR) macros
provided by lgrenc.def (since version 0.8 from 2013-05-13)
in lib/unicodesymbols. This fixes the PDF bookmarks (except for the
legacy input encoding iso-8859-7) and solves the problem of a missing
"v" character in Libertine LGR fonts (see lyx-users from 2018-01-29).

The ctest unicodesymbols/008-greek-and-coptic_iso8859-7_pdf2" now fails
(due to #9681). This is not a regression, as it is already
"unreliable" (wrong output, Latin character instead of Greek).

Drop compatibility definition of \~ as perispomeni accent
(that was required with lgrenc.def < 0.8).
2018-01-30 22:31:08 +01:00
Jean-Marc Lasgouttes
63a4e82874 Add support for enchant 2.x
As of enchant 2.x, it is required to create a Broker instance instead
of relying on a static one provided by the library.

Add autoconf and cmake (courtesy of Kornel) tests that check whether
one can indeed instantiate a Broker object, and act on the result in a
new broker() helper function.

Fixes bug #10986.
2018-01-30 12:11:22 +01:00
Kornel Benko
1e78772291 Cmake tests: New lyx2lyx tests
Created by Günter Milde, after having corrected plenty of lyx2lyx errors
showing with repeated lyx2lyx calls.
2018-01-24 20:56:21 +01:00
Uwe Stöhr
fe00302403 Win installer: upgrade to Qt 5.9.4 2018-01-24 03:26:02 +01:00
Uwe Stöhr
dceb7e393d build5*.bat: update to Qt 5.9.4
- also adjust build5-2015-x64.bat
2018-01-24 01:18:32 +01:00
Kornel Benko
40e32d4d27 lyx2lyx tests: Check for possible endless expansion
If, after the 10th iteration, the exported lyx16x file still
differs from the one in the previous iteration, the test
is marked as failing, even if still loadable.
2018-01-22 14:43:50 +01:00
Kornel Benko
c7cd1e636c Revert "ctests: Ignore lyx2lyx warnings regarding ligature dashes"
Amends 9ce5d85: Prevent rows of hyphens becoming dashes when back-porting to 2.1.

This reverts commit a5a272ece3.
2018-01-18 08:11:53 +01:00
Scott Kostyshak
dc06714adb ctests: invert for new ru example_lyxified.lyx
Consistent with the ru splash.lyx, we invert the texF tests for the
ru example_lyxified.lyx, which was recently added at 69ef4bc1.
2018-01-17 23:18:08 -05:00
Kornel Benko
d794a6d60d Add testfiles-references to automake build: vcs_info_export moved to new directory, part 4 2018-01-17 15:31:57 +01:00
Kornel Benko
825eebba74 tests: missed ref, vcs_info_export moved to new directory, part 3 2018-01-17 12:28:18 +01:00
Kornel Benko
26eeaa1af2 vcs_info_export moved to new directory, part 2 2018-01-17 12:25:22 +01:00
Kornel Benko
1e09b48bb5 vcs_info_export moved to new directory 2018-01-17 12:09:18 +01:00
Scott Kostyshak
39c22913a2 ctest comment: be more clear about what "!" means
The "!" line only affects tests in that file.

This amends c6d4380c.

Thanks to Kornel for spotting this.
2018-01-17 01:08:26 -05:00
Scott Kostyshak
c6d4380c89 Comment: explain interpretation of "!"
The "!" line takes precedence, since it is first.
2018-01-15 17:28:14 -05:00
Scott Kostyshak
45ee36c0f2 Whitespace 2018-01-15 17:08:20 -05:00
Scott Kostyshak
8a656d95d4 ctests: run only pdf4_systemF for ja knitr/sweave
The "bxjsarticle" class only supports export with XeLaTeX and system
fonts.

This commit uses the new exclusion functionality introduced at
10cd5dd2.

The following tests are now ignored:

  export/examples/ja/knitr_dvi
  export/examples/ja/knitr_pdf
  export/examples/ja/knitr_pdf3
  export/examples/ja/sweave_dvi
  export/examples/ja/sweave_pdf
  export/examples/ja/sweave_pdf3

The following tests are no longer ignored:

  export/examples/ja/knitr_pdf4_systemF
  export/examples/ja/sweave_pdf4_systemF
2018-01-15 16:54:05 -05:00
Scott Kostyshak
10cd5dd223 ctests: allow excluding patterns
This allows us to exclude matches of certain patterns in
invertedTests, ignoredTests, unreliableTests, and suspendedTests.

To use this new functionality, prefix "!" to the pattern.

This functionality serves as a workaround in some cases to not being
able to use advanced regular expression techniques, such as
"negative lookahead", with CMake's regular expression engine.

Output of "ctest -N" is unchanged by this commit.

This functionality will be used soon (see next commits).

Patch from Kornel Benko.
2018-01-15 16:32:05 -05:00
Uwe Stöhr
6ae0ff38be Win installer: start an an RC2 installer
- also fix a typo and update a file size
2018-01-14 22:18:20 +01:00
Pavel Sanda
d3163a0bee tests: add ref 2018-01-14 15:04:47 +01:00
Pavel Sanda
3cb9e0485b tests: add ref 2018-01-14 14:56:11 +01:00
Kornel Benko
aed458f007 Cmake tests: New test for the outliner with beamer
Test idea from Pavel Šanda
Move insets down and up, then compare with expected latex output.
2018-01-14 13:47:27 +01:00
Kornel Benko
0e4456ae2e Cmake tests: Don't check in file before creating it 2018-01-06 12:05:51 +01:00
Kornel Benko
03b6ee9f06 Cmake build: Added handling for lyxrc.dist for Apple and Unix
Also added include path for magic.h, as found out by Joel Kulesza
2018-01-03 15:04:21 +01:00
Kornel Benko
c2a5a16d97 Added new testcase to check for correct VCS-Info 2018-01-01 14:05:25 +01:00
Kornel Benko
a5a272ece3 ctests: Ignore lyx2lyx warnings regarding ligature dashes
This may amend 586d16a "Fix lyx2lyx conversion of dashes."
2017-12-29 09:28:12 +01:00
Richard Heck
12f9727546 Dummy script for testing background export cancellation. 2017-12-21 18:55:40 -05:00
Scott Kostyshak
291d2f1037 ctests: invert tests for Arabic splash
The Arabic splash only compiles with XeTeX + system fonts.
2017-12-18 23:30:37 -05:00
Uwe Stöhr
88404dbfae Win installer: improvement from Yuriy
- also suppress an unnecessary message
2017-12-11 00:30:47 +01:00
Uwe Stöhr
917a72e3ec Win installer: new Russian translations thanks to Yuriy 2017-12-09 19:06:32 +01:00
Uwe Stöhr
95bcff9924 unix2dos.py: make it ready for python 3
fixes bug #10838
2017-12-08 02:08:16 +01:00
Uwe Stöhr
851782953b Win installer: code review
- use https in URLs
- remove unused code
- use variables if possible
- LyX 2.3.x won't support Windows Vista because Qt 5.9 does not and other third-party programs will follow soon
2017-12-06 15:28:22 +01:00
Uwe Stöhr
91fe8e54d2 Win installer: update rsvg-convert
- also fix some typos in the license file
2017-12-06 03:06:09 +01:00
Kornel Benko
1844d22221 Cmake build: Don't try to convert non-lyx-files.
Since they are not supposed to contain versioned strings like LYX_DIR_VER,
it is sufficient to copy them instead.
Besides, they also may be non-utf-8 coded, which would also break the conversion.
2017-11-28 19:07:24 +01:00
Uwe Stöhr
bf12cebdc0 Win installer: update to Qt 5.9.3 2017-11-24 00:16:23 +01:00
Uwe Stöhr
1c803aaa96 Win installer: check that the Win installer is not already running 2017-11-22 00:32:25 +01:00
Uwe Stöhr
54823a1cd7 Win installer: add two more required packages and correct a word
- vntex is necessary for Vietnamese, greek-fontenc for Greek
- use correct term for Farsi
2017-11-21 01:12:08 +01:00
Uwe Stöhr
081a9035cf Win installer: big file cleanup
- update the file list in Makefile.am
- don't try to build it via CMake because this requires more than CMakeLists.txt. If it should nevertheless be built via CMake the .cmake files need to be rewritten from scratch
- remove unused and outdated files
- update  an SVG file
2017-11-20 21:05:16 +01:00
Uwe Stöhr
bdea2c6139 Win installer: another update for Packages.txt
- necessary for seminar with XeTeX
2017-11-20 21:01:14 +01:00
Uwe Stöhr
4781d01746 Win installer: update package list
these are the packages required to compile all LyX doc, examples and template files that are not yet installed by MiKTeX on a fresh installation.
2017-11-20 02:32:48 +01:00
Uwe Stöhr
d4c525ee93 Win installer/lyx-standard.nsi: revert a comment that should not have been committed today 2017-11-18 16:52:23 +01:00
Uwe Stöhr
4fa92c9ff4 Win installer: add info to the main installer file version 2017-11-18 16:49:26 +01:00
Uwe Stöhr
db155fcf8b Win installer: enable support for high DPI 2017-11-18 15:25:07 +01:00
Uwe Stöhr
8d2c31ff2c Win installer: add more LaTeX packages necessary to compile all doc files 2017-11-18 14:16:00 +01:00
Kornel Benko
597dcbb5be Cmake export tests: Use pre-compiled regular expressions
The expressions are used for determining the used external files
in a lyx-source. Using pre-compiled expr makes it more readable.
2017-11-17 17:53:52 +01:00
Uwe Stöhr
fab94e0e5a Win installer: dvips is necessary for instant preview
dvips is no longer installed by default in MiKTeX
2017-11-13 21:23:32 +01:00
Uwe Stöhr
9fe1e0f8df Win installer: disable a feature
checking that the Win installer is already currently running doesn't work with the current Unicode compatible NSIS plugin
2017-11-13 01:19:45 +01:00
Uwe Stöhr
241bf7d58b Win installer: update to Qt 5.9
- also remove Qt5XML in the installer as it appears not to be used by LyX
- update to latest MikTeX installer which resolves some problems
- add a note that pdfview is not yet ready for full Unicode support
2017-11-11 18:34:25 +01:00
Jean-Marc Lasgouttes
9e2da4a3ea Remove row crc computation
This computation did not make sense anymore since we began to put the
contents in the Row object. The fact that it worked was a coincidence.

Instead, we set rows as changed() on creation and reset that once they
have been drawn. This will allow in the future for a finer definition
of what to redraw or not.

Also update the PAINTING_ANALYSIS document
2017-11-11 13:24:08 +01:00
Uwe Stöhr
d06ef7469e Win installer: make it a real Unicode program 2017-11-07 02:11:50 +01:00
Uwe Stöhr
b3ecdf74d0 Win installer: translate 2 installer sections 2017-11-05 22:37:44 +01:00
Uwe Stöhr
bece376c63 Win installer: convert the translations to Unicode
- since NSIS 3 Unicode is allowed and even required
2017-11-05 21:23:41 +01:00
Kornel Benko
6011d6cdca Cmake build: Install subscript.sty only for WIN32 (using MikTeX) 2017-11-05 17:06:38 +01:00
Uwe Stöhr
ad5e8887d2 Win installer: update RC format 2017-11-02 21:48:10 +01:00
Uwe Stöhr
3a6abf2847 Win installer: final changes for 2.3-RC1
- fix detection of 64bit Krita and 64bit JabRef
- JabRef is no longer installed with the bundle installer
2017-11-01 14:33:03 +01:00
Uwe Stöhr
8757550015 Win installer: fix a MiKTeX package issue
since a few months MiKTeX's package manager required the option "--admin" when calling it with admin privileges

- also register the .lyx21 file extension for LyX 2.3
- also update the LyXRC version number
2017-10-31 22:15:54 +01:00
Kornel Benko
51e32a36d6 cmake documentation handling: sort out encoding problems.
Let srcipt work under Python2 and Python3,
also if the locale is not set to utf8.

Patch from Günter Milde, sort of cherry-pick from 9086db662d
2017-10-29 09:49:39 +01:00
Uwe Stöhr
61a703a9c0 Win installer: correct name for RC1 2017-10-28 13:12:52 +02:00
Uwe Stöhr
7d39f4af04 Win installer: updates for 2.3RC1 2017-10-28 02:23:33 +02:00
Uwe Stöhr
3d4358f101 Makefile.am: add missing cmake file 2017-10-28 02:21:09 +02:00
Kornel Benko
d8a31f1ee6 Cmake export tests: Collect list of all used wrong paths before terminating
Also try to ignore references for files that are part of latex. If they are wrong, so
latex should handle the errors.
2017-10-27 13:22:17 +02:00
Kornel Benko
6720a8ca7c Cmake export tests: Add the die-message to the diestack() param.
Spotted by Scott.
2017-10-26 22:43:24 +02:00
Kornel Benko
d63a866106 Cmake export tests: Make test fail if there is some non-existant sub-file 2017-10-26 21:48:33 +02:00
Jean-Marc Lasgouttes
8d8988de47 Allow multiple calls to processUpdateFlags before redraw
The goal of this commit is to ensure that a processUpdateFlags call
that requires no redraw will not override a previous one that did
require a redraw.

To this end, the semantics of the flag argument is now different: its
value is now OR'ed with a private update_flags_ variable. This
variable is only reset after the buffer view has actually been
redrawn.

A new Update::ForceRedraw flag has been added. It requires a full
redraw but no metrics computation. It is not used in the main code
(yet), but avoids to compute metrics repeatedly in consecutive
processUpdateFlags calls.

The process is now as follows:
- if flags is just None, return immediately, there is nothing to do.
- the Force flag is honored (full metrics computation) and replaced
  with ForceDraw.
- the FitCursor flag is honored and removed from the flags.
- the SinglePar update is added if ForceDraw is not in flags and only
  the current par has been modified.

The remaining flags are only then added to the BufferView update
flags, and the update strategy is computed for the next paint event.

Finally the dubious call to updateMacros in updateMetrics has been
removed for performance reasons.
2017-10-24 22:25:29 +02:00
Jean-Marc Lasgouttes
b4294a7b06 Revert "Allow multiple calls to processUpdateFlags before redraw"
The concept is correct, but it seems a bit too disruptive.

This reverts commit c19c54dd5b.
2017-10-17 20:10:11 +02:00
Kornel Benko
65deb30c24 Cmake doc creation: Python is choking on '\\' 2017-10-17 17:12:29 +02:00
Kornel Benko
f3c8884eee Cmake doc creations: Correct indentation 2017-10-17 12:35:57 +02:00
Kornel Benko
a68ef98103 Cmake doc creations: Setting environment PYTHONIOENCODING
This should force the python executable to use the desired encoding.
The command is moved to a wrapper script to be able to set the environment
at make-run-time.
2017-10-17 12:28:36 +02:00
Uwe Stöhr
3835b473c7 ReplaceValues.py: partly revert commit f075f8ad
we need a string output not a byte
2017-10-17 00:23:19 +02:00
Uwe Stöhr
f075f8ad0a ReplaceValues.py: make the file compilable with Python 3
see the mailing list thread "compilation of LyX 2.3 fails with Python 3.6.2" for details
2017-10-16 23:29:57 +02:00
Jean-Marc Lasgouttes
c19c54dd5b Allow multiple calls to processUpdateFlags before redraw
The goal of this commit is to ensure that a processUpdateFlags call
that requires no redraw will not override a previous one that did
require a redraw.

To this end, the semantics of the flag argument is now different: its
value is now OR'ed with a private update_flags_ variable. This
variable is only reset after the buffer view has actually been
redrawn.

A new Update::ForceRedraw flag has been added. It requires a full
redraw but no metrics computation. It is not used in the main code
(yet), but avoids to compute metrics repeatedly in consecutive
processUpdateFlags calls.

Finally the dubious call to updateMacros in updateMetrics has been
removed for performance reasons.
2017-10-16 11:05:52 +02:00
Juergen Spitzmueller
648ddd25ec Collapsable -> Collapsible (part 1)
The current spelling is not strictly wrong, but flagged as unusual or
historical by some authorities. It is also found fault with many
spell checkers. Thus we decided to move to the more standard "-ible"
form once and for all.

See #10678 for discussion

This part only covers the usage in comments and the like. More to follow.

This will all also all be backported to 2.3.x, for the sake of backwards
compatibility (cherry-picking).
2017-10-16 10:03:05 +02:00
Uwe Stöhr
e68fd9ed03 Win installer: one DLL was removed in Qt 5.6.3 2017-10-15 16:52:07 +02:00
Uwe Stöhr
b7f7c857ad Win installer: update Qt
- Qt 5.6.3 uses a different path name scheme
- one DLL was removed in Qt 5.6.3
2017-10-15 16:50:20 +02:00
Juergen Spitzmueller
69b03d2545 updatelayouts.py: consider citeengines. 2017-10-13 16:08:23 +02:00
Kornel Benko
23e67a3829 Cmake tests: Another case of using temporary files
Ctest misinterprets '#' in filenames as comment start,
2017-10-08 11:04:17 +02:00
Günter Milde
54df2f5446 Seminar export fails with latest TeXLive.
Also update the comment on wrong output with "seminar".
2017-10-08 10:36:24 +02:00
Scott Kostyshak
0c7e5c115d Uninvert Japanese tests after fix to #8823
The export ja/lilypond_pdf fails because ps2pdf gives an error. It
is thus still inverted, under the category 'externalissues'. As
Jürgen discovered, ps2pdf succeeds if the -dNOSAFER flag is used.

Note that Kornel is seeing strange behavior with the sweave test,
and thus the label of that test might be changed soon (e.g. to
"unreliable"). For discussion, see:

https://www.mail-archive.com/search?l=mid&q=20171001032524.fr5xfngylththwv2%40steph
2017-10-07 22:37:42 -04:00
Kornel Benko
847c68960a Cmake build: Needed variable for creation of debian package
The variable CPACK_DEBIAN_PACKAGE_RELEASE has to be in the form
of "^[A-Za-z0-9.+~]+$". We will use the abbreviated commit revision for now.
Without this change cmake 3.10 emits error.
2017-10-07 10:47:17 +02:00
Kornel Benko
336f94d12f Cmake build: Don't use temporary doc-files as source for installation 2017-10-05 20:16:52 +02:00
Kornel Benko
92628a2990 cmake tests: Try to use valid locales for testing 2017-10-02 10:35:57 +02:00
Kornel Benko
c2eb1a1a72 Add suffixed lyxconvert to cmake build.
This should amend f93ec4a, but is not tested on apple
2017-10-02 02:00:47 +02:00
Stephan Witt
f93ec4a1f4 Add Qt-based fallback-converter for Mac to compensate missing ImageMagick convert utility 2017-09-30 18:13:37 +02:00
Stephan Witt
350ef993e5 add inkscape wrapper script for Mac OS
The wrapper script is placed in the binary directory of the LyX bundle.
It tries to find the real inkscape command line converter in the
Inkscape.app bundle and starts it or reports an error.
The configure.py is changed for Mac OS to check the presence of
the real inkscape binary in the Inkscape.app bundle.
2017-09-24 11:55:20 +02:00
Stephan Witt
c7efc9df28 #10762 open lyx pipe only once to read the answer 2017-09-15 08:16:50 +02:00
Stephan Witt
5699791d0f #10762 update format and copyright 2017-09-14 11:32:11 +02:00
Stephan Witt
8cbed5ef4a #10762 don't hard-code the location of LyX bundle - use script path name for lyxrc.dist lookup 2017-09-14 11:13:47 +02:00
Stephan Witt
81d70b41a1 #10762 read complete answer from LyX server and echo it 2017-09-14 11:13:47 +02:00
Stephan Witt
4939741a73 #10762 correct user preferences file lookup 2017-09-14 11:13:47 +02:00
Stephan Witt
bec5b579b0 #10762 avoid back ticks for sub-shell execution where possible 2017-09-14 11:13:47 +02:00
Uwe Stöhr
b186b08cff Win installer: record a package that lyX uses now for Japanese documents 2017-09-09 20:43:30 +02:00
Jean-Marc Lasgouttes
fb655725b7 Remove workaround that is not necessary anymore.
This code was necessary to handle cases where the insets positions
were not yet in cache. This cannot happen anymore thanks to the
nodraw stage.
2017-09-08 16:57:21 +02:00
Jean-Marc Lasgouttes
8edadee145 Update the painting process documentation 2017-09-08 16:57:21 +02:00
Richard Heck
e6cb0c56ff Fix some issues found by the shellcheck script, and move an old
file to the attic.
2017-08-21 17:16:30 -04:00
Christian Ridderström
4c4db93645 Set n:o digits in abbrev. hash in script that checks commit log.
Expliclyt set n:o digits in abbrev. hash in script that checks the
commit log to make script behave the same way on different platforms.

Also improve help text.
2017-08-20 18:34:25 +02:00
Kornel Benko
854d7e1619 Windows only: A try to compile with LYX_CONSOLE again
The use of the value "FORCE" was wrong anyway, since LYX_CONSOLE
is of type "BOOL".
2017-08-18 12:07:03 +02:00
Tommaso Cucinotta
a0e95a2c1b generate_manuals_for_web: switch to xhtml, and use a random userdir while exporting, so no cached pic can be found. 2017-08-18 02:53:32 +02:00
Pavel Sanda
e8b324a984 oops, git is playing games with me. 2017-08-17 01:24:44 +02:00
Pavel Sanda
ca0813915c Push Tommaso's script for publishing mans. 2017-08-17 01:14:56 +02:00
Pavel Sanda
7f4e46440d Push Tommaso script for manuals generation. 2017-08-17 00:10:15 +02:00
Uwe Stöhr
a7c1496837 Win installer: updates for beta 1 2017-08-15 21:06:19 +02:00
Scott Kostyshak
b45be0ecf8 Update docs to 2.3.0beta1 format 2017-08-14 02:31:24 -04:00
Scott Kostyshak
fc81243ada Update the formats of lyxrc.dist.in to 22
In the end, no changes were needed. This was decided by prefs2prefs
for MacOSX and cygwin, and by manual inspection for Win32.
2017-08-14 02:02:57 -04:00
Scott Kostyshak
513f79ad30 Set pre-release version as beta1 2017-08-14 00:39:58 -04:00
Kornel Benko
9a42154107 Cmake export tests: Ignore missing glyphs also for doc/(fr|es)/UserGuide 2017-08-12 14:08:12 +02:00
Uwe Stöhr
1a6e10474c Win installer: check a package that LyX uses for instant preview 2017-08-05 20:26:25 +02:00