Commit Graph

35831 Commits

Author SHA1 Message Date
Uwe Stöhr
ee5c96149e pt_BR.po: update from Georger 2017-01-23 01:12:09 +01:00
Kornel Benko
730f772a12 Update sk.po 2017-01-22 09:10:54 +01:00
Jean-Marc Lasgouttes
81465da5d5 Fix metrics of math characters with 0 width
It seems that QTextLayout does not handle properly a single character
with 0 width. This breaks drawing of things like \not.

No status line needed as this amends 24648404.
2017-01-21 00:30:20 +01:00
Juergen Spitzmueller
8740cd4c26 de.po 2017-01-20 10:23:44 +01:00
Richard Heck
d741370ea7 Regeneate CREDITS. 2017-01-19 15:41:46 -05:00
Richard Heck
239be02234 Allow LyX to open empty files (created, e.g., via "touch").
Patch from new contributor Jan Niklas Hasse.

(cherry picked from commit 0d77a7e325)
2017-01-19 15:37:08 -05:00
Richard Heck
6693fe5d6d Add some remarks about defining formatted references. 2017-01-19 15:26:31 -05:00
Richard Heck
dc7a5ecea1 Do not replace "--" with "\twohyphens" in formula macros.
(cherry picked from commit 5cb5d2cb5a)
2017-01-18 21:52:14 -05:00
Enrico Forestieri
6fbe470b23 Update it.po 2017-01-17 20:03:37 +01:00
Richard Heck
40a0cb2439 Remerge strings. 2017-01-15 11:40:17 -05:00
jpc
d3bbb8b581 Update fr.po 2017-01-15 07:43:54 +01:00
Richard Heck
1d93cfca8f Section and Section* should have the same font size.
Going with normal corresponds better to how the PDF displays.

(cherry picked from commit cb6ea90256)
2017-01-14 16:14:24 -05:00
Kornel Benko
c3f5ac5780 Update sk.po 2017-01-13 13:27:42 +01:00
Juergen Spitzmueller
d064bf28f4 de-po 2017-01-13 12:48:36 +01:00
Juergen Spitzmueller
6a0de80b6b We don't have formatToolTip in stable. Use wrap instead.
Sorry for the hassle.
2017-01-13 11:32:36 +01:00
Juergen Spitzmueller
ca9c8dbde1 Assure long tooltip is correctly formatted.
Amendment to ffb195b5e9
2017-01-13 09:09:43 +01:00
Juergen Spitzmueller
8184156f8f Clarify layout and add some tooltips
Addresses: #9795
2017-01-12 09:06:26 +01:00
Guillaume Munch
4c5312f603 status.22x 2017-01-09 23:16:31 +01:00
jpc
0bfae01c6f Update status.22x 2017-01-09 10:20:06 +00:00
jpc
50bf3b525d Update fr.po 2017-01-09 10:16:29 +00:00
Uwe Stöhr
8b2d0af975 fix last traces of bug #10068 2017-01-09 01:25:22 +01:00
Uwe Stöhr
95248c51d2 linguistics.lyx: 2 minor style fixes 2017-01-09 01:19:27 +01:00
Uwe Stöhr
af353b521d Additional.lyx: backport a change from master
PLEASE work in branch for the doc files. There is no reason not to release improved manuals with the next bugfix release. Only new features of LyX 2.3 are only for master.
2017-01-09 01:18:51 +01:00
Enrico Forestieri
a9dd6ea6bc Avoid useless warning from Qt
When cloning InsetExternal, the tempname_ member of InsetExternalParams
has yet to be initialized. So, trying to remove it causes the warning
"QFile::remove: Empty or null file name".

(cherry picked from commit 25e6b5da39)
2017-01-08 18:48:55 -05:00
Richard Heck
3a1eff90b9 Escape link name for DocBook.
Thanks to Martin Brown for pointing out the bug, and the obvious
solution.

(cherry picked from commit 06e2669b35)
2017-01-08 13:51:18 -05:00
Richard Heck
f7558646b1 Fix DocBook DTD identifier for XML output.
Thanks to Martin Brown for the correct one.

(cherry picked from commit b730419470)
2017-01-08 13:40:01 -05:00
jpc
a5f802ae00 Update French EmbeddedObjects manual 2017-01-08 10:57:31 +00:00
jpc
9211ea7e26 Update section 2.5.1 2017-01-07 18:07:45 +00:00
Jean-Marc Lasgouttes
d76309913f Add caching for the QTextLayout objects we use
The QTextLayout handling is terribly slow on Qt 4.8.7, but some
caching has been added in Qt5 that makes it much faster. For some
reason, it is not that slow with Qt 4.8.1.

Caches are introduced for the three following methods

* width(doctring), controlled by CACHE_METRICS_WIDTH. This cache already
  existed, but the code has been cleaned up

* getTextLayout, controlled by CACHE_METRICS_QTEXTLAYOUT (disabled by
  default on Qt5, which does its own caching). This is used for pos2x
  and x2pos and now for drawing of text too. The previous code used a
  trivial caching scheme of the last used QTextLayout, but now they
  are properly kept in a QCache. Moreover, the cacheEnabled() property
  is enabled for these QTextLayout object (not sure what this does).

* breakAt, controlled by CACHE_METRICS_BREAKAT. This is the only user
  of QTextLayout which did not have some kind of caching already.

For some weird reasons related to Argument-dependent look-up, the
qHash(docstring) function has to be defined in std namespace, since
lyx::docstring is actually std::basic_string<wchar_t>.

(cherry picked from c5119c97fc)
2017-01-06 22:47:32 +01:00
Juergen Spitzmueller
54fa0d51da Fix two hyperlink-insert problems
1. Do not prematurely cut selection (#10306); patch proposed by Daniel Ramöller
2. Obey lfun argument, even if there is a selection
2016-12-29 19:30:36 +01:00
Kornel Benko
03754c327e Update sk.po 2016-12-29 09:42:02 +01:00
Juergen Spitzmueller
9989d42b90 de.po 2016-12-29 09:01:52 +01:00
Juergen Spitzmueller
d4ea3478fe Add Joel Kulesza to the credits 2016-12-29 08:46:41 +01:00
Jean-Marc Lasgouttes
5962cea9d2 Fixup c49cd699: QString::toStdString is not always available
This method requires STL support in Qt. Fortunately, it is not needed
here.
2016-12-29 08:43:31 +01:00
Juergen Spitzmueller
5de448e132 From c7899a30a0b5975bf599a69ecd11ab25e1cdf1a4 Mon Sep 17 00:00:00 2001
From: "Joel A. Kulesza" <jkulesza@gmail.com>
Date: Mon, 24 Oct 2016 17:37:58 -0600
Subject: [PATCH] Add "Swap & Reverse" to math delimiter dialog

When "Keep matched" is unchecked, a button becomes enabled to "Swap &
Reverse" the left and right delimiters.  This is expected to be of use
with line-wrapped equations featuring one or more set of delimiters that
break across the lines.  When "Keep matched" is checked, the button is
visible but disabled.

The most common use case is expected to be the user entering a pair of
unmatched delimiters on the first line of an equation (e.g., "(" and
"(None)"), entering the inner text, going to the next line, and
inserting the opposite set of delimiters (e.g., "(None)" and ")").
This button will negate the need to find the correct corresponding
combination.  However, it relies on the dialog's memory of the previous
unmatched set.

This change addresses Ticket #10457

-----------

Modifications by spitz to the original patch:

* Only enable the button if an unmatched pair is selected
* Consider l7n when locating the string "(None)"
* Add an accelerator and a tooltip to the dialog
* Simplify the code a bit
2016-12-29 08:39:34 +01:00
Guillaume Munch
2a4538ad56 Do not rely on toolTip() to generate LaTeX code 2016-12-29 08:39:01 +01:00
Georg Baum
b692e3a484 Fix regression of 88603655
The XHTML entries were added in the wrong field, if they are given we need
extra xhtml requires. The order is inconsistent, there are discussions on the
list about that but for now I'll use the existing order to fix the export tests.

The format of the lib/symbols file does not support "" for empty strings.
One would have to use x for fields that are not set (this is a hack), but
actually we know how to fill the extra field.

(cherry-pick of commit 338cef2a)
2016-12-27 19:17:13 +01:00
Uwe Stöhr
e5ad7ee9c8 EmbeddedObjects.lyx: backport recent changes 2016-12-21 02:22:53 +01:00
Uwe Stöhr
0bc604a5ed UserGuide.lyx: fix 2 typos spotted by a user 2016-12-19 23:50:29 +01:00
Juergen Spitzmueller
458f03b131 Limit ligature protection to quote ligature chars
No status entry necessary (this is and emendment to an existing fix)
2016-12-14 09:07:43 +01:00
Juergen Spitzmueller
6c4c164531 Fix some quote inset bugs:
* Adjoining closing Single + double quote becomes double + single quote
  (for English, Swedish and German, LaTeX export as ''').

* French double quotes are converted to << >> in the LaTeX file and to
  double inverted question/interrogation marks in the output, if the font
  encoding is set to [None] or OT1 but the global default is T1. (test
  for lyxrc.fontenc instead of the document-specific fontenc setting in
  InsetQuotes.cpp).

* Quote type ignored for LyXHTML: always "English" quotes used.

See #10451
2016-12-07 18:51:03 +01:00
Richard Heck
8d247e2407 Fix 39e3fabf.
Rather than including the file, just cut and paste it so that we
can mark the new layouts as "ForceLocal".
2016-12-07 12:29:27 -05:00
Richard Heck
39e3fabffb Verbatim, etc, can be used with IOP articles.
Fixes #10505.

(cherry picked from commit 91f980cf31)
2016-12-06 17:56:46 -05:00
Enrico Forestieri
e354ae1325 Update it.po 2016-12-05 00:37:13 +01:00
Enrico Forestieri
9435dd6b52 Fix display and output of math macros with optional arguments
This is a long standing issue, present since the new math macros
inception in version 1.6. It manifests as a display issue when a
macro with optional arguments appears in the optional argument of
another macro. In this case the display is messed up and it is
difficult, if not impossible, changing the arguments as they do not
appear on screen as related to a specific macro instance. It also
manifests as latex errors when compiling, even if the latex output
is formally correct, due to limitations of the xargs package used
to output the macros. Most probably, both aspects have the same
root cause, as simply enclosing in braces the macro and its
parameters solves both issues. However, when reloading a document,
lyx strips the outer braces enclosing a macro argument, thus
frustrating this possible workaround.

This commit solves the display issue by correctly accounting for
macros with optional arguments nested in the argument of another
macro, and circumvents the xargs package limitations causing errors
by enclosing in braces the macros with optional arguments appearing
in the argument of an outer macro when they are output. This means
that when loading an old document with such macros and saving it
again, the macro representation is updated and will have these
additional braces. However, as such braces are stripped by lyx on
loading, there is no risk that they accumulate.

See also this thread:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg197828.html
2016-12-04 22:52:22 +01:00
Kornel Benko
dceea4aca9 Update sk.po 2016-12-04 17:30:12 +01:00
Juergen Spitzmueller
4e1110d5c6 de.po 2016-12-04 11:24:00 +01:00
Guillaume Munch
adb00dbcf8 Work around dangling pointer
This pointer has been removed in master, but backporting the workaround is
enough.

(cherry picked from commit 79a947c904)
2016-12-03 12:58:12 +01:00
Uwe Stöhr
e5954386d2 Arabic Tutorial.lyx: new translation by Hatim 2016-12-02 02:15:55 +01:00
Uwe Stöhr
f31e8ddf8e Tutorial.lyx: backport today's changes 2016-11-29 01:57:39 +01:00