Commit Graph

35934 Commits

Author SHA1 Message Date
Enrico Forestieri
3508c7bc8a Quote filenames used for forward-search with SumatraPDF
Single quotes are special to our parser and must be either escaped or
quoted if they are part of a filename, otherwise they are stripped out.

Fixes #10342.
2016-10-27 04:16:04 +02:00
Enrico Forestieri
f8d3a8860b In mathed, require xcolor instead of color when appropriate
Fixes bug #10417.
2016-10-27 03:18:29 +02:00
Guillaume Munch
14745174ec status.22x 2016-10-26 18:38:24 +02:00
Jean-Marc Lasgouttes
ca2379d98a Forgot this. 2016-10-26 16:20:02 +02:00
Jean-Marc Lasgouttes
24648404b3 Work around issues with Qt5 and Arabic text
This fixes two particular problems

* with Qt5, it seems that QFontMetrics::width does not return the
  correct value for some Arabic text; this patch uses QTextLayout
  instead to compute a string width

* Likewise, the undocumented layout flags TextForceRightToLeft and
  TextForceLeftToRight do not work with Arabic text; this patch uses
  unicode override characters instead.

It might be that the two issues are related. In any case, they do not
happen with latin text where right-to-left direction is enforced. And
they do not happen with Qt4.

Additionally, remove some dead code in GuiFontMetrics::pos2x().

Fixes bug #10436.

(cherry picked from commit e832d2e90f)
2016-10-26 16:17:18 +02:00
Jean-Marc Lasgouttes
10b8421ed6 Remove unused methods in anononymous namespace
These have been flagged by gcc 6.
(cherry picked from commit 4065f596ad)
2016-10-26 15:15:54 +02:00
Jean-Marc Lasgouttes
d03a07b93a Fix compiler warning from clang 3.9
(cherry picked from commit fbba865d28)
2016-10-26 15:14:38 +02:00
Juergen Spitzmueller
9172cf56a5 forgot de.gmo 2016-10-26 12:25:38 +02:00
Juergen Spitzmueller
5befa52b50 de.po 2016-10-26 12:22:14 +02:00
Jean-Marc Lasgouttes
1d4d07b66e When selecting special logos, set their color correctly
Adapted from 860accd01f.
2016-10-26 11:19:49 +02:00
Jean-Marc Lasgouttes
3f8289e7b5 Forgot this. 2016-10-26 10:58:52 +02:00
Uwe Stöhr
cc214a0e16 Arabic Shortcuts.lyx: new translation by Hatim 2016-10-25 23:35:14 +02:00
Enrico Forestieri
4ad8be330e Show on screen font changes for text-in-math 2016-10-25 20:24:26 +02:00
Guillaume Munch
cdc75e872a Revert menu name "Source Pane"
Such a change should not happen in stable. Introduced at a36706c3ff.
2016-10-25 19:33:02 +02:00
Uwe Stöhr
c8f7c316f2 Win installer: more translations by Hatim 2016-10-25 01:22:18 +02:00
Günter Milde
ded70f24f6 Fix #10394 Do not error on missing characters in "nullfont".
Add an exception to the conversion of "missing character" warnings into errors.

The PGF package deliberately uses the dummy font "nullfont" to suppress output.
Therefore, warnings about missing characters in "nullfont" are really only warnings.

Also updated the comment: "Missing character" warnigns are especially widespread
in XeTeX/LuaTeX but can also happen with "classical" 8-bit TeX.

Feel free to port this to branch.
2016-10-23 17:16:26 +02:00
Uwe Stöhr
0e4b459b08 Win installer: correct Arabic translation by Hatim 2016-10-23 16:27:37 +02:00
Juergen Spitzmueller
d7017e676b de.po 2016-10-23 08:49:13 +02:00
Juergen Spitzmueller
2dfc12b254 Improve bibliography info (general)
Consider all thesis types.
2016-10-23 08:15:04 +02:00
Juergen Spitzmueller
9974d15a74 Improve bibliography info (general), part II
Consider collection and proceedings
2016-10-23 08:12:53 +02:00
Juergen Spitzmueller
5b2f5d056a Amend 2c4673af58
Also consider xrefs in crossref'ed entries.
2016-10-23 08:12:34 +02:00
Juergen Spitzmueller
7ace3d4f20 Improve info display for biblatex databases, part IV
Consider biblatex's new field names: location (address),
journaltitle (journal), institution (school).

Biblatex provides alias for the legacy bibtex field names. Hence check
for the new names only if the legacy names are not used.
2016-10-23 08:12:15 +02:00
Juergen Spitzmueller
95f7545823 Improve info display for biblatex databases, part III
When resolving biblatex's xdata references, consider that xdata fields
can contain a comma-separated list of keys, not just a single key like
crossref.
2016-10-23 08:11:53 +02:00
Juergen Spitzmueller
0f21c5caf6 Regex fix for endyear
As of biblatex 3.5, years and endyears can be negative (BCE).
2016-10-23 08:11:30 +02:00
Juergen Spitzmueller
a887eb6300 Improve info display for biblatex databases, part II
In addition to the classic crossref, biblatex introduces xdata
references in order to source-out common data of entries. Entries
that have "xdata = {somekey}" just inherit all fields from the
respective @xdata entry, if the field is not already defined in
the entry itself (just like crossref, with the exception that @xdata
entries themselves are _never_ output on their own). @xdata entries can
themselves inherit to other @xdata entries (ad infinitum). So you can,
for instance, setup an xdata entry for a book series with series name
that inherits an xdata entry with information of the publisher
(publisher, address). Any book of that series would just need to refer
to the series xdata and add the number.

BiblioInfo now checks, in addition to crossrefs, for such xdata
references and inherits missing fields.

Nte that biblatex also introduces an "xref" field as an alternative to
crossref. We must not care about that, since the point of xref is that
it does not inherit fields from the target (just cites that one if a
given number of refs to it exist)
2016-10-23 08:11:14 +02:00
Juergen Spitzmueller
e7e0472742 Improve info display for biblatex databases
If an entry does not have a year field, check for a date field
(the common type in biblatex databases) and extract the year(s).

Candidate for branch.
2016-10-23 08:10:37 +02:00
Enrico Forestieri
1610573329 Update it.po 2016-10-22 22:53:18 +02:00
Guillaume Munch
190e88e148 status.22x 2016-10-22 20:07:42 +02:00
Guillaume Munch
5e447d133e Better error message when try to bind a Hidden LFUN
(cherry picked from commit 1f2d7f4db9)
2016-10-22 20:07:42 +02:00
Guillaume Munch
bf588abfbd Prioritize the shortcuts from the work areas
* Fix bug #10261 : KDE smartly adds conflicting accelerators.

* Prevent bugs like #9495 in the future.

Issues (non-regression):

* It does not appear possible to prevent Ubuntu's Unity from grabbing the
  accelerators for the menus. For instance Alt+A still opens _Affichage in the
  French localization.

(cherry picked from commit eb8c5905f6)
2016-10-22 20:07:42 +02:00
Guillaume Munch
fe960404fc amend b1ffe77535 2016-10-22 20:07:42 +02:00
Guillaume Munch
8d335f813f status.22x 2016-10-22 20:07:42 +02:00
Guillaume Munch
a36706c3ff Better title for ViewSource
The title is changed to "LaTeX (pdflatex) Preview", etc. depending on the
format. The actual default format is computed.

The menu name "Source Pane" is replaced by "Code Preview Pane" to better reflect
its purpose.

(cherry-picked from ca58674267)
2016-10-22 20:07:42 +02:00
Guillaume Munch
ef7e344318 Change "Output" into "Formats"
This reverts commit 030f4c6d1e.

The plural form seems more appropriate and the tag [[output]] is added for
disambiguation (e.g. for the French translation).
2016-10-22 20:07:41 +02:00
Richard Heck
60bef140b5 Whitespace
(was: "Status and configure for 2.2.3." form 2.2.3-staging

It became empty after rebasing 2.2.3-staging onto 2.2.3.)
2016-10-22 20:06:35 +02:00
Juergen Spitzmueller
37d30288af Fix LaTeX output of fixed-width cells with decimal separator
This follows Uwe's suggestions (and discharges my own).

The result is not ideal, but there is currently no ideal solution.

Fixes: #9568
2016-10-22 19:27:53 +02:00
Juergen Spitzmueller
0be77e2eb2 Implement wrapping in next-change (#10388). 2016-10-22 19:25:07 +02:00
Juergen Spitzmueller
5c4fa40849 Move wrap check for simple search/replace to lyxfind
This gets rid of some dirty dispatch tricks and fixes wrap-around
on replace and in the spellchecker

Fixes: #10378
2016-10-22 19:20:26 +02:00
Jean-Marc Lasgouttes
447254eb59 Update boost to version 1.62. 2016-10-22 16:28:52 +02:00
Uwe Stöhr
e178eb864a Merge branch '2.2.x' of git.lyx.org:lyx into 2.2.x 2016-10-22 01:00:23 +02:00
Uwe Stöhr
67cbf179b4 UserGuide.lyx: deny a change
this type of description is used all over the place in the LyX docs
2016-10-22 01:00:11 +02:00
Kornel Benko
769494e093 Update sk.po 2016-10-22 00:57:48 +02:00
Juergen Spitzmueller
980371093e de.po 2016-10-21 22:11:11 +02:00
Juergen Spitzmueller
f23924e824 Refs dialog redesign. 2016-10-21 22:05:54 +02:00
Juergen Spitzmueller
54248a6e98 Citation dialog redesign 2016-10-21 22:03:19 +02:00
Juergen Spitzmueller
98eeaceb5e Fix label display in linguistic examples 2016-10-21 19:20:23 +02:00
Uwe Stöhr
9b25f19aa7 French splash.lyx: restore \origin tag 2016-10-20 22:35:59 +02:00
Jean-Marc Lasgouttes
4fa54014d7 When breaking an empty paragraph reduces depth, set layout too
This requires an adaptation of the Separator inset insertion code,
which has been duly provided by Enrico.
(cherry picked from commit b162bd6d2b)
2016-10-20 14:50:34 +02:00
Uwe Stöhr
b040985a2b sv.po: updates from Jim 2016-10-20 01:01:13 +02:00
Jean-Marc Lasgouttes
4c724a6072 Do some caching of window title and related UI
This should avoid performance problems related to the window update machinery.
Moreover this fixes a crash introduced by e4998f21 when closing a file.

Note that GuiWorkArea::Private already had a read_only_ member, but it
was unused.

Also rename LyXVC::vcname() to LyXVC::vcstatus() since it now contains
directly the UI string to be shown.

(cherry picked from commit 6cb05ce8bb)
(cherry picked from commit 85bcf0d93f)
2016-10-19 17:34:54 +02:00