Commit Graph

35862 Commits

Author SHA1 Message Date
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
Uwe Stöhr
e4e0f8d357 EmbeddedObjects.lyx: fix a typo spotted by a user 2016-11-29 01:30:18 +01:00
Uwe Stöhr
82b9eb1941 Win installer: backport recent changes 2016-11-27 15:33:51 +01:00
Daniel Ramöller
060a9664f7 Add the icon-size to the toolbar menu
- Adds LFUNs for setting the icon size
- Adds icons sizes to the Toolbars menu
- Uses the Toolbars menu as application context menu
- The context menu can now be user defined in stdcontext.inc

When the logical sizes differ and the icon set is changed, the correct
sizes are established only after a restart.

Fixes ticket #10428.

(cherry picked from commit e91572a00b)
(cherry picked from commit 6c92075799)
(cherry picked from commit 7971dc83ef)
2016-11-25 10:33:21 +01:00
Jean-Marc Lasgouttes
133c2c62ee Make insertInset use a temporary cut-and-paste area.
This is a long wanted feature, although it does not go all the way to
fix #6604 (private-cut/private-paste).

Additionally, it fixes a crash that can happen when using undefined
branches. This is done by making the action when pasting unknown
branches configurable.

Fixes bug #6570.
(cherry picked from commit fb264663d8)
(cherry picked from commit 004fdf6aeb)
2016-11-23 12:26:05 +01:00
Uwe Stöhr
1e80436968 Win installer: prepare for new release 2016-11-23 03:01:56 +01:00
Uwe Stöhr
33b9157b67 Win installer: init.nsh: a change that I forgot to backport 2016-11-23 03:01:08 +01:00
Juergen Spitzmueller
25561db6a4 de.po: fix some glitches 2016-11-22 10:36:37 +01:00
Juergen Spitzmueller
32b0ab764a Fix Polyglossia options for serbian
Script value is uppercase.
2016-11-21 18:58:40 +01:00
Richard Heck
ba2dc722f9 Add Andrew Parsloe.
(cherry picked from commit 67bb5a2bf1)
2016-11-18 11:47:01 -05:00
Kornel Benko
6d7369b685 Update sk.po 2016-11-18 13:31:15 +01:00
Juergen Spitzmueller
4d95614223 de.po 2016-11-18 11:16:20 +01:00
Uwe Stöhr
5a8e91d1c5 ar.po: updates from Hatim 2016-11-18 02:12:39 +01:00
Richard Heck
632e1d3ac7 Add three new files from Andrew Parsloe. These do for AMS-type
theorem environments what the already existing "by chapter" modules
do for non-AMS ones.

(cherry picked from commit 0f5ba65eae)
2016-11-17 11:41:52 -05:00
Scott Kostyshak
e8464083fe Set default output format to XeTeX in Arabic docs
All other exports to PDF fail.
2016-11-13 22:45:25 -05:00
Uwe Stöhr
1fbe23a028 encodings: use correct encoding "latin7" for ISO 8859-13
- fixes bug #10474
2016-11-08 00:49:01 +01:00
Uwe Stöhr
95bc002387 hollywood.lyx: remove empty paragraph
- LyX correctly warned that a non-title paragraph was used in between titling paragraphs, this was even an empty paragraph
2016-11-07 23:52:43 +01:00
Uwe Stöhr
fdfcb947c7 FeynmanDiagrams.lyx: fix compilation
recent KOMA script versions don't accept \rm anymore
2016-11-07 23:45:44 +01:00
Uwe Stöhr
2479b0d58a poster-xxx.lyx: minor changes to keep uniformity of the document style 2016-11-07 23:35:57 +01:00
Guillaume Munch
bac0780b27 Always prefer breaking at word boundaries
An overlong word containing a hyphen could be broken anywhere, instead of after
the hyphen.

Example: compare the line breaking of

   aaaaa-aaaaa-aaaaa-aaaaa

with

   aaa aaaaa-aaaaa-aaaaa-aaaaa

(with a very narrow window)

This also improves Chinese text in some situations (#10299)

(cherry picked from commit 50ccbd2eab)
2016-11-07 23:28:07 +01:00