Guillaume Munch [Sun, 20 Dec 2015 16:37:29 +0000 (16:37 +0000)]
Add \save_transient_properties parameter (#9841)
Increment LyX format to 504.
With this new parameter, the user can indicate that some other parameters that
are frequently switched must not be recorded in the file (as if they were a
setting specific to the user or transient, rather than a document setting). This
will play nicer with version control systems.
See the discussion, e.g.:
http://thread.gmane.org/gmane.editors.lyx.devel/157824/focus=157993 (third
solution mentioned)
TODO:
* The interface remains to be set up. We cannot change this setting from LyX
for now.
* If save_transient_properties is false, we should read the user setting as a
per-user-per-document (session) setting (e.g. like the cursor position).
* Once the above is done, we can treat \justification the same way (but it would
be even better if \justification was moved to lyxrc).
Georg Baum [Sun, 10 Jan 2016 18:46:01 +0000 (19:46 +0100)]
Do not apply \origin at existing files
The current behaviour of the \origin parameter replaces relative file names
with the absolute original names if a document has been moved even if the
files have been moved as well. This behaviour is annoying e.g. for editing the
LyX docs in a git checkout.
Now file names are only replaced if the referenced file sdo not exist.
Stephan Witt [Sun, 10 Jan 2016 16:59:42 +0000 (17:59 +0100)]
Call lyx::next and lyx::prev explicitely. In case libc++ provides
std::next even when not in C++11 mode this is necessary. E.g. with
clang from Xcode7 on Mac OS X.
Stephan Witt [Sat, 9 Jan 2016 13:31:36 +0000 (14:31 +0100)]
remove unused minizip include; avoid putting zlib include dir before others, this causes use of external boost headers if they are at the same location
Günter Milde [Sat, 9 Jan 2016 14:51:25 +0000 (15:51 +0100)]
Swap preference of PDF->Postscript converters.
According to http://stefaanlippens.net/pdf2ps_vs_pdftops
pdftops is better than pdf2ps (which transforms fonts into bitmaps which
results in larger files, non scalability and longer conversion times).
(tip by Georg Baum, http://permalink.gmane.org/gmane.editors.lyx.general/85973)
Günter Milde [Fri, 8 Jan 2016 21:51:58 +0000 (22:51 +0100)]
Use polyglossia also with DVI (LuaTeX).
Simplify the logic for language package selection and make it more consistent:
Use polyglossia with non-TeX fonts (system fonts/Unicode fonts) for all
export flavours (XeTeX, LuaTeX, DVI-LuaTeX), if the language package setting
is "auto" and there is no language not supported by Babel and no package
providing Babel.
This solves some Babel-related autotest cases and leads to some new failures
due to the polyglossia language nesting problem.
Georg Baum [Fri, 8 Jan 2016 20:06:24 +0000 (21:06 +0100)]
Improve \AA and \aa tex2lyx import
The lib/unicodesymbols part is based on work by Günter Milde:
Both, \r{A} and \AA (rsp. \r{a} and \aa) are equivalent standard LICR macros
for Aring/aring as well as the deprecated "angstrom sign" character (212B).
However, with \AA for 212B and \r{A} for 00C5, tex2lyx converts \AA to the
deprecated "angstrom sign" which is missing in many fonts including the
Unicode version of Latin Modern.
I added the normalize_c() calls so that tex2lyx prefers the precomposed forms
(these are better editable in LyX) and the deprecated flag.
Günter Milde [Thu, 7 Jan 2016 17:10:22 +0000 (18:10 +0100)]
ctests: address some test failures.
* missing characters in linguistics example with system fonts
* language nesting problem in fr/linguistics example
* 110f505b63ea36bba solved one failure (Basque example file)
Georg Baum [Wed, 6 Jan 2016 21:34:12 +0000 (22:34 +0100)]
Add symbol tests for A WITH RING ABOVE
The conversion is not completely correct yet, but adding the test before the
fix has the advantage that the fix can easily be documented by changing the
test reference.
Günter Milde [Tue, 5 Jan 2016 16:02:44 +0000 (17:02 +0100)]
ctests: hebrew PDF (LuaTeX) works.
Works with system-fonts due to font substitution in the test-script.
TODO: set system fonts that work in the lyx source(s) to allow compilation
"by hand".
Richard Heck [Tue, 5 Jan 2016 14:52:18 +0000 (09:52 -0500)]
Rewrite the BufferList::releaseChild method so that it only checks
whether a given child Buffer is also a child of some other parent.
Then do the releasing or resetting where this method is called.
There should be no change of behavior with this patch.
Improve the test whether cursor has moved in Cursor::posVisLeft. The code for posVisRight had already been fixed for #5764 at 0730c923, but this replaces both tests by the proper == operator.
This causes build problems with automake < 1.14 because two files have the same name. This only works well when using subdir-objects, which we only do after 1.14.
We do not want to build libiconv on target which support autotools anyway, but rely on a built-in one.
Kornel Benko [Thu, 31 Dec 2015 14:05:33 +0000 (15:05 +0100)]
Cmake export tests: these cases will probably not be corrected in near future
testcases_speed_lyx21 added to suspiciousTests
Handling unknown body token: `\begin_manifest'at line ...
Literate_lyx16 and noweb2lyx_lyx16 added to ignoredTests
Plenty of warnings (~ 390)
Georg Baum [Thu, 31 Dec 2015 12:26:46 +0000 (13:26 +0100)]
Fix line endings
The default behaviour of git for text files is to store unix line endings in
the repository, and to convert to native line endings in the local workspace.
This plays well with the LyX behaviour of storing files in native line endings.
Unfortunately it may break if files are sent around by email and submitted on
a different OS than the one they were last saved, and this did probably happen
in 6b0632eea.
Günter Milde [Wed, 30 Dec 2015 07:41:40 +0000 (08:41 +0100)]
Review and sort inverted autotests. Next lot.
New sublabels LyXBug, ERT.
Renamed sublabel TeXLimit to TeXissue.
More sorting and unification of regular expressions.
Removing double entries.
Fixes for some expressions (eu_UserGuide_pdf, examples/ja/(knitr|lilypond|sweave))
Kornel Benko [Tue, 29 Dec 2015 12:23:08 +0000 (13:23 +0100)]
Cmake tests: Simplify test logic for exporting to formats lyx[0-9][0-9]x
Since the stop condition is that the last two consecutive created
files are identical, we do not need to check the last file.
Also checking for load of the created files is not needed, because
exporting the previous file implicitly loads too.
Kornel Benko [Mon, 28 Dec 2015 05:00:10 +0000 (06:00 +0100)]
Cmake lyx2lyx tests: Use a loop to execute roundtrips
Exporting to some previous lyx format:
Inside the loop
Stop at export with errors/warnings
Stop if exported file not loadable
Stop if exported file identical to previous exported file (OK case)
This is done through creating MD5SUM