Commit Graph

3169 Commits

Author SHA1 Message Date
Kornel Benko
57e1320012 Cmake export tests: move spanish manuals tests for (xe|lua)latex and tex font to unreliableTests
Comment by Günter Milde:
Actually, *all* Spanish manuals either fail or have wrong output with
Unicode TeX engines and 8-bit fonts. The reason is known: a bug in Babel
that uses utf8 strings whenever Xe- or LuaTeX is detected.
2015-12-15 08:10:52 +01:00
Stephan Witt
95e600cc16 adjust dictionary deployment comment 2015-12-15 01:09:51 +01:00
Kornel Benko
6366b4a21b Cmake export tests: Disable inputencoding setting
It was used for the combination pdf4_texF, but since LyX should
nowadays set the correct encoding, this is not needed anymore.
2015-12-14 19:05:18 +01:00
Kornel Benko
2bd2ac1860 Cmake export tests: Lualatex does not like bahasa language 2015-12-14 18:56:00 +01:00
Kornel Benko
afaf28964a Cmake build: Map '\origin unavailable' to appropriate value on install
For example for lib/doc.de/xyzzy.lyx the entry is changed to
	\origin /systemlyxdir/doc/de/
2015-12-13 16:08:27 +01:00
Kornel Benko
3ed174cc03 Cmake export tests: Handle default output format 'pdf2' in manuals like 'default'
This is, because almost all manuals are now having pdf2 as default.
2015-12-13 12:31:43 +01:00
Kornel Benko
de4d43e609 Cmake export tests: Add indonesian attic to suspended too 2015-12-13 12:30:44 +01:00
Kornel Benko
3ac20d7689 Cmake export tests: Correct handling of Indonesian Userguide
It was moved to attic in 98d7d8ba61
2015-12-13 11:49:31 +01:00
Kornel Benko
5b5b1a4515 Cmake export tests: Handle attic files with now missing references to png graphics 2015-12-10 15:20:07 +01:00
Kornel Benko
a9764cf191 Cmake build: Initialize some variables before use. 2015-12-09 15:37:58 +01:00
Kornel Benko
d4da5e9391 Wrong regex 2015-12-08 18:29:12 +01:00
Günter Milde
dd5c3900ba seminar.sty works also with non-TeX fonts but requires Babel.
Always-Babel now set in the example document.

Adapted the autotest categorization:
* fails for some developers (why?)
* wrong output with pdflatex/LuaTeX and DVI (missing landscape slides).
2015-12-08 17:46:50 +01:00
Uwe Stöhr
11e12c787a build5.bat: explicitly set QT5 2015-12-08 01:40:48 +01:00
Uwe Stöhr
01e0292028 build5.bat: a script to compile with Qt5 on Windows
This script shows how i compile. If we figured out every corner cases with it it should become the standard build script for Windows
2015-12-08 01:23:54 +01:00
Kornel Benko
611c95bb79 Cmake export tests: Mark seminar dvi3 exports as creating wrong output 2015-12-07 19:32:07 +01:00
Günter Milde
f35861bd75 ctest automatic tests: small correcions to pattern files and documenation. 2015-12-06 21:21:46 +01:00
Georg Baum
691675ee0a Make languagenesting1.lyx less TeX dependent
The previous version did only fail because I did not have latin support for
polyglossia in my TeX installation, the LyX export was fine.
2015-12-06 20:48:48 +01:00
Georg Baum
a15aafa2a1 Use std::regex automatically in C++11 mode
This is consistent with autotools. The only exception is MSVC, since we do not
know yet whether it works.
2015-12-06 20:04:21 +01:00
Georg Baum
6a165ecba2 This languagenesting1.lyx fails with 2.1
Add some stuff to languagenesting1.lyx that makes it fail with LyX 2.1 (and
2.2 as well)
2015-12-06 18:53:01 +01:00
Georg Baum
9aa43290db Add option to skip null translations
he.po in branch contains a number of translations where the translation is
identical with the original text (e.g. for encoding names) which look suspicios
to me. Therefore I did not want to merge these and leave the decision to the
translator. No information is lost, since these "translations" can easily be
recreated from the original texts by copy-paste.
2015-12-06 11:27:48 +01:00
Uwe Stöhr
62fa508867 installer: use Qt 5 for LyX 2.2.x releases 2015-12-06 05:14:45 +01:00
Kornel Benko
4dd77996a1 Cmake export tests: Allow deeper label nesting.
Previously all labels got the depth '7' while processing 'suspiciousTestss'.
The depth is used to sort how our labels are used to build a test-label.

Say a test gets label a, b, and c, with depth 3, 8 and 2.
The constructed test-label will be "b🅰️c"
For new (to be implemented) 'reason-labels' it is more convenient to assign them higher values.
2015-12-05 19:37:17 +01:00
Kornel Benko
4ad2215060 Cmake export tests: Tutorial.lyx now compilable
suspiciousTests: Remove Tutorial from the regex
suspendedTests: Explicit list of languages needed
ignoredTests: Language-string is separated from other strings only by '/'. '|', '_', '(' and ')'
2015-12-04 19:33:39 +01:00
Kornel Benko
0008e36ff4 Typo 2015-12-04 19:32:09 +01:00
Georg Baum
a6b5c72820 Add option to overwrite existing translations
This is useful if you know that the translation of a particular language has
not been updated at all in master, but the stable version has been worked on.
2015-12-03 21:02:47 +01:00
Georg Baum
be7df4a13c Handle escaped characters correctly
Some characters (like ") are escaped in .po files. These are handled correctly
by polib, but the self written parser did not yet take them into account.
2015-12-03 20:56:51 +01:00
Georg Baum
2041920ce0 Parse obsolete entries correctly
We need to remove the #~ prefix of each line, since it is re-added after
wrapping, and because otherwise the comparison with entries from polib
does not work.
2015-12-03 20:52:43 +01:00
Georg Baum
99b3928e6f Use a proper command line parser
Now it is possible to specify the target directory, and the command line syntax
follows the standard rules: It uses options for optional arguments, and one
positional argument for the single required argument.
2015-12-03 20:25:06 +01:00
Kornel Benko
77dbfb0042 Cmake export tests: Some tests previously inverted pass now. 2015-12-03 14:05:20 +01:00
Kornel Benko
548a7ac364 Cmake tests: Rename label 'reverted' to 'inverted'. 2015-12-03 00:23:07 +01:00
Kornel Benko
cf3156d22d Cmake export tests: Create concatenated labels in the form 'export:reverted:examples:chemgreek' 2015-12-02 22:18:43 +01:00
Kornel Benko
e39025797e Cmake export tests: Remove label 'reverted' from suspended tests.
LyXMacros.cmake: Overseen the macro 'setmarkedtestlabel()' which added it automatically
  if the test was to invert the test result.
ExportTests.cmake: Correct label handling
2015-12-02 13:28:16 +01:00
Uwe Stöhr
fe450c850c installer: add up to date check for inkscape
also fine-tune the conversion of wmf/emf images
2015-12-02 00:47:05 +01:00
Uwe Stöhr
3fc47f2a5c build.bat: add -DLYX_ENABLE_EXPORT_TESTS=ON and add a note about Ninja 2015-12-02 00:42:40 +01:00
Georg Baum
0aa3e78f5c Explain how to use parallel compilation in MSVC 2015-12-01 20:55:05 +01:00
Kornel Benko
037e9051f7 Cmake export tests: Remove assignement doing nothing 2015-11-30 13:12:30 +01:00
Kornel Benko
8f225ebdea Cmake autotests: Corrected suspiciousTests for new testfile 2015-11-30 00:42:48 +01:00
Georg Baum
124be71cb9 Fix merging of obsolete entries
Thanks Kornel for spotting this.
2015-11-29 20:16:59 +01:00
Georg Baum
4db3169fbc Add utility to merge po files
Surprisingly I could not find a tool that merges updated translations into a
.po file in a way that

a) merges only missing translations (does not overwrite existing ones)
b) produces a minimal diff so that there is a chance to manually check the result

Therefore I wrote my own. You can use it for a single language

python development/tools/mergepo.py ../lyx-2.1/po fr

or for all languages:

python development/tools/mergepo.py ../lyx-2.1/po

The python code is not the most elegant one, but it works. What is missing is
a command line switch to merge changed translations as well. This is useful
for languages that have not yet received any translation update in the
development branch, only in the stable branch: In this case we know that
translations that are not identical in both branches should be overtaken from
the stabkle one.
2015-11-29 18:14:06 +01:00
Kornel Benko
af18890ed6 Cmake export tests: Use build dir as source for _all_ latex output formats 2015-11-29 16:11:10 +01:00
Kornel Benko
2b9a9d97a6 Cmake lyx2lyx tests: Ignore warning about "no conversion needed" 2015-11-29 15:26:56 +01:00
Georg Baum
63bb24d385 Convert to 2.2 format and use TeX fonts
This works around a limitation of the test machinery, which never switches
TeX fonts on for format that need that, it only switches TeX fonts off for
formats needing it.
2015-11-29 13:16:46 +01:00
Georg Baum
2f3f82e75b Add test for language nesting regression
The new test shows a language nesting regression: With LyX 2.1 it exports fine
in all formats, with 2.2 it fails for dvi, pdf2 and pdf3.
2015-11-29 11:52:34 +01:00
Kornel Benko
5d51ec20b5 Cmake export tests: More refactoring. 2015-11-29 02:18:07 +01:00
Uwe Stöhr
24b37e96de installer: fix a typo 2015-11-28 20:19:49 +01:00
Georg Baum
1ded0d77ad Fix broken merge
git should have refused to push my commit which changed a file that was
deleted a minute ago, but instead it decided to re-add the file.
2015-11-28 19:25:32 +01:00
Kornel Benko
85c4cd2714 Cmake export tests: adapt 'suspiciousTests to changed file 'revertedTests' 2015-11-28 19:10:47 +01:00
Kornel Benko
a07f9b7119 Cmake export tests: Ignore spaces after expressions in .*Tests files 2015-11-28 19:08:19 +01:00
Georg Baum
ad0643f4b5 Fix off by one error
Looks like I forgot to test this case without quotes, but fortunately the new
export test found it.
2015-11-28 18:25:33 +01:00
Kornel Benko
56ecd464f3 Cmake export tests: Renamed file revertedTests to suspendedTests
Also some refactoring to handle the labes.
2015-11-28 18:23:29 +01:00
Georg Baum
fe5f88ddf9 Add the first dedicated export test
Thanks to Kornel we do now have the infrastructure for running dedicated
export tests. This is the first one, showing a language nesting bug which is
already in 2.1. It is inverted for now, but this will hopefully change soon.
2015-11-28 17:00:59 +01:00
Kornel Benko
df22dfdf6b Cmake export tests: Correct some mistakes in commit 4138ab7 2015-11-28 09:30:49 +01:00
Uwe Stöhr
764cc2be1f installer: remove residues of metafile2eps 2015-11-28 02:04:57 +01:00
Kornel Benko
4138ab7916 Cmake export tests: Implemented multiple sublabels for each test. 2015-11-27 15:12:47 +01:00
Scott Kostyshak
2f4233721d Update docs to latest format for 2.2.0alpha2 2015-11-27 03:23:22 -05:00
Scott Kostyshak
09bdea3c02 updatedocs.py: remove an extra parenthesis 2015-11-27 02:37:27 -05:00
Uwe Stöhr
2bd2aa2781 installer: install Qt plugin DLLs correctly
- also remove support metafile2eps because:
  - it is outdated
  - unnecessary third-party program since ImageMagick can do this too
  - needs unnecessarily installation time
2015-11-27 00:39:38 +01:00
Kornel Benko
857748c9e2 Cmake export tests: move some beamer-conference-ornate-20min tests to nonstandard set 2015-11-26 16:07:10 +01:00
Kornel Benko
f3989f1e3a Cmake url tests: Handle some special chars in urls. 2015-11-26 14:31:15 +01:00
Kornel Benko
21c265addb Cmake: ENCODING parameter in file(STRINGS ...) only valid for cmake version >= 3.1 2015-11-26 12:08:13 +01:00
Uwe Stöhr
14538a3186 installer: include DLLs for SVG
It seems that the QT file qsvgicon4.dll is needed for svg icons in lyX. QtXml might be necessary as well
2015-11-26 01:11:26 +01:00
Kornel Benko
72812a2054 Cmake export tests: Removed unneded parameter 2015-11-25 10:19:49 +01:00
Uwe Stöhr
bfc749eb23 stdlayouts.inc: support for verbatim*
fileformat change
2015-11-24 23:56:26 +01:00
Kornel Benko
c178c8ab32 Cmake export tests: Check for reused labels included
Labels defined in .*Tests should be unique. Now at least a warning is
produced.
2015-11-24 21:23:38 +01:00
Kornel Benko
12faf2b161 Cmake export tests: Added sublabel handling also to revertedTests
As an example the inserted label 'chemgreek' shows also
how to reset the sublabels.
2015-11-24 20:18:08 +01:00
Kornel Benko
05b517e614 Cmake export tests: Renamed nonstandardTests to unreliableTests
and introduce sublabels

Sublabels section in *.Tests starts with 'Sublabel: name'
and is valid until start of a new sublabel.
'name' contains only ascii characters [a-z]+
2015-11-24 18:42:36 +01:00
Kornel Benko
270df24246 Typo 2015-11-23 13:41:29 +01:00
Kornel Benko
2c3e49cb21 Cmake export tests: Added directory "autotests/export" 2015-11-23 13:12:53 +01:00
Kornel Benko
c0290039ad Cmake url tests: Added summary files.
The files will be locatet in the build-directory "Testing/Temporary" as
  LastFailedAccessibleURLS.log
  LastFailedInaccessibleURLS.log
  LastFailedKnownInvalidURLS.log
2015-11-23 13:07:53 +01:00
Stephan Witt
576f535f0b update short installation guide for Mac OS X 2015-11-22 17:01:25 +01:00
Kornel Benko
76e0568697 Cmake export tests: Added development/mathmacros to the list 2015-11-22 15:10:46 +01:00
Kornel Benko
5a9ddb31fd Cmake export tests: Created sub-labels manuals, examples, templates, mathmacros, autotests.
To test all export use 'ctest -L export'. This is unchanged.
The following lists directories and assigned sub-label
 lib/doc: manuals
 lib/templates: templates
 lib/examples: examples
 development/mathmacro: mathmacros
 autotests: autotests
2015-11-22 13:44:27 +01:00
Kornel Benko
98746f3bda Cmake export tests: Move some tests around.
Some tests behave different on different systems.
Probably missing font, or tex class ...
2015-11-21 19:37:41 +01:00
Kornel Benko
6cb396e79d Cmake export tests: Ignoring some japanese tests.
Compiling Japanese tex files with anything other than platex is
ATM not successful.
2015-11-21 14:20:54 +01:00
Stephan Witt
72954f532b adjust qt configure options for 5.5.1, avoid -arch deprecated warning for qt5 2015-11-20 20:51:47 +01:00
Kornel Benko
c818fea3af Cmake export tests: Finished categorizing tests.
Now
'ctest -L export' should be without errors
If there _are_ errors, the appropriate test should go to nonstandardTests

'ctest -L reverted' should be without errors
If there _are_ errors, the appropriate test should go to nonstandardTests

'ctest -L nonstandard'
Tests here may, or may not fail. Depends of installed tex extensions
2015-11-20 10:20:10 +01:00
Kornel Benko
ee72677fde Cmake export tests: List of inverted tests is expanding
Comments, why a test is moved into the set of inverted are, as usual, from Günter Milde.
2015-11-19 02:54:25 +01:00
Uwe Stöhr
029cd69df7 document fileformat change 2015-11-18 01:16:39 +01:00
Kornel Benko
3d766ad241 Cmake export tests: More tests to be inverted, suspended or made non-standard
All comments in revertedTests comes from Günter Milde
Non standard test is new. It should collect all tests
which may not work because of some missing non-standard
tex package or some exotic system font.
2015-11-17 18:22:45 +01:00
Uwe Stöhr
a577944b80 installer: changelog for latest release 2015-11-17 00:23:23 +01:00
Kornel Benko
b835c454ec Cmake export tests: More tests to be reverted.
Again, thanks to Günter Milde.
ATM, the latex comments in user preamble are removed before export test.
2015-11-16 18:47:34 +01:00
Kornel Benko
b98dd4ecc1 Cmake export tests: Some more corrected exports.
Thanks to Günter Milde.
2015-11-16 11:51:54 +01:00
Uwe Stöhr
1f0488bf36 installer: support texindy
texindy requires some more Perl and unfortunately the path tho the perl.exe in Windows' PATh environment variable.
The new EnvVarUpdate.nsh contains a function to modify Windows environment variables easily.
2015-11-16 04:04:11 +01:00
Georg Baum
3ab58d155c Add experimental mode to save files with LyX
Thanks Scott for the idea to modify the document. This seems to work, but I am
not surer whether it is safe in all cases, so better warn if this is used.
2015-11-15 17:23:42 +01:00
Georg Baum
1da21bec71 Reduce whitespace differences to LyX
LyX writes an empty line between \end_layout and \begin_layout, so we should
do so as well.
2015-11-15 17:23:42 +01:00
Scott Kostyshak
1602415b98 Update examples/templates to 2.2.0alpha1 format
Also MacOSX ReadMe files. Note that a few lib/doc files are
also "updated" because trailing spaces are removed, but their file
formats are the same because they were recently updated at 83672113.

I did "git checkout LFUNs.lyx" because this file is generated
automatically and has a special header.
2015-11-13 13:19:23 -05:00
Scott Kostyshak
08d3456a71 updatedocs.py now updates templates and examples
development/MacOSX/ReadMe files are also updated.
2015-11-13 13:19:23 -05:00
Kornel Benko
32b35fe121 Cmake export tests: Don't select inputencoding, this is due to 0eb9477 not needed.
This sort of reverts 6dd98a8.
2015-11-12 21:42:43 +01:00
Kornel Benko
30714a9708 Cmake export tests: ctest_export/doc/el/Intro_pdf5_systemF now compiles 2015-11-12 21:30:16 +01:00
Georg Baum
392f63fa0f Update LFUNs.lyx to current format
gen_lfuns.py does now produce the current file format, and and LFUNs.lyx was
re-created with the updated script.
There is one difference if you compare this version of LFUNs.lyx with the old
version updated by lyx2lyx: All occurences of LyX, TeX etc. in the lfun
descriptions are no longer output as logos. I do consider this as a feature,
since the old version did also output the TeX part of BibTeX as a logo, as well
as places where the names were part of some syntax, e.g. lyx::LyXRC::LyXRCTags.
2015-11-11 21:48:20 +01:00
Georg Baum
1fc3d051b1 Set \origin correctly when upgrading docs
lyx2lyx did not yet know about /systemlyxdir/ and set \origin to the path
where my git tree lives instead. This path is not usable except on my machine,
so better write something more usable instead.
This is a special command line switch of lyx2lyx, so it does not interfere
with normal usage. I did not try to deduce the systemlyxdir from lyx2lyx to
be on the safe side.
2015-11-11 21:35:12 +01:00
Georg Baum
0b222f1b11 Exclude old files in attic 2015-11-11 20:50:40 +01:00
Georg Baum
051ebbcf40 Add utility to update documentation files
updatedocs.py is a small script that updates all documentation files to the
current format.
2015-11-11 20:41:28 +01:00
Kornel Benko
6dd98a8245 Cmake export tests: Try to use language dependent inputencoding.
This enables some more pdf5_texF und dvi3_texF tests to succeed.
2015-11-10 19:42:43 +01:00
Kornel Benko
c4ae71ceb2 Cmake export tests: Set inputencoding to ascii if test with xetex and tex fonts. 2015-11-10 13:01:49 +01:00
Kornel Benko
b71991f0cc Cmake export tests: Adapt the test machinery to the commit 2fc430d.
Handle this this new sets of font selections properly.
2015-11-09 12:20:57 +01:00
Georg Baum
2fc430d5ae Store both sets of font selections
This is one part of bug 9744: If you toggle between TeX fonts and non-TeX
fonts, the settings of the other choice are no longer thrown away, but stored
and re-activated if you switch back. Most parts of the patch are purely
mechanical (duplicating some BufferParams members), the only non-mechanical
change is in the GUI logic.
2015-11-09 07:36:42 +01:00
Scott Kostyshak
3978fabaad Update the formats of lyxrc.dist.in to 19
In the end, no changes were needed. This was decided by prefs2prefs
for MacOSX and cygwin and by manual inspection for Win32.
2015-11-07 22:45:40 -05:00
Scott Kostyshak
c2064bb955 Add the format line for Mac's lyxrc.dist.in
The file was updated to format 14 in fc22ba16 but the format line
was missing. A missing format line is interpreted as format 0, I
believe, which could lead to incorrect conversion to later formats.
2015-11-07 22:44:47 -05:00
Kornel Benko
ca0985baa6 Cmake export tests: Enable test hu/Tutorial_pdf5_systemF 2015-11-05 11:27:32 +01:00