Commit Graph

36007 Commits

Author SHA1 Message Date
Uwe Stöhr
7d94afc4da partly Revert "fr/UserGuide: remove spurious language switch in an index inset."
Please fix at first the versions in branch since this is the working copy delivered with LyX.
Also please keep the fileformat unless you need to document a new feature that requires a new fileformat.
2016-09-08 00:52:45 +02:00
Günter Milde
dc378b523d ctests: More inversions
* Polyglossia + LuaTeX + \verb bug with Cyrillic and Greek
* PDF(LuaTeX) Intro.lyx (reports png without bounding box)
2016-09-07 23:27:16 +02:00
Günter Milde
ffd80caa18 ctests: one more languagenesting sample 2016-09-07 23:27:16 +02:00
Günter Milde
5fd56eb9ad fr/UserGuide: remove spurious language switch in an index inset.
This led to errors when compiling with polyglossia (and non-TeX fonts).
A minimal (currently non-compiling) test sample is kept in autotests/export/
and inverted in suspiciousTests.
2016-09-07 23:27:16 +02:00
Günter Milde
ac9643d9fd ctests: edit test sample for bug #10371 2016-09-07 23:27:15 +02:00
Scott Kostyshak
5a1cbf5cbf Fix compilation of attic/id_UserGuide.lyx
Change an ERT \bf{ to \textbf{.

Consistent with e.g. 0e49231b.
2016-09-07 14:49:15 -04:00
Scott Kostyshak
6e22893fd5 id_UserGuide: Update LyX format for next commit 2016-09-07 14:47:09 -04:00
Günter Milde
c74fbfbb68 ctests: "nonstandard" tests are now listed in unreliableTests
... under the sublabel "nonstandard".
2016-09-06 16:46:27 +02:00
Günter Milde
936fe7ace3 minor edit of development guide 2016-09-06 16:44:36 +02:00
Günter Milde
699cfea174 ctests: invert tests due to Polyglossia + LuaTeX + verb bug with Cyrillic 2016-09-06 16:43:41 +02:00
Juergen Spitzmueller
00f2166df8 Remove duplicate context menu item
Fixes: #10368
2016-09-06 13:15:55 +02:00
Uwe Stöhr
216fd2d786 installer: major third-party updates 2016-09-05 23:40:43 +02:00
Georg Baum
df8e0ed9e0 Add xlsx format
We do already have docx, but xlsx was missing. This is a separate format
because of the MIME type. nd because some users might need converters which
can only handle one format. Now the spreadsheet template does not hide the
fact anymore that it can deal with xlsx files as well.
2016-09-05 22:52:38 +02:00
Georg Baum
646d47ae93 Fix filter filter regex
Now the external material file dialog shows the file types defined in the
template again. Before this fix it did only show "All files (*)".
I don't know what the old syntax was supposed to do or whether it ever worked
with boost::regex, but with std::regex the new one is correct.
2016-09-05 22:49:59 +02:00
Jean-Marc Lasgouttes
72837fec5c Amend commit e194c9ce27
As noted in the log, this commit was a bit radical and needs some
adjustments (which was expected, actually).

Let InsetText do their own background drawing.

Fixes bug #10359.
2016-09-05 11:06:01 +02:00
Juergen Spitzmueller
b5c0694856 Amend 97b9e81cee
\@ifundefined is an If-Then-ELSE construct.
2016-09-04 17:44:47 +02:00
Uwe Stöhr
95bdeba21e French doc files: port last changes to master 2016-09-03 22:19:46 +02:00
Juergen Spitzmueller
0f1496ae28 Remove English traces in IPA inset that make XeTeX fail. 2016-09-03 16:57:43 +02:00
Scott Kostyshak
0c2f1310cb ctests: xy package has issue with newest LuaTeX
LuaTeX export of docs with xy package are now marked as having TeX
issues. Hopefully these will be fixed in a TL package update.
2016-09-02 21:21:36 -04:00
Scott Kostyshak
1a374a931b Exit with error if child exits with error (#10188)
Before, it could have been the case that

  lyx -e pdf2 file.lyx

had exit code 0 even though file.lyx includes a file that exits with
error. If compiled in the GUI a warning was given, but from the
command line exit code it would seem there was no problem. The exit
code for this case is now non-zero and the word "Warning" is now
removed from the message because it should be treated as an error.

An exception is thrown from InsetInclude and is caught in
Buffer::makeLaTeXFile() and added to the error list.

The (similar) use case at #8840 is also fixed by this commit.
2016-09-02 18:24:14 -04:00
Scott Kostyshak
7fd60406df ctests: ignore obsolete aastex.cls
aastex.cls is obsolete and replaced by aastex6.cls.

This is consistent with how we treat the obsolete latex8.sty.
2016-09-02 11:25:35 -04:00
Scott Kostyshak
c7de1a4e2b ctests: mark failing LyXHTML tests as "lyxbugs"
For more information, see #10355.
2016-09-01 23:27:11 -04:00
Scott Kostyshak
584d123bc7 ctests: uninvert three tests
These exports now succeed, and manual inspection of the output
confirms there are no obvious problem.
2016-09-01 22:56:11 -04:00
Scott Kostyshak
d1b0dba99f he/splash.lyx: mark \LaTeX{} insets as English
This makes sure they're output in the correct direction, consistent
with the previous commit (although this does not change the exit
code of the export).

For more details, see:
https://www.mail-archive.com/search?l=mid&q=20160828233923.guhveaqxdxh356nm%40steph
2016-09-01 17:39:14 -04:00
Scott Kostyshak
95afab4be7 he/splash.lyx: fix compilation
We need to mark the LyX inset as English to avoid "missing glyph"
errors.

For more details, see:
https://www.mail-archive.com/search?l=mid&q=20160828233923.guhveaqxdxh356nm%40steph
2016-09-01 17:38:59 -04:00
Scott Kostyshak
95ba824283 ctests: update tests to reflect lualatex fixes
europeCV and modernCV examples can now be exported to PDF using
LuaTeX. For the specific output that was fixed, look at the diff and
see the description in suspiciousTests that was removed by this
commit. The output was checked manually and appears fine. These
tests are thus "uninverted".

Exporting those examples to DVI with LuaTeX does not exit with
error, but the output drops characters with accents. Thus, these
tests are now marked with the "wrong_output" label. I reported this
issue on the LuaTeX mailing list at [1], but since DVI export is not
given high priority, I don't expect much action.

Note that these changes reflect an updated TeX Live 2016
installation.

[1]
https://www.mail-archive.com/search?l=mid&q=20160831134006.4fewxothddqfeyw4%40steph
2016-09-01 17:21:06 -04:00
Jean-Marc Lasgouttes
da30e38400 Remove unused 'glue' parameter
It was probably useful at some time, but not now.
2016-08-30 17:21:18 +02:00
Jean-Marc Lasgouttes
78ae499355 Remove unused struct members
Interestingly, cppcheck detected that they were not initialized (see
8a047a41), but not that they were unused.
2016-08-30 17:08:49 +02:00
Scott Kostyshak
03684ae05e Improve status check of LFUN_BUFFER_ZOOM_{OUT,IN}
buffer-zoom-out can actually zoom in (by giving a positive number as
the argument), so it should only be disabled at the minimum zoom
level if it is indeed zooming out.

Similarly, buffer-zoom-in can zoom out, so it should be disabled if
the user is at the minimum zoom and it is called to zoom out.

This commit amends 8884c404.
2016-08-30 10:25:45 -04:00
Kornel Benko
a9a45344b8 Cmake build: Add format V2.2 to export tests 2016-08-29 18:14:37 +02:00
Jean-Marc Lasgouttes
68d825fed8 Amend b583fb26e8
It failed in the case where a selection already existed (the anchor would be wrongly reset).
2016-08-29 12:03:33 +02:00
Scott Kostyshak
185e630875 Amend previous commit, 0e49231b
Thanks to Guillaume.
2016-08-28 20:14:24 -04:00
Scott Kostyshak
0e49231bbf Convert deprecated '\rm' to '\textrm' in examples
This change fixes the export of our FeynmanDiagrams.lyx example
files on the latest TeX Live 2016.

The IJMP(C|D).lyx examples compiled before the change but might as
well convert these instances of '\rm' also.

The changes were made with the help of the following command:

  find ./ -iregex .*lyx -exec sed -i 's/\\rm /\\textrm /g' {} \;

and the resulting diff was confirmed manually.

This commit is consistent with 3cecd4d3.
2016-08-28 19:40:37 -04:00
Guillaume Munch
4d99112056 Action.cpp: replace a reference with a shared_ptr
Replace the member reference to FuncRequest in Action.cpp with a
shared_ptr. Compared to copying the FuncRequest, the shared_ptr has two
advantages:

* Recreating the menu each time creates a lot of new actions, so we avoid a lot
  of copies.

* FuncRequest can remain forward-declared in Action.h.
2016-08-28 22:49:21 +01:00
Guillaume Munch
0779b3c36c Change "Format" into "Formats"
The plural form seems more appropriate and the tag [[output]] is added for
disambiguation (e.g. for the French translation).
2016-08-28 18:26:58 +01:00
Richard Heck
5018e1077b producesOutput() should not be redeclared as producesOutput(bool). 2016-08-28 00:04:02 -04:00
Guillaume Munch
76d0c6759f Trivial clean-up 2016-08-28 02:34:54 +01:00
Guillaume Munch
cb0a4c6639 Fix Unicode use in Format's prettyname
The field prettyname can accept Unicode and therefore must be parsed into a
docstring.

Little simplification of the code on the way.

* For other fields, either a validator should be set to prevent non-ascii input
  in the preferences, or they should be transformed into docstring too.
2016-08-28 01:30:53 +01:00
Guillaume Munch
efbec20320 Fix the compare_locale function by relying on Qt's (#9030) 2016-08-28 01:30:53 +01:00
Georg Baum
f69d11f97b Add more lib/symbols unicodemapping
There are still many math symbols in lib/symbols that lack a corresponding
entry in lib/unicodesymbols, although a clear mapping exists. This commit
adds some of them (not all yet). In the future we should probably move the
information from both files into one database.
2016-08-27 11:52:31 +02:00
Enrico Forestieri
e4770dd4f8 Update it.po 2016-08-26 19:05:04 +02:00
Scott Kostyshak
591e584b7d Add a wrong_output ctest for mixing inTitle #10347
As of 0b1cf133 we now warn in the GUI of this issue, but there is a
discussion about whether we should change our LaTeX output and allow
for the workflow of mixing inTitle layouts. For more information,
see #10347.
2016-08-26 11:39:33 -04:00
Kornel Benko
d7af793ca2 Update sk.po 2016-08-26 12:56:17 +02:00
Juergen Spitzmueller
80634b0d2f de.po 2016-08-26 12:49:41 +02:00
Juergen Spitzmueller
40d9c6ec48 Implement proper dialog titles in InsetParamsDialogs
Fixes: #10329
2016-08-26 11:35:12 +02:00
Juergen Spitzmueller
1720498f8d Fix \@ifundefined check for covexample(s)
Fixes: #10340
2016-08-26 10:45:15 +02:00
Jean-Marc Lasgouttes
2ad52918da Do not set layout for no-op paragraph break
When breaking paragraph in an empty top-level paragraph, nothing
happens on screen but yet there is an undo step because the layout is
reset to what it already was.

Avoid this case.

Fixes bug #10089.
2016-08-24 15:29:17 +02:00
Jean-Marc Lasgouttes
07c7dae367 Move correctly the end of proof marker when row is large
This was a regression from 2.1.x in LtR mode, and it never worked correctly in RtL mode.

Fixes bug #10344.
2016-08-23 17:45:21 +02:00
Jean-Marc Lasgouttes
b583fb26e8 Reset anchor before selecting with S-button1 2016-08-23 12:22:35 +02:00
Jean-Marc Lasgouttes
65b0e84b54 Let M-x give focus to minibuffer when it is already open 2016-08-22 18:20:09 +02:00