]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoRemove a \textipa that snuck into es/UserGuide.lyx
Scott Kostyshak [Wed, 22 Feb 2017 16:55:12 +0000 (11:55 -0500)]
Remove a \textipa that snuck into es/UserGuide.lyx

This empty inset caused problems with LuaTeX + system fonts (see
b863fb07). Although these problems seem to be resolved, this empty
inset is not supposed to be there.

7 years agozh_CN.po: updates from Zheru
Uwe Stöhr [Mon, 13 Feb 2017 23:17:51 +0000 (00:17 +0100)]
zh_CN.po: updates from Zheru

- also add Zheru to the CREDITS

7 years agoUse localized item when calculating the panel stack's tree widget width.
Juergen Spitzmueller [Sun, 5 Feb 2017 17:02:34 +0000 (18:02 +0100)]
Use localized item when calculating the panel stack's tree widget width.

The current version was wrong for non-English dialogs, and even for
the English one, due to the translator commands that were not removed
for calculation (as in "Formats[[output]]").

7 years agoCorrectly enable/disable citation dialog widgets on initialization.
Juergen Spitzmueller [Sun, 5 Feb 2017 14:42:03 +0000 (15:42 +0100)]
Correctly enable/disable citation dialog widgets on initialization.

Thanks Guillaume for pointing this out.

7 years agoFix flushing of row that was cut after an hyphen
Jean-Marc Lasgouttes [Fri, 27 Jan 2017 15:09:03 +0000 (16:09 +0100)]
Fix flushing of row that was cut after an hyphen

When using Qt stuff in breakAt, it may happen that the row is broken
after an hyphen (whereas the old code would only consider spaces).

The fact that we abuse the Row::right_boundary() property to detect when
a row should be flushed broke justification when a row is cut at an
hyphen.

Fix this by introducing a new Row::flushed() property and set it as needed.
(cherry picked from commit 8e7d0c2002bdc69c95f3a43f7c78d13fe47ce5f3)

7 years agoFix wrong splitting of text row
Jean-Marc Lasgouttes [Thu, 26 Jan 2017 13:10:23 +0000 (14:10 +0100)]
Fix wrong splitting of text row

The code that tries to decide whether it is worth splitting a given
text row element had a shortcoming: it did not take into account the
left margin of the new row that would be created.

The problem is that this left margin is not the same as the left
margin of the current row, because there can be for example
indentation effects.

To fix this problem, we pass the amount of available space on the
next row as a parameter of Row::shortenIfNeeded.

Note that there is no need to care about RtL row elements at this
point, since the bidi algorithm will be applied to the row
subsequently.
(cherry picked from commit 8491962c6bc1c73df076fa4807cc6ee295ccce41)

7 years agoCompilation fix in C++98 mode.
Jean-Marc Lasgouttes [Mon, 6 Feb 2017 09:28:47 +0000 (10:28 +0100)]
Compilation fix in C++98 mode.

7 years agoHandle properly unicode paragraph/line break
Jean-Marc Lasgouttes [Mon, 7 Nov 2016 09:14:39 +0000 (10:14 +0100)]
Handle properly unicode paragraph/line break

They are shown on screen by arrow or pilcrow symbol and cause a line break.

They are still not handled in LaTeX output, though.
(cherry picked from commit 6dfbab31245df074df4d1664321e2ff434f3ca6a)

7 years agoUpdate sk.po
Kornel Benko [Fri, 3 Feb 2017 11:25:32 +0000 (12:25 +0100)]
Update sk.po

7 years agoMake sanitize more robust to dangling pointers.
Jean-Marc Lasgouttes [Fri, 27 Jan 2017 15:36:06 +0000 (16:36 +0100)]
Make sanitize more robust to dangling pointers.

It is necessary to sanitize the new_word iterator too.
(cherry picked from commit 344f7f2e7dbfda5b24df2fa6b18846c3aa25cb40)

7 years agoHandle backslash in escape function.
Juergen Spitzmueller [Fri, 27 Jan 2017 08:15:47 +0000 (09:15 +0100)]
Handle backslash in escape function.

Fixes: #4595.
Candidate for stable

7 years agoGeneralize the protection of brackets in citation arguments
Juergen Spitzmueller [Thu, 26 Jan 2017 17:32:26 +0000 (18:32 +0100)]
Generalize the protection of brackets in citation arguments

Whenever an argument delimiter is used inside the argument, the argument
needs to be grouped, that is

\cites({text (text) text})

or

\cite[{text [text] text}]

This fixes the original case reported in #2751 which is independent
from the general issue that the pre- and postnote field take literal
code.

7 years agoWin installer: fix 2 bugs and update libraries
Uwe Stöhr [Thu, 26 Jan 2017 01:16:53 +0000 (02:16 +0100)]
Win installer: fix 2 bugs and update libraries

7 years agoFix compilation with --disable-cxx11
Guillaume Munch [Sun, 15 Jan 2017 00:40:23 +0000 (01:40 +0100)]
Fix compilation with --disable-cxx11

7 years agopt_BR.po: update from Georger
Uwe Stöhr [Mon, 23 Jan 2017 00:12:09 +0000 (01:12 +0100)]
pt_BR.po: update from Georger

7 years agoUpdate sk.po
Kornel Benko [Sun, 22 Jan 2017 08:10:54 +0000 (09:10 +0100)]
Update sk.po

7 years agoFix metrics of math characters with 0 width
Jean-Marc Lasgouttes [Fri, 20 Jan 2017 23:30:20 +0000 (00:30 +0100)]
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.

7 years agode.po
Juergen Spitzmueller [Fri, 20 Jan 2017 09:23:44 +0000 (10:23 +0100)]
de.po

7 years agoRegeneate CREDITS.
Richard Heck [Thu, 19 Jan 2017 20:41:46 +0000 (15:41 -0500)]
Regeneate CREDITS.

7 years agoAllow LyX to open empty files (created, e.g., via "touch").
Richard Heck [Thu, 19 Jan 2017 20:34:45 +0000 (15:34 -0500)]
Allow LyX to open empty files (created, e.g., via "touch").

Patch from new contributor Jan Niklas Hasse.

(cherry picked from commit 0d77a7e3251aa7a971a365e3fa698ce9f26e2b9d)

7 years agoAdd some remarks about defining formatted references.
Richard Heck [Thu, 19 Jan 2017 20:23:35 +0000 (15:23 -0500)]
Add some remarks about defining formatted references.

7 years agoDo not replace "--" with "\twohyphens" in formula macros.
Richard Heck [Thu, 19 Jan 2017 02:47:40 +0000 (21:47 -0500)]
Do not replace "--" with "\twohyphens" in formula macros.

(cherry picked from commit 5cb5d2cb5a5c369cabcb784899f4a00c7eaf6aa3)

7 years agoUpdate it.po
Enrico Forestieri [Tue, 17 Jan 2017 19:03:37 +0000 (20:03 +0100)]
Update it.po

7 years agoRemerge strings.
Richard Heck [Sun, 15 Jan 2017 16:40:17 +0000 (11:40 -0500)]
Remerge strings.

7 years ago Update fr.po
jpc [Sun, 15 Jan 2017 06:43:54 +0000 (07:43 +0100)]
  Update fr.po

7 years agoSection and Section* should have the same font size.
Richard Heck [Sat, 14 Jan 2017 21:12:58 +0000 (16:12 -0500)]
Section and Section* should have the same font size.

Going with normal corresponds better to how the PDF displays.

(cherry picked from commit cb6ea902566e064185fecf11c870b8df55939c9f)

7 years agoUpdate sk.po
Kornel Benko [Fri, 13 Jan 2017 12:27:42 +0000 (13:27 +0100)]
Update sk.po

7 years agode-po
Juergen Spitzmueller [Fri, 13 Jan 2017 11:48:36 +0000 (12:48 +0100)]
de-po

7 years agoWe don't have formatToolTip in stable. Use wrap instead.
Juergen Spitzmueller [Fri, 13 Jan 2017 10:32:36 +0000 (11:32 +0100)]
We don't have formatToolTip in stable. Use wrap instead.

Sorry for the hassle.

7 years agoAssure long tooltip is correctly formatted.
Juergen Spitzmueller [Fri, 13 Jan 2017 08:07:44 +0000 (09:07 +0100)]
Assure long tooltip is correctly formatted.

Amendment to ffb195b5e9fa

7 years agoClarify layout and add some tooltips
Juergen Spitzmueller [Mon, 9 Jan 2017 17:54:49 +0000 (18:54 +0100)]
Clarify layout and add some tooltips

Addresses: #9795

7 years agostatus.22x
Guillaume Munch [Mon, 9 Jan 2017 22:16:31 +0000 (23:16 +0100)]
status.22x

7 years ago Update status.22x
jpc [Mon, 9 Jan 2017 10:20:06 +0000 (10:20 +0000)]
Update status.22x

7 years ago Update fr.po
jpc [Mon, 9 Jan 2017 10:15:16 +0000 (10:15 +0000)]
  Update fr.po

7 years agofix last traces of bug #10068
Uwe Stöhr [Mon, 9 Jan 2017 00:25:22 +0000 (01:25 +0100)]
fix last traces of bug #10068

7 years agolinguistics.lyx: 2 minor style fixes
Uwe Stöhr [Mon, 9 Jan 2017 00:19:27 +0000 (01:19 +0100)]
linguistics.lyx: 2 minor style fixes

7 years agoAdditional.lyx: backport a change from master
Uwe Stöhr [Mon, 9 Jan 2017 00:18:51 +0000 (01:18 +0100)]
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.

7 years agoAvoid useless warning from Qt
Enrico Forestieri [Sun, 8 Jan 2017 22:11:04 +0000 (23:11 +0100)]
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 25e6b5da39b2f9d5e1ce7c66baaf0ce968c8dc1a)

7 years agoEscape link name for DocBook.
Richard Heck [Sun, 8 Jan 2017 18:38:48 +0000 (13:38 -0500)]
Escape link name for DocBook.

Thanks to Martin Brown for pointing out the bug, and the obvious
solution.

(cherry picked from commit 06e2669b354561ebafcd69c24d0319d47ba1d279)

7 years agoFix DocBook DTD identifier for XML output.
Richard Heck [Sun, 8 Jan 2017 18:37:00 +0000 (13:37 -0500)]
Fix DocBook DTD identifier for XML output.

Thanks to Martin Brown for the correct one.

(cherry picked from commit b730419470061852e63ec0aaf5f2893605b03dde)

7 years ago Update French EmbeddedObjects manual
jpc [Sun, 8 Jan 2017 10:57:31 +0000 (10:57 +0000)]
  Update French EmbeddedObjects manual

7 years ago Update section 2.5.1
jpc [Sat, 7 Jan 2017 18:06:46 +0000 (18:06 +0000)]
 Update section 2.5.1

7 years agoAdd caching for the QTextLayout objects we use
Jean-Marc Lasgouttes [Tue, 5 Jul 2016 12:06:22 +0000 (14:06 +0200)]
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 c5119c97fcf84e8)

7 years agoFix two hyperlink-insert problems
Juergen Spitzmueller [Thu, 29 Dec 2016 08:17:53 +0000 (09:17 +0100)]
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

7 years agoUpdate sk.po
Kornel Benko [Thu, 29 Dec 2016 08:42:02 +0000 (09:42 +0100)]
Update sk.po

7 years agode.po
Juergen Spitzmueller [Thu, 29 Dec 2016 08:01:52 +0000 (09:01 +0100)]
de.po

7 years agoAdd Joel Kulesza to the credits
Juergen Spitzmueller [Wed, 28 Dec 2016 15:50:25 +0000 (16:50 +0100)]
Add Joel Kulesza to the credits

7 years agoFixup c49cd699: QString::toStdString is not always available
Jean-Marc Lasgouttes [Wed, 28 Dec 2016 21:44:40 +0000 (22:44 +0100)]
Fixup c49cd699: QString::toStdString is not always available

This method requires STL support in Qt. Fortunately, it is not needed
here.

7 years agoFrom c7899a30a0b5975bf599a69ecd11ab25e1cdf1a4 Mon Sep 17 00:00:00 2001
Juergen Spitzmueller [Wed, 28 Dec 2016 15:34:44 +0000 (16:34 +0100)]
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

7 years agoDo not rely on toolTip() to generate LaTeX code
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Do not rely on toolTip() to generate LaTeX code

7 years agoFix regression of 88603655
Georg Baum [Sun, 21 Aug 2016 18:34:40 +0000 (20:34 +0200)]
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)

7 years agoEmbeddedObjects.lyx: backport recent changes
Uwe Stöhr [Wed, 21 Dec 2016 01:22:53 +0000 (02:22 +0100)]
EmbeddedObjects.lyx: backport recent changes

7 years agoUserGuide.lyx: fix 2 typos spotted by a user
Uwe Stöhr [Mon, 19 Dec 2016 22:50:29 +0000 (23:50 +0100)]
UserGuide.lyx: fix 2 typos spotted by a user

7 years agoLimit ligature protection to quote ligature chars
Juergen Spitzmueller [Wed, 14 Dec 2016 08:07:43 +0000 (09:07 +0100)]
Limit ligature protection to quote ligature chars

No status entry necessary (this is and emendment to an existing fix)

7 years agoFix some quote inset bugs:
Juergen Spitzmueller [Wed, 7 Dec 2016 14:37:03 +0000 (15:37 +0100)]
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

7 years agoFix 39e3fabf.
Richard Heck [Wed, 7 Dec 2016 17:29:27 +0000 (12:29 -0500)]
Fix 39e3fabf.

Rather than including the file, just cut and paste it so that we
can mark the new layouts as "ForceLocal".

7 years agoVerbatim, etc, can be used with IOP articles.
Richard Heck [Tue, 6 Dec 2016 22:54:32 +0000 (17:54 -0500)]
Verbatim, etc, can be used with IOP articles.
Fixes #10505.

(cherry picked from commit 91f980cf314183d22d5f3211d04985e34501daa5)

7 years agoUpdate it.po
Enrico Forestieri [Sun, 4 Dec 2016 23:37:13 +0000 (00:37 +0100)]
Update it.po

7 years agoFix display and output of math macros with optional arguments
Enrico Forestieri [Sun, 4 Dec 2016 21:52:22 +0000 (22:52 +0100)]
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

7 years agoUpdate sk.po
Kornel Benko [Sun, 4 Dec 2016 16:30:12 +0000 (17:30 +0100)]
Update sk.po

7 years agode.po
Juergen Spitzmueller [Sun, 4 Dec 2016 10:24:00 +0000 (11:24 +0100)]
de.po

7 years agoWork around dangling pointer
Guillaume Munch [Wed, 28 Sep 2016 19:57:54 +0000 (21:57 +0200)]
Work around dangling pointer

This pointer has been removed in master, but backporting the workaround is
enough.

(cherry picked from commit 79a947c9041a92805e9ac4b65594753410016fa5)

7 years agoArabic Tutorial.lyx: new translation by Hatim
Uwe Stöhr [Fri, 2 Dec 2016 01:15:55 +0000 (02:15 +0100)]
Arabic Tutorial.lyx: new translation by Hatim

7 years agoTutorial.lyx: backport today's changes
Uwe Stöhr [Tue, 29 Nov 2016 00:57:39 +0000 (01:57 +0100)]
Tutorial.lyx: backport today's changes

7 years agoEmbeddedObjects.lyx: fix a typo spotted by a user
Uwe Stöhr [Tue, 29 Nov 2016 00:30:18 +0000 (01:30 +0100)]
EmbeddedObjects.lyx: fix a typo spotted by a user

7 years agoWin installer: backport recent changes
Uwe Stöhr [Sun, 27 Nov 2016 14:33:51 +0000 (15:33 +0100)]
Win installer: backport recent changes

7 years agoAdd the icon-size to the toolbar menu
Daniel Ramöller [Sun, 9 Oct 2016 07:15:20 +0000 (09:15 +0200)]
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 e91572a00bd61d56b5386519b52d316a32974497)
(cherry picked from commit 6c92075799ae8d83f4f38e3c169c40da215e03f2)
(cherry picked from commit 7971dc83efd2a3a2d282af17cded54698340e176)

7 years agoMake insertInset use a temporary cut-and-paste area.
Jean-Marc Lasgouttes [Wed, 9 Nov 2016 14:13:41 +0000 (15:13 +0100)]
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 fb264663d8c3aadc3da0b922e31105c0aa7e319d)
(cherry picked from commit 004fdf6aebd7669c4b1df33236fe2a8f515584c0)

7 years agoWin installer: prepare for new release
Uwe Stöhr [Wed, 23 Nov 2016 02:01:56 +0000 (03:01 +0100)]
Win installer: prepare for new release

7 years agoWin installer: init.nsh: a change that I forgot to backport
Uwe Stöhr [Wed, 23 Nov 2016 02:01:08 +0000 (03:01 +0100)]
Win installer: init.nsh: a change that I forgot to backport

7 years agode.po: fix some glitches
Juergen Spitzmueller [Tue, 22 Nov 2016 09:36:37 +0000 (10:36 +0100)]
de.po: fix some glitches

7 years agoFix Polyglossia options for serbian
Juergen Spitzmueller [Mon, 21 Nov 2016 17:58:40 +0000 (18:58 +0100)]
Fix Polyglossia options for serbian

Script value is uppercase.

7 years agoAdd Andrew Parsloe.
Richard Heck [Fri, 18 Nov 2016 16:45:40 +0000 (11:45 -0500)]
Add Andrew Parsloe.

(cherry picked from commit 67bb5a2bf16d79caa86c34bf60fb4e972c132b1c)

7 years agoUpdate sk.po
Kornel Benko [Fri, 18 Nov 2016 12:31:15 +0000 (13:31 +0100)]
Update sk.po

7 years agode.po
Juergen Spitzmueller [Fri, 18 Nov 2016 10:16:20 +0000 (11:16 +0100)]
de.po

7 years agoar.po: updates from Hatim
Uwe Stöhr [Fri, 18 Nov 2016 01:12:39 +0000 (02:12 +0100)]
ar.po: updates from Hatim

7 years agoAdd three new files from Andrew Parsloe. These do for AMS-type
Richard Heck [Thu, 17 Nov 2016 15:59:49 +0000 (10:59 -0500)]
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 0f5ba65eae1b3e069be0be279904c911fe02907c)

7 years agoSet default output format to XeTeX in Arabic docs
Scott Kostyshak [Mon, 14 Nov 2016 03:42:18 +0000 (22:42 -0500)]
Set default output format to XeTeX in Arabic docs

All other exports to PDF fail.

7 years agoencodings: use correct encoding "latin7" for ISO 8859-13
Uwe Stöhr [Mon, 7 Nov 2016 23:49:01 +0000 (00:49 +0100)]
encodings: use correct encoding "latin7" for ISO 8859-13

- fixes bug #10474

7 years agohollywood.lyx: remove empty paragraph
Uwe Stöhr [Mon, 7 Nov 2016 22:52:43 +0000 (23:52 +0100)]
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

7 years agoFeynmanDiagrams.lyx: fix compilation
Uwe Stöhr [Mon, 7 Nov 2016 22:45:44 +0000 (23:45 +0100)]
FeynmanDiagrams.lyx: fix compilation

recent KOMA script versions don't accept \rm anymore

7 years agoposter-xxx.lyx: minor changes to keep uniformity of the document style
Uwe Stöhr [Mon, 7 Nov 2016 22:35:57 +0000 (23:35 +0100)]
poster-xxx.lyx: minor changes to keep uniformity of the document style

7 years agoAlways prefer breaking at word boundaries
Guillaume Munch [Sun, 6 Nov 2016 14:14:29 +0000 (15:14 +0100)]
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 50ccbd2eab8cb01ff9f7c80d3fe726297dca6fae)

7 years agoStrike out (in the output) deleted display math with track-changes
Enrico Forestieri [Sat, 5 Nov 2016 20:31:09 +0000 (21:31 +0100)]
Strike out (in the output) deleted display math with track-changes

Showing deleted display math by enabling "Show Changes in Output" was
only possible with dvi (through dvipost). Although LyX strikes out
such formulas on screen, it was impossible obtaining an output
directly using pdflatex (or other engines producing pdf) because
ulem cannot cope with display math material and gives errors.
The solution is to strike out by ourselves such deleted formulas.
I took into account several options. One of them would produce
an output similar to dvipost (which strikes out each element), but
would have required much more changes in the output routines.
Eventually, I opted for using tikz, which gives a more clean
output (as it requires to simply adding a preamble and a postamble
to the latex code of any displayed math, instead of a mark up
tailored to each particular math construct). The look of the pdf
output is similar to the way LyX strikes out the equations on screen.

Fixes #9678

7 years agodoc files: backport recent changes in master
Uwe Stöhr [Sat, 5 Nov 2016 18:20:51 +0000 (19:20 +0100)]
doc files: backport recent changes in master

7 years agoChangelog-UserGuide-LyX_22x.txt: a correction
Uwe Stöhr [Sat, 5 Nov 2016 18:03:14 +0000 (19:03 +0100)]
Changelog-UserGuide-LyX_22x.txt: a correction

7 years agoUserGuide.lyx: describe a feature
Uwe Stöhr [Sat, 5 Nov 2016 18:01:08 +0000 (19:01 +0100)]
UserGuide.lyx: describe a feature

fixes bug #3880

7 years agoUserGuide.lyx: accept changes
Uwe Stöhr [Sat, 5 Nov 2016 17:42:14 +0000 (18:42 +0100)]
UserGuide.lyx: accept changes

- update link to a Wiki page

7 years agode.po
Juergen Spitzmueller [Sat, 5 Nov 2016 07:02:25 +0000 (08:02 +0100)]
de.po

7 years agoClear background behind sub-labels when necessary.
Jean-Marc Lasgouttes [Fri, 4 Nov 2016 10:35:22 +0000 (11:35 +0100)]
Clear background behind sub-labels when necessary.

This is analogous to what has been done to address #4889 and #10359.

Fixes bug #10475.
(cherry picked from commit d207e85cfda2893de4e6c7f419c58aa342395f47)

7 years agoFix height of cursor inside insets
Jean-Marc Lasgouttes [Fri, 4 Nov 2016 11:01:43 +0000 (12:01 +0100)]
Fix height of cursor inside insets

It turns out that Cursor::getFont() does not return a fully realized
font in some cases. This patch uses real_current_font instead, which
seems better anyway.

I suspect that all uses of getFont() should be removed, but this is
not code that I know well.

Fixes bug #10478.
(cherry picked from commit b099d9ae15c45a9c30727078d69c0c7bd8029c9a)

7 years agoQString only uses UTF-16, not UCS-4
Jean-Marc Lasgouttes [Wed, 2 Nov 2016 16:42:56 +0000 (17:42 +0100)]
QString only uses UTF-16, not UCS-4

This means that, when a string contains high-plane Unicode characters,
the length of a docstring and the corresponding QString will be
different: Qt will encode these characters using several 16bit
characters.

We have additionally to take into account QTBUG-25536, which implies
that sometimes qstring_to_ucs4(toqstr(s)) !=s. It is not clear whether
this bug can be a problem in other places.

Fixes bug #10443.
(cherry picked from commit 5d85a42bf0a182585b800a80817a6e1208ef7ec3)

7 years agoRound values properly when drawing right margin selection
Jean-Marc Lasgouttes [Fri, 4 Nov 2016 14:57:59 +0000 (15:57 +0100)]
Round values properly when drawing right margin selection

This fixes a compiler warning reported by Uwe.
(cherry picked from commit 75fce32556d2ec3da37acf96e4bafd23b5e5609a)

7 years agoIn Color Preferences "frame of button" should be "button frame"
Daniel Ramöller [Sun, 30 Oct 2016 16:19:29 +0000 (17:19 +0100)]
In Color Preferences "frame of button" should be "button frame"

Fixes #10135.
(cherry picked from commit f054721410c87a1f014ebd9d705395b9646a3fc0)

7 years agoFix usage of multiple varieties of the same polyglossia language.
Juergen Spitzmueller [Wed, 2 Nov 2016 17:04:26 +0000 (18:04 +0100)]
Fix usage of multiple varieties of the same polyglossia language.

1. We must always output all (diverging) options, including
   default options; if not, default options might get overwritten.

2. Do not output options in \setotherlanguage, since we might have
   multiple "other languages" varieties from the same language (such
   as naustrian, nswissgerman). And the options are output for the
   language switches anyway.

Hence, LaTeXFeatures::getPolyglossiaLanguages() does not have to record
varieties. This was not done correctly anyway, since the map allowed
for one entry per language only.

7 years agoReimplement RowPainter::paintSelection() using row elements
Jean-Marc Lasgouttes [Tue, 25 Oct 2016 07:28:14 +0000 (09:28 +0200)]
Reimplement RowPainter::paintSelection() using row elements

The code is much simpler now and can be actually understood.

As a byproduct, fix bug #10424.

(cherry picked from commit a700d657b3b06541b10ddae8cc5847bd46d06aae)
(cherry picked from commit 2037cc5ef575f134de2790eda299e7becb2c5a01)
(cherry picked from commit 4159cf97c156ea2f604e3332fc2bf4d1c4926a25)
(cherry picked from commit 695b0cc33b04fa10c8134738e4726de5336267f4)

7 years agoWin installer: install special XeTeX package
Uwe Stöhr [Tue, 1 Nov 2016 15:54:08 +0000 (16:54 +0100)]
Win installer: install special XeTeX package

7 years agoArabic Intro.lyx: fixes from Hatim
Uwe Stöhr [Tue, 1 Nov 2016 14:08:40 +0000 (15:08 +0100)]
Arabic Intro.lyx: fixes from Hatim

7 years agoar.po: translations by Hatim
Uwe Stöhr [Tue, 1 Nov 2016 14:07:50 +0000 (15:07 +0100)]
ar.po: translations by Hatim

7 years agostatus update for commit 33103ebc
Tommaso Cucinotta [Tue, 1 Nov 2016 08:57:43 +0000 (09:57 +0100)]
status update for commit 33103ebc