Georg Baum [Thu, 3 Dec 2015 19:56:51 +0000 (20:56 +0100)]
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.
Georg Baum [Thu, 3 Dec 2015 19:52:43 +0000 (20:52 +0100)]
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.
Georg Baum [Thu, 3 Dec 2015 19:25:06 +0000 (20:25 +0100)]
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.
Kornel Benko [Wed, 2 Dec 2015 12:28:16 +0000 (13:28 +0100)]
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
Scott Kostyshak [Sun, 22 Nov 2015 16:39:15 +0000 (11:39 -0500)]
Update previews when turned on in prefs (#9507)
Previews are now generated when previews are turned on in
preferences. This change ensures that when users activate previews
for the first time, they are not confused by no previews showing up
(a restart of LyX or a triggering of each individual preview would
be required).
There was a previously attempted fix for #9507 at 390ae054 which was
reverted at 358745d0 for performance reasons: it updated previews
after every preference change and updating previews is costly (even
if the cache signals there are no changes needed).
This implementation is consistent with what we do for updating the
system fonts in preferences.
Richard Heck [Mon, 30 Nov 2015 03:29:28 +0000 (22:29 -0500)]
Remove local layout from Additional.lyx and Development.lyx. It
was not actually used in the latter. In the former, convert the
MenuItem insets to Noun.
Kornel Benko [Sun, 29 Nov 2015 21:05:33 +0000 (22:05 +0100)]
Autotest: This file shows error if exported to dvi.
To omit the error, there are 2 possibilities
1.) Change \inputencoding to utf8-platex
or
2.) write some text in default language prior to the following
subchapter 1.2.2
Probably a candidate for language nesting
Georg Baum [Sun, 29 Nov 2015 17:04:20 +0000 (18:04 +0100)]
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
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.
Georg Baum [Sun, 29 Nov 2015 12:26:50 +0000 (13:26 +0100)]
Fix mixed DOS/UNIX line endings
These have been added by 36d7b40c, before we had always UNIX only.
poedit can read the mixed files just fine, but python polib (which is used
in po/lyx_pot.py) refuses to load files with mixed endings.
Georg Baum [Sun, 29 Nov 2015 12:16:46 +0000 (13:16 +0100)]
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.
Georg Baum [Sat, 28 Nov 2015 16:00:59 +0000 (17:00 +0100)]
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.