Commit Graph

35929 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
04350ad288 Cache QTextLayout objects with Qt/Mac
It seems that the internal Qt5 caching does not work well here,
especially in the case of ancient Hebrew documents.

(cherry picked from commit 5354c64b27)
2017-06-01 10:54:28 +02:00
Jean-Marc Lasgouttes
413de12adf Take in account end of paragraph marker for inset width
When an inset wants to use the whole available width, it is necessary
to take into account that some of this width may already be taken by
the end-of-paragraph (pilcrow) marker.

Fixes bug #10537.

(cherry picked from commit 91f3b21e42)
2017-05-30 11:59:35 +02:00
Richard Heck
f3fcf18e96 Revert unintended part of commit that was causing changed output. 2017-05-29 18:25:26 -04:00
Richard Heck
f92744d18d These two routines are now redundant.
(cherry picked from commit c19794a013)
2017-05-24 23:44:03 -04:00
Richard Heck
348c95d1bf We can now use the cached information instead of tracing the graph.
(cherry picked from commit 7c9e9b4c90)
2017-05-24 23:40:05 -04:00
Richard Heck
e9b14eed60 Use a typedef for vector<Format const *>, which is what gets used
for lists of exportable and importable formats.

(cherry picked from commit 014bc7805e)
2017-05-24 23:35:51 -04:00
Richard Heck
1cdbf23d69 Since we're now caching this, we can sort it once, rather than
lots of times.

(cherry picked from commit 7fd1a14c1b)
2017-05-24 23:30:09 -04:00
Richard Heck
2775295014 Simple cache for information on exportable formats, since we seem
to access this information a lot.

(cherry picked from commit 0b67e103e9)
2017-05-24 21:39:22 -04:00
Kornel Benko
d2b6520783 Update sk.po 2017-05-23 17:24:57 +02:00
Jean-Marc Lasgouttes
b82137ef18 Row::Element::x2pos: go to nearest point also over insets
getPosNearX, which is the only user of x2pos, should always return the
nearest position.

In editXY, there is a need to return the position where the inset
stands, but it is done using checkInsetHit.

Fixes part of bug #10569.

(cherry picked from commit 8769c0fb75)
(cherry picked from commit 20696ecb7e)
2017-05-23 11:02:06 +02:00
Jean-Marc Lasgouttes
ff97324621 Set boundary correctly in getPosNearX
The code that looks whether neighbor block has a different direction
should look to the left or to the right depending on the direction of
the current block.

Fixes part of bug #10569

(cherry picked from commit e3d252cd62)
2017-05-23 10:59:24 +02:00
Jean-Marc Lasgouttes
bafc40b857 editXY: make cursor positionning correct over non editable inset
Instead of using complicated (and wrong) code, it is better to use
getPosNearX here.

Also simplify the code by removing temporary variables.

Fixes part of #10569.

(cherry picked from commit 6a0c1c6573)
2017-05-23 10:57:26 +02:00
Jean-Marc Lasgouttes
db9f41c039 Work around bug in QTextLine::xToCursor
With RtL text, the method can be non-monotonic wrt x value (which is a
Qt bug). To work around this, we check whether positions adjacent to
those returned by xToCursor look better. Depending on whether the new
x position is too small or too large, we look backward or forward for
a better solution.

The performance is probably not great, but this is only needed for
user interactions, so the performance penalty should not be a problem.

Fixes part of #10569.

(cherry picked from commit da590925cd)
2017-05-23 10:50:08 +02:00
Enrico Forestieri
05d4332152 Fix bug #10469 2017-05-20 02:36:16 +02:00
Uwe Stöhr
7b0f63f67b Color.cpp: backport fix for bug #10656 2017-05-16 23:47:35 +02:00
Uwe Stöhr
e40205e749 InsetFloat.cpp: backport fix for bug #10618 2017-05-16 23:44:32 +02:00
Juergen Spitzmueller
0887f89350 Do not add symbols twice to Encoding::symbolsList()
Also sort the list properly.

Fixes #10644
2017-05-16 13:37:29 +02:00
Richard Heck
eb4723a589 Start 2.2.4 development. 2017-05-15 21:35:33 -04:00
Richard Heck
35a6fddf52 Typos. 2017-05-08 09:20:54 -04:00
Richard Heck
70df49c2f2 Prepare for 2.2.3. 2017-05-07 12:37:03 -04:00
Uwe Stöhr
f0877e26c0 ia.po: updates for 2.2.3 from Giovanni 2017-04-29 16:00:36 +02:00
Uwe Stöhr
62ad4a1ab5 lyx2lyx/lyx_2_2.py: backport another box reversion issue 2017-04-24 23:02:09 +02:00
Scott Kostyshak
1c9c2c90ca NEWS: fix typo 2017-04-24 01:18:10 -04:00
Uwe Stöhr
d6f6cca35d Arabic Shortcuts.lyx: remove an inset-info
as reported on the lyx-docs list this inset prevents the compilation of the file on Mac OS
2017-04-23 14:22:34 +02:00
Uwe Stöhr
ee0ba5948e Shortcuts.lyx: save with LyX 2.2.2
Changelog-UserGuide-LyX_22x.txt: document a missing translation
2017-04-23 01:39:52 +02:00
Uwe Stöhr
d345ff3831 Arabic doc files: some fine-tuning
a phantom does trick better than a space because the output won't be changed
2017-04-22 19:16:00 +02:00
Uwe Stöhr
7b131a2234 Win installer: prepare for LyX 2.2.3 2017-04-22 00:35:38 +02:00
Uwe Stöhr
5bb6e25617 Arabic Intro.lyx: fix LyX logo in section headings
the previous commit changed the LyX logo to be in English but that broke the PDF bookmark text and also the TOC. The solution is to use the real logo and a short title with \texorpdfstring
2017-04-22 00:05:51 +02:00
Uwe Stöhr
cac7b005e4 Arabic Intro.lyx: mark LTR text as English like we do for the Hebrew doc files
thanks to Mike from the lyx-docs list for this
2017-04-20 23:53:18 +02:00
Uwe Stöhr
1a0535e78a UserGuide.lyx: fix a typo
- also 2 formatting fixes
2017-04-20 22:38:19 +02:00
Uwe Stöhr
826b704b31 backport fix for bug #10440
thanks Enrico!
2017-04-20 22:20:50 +02:00
Uwe Stöhr
0271602b8d - backport fix for bug #10466
Handle the command \multicolumn correctly in math macros
2017-04-18 23:53:27 +02:00
Uwe Stöhr
fc2db913e0 lyx2lyx/lyx_2_0.py: fix box reversion and conversion routines 2017-04-17 22:13:46 +02:00
Uwe Stöhr
113c9a2f7f lyx2lyx/lyx_2_2.py: rewrite the box reversion routines
- will fix several bugs with nested boxes
2017-04-17 21:06:47 +02:00
Uwe Stöhr
848c424588 Revert "French Tutorial.lyx: some typographic fixes"
This reverts commit 2a10603c87.
2017-04-17 15:26:17 +02:00
Uwe Stöhr
ac479dd814 doc files: update the changelogs 2017-04-17 15:19:17 +02:00
jpc
d7405f5c9e Translate two remaining chunks 2017-04-17 10:16:56 +02:00
Uwe Stöhr
7ceaa7e783 PDF-form.lyx: some minor fixes 2017-04-17 04:10:48 +02:00
Uwe Stöhr
a36fc2b8e4 doc files: improve 3 PDFs 2017-04-16 23:14:25 +02:00
Kornel Benko
60e3b72758 Update sk.po 2017-04-16 21:15:35 +02:00
Uwe Stöhr
de5d392581 German EmbeddedObjects.lyx: correct an image path 2017-04-16 20:06:28 +02:00
Uwe Stöhr
a3edc38747 status.22x: the image update deserves an entry 2017-04-16 19:57:59 +02:00
Uwe Stöhr
58b5c70d23 doc files: update more images
- the ERT example
- the Japanese screenshot images
- adapt the LyX files accordingly
2017-04-16 19:54:51 +02:00
Uwe Stöhr
2a10603c87 French Tutorial.lyx: some typographic fixes
- footnotes should be after the sentence dot
2017-04-16 19:09:48 +02:00
Uwe Stöhr
67428dcf95 doc files: update images
- as requested by a user we can use PostScript level 3 for EPS and PDF version 1.5
- he also requested to update the screenshot images
- rescale the SVG image to the CSS standard (96 dpi) as recommended by Inkscape
- update the docs files to the new screenshot image size
2017-04-16 19:08:26 +02:00
Uwe Stöhr
64206d3725 lyx2lyx/lyx_2_2.py: fix 2 issues with the reversion of boxes 2017-04-16 16:37:05 +02:00
Uwe Stöhr
e65a6624a5 de.po: use a more suitable translation 2017-04-16 16:01:05 +02:00
Uwe Stöhr
23daedf05d French Math.lyx: a tiny correction 2017-04-16 15:59:11 +02:00
Uwe Stöhr
c4b15264aa French Math.lyx: revert [ade28912/lyxgit]
LyX 2.2.x can only handle the fileformat of LyX 2.2
(I kept the new translation)
2017-04-16 15:55:46 +02:00
Uwe Stöhr
f45ee330f5 PDF-form.lyx: some corrections and updates 2017-04-16 15:46:27 +02:00