Commit Graph

35775 Commits

Author SHA1 Message Date
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
Enrico Forestieri
8a1f936ff1 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
2016-11-05 21:31:09 +01:00
Uwe Stöhr
3191178555 doc files: backport recent changes in master 2016-11-05 19:20:51 +01:00
Uwe Stöhr
2a9bcb0077 Changelog-UserGuide-LyX_22x.txt: a correction 2016-11-05 19:03:14 +01:00
Uwe Stöhr
547fec979c UserGuide.lyx: describe a feature
fixes bug #3880
2016-11-05 19:01:08 +01:00
Uwe Stöhr
6e0b27bc20 UserGuide.lyx: accept changes
- update link to a Wiki page
2016-11-05 18:42:14 +01:00
Juergen Spitzmueller
c70f8e1281 de.po 2016-11-05 08:02:25 +01:00
Jean-Marc Lasgouttes
b9edbfee40 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 d207e85cfd)
2016-11-04 18:01:49 +01:00
Jean-Marc Lasgouttes
a0b8ea2eee 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 b099d9ae15)
2016-11-04 17:58:32 +01:00
Jean-Marc Lasgouttes
ea3cdb1552 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 5d85a42bf0)
2016-11-04 17:56:02 +01:00
Jean-Marc Lasgouttes
6ab1f79b7c Round values properly when drawing right margin selection
This fixes a compiler warning reported by Uwe.
(cherry picked from commit 75fce32556)
2016-11-04 16:00:55 +01:00
Daniel Ramöller
3372c0cf55 In Color Preferences "frame of button" should be "button frame"
Fixes #10135.
(cherry picked from commit f054721410)
2016-11-03 16:44:48 +01:00
Juergen Spitzmueller
008c229041 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.
2016-11-02 18:04:26 +01:00
Jean-Marc Lasgouttes
065cd36922 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 a700d657b3)
(cherry picked from commit 2037cc5ef5)
(cherry picked from commit 4159cf97c1)
(cherry picked from commit 695b0cc33b)
2016-11-02 11:10:05 +01:00
Uwe Stöhr
ce6d8100c7 Win installer: install special XeTeX package 2016-11-01 16:54:08 +01:00
Uwe Stöhr
34918465dd Arabic Intro.lyx: fixes from Hatim 2016-11-01 15:08:40 +01:00
Uwe Stöhr
22d30bf86e ar.po: translations by Hatim 2016-11-01 15:07:50 +01:00
Tommaso Cucinotta
f1b8635789 status update for commit 33103ebc 2016-11-01 09:57:43 +01:00
Juergen Spitzmueller
20e667e208 Use Buffer::validate() when previewing single paragraph
We used to use BufferParams::validate(), which does not validate the
paragraphs.
2016-11-01 08:29:28 +01:00
Tommaso Cucinotta
33103ebc37 Show symbol name and description in plaintext export of nomenclature entries.
This addresses one of the issues highlighted in #10459.
See http://www.lyx.org/trac/ticket/10459
2016-10-31 23:07:02 +01:00
jpc
3c59cc1c7c Update fr.po 2016-10-31 18:47:13 +00:00
Kornel Benko
33a2189c08 Update sk.po 2016-10-31 12:54:55 +01:00
Uwe Stöhr
ee9550b0bb Arabic Shortcuts.lyx: increase font size 2016-10-31 12:23:50 +01:00
Uwe Stöhr
a0395c3de0 Arabic Intro.lyx: new translation from Hatim 2016-10-31 12:19:21 +01:00
Uwe Stöhr
350708102b EmbeddedObjects.lyx; remove unnecessary latexpar
- this was the last issue to fix bug #10068
2016-10-31 11:46:42 +01:00
Juergen Spitzmueller
0d583a3c99 de.po 2016-10-31 10:30:36 +01:00
Juergen Spitzmueller
d190ae7787 Issue an error message if conflicting languages are used
Some languages are only supported by Babel, some only by Polyglossia.

If these are combined, we issue an error message now.

Fixes: #10456
2016-10-31 10:26:35 +01:00
Juergen Spitzmueller
9e2d101d5c Handle | verbatim in index insets. 2016-10-31 10:22:43 +01:00
Enrico Forestieri
0dd7505ec6 Sort the language nesting mess with polyglossia
When using polyglossia, lyx was making a real mess when changing
language inside nested insets. The \begin{language} and
\end{language} commands were not well paired such that they could
easily occur just before and after the start or end of an
environment. Of course this was causing latex errors such that
"\begin{otherlanguage} ended by \end{environment}".

Fixes #9633
2016-10-30 00:16:50 +02:00
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