]> git.lyx.org Git - lyx.git/log
lyx.git
6 years ago* UserGuide - add sentence about graphic groups unification.
Pavel Sanda [Thu, 15 Feb 2018 21:41:43 +0000 (22:41 +0100)]
* UserGuide - add sentence about graphic groups unification.

6 years ago* status file
Pavel Sanda [Thu, 15 Feb 2018 20:48:47 +0000 (21:48 +0100)]
* status file

6 years agoOops, asInsetGrpahics is new to master.
Pavel Sanda [Thu, 15 Feb 2018 20:48:23 +0000 (21:48 +0100)]
Oops, asInsetGrpahics is new to master.

6 years agoCosmetics per JMarc's suggestions.
Pavel Sanda [Fri, 9 Feb 2018 22:46:14 +0000 (23:46 +0100)]
Cosmetics per JMarc's suggestions.

6 years agoUnify graphics-groups inside marked block functionality.
Pavel Sanda [Thu, 8 Feb 2018 20:33:37 +0000 (21:33 +0100)]
Unify graphics-groups inside marked block functionality.

Fixes #11026.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203683.html

6 years agoMerge remote-tracking branch 'features/properpaint' into 2.3.2-staging
Jean-Marc Lasgouttes [Thu, 15 Feb 2018 13:08:16 +0000 (14:08 +0100)]
Merge remote-tracking branch 'features/properpaint' into 2.3.2-staging

This makes sure that painting actually happens at paint events, making
display more fluid.

6 years agoFix ghost caret
Jean-Marc Lasgouttes [Mon, 8 Jan 2018 10:49:40 +0000 (11:49 +0100)]
Fix ghost caret

This fixes a regression in e64ea357, where a test has been (badly)
tightened to avoid that two consecutive rows may be redrawn to get rid
of caret ghosts. The test prohibited empty rows from being redrawn.

Moreover, improve the test of cursor boundary to avoid the case where
cursor position is already 0.

Fixes bug #10952.

(cherry picked from commit 66c677b9463feb0687a8228603f86eddd4e859fd)

6 years agoFix compilation in monolithic mode
Jean-Marc Lasgouttes [Sat, 6 Jan 2018 19:46:06 +0000 (20:46 +0100)]
Fix compilation in monolithic mode

(cherry picked from commit 3aa10c8dbaf4813fb30d6e9487a5d50720c7affd)

6 years agoUse a backing store on macOS
Jean-Marc Lasgouttes [Sat, 25 Nov 2017 11:31:11 +0000 (12:31 +0100)]
Use a backing store on macOS

Qt on macOS does not respect the Qt::WA_OpaquePaintEvent attribute and
clears the widget backing store at each update. Therefore, we use our
own backing store in this case.

This restores a simplified version of the code that was removed at 06253dfe.

(cherry picked from commit 2316435f2fd2da28c70e1b251b852d3bf6d8011a)

6 years agoMake sure that rows are repainted when they get (un)selected
Jean-Marc Lasgouttes [Wed, 29 Nov 2017 10:16:09 +0000 (11:16 +0100)]
Make sure that rows are repainted when they get (un)selected

The bug is the following: when selecting several paragraphs quickly
enough, some rows do not get selected.This is a consequence of the
removal of row crc, which lead to not taking into account the
selection status of the row in the decision to repaint.

The solution chosen here is to add a Row::change() helper function to
modify row members. This will set the Row changed status whenever the
value of the member changes.

(cherry picked from commit ae60749f89fb4ee0fca05ac75979d434f6b0401d)

6 years agoFixup ac4bcb12
Jean-Marc Lasgouttes [Fri, 24 Nov 2017 22:36:28 +0000 (23:36 +0100)]
Fixup ac4bcb12

Cursor at end of paragraph should be treated as if boundary was on.

(cherry picked from commit d01dd54bf14167e880c1d0a6382b87e622c2c2ed)

6 years agoAvoid some caret ghosts
Jean-Marc Lasgouttes [Thu, 23 Nov 2017 14:38:17 +0000 (15:38 +0100)]
Avoid some caret ghosts

When the caret is at end of row, if may happen that it is drawn after
the end of the row. In this case caret blinking will not work
properly. This patch extends the row background on the left and right
by Inset::TEXT_TO_INSET_OFFSET. This is only a hack that will not work
if the caret has a ridiculous width like 6.

Additionally, introduce some (disabled) debug code that numbers the
rows on screen by painting order.

Finally, make the code that detects whether the caret was in a given
row more precise (take boundary into account).

Fixes (mostly, see above) bug #10797.

(cherry picked from commit e64ea3576c4534fc647a74d1c9f5e67db39ef783)

6 years agoRemove row crc computation
Jean-Marc Lasgouttes [Sat, 11 Nov 2017 11:40:39 +0000 (12:40 +0100)]
Remove row crc computation

This computation did not make sense anymore since we began to put the
contents in the Row object. The fact that it worked was a coincidence.

Instead, we set rows as changed() on creation and reset that once they
have been drawn. This will allow in the future for a finer definition
of what to redraw or not.

Also update the PAINTING_ANALYSIS document

(cherry picked from commit 9e2da4a3eac83f46ab184ea8d674f84643814017)

6 years agoStore change bar information in row element
Jean-Marc Lasgouttes [Sat, 11 Nov 2017 10:57:39 +0000 (11:57 +0100)]
Store change bar information in row element

It is wrong to compute this at paint time. In general, painting a row
should not require any access to a paragraph object, but we are far
from there now.

(cherry picked from commit 4858bb3bb68aac142815b530a017e3776d1c7c11)

6 years agoAllow multiple calls to processUpdateFlags before redraw
Jean-Marc Lasgouttes [Wed, 11 Oct 2017 16:00:48 +0000 (18:00 +0200)]
Allow multiple calls to processUpdateFlags before redraw

The goal of this commit is to ensure that a processUpdateFlags call
that requires no redraw will not override a previous one that did
require a redraw.

To this end, the semantics of the flag argument is now different: its
value is now OR'ed with a private update_flags_ variable. This
variable is only reset after the buffer view has actually been
redrawn.

A new Update::ForceRedraw flag has been added. It requires a full
redraw but no metrics computation. It is not used in the main code
(yet), but avoids to compute metrics repeatedly in consecutive
processUpdateFlags calls.

The process is now as follows:
- if flags is just None, return immediately, there is nothing to do.
- the Force flag is honored (full metrics computation) and replaced
  with ForceDraw.
- the FitCursor flag is honored and removed from the flags.
- the SinglePar update is added if ForceDraw is not in flags and only
  the current par has been modified.

The remaining flags are only then added to the BufferView update
flags, and the update strategy is computed for the next paint event.

Finally the dubious call to updateMacros in updateMetrics has been
removed for performance reasons.

(cherry picked from commit 8d8988de475bf2055f253823e53fd5627be5de78)

6 years agoCreate new method GuiWorkArea::Private:::updateCaretGeometry
Jean-Marc Lasgouttes [Mon, 2 Oct 2017 15:07:31 +0000 (17:07 +0200)]
Create new method GuiWorkArea::Private:::updateCaretGeometry

This replaces a showCaret/hideCaret pair and avoids an update.

Also remove an update() call in resizeBufferView: is is not necessary
since we are already in a pintEvent handler.

(cherry picked from commit add342d088c1b65343234576a35e567507fb2d49)

6 years agoImprove the logic of caret repainting
Jean-Marc Lasgouttes [Fri, 29 Sep 2017 08:29:39 +0000 (10:29 +0200)]
Improve the logic of caret repainting

For some reason the existing code only considered the bottom row that
contained the cursor. There is no need for that, and actually it
caused painting problems in nested insets.

Tweak the logic of repaint_caret_row_ a bit: there is no need for
repainting when there is currently no caret on screen.

(cherry picked from commit 764a153c69bb9b46a6e6872ce48e06f5f867cc53)

6 years agoFix bad refresh when changing zoom level
Jean-Marc Lasgouttes [Wed, 27 Sep 2017 15:52:06 +0000 (17:52 +0200)]
Fix bad refresh when changing zoom level

Replace the tricky code in LFUN_SCREEN_FONT_UPDATE and replace it with
proper use of DispatchResult flags.

LFUN_BUFFER_ZOOM* does not need to call LFUN_SCREEN_FONT_UPDATE, since
it already does everything that is required.

(cherry picked from commit 9df59aac63bbb56d9d5f5ddcccfaa3ebace2f03d)

6 years agoDo not presume what the defaults for a new QPainter are
Jean-Marc Lasgouttes [Mon, 18 Sep 2017 09:21:18 +0000 (11:21 +0200)]
Do not presume what the defaults for a new QPainter are

(cherry picked from commit 275d306c73e3e0f60e0742adbcb06cce98c48ee5)

6 years agoRemember correctly pixel ratio used for painting
Jean-Marc Lasgouttes [Mon, 18 Sep 2017 08:58:07 +0000 (10:58 +0200)]
Remember correctly pixel ratio used for painting

This avoids endless resize issues on HiDPI systems (e.g. Retina Mac).

Rename pixel_ratio_ to last_pixel_ratio_ to emphasize that this is a
cached value.

Inline needResize method to make the logic clearer in paintEvent.

(cherry picked from commit 6532e5104dfad5416817d89a5f91e53c30cdd523)

6 years agoCompute metrics when graphics is updated
Jean-Marc Lasgouttes [Thu, 14 Sep 2017 13:50:30 +0000 (15:50 +0200)]
Compute metrics when graphics is updated

Remove the old schedule_redraw_ mechanism that was only useful because
of our synchronous drawing code. Now that actual painting is
scheduled instead of forced, it becomes pointless.

Rename WorkArea::redraw(bool) to scheduleRedraw(bool), to show that
the drawing is not done right away.

In GuiView::updateInset, call scheduleRedraw(true), so that metrics
are correctly computed (this was the whole point of the exercise).

(cherry picked from commit a31d3dc67dce9655bee9f1b0a2bc2188d7d97453)

6 years agoUpdate insets position in cache in more cases
Jean-Marc Lasgouttes [Wed, 30 Aug 2017 16:05:16 +0000 (18:05 +0200)]
Update insets position in cache in more cases

This patch makes sure that, every time a ParagraphMetrics has its
position set, the inset positions for the insets held by this
paragraph are remembered too.

This is complementary to BufferView::updatePosCache, but I do not have
hard evidence that this is required other than to increase robustness.
It may help in some cases when scrolling the document (scrollbar,
cursor up/down, page up/down).

6 years agoRename more instances of "cursor" to "caret"
Jean-Marc Lasgouttes [Thu, 24 Aug 2017 15:37:56 +0000 (17:37 +0200)]
Rename more instances of "cursor" to "caret"

Thanks to Pavel for the hint.

6 years agoRemove workaround that is not necessary anymore.
Jean-Marc Lasgouttes [Sun, 23 Jul 2017 13:50:35 +0000 (15:50 +0200)]
Remove workaround that is not necessary anymore.

This code was necessary to handle cases where the insets positions
were not yet in cache. This cannot happen anymore thanks to the
nodraw stage.

6 years agoUpdate the painting process documentation
Jean-Marc Lasgouttes [Sun, 23 Jul 2017 10:39:26 +0000 (12:39 +0200)]
Update the painting process documentation

6 years agoMake input methods support great again
Jean-Marc Lasgouttes [Sat, 22 Jul 2017 22:56:27 +0000 (00:56 +0200)]
Make input methods support great again

This unbreaks input methods by splitting the part of the code that
does the actual drawing to a separate paintPreeditText() method which
is called from paintEvent().

The proper solution would have been to introduce the preedit string in
the Row object, like is done for completion, but this is too complex
to do at this point.

The only change in behavior is that now the commit string is inserted
in one fell swoop, intead of emulating a number of key events.

6 years agoCleanup and simplify WorkArea code
Jean-Marc Lasgouttes [Fri, 21 Jul 2017 23:19:45 +0000 (01:19 +0200)]
Cleanup and simplify WorkArea code

Rename cursor to caret to in order to avoid ambiguity. The caret is
now the blinking thing only.

Remove unused header contents, and some not so useful methods.

No intended change of behavior.

6 years agoFix caret painting
Jean-Marc Lasgouttes [Thu, 20 Jul 2017 21:31:05 +0000 (23:31 +0200)]
Fix caret painting

The trick is to remember in BufferView what has been done at the
previous draw, so that the row that contained the caret can be
repainted if needed.

To this end, add an argument paint_caret to BufferView, although
painting the caret is not the job of the BufferView (at this point).

BufferView::needRepaint will act as an interface with
TextMetrics::drawParagraph to know whether the painting of a given
row should be forced.

Currently everything is done at the top row level, so that, if the
caret is in a large table, the whole table will have to be repainted.
It is not clear yet that this is necessary.

6 years agoDo the actual drawing in the paint event
Jean-Marc Lasgouttes [Fri, 8 Sep 2017 14:55:11 +0000 (16:55 +0200)]
Do the actual drawing in the paint event

Historically, because of two-stage drawing, LyX has been painting on a
Pixmap, and this pixmap is copied to screen at paint event time.

Now that we have three-stage drawing, it is possible to delay the
painting to actual paint event and avoid the intermediate Pixmap.

Known bug: the cursor is never erased.

6 years agothree-stage drawing: add a nodraw stage
Jean-Marc Lasgouttes [Sat, 15 Jul 2017 23:25:03 +0000 (01:25 +0200)]
three-stage drawing: add a nodraw stage

Normally the two stages of drawing are
1/ compute metrics of insets/rows/paragraphs/mathrow...
2/ draw the elements and cache their positions

Now the three stages are
1/ metrics
2/ nodraw: do not draw the elements, but cache their position
3/ draw the elements (and store again their position; it does not
   seems to hurt performance).

Revive the NullPainter: this replaces the setDrawingEnabled mechanism
with a painter that does nothing. The advantage is that updatePosCache
(renamed from setPosCache) does not need anymore to be invoked from
the frontend.

updatePosCache (the nodraw stage) is called at the end of
BufferView::updateMetrics.

6 years agoImplement buffer-anonymize more efficiently
Jean-Marc Lasgouttes [Thu, 15 Feb 2018 11:07:33 +0000 (12:07 +0100)]
Implement buffer-anonymize more efficiently

The work is done now in Paragraph::anonymize().

Move the handling of the lfun to Buffer class.

Document the new feature in release notes.

(cherry picked from commit 1dba36c7cec6aeec2576e7a99e2967e867076a01)

6 years ago* status.23x
Pavel Sanda [Thu, 15 Feb 2018 10:56:34 +0000 (11:56 +0100)]
* status.23x

6 years agoforgotten glitch
Pavel Sanda [Sat, 3 Feb 2018 21:43:00 +0000 (22:43 +0100)]
forgotten glitch

6 years agoLFUN_DOC_ANONYMIZE -> LFUN_BUFFER_ANONYMIZE per JMarc's suggestion.
Pavel Sanda [Sat, 3 Feb 2018 21:05:49 +0000 (22:05 +0100)]
LFUN_DOC_ANONYMIZE -> LFUN_BUFFER_ANONYMIZE per JMarc's suggestion.

6 years agoAdd LFUN_DOC_ANONYMIZE, quick fix for #7259.
Pavel Sanda [Fri, 2 Feb 2018 22:42:56 +0000 (23:42 +0100)]
Add LFUN_DOC_ANONYMIZE, quick fix for #7259.

Backport from master.

6 years agoImplement display of roots more faithfully
Jean-Marc Lasgouttes [Mon, 4 Dec 2017 09:44:49 +0000 (10:44 +0100)]
Implement display of roots more faithfully

This is a follow-up to 758de957.

- unify the metrics and drawing of \sqrt and \root using helper
  functions mathed_root_metrics and mathed_draw_root.

- compute the vertical spacing above the nucleus of the root following
  rule 11 of the TeXbook. In particular, it is different in inline and
  display style.

- draw the root glyph without hard-coded pixel values. Make the line
  width depend on the zoom.

more work is needed to implement properly rule 11:

- Ideally, we should use sqrt glyphs from the math fonts. Note that
  then we would get rule thickness from there.

- The positioning of the root MathData is arbitrary. It should
  follow the definition of \root...\of... in The Texbook in
  Apprendix B page 360.

Fixes bug #10814.

(cherry picked from commit 16af6e7c5067fff0873587af30833e0b8006c435)
(cherry picked from commit 6cb6f78ae9050140c75af089350cd7cccc0b58e1)

6 years agoImprove UndoGroupHelper and use it more
Jean-Marc Lasgouttes [Wed, 13 Dec 2017 10:10:49 +0000 (11:10 +0100)]
Improve UndoGroupHelper and use it more

Now the helper class contains logic that checks whether buffer are
known before closing them. This avoids potential crashes.

Use it in different places to siplify code. It is not clear at this
point whether it should be used everywhere.

Followup to bug #10847.

(cherry picked from commit cd9e42dc3529980257d2b0fe6fd623fd2b99a1e6)

6 years agoBetter handling of multiple buffers in UndoGroupHelper
Jean-Marc Lasgouttes [Wed, 29 Nov 2017 13:10:33 +0000 (14:10 +0100)]
Better handling of multiple buffers in UndoGroupHelper

It may happen that the buffers are visited in order buffer1,
buffer2, buffer1. In this case, we want to have only one undo group
in buffer1. The solution is to replace buffer_ with a set<Buffer*>.

A use case among others is InsetLabel::updateReferences.

(cherry picked from commit cc7364dfc50c399e99158fd9efe2f3eb0e6f4570)

6 years agoHandle properly top/bottom of inset with mac-like cursor movement
Jean-Marc Lasgouttes [Sat, 15 Jul 2017 15:23:22 +0000 (17:23 +0200)]
Handle properly top/bottom of inset with mac-like cursor movement

The correct behavior is to go to position 0 going up from first row,
and to end of row when going down on last row.

The targetx value of the cursor is not updated, which makes cursor
movement more natural.

Fixes bug #10701.

(cherry picked from commit 34285cc6830b061c18998bff8385092a311170a8)

6 years agoRELEASE-NOTES: correct sorting
Uwe Stöhr [Wed, 14 Feb 2018 13:51:57 +0000 (14:51 +0100)]
RELEASE-NOTES: correct sorting

6 years agoUserGuide.lyx: document the removal of the pixmap cache for all languages
Uwe Stöhr [Wed, 14 Feb 2018 13:50:08 +0000 (14:50 +0100)]
UserGuide.lyx: document the removal of the pixmap cache for all languages

6 years agoRELEASE-NOTES: Greek is not dropped
Uwe Stöhr [Wed, 14 Feb 2018 13:48:22 +0000 (14:48 +0100)]
RELEASE-NOTES: Greek is not dropped

6 years ago* RELEASE-NOTES
Pavel Sanda [Wed, 14 Feb 2018 10:11:28 +0000 (11:11 +0100)]
* RELEASE-NOTES

6 years agoDisable and hide the pixmap cache feature
Jean-Marc Lasgouttes [Mon, 12 Feb 2018 10:12:50 +0000 (11:12 +0100)]
Disable and hide the pixmap cache feature

6 years agoUpdated Basque localization by Iñaki Larrañaga Murgoitio
Juergen Spitzmueller [Tue, 13 Feb 2018 17:34:41 +0000 (18:34 +0100)]
Updated Basque localization by Iñaki Larrañaga Murgoitio

6 years agoAlso fix chapter layout in tufte-book.
Richard Heck [Mon, 12 Feb 2018 21:29:54 +0000 (16:29 -0500)]
Also fix chapter layout in tufte-book.

(cherry picked from commit 5f1b32f8c5770c316f3fcb107b0ad88f910e3617)

6 years agoFix crash when citeengine is unknown.
Richard Heck [Mon, 12 Feb 2018 21:26:27 +0000 (16:26 -0500)]
Fix crash when citeengine is unknown.

(cherry picked from commit 5ee3396459602e0982234cab064c5c960af7e4fc)

6 years agoFixing painting regression - chapter top spacing.
Pavel Sanda [Mon, 12 Feb 2018 20:14:56 +0000 (21:14 +0100)]
Fixing painting regression - chapter top spacing.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203685.html

6 years ago* layouttranslations - eu & sv changes.
Pavel Sanda [Mon, 12 Feb 2018 20:22:03 +0000 (21:22 +0100)]
* layouttranslations - eu & sv changes.

6 years agoMerge branch '2.3.x' of git.lyx.org:lyx into 2.3.x
Uwe Stöhr [Mon, 12 Feb 2018 18:04:25 +0000 (19:04 +0100)]
Merge branch '2.3.x' of git.lyx.org:lyx into 2.3.x

6 years agoru.po: some corrections by Yuriy
Uwe Stöhr [Mon, 12 Feb 2018 18:04:08 +0000 (19:04 +0100)]
ru.po: some corrections by Yuriy

6 years agoFix autotools build after AGUTeX.lyx reocation
Juergen Spitzmueller [Mon, 12 Feb 2018 17:57:45 +0000 (18:57 +0100)]
Fix autotools build after AGUTeX.lyx reocation

6 years agoCustomization.lyx: distribute all tracked changes
Uwe Stöhr [Mon, 12 Feb 2018 17:51:48 +0000 (18:51 +0100)]
Customization.lyx: distribute all tracked changes

6 years agoUpdated Basque localization by Iñaki Larrañaga Murgoitio
Juergen Spitzmueller [Mon, 12 Feb 2018 15:41:21 +0000 (16:41 +0100)]
Updated Basque localization by Iñaki Larrañaga Murgoitio

6 years ago Remove sections 6.7 and 6.4 from Additional manual (obsolete classes egs and...
jpc [Mon, 12 Feb 2018 10:30:18 +0000 (11:30 +0100)]
   Remove sections 6.7 and 6.4 from Additional manual (obsolete classes egs and aguplus)
       Edit LaTeXConfig.lyx accordingly
       Move teaplates/AGUTeX.lyx to teaplates/obsolete

6 years agobiblatex-natbib.citeengine: Remove erroneous blank
Juergen Spitzmueller [Sun, 11 Feb 2018 15:43:14 +0000 (16:43 +0100)]
biblatex-natbib.citeengine: Remove erroneous blank

(cherry picked from commit b0ecfebad438358b09d239bd634b2ebac7985221)

6 years agoru.po: is now 100% translated
Uwe Stöhr [Sat, 10 Feb 2018 18:34:29 +0000 (19:34 +0100)]
ru.po: is now 100% translated

big respect to Yuriy!

6 years agoFix race condition in processFuncRequestQueue
Juergen Spitzmueller [Sat, 10 Feb 2018 14:35:12 +0000 (15:35 +0100)]
Fix race condition in processFuncRequestQueue

The issue here was that the element was only removed from the queue
after the func request was processed, but within that process, other
function could access the queue, so the queue could even be empty
when this function finally wanted to remove the item.

Fixes: #10406.
(cherry picked from commit dadec50a18d92d24d42e1ccf7474f07a2a66b5b4)

6 years agoAvoid an infinite loop
Enrico Forestieri [Fri, 9 Feb 2018 22:35:33 +0000 (23:35 +0100)]
Avoid an infinite loop

When pasting "\big" without any following delimiter, avoid
processing the same token again and again. For unknown reasons,
the delim docstring turns out to always be not empty: even when
it simply contains a '0' (no delimiter follows), its length is 1.

Fixes bug #11027.

(cherry picked from commit 8e8b3f610495493f4f1bff3f4a0ff48f4eab4539)

6 years agoFix child document regex in scanLogFile
Juergen Spitzmueller [Fri, 9 Feb 2018 10:42:18 +0000 (11:42 +0100)]
Fix child document regex in scanLogFile

Several problems:
* The regex failed at names such as 1_text_2_text.tex
  (returned "2_text.tex)
* The regex failed at names such as 12_text.tex
  (returned "2_text.tex)
* Masters with digits in the name (2018_text.tex) were
  tracked as their own children

(cherry picked from commit 398e026250f6d7d1687bdf04a8a27a61946d088f)

6 years agotex2lyx: normalize bib and bst paths
Juergen Spitzmueller [Fri, 9 Feb 2018 12:23:50 +0000 (13:23 +0100)]
tex2lyx: normalize bib and bst paths

Fixes: #7637
(cherry picked from commit 3cc98a9bf6ed506d04b502863d6424d36cb778b5)

6 years agoConsider class-provided citation engines
Juergen Spitzmueller [Thu, 8 Feb 2018 12:25:19 +0000 (13:25 +0100)]
Consider class-provided citation engines

Do not attempt to load, nor allow to set, a different engine in this
case.

Fixes: #11022
(cherry picked from commit 2f6ada6644614df5f402efc7cbc1d27911b45376)

6 years agoReset cur.pit() when pasting into tables.
Juergen Spitzmueller [Thu, 8 Feb 2018 18:06:35 +0000 (19:06 +0100)]
Reset cur.pit() when pasting into tables.

The number of paragraphs can change here, so pit() can become invalid.

Fixes: #9983
(cherry picked from commit 6e4e0869006aa4c225162164aaa14a70d041facf)

6 years agoRevert "Mark follow-up paragraphs in a paragraph group as nested."
Juergen Spitzmueller [Thu, 8 Feb 2018 16:09:15 +0000 (17:09 +0100)]
Revert "Mark follow-up paragraphs in a paragraph group as nested."

This reverts commit 70d580fea7c0d3e914a56b9a52b401b9f948e78d.

6 years agoDo not show "Abstract" label in KOMA classes
Juergen Spitzmueller [Tue, 6 Feb 2018 17:39:00 +0000 (18:39 +0100)]
Do not show "Abstract" label in KOMA classes

This is not output by those classes (per default).

(cherry picked from commit 9b23b49d41a17054050e9b98d8cc9bf642026448)

6 years agoAdd missing connection.
Juergen Spitzmueller [Tue, 6 Feb 2018 11:45:22 +0000 (12:45 +0100)]
Add missing connection.

This activates the OK/Apply when a biblatex style file is changed
manually

(cherry picked from commit 6236bcb653f36336b62d4c48769b2d60ec13a0dc)

6 years agoru.po: translations from Yuriy
Uwe Stöhr [Sun, 4 Feb 2018 22:40:37 +0000 (23:40 +0100)]
ru.po: translations from Yuriy

6 years agopo files: remerge again some files
Uwe Stöhr [Sun, 4 Feb 2018 14:33:50 +0000 (15:33 +0100)]
po files: remerge again some files

I have seen that line numbers changed in the meantime, therefore help the translators whose files are not yet 100% translated a bit

6 years agoar.po: updates from Hatim
Uwe Stöhr [Sun, 4 Feb 2018 14:23:36 +0000 (15:23 +0100)]
ar.po: updates from Hatim

6 years agoEnable CompressorProxy for all Workareas (incl. EmbeddedWorkarea)
Juergen Spitzmueller [Thu, 1 Feb 2018 13:58:49 +0000 (14:58 +0100)]
Enable CompressorProxy for all Workareas (incl. EmbeddedWorkarea)

This fixes the Advanced F&R.

(cherry picked from commit 5ce36019e591fbdf4a0cb3e44f3f9e2dc662be89)

6 years agosv.po: updates from Jim
Uwe Stöhr [Fri, 2 Feb 2018 20:30:09 +0000 (21:30 +0100)]
sv.po: updates from Jim

6 years agoDouble escape binary regexes in module and citeengine searches.
Richard Heck [Fri, 2 Feb 2018 03:08:55 +0000 (22:08 -0500)]
Double escape binary regexes in module and citeengine searches.

See previous commit for explanation.

(cherry picked from commit 0e3d20929570729d2db5cd3b4b930e5234b426ac)

6 years agoDouble escape binary regex in lyx2lyx and fix line-ending problem.
Richard Heck [Fri, 2 Feb 2018 02:58:29 +0000 (21:58 -0500)]
Double escape binary regex in lyx2lyx and fix line-ending problem.

When we switched from r'...' to b'...', this required strings used
as input to re.compile to be double-escaped. It's not an issue with
"\s", because "\s" has no special meaning in a string.

Also, printing in binary mode did not output a line ending.

(cherry picked from commit 6b5a7116cd6697d1121a5ffb76d54102a8e265ba)

6 years agoFrench docs: remove a file that was accidentally committed
Uwe Stöhr [Thu, 1 Feb 2018 04:18:51 +0000 (05:18 +0100)]
French docs: remove a file that was accidentally committed

6 years agopt_BR.po: updates from Georger
Uwe Stöhr [Thu, 1 Feb 2018 04:10:06 +0000 (05:10 +0100)]
pt_BR.po: updates from Georger

- He also reviewed layouttranslations and says it is OK

6 years ago Remove unappropriate French style command from preamble
jpc [Wed, 31 Jan 2018 16:48:04 +0000 (17:48 +0100)]
      Remove unappropriate French style command from preamble

6 years agoFrench docs: port Günter's changes to branch
Uwe Stöhr [Wed, 31 Jan 2018 04:46:58 +0000 (05:46 +0100)]
French docs: port Günter's changes to branch

Günter please always commit to the current branch except it is a change that describes a new feature in master

6 years agoru.po: more translations from Yuriy
Uwe Stöhr [Wed, 31 Jan 2018 04:41:58 +0000 (05:41 +0100)]
ru.po: more translations from Yuriy

6 years agoOnce more, the libertine font package has been renamed.
Juergen Spitzmueller [Tue, 30 Jan 2018 07:16:06 +0000 (08:16 +0100)]
Once more, the libertine font package has been renamed.

Take the newest one, if present.

Candidate for 2.3.x.

(cherry picked from commit 7e071f14b9394d1e8e974ba5d19c61921c203f5b)

6 years ago Translation of sections 6.4 (aguplus) and 6.7 (egs)
jpc [Tue, 30 Jan 2018 14:09:23 +0000 (15:09 +0100)]
  Translation of sections 6.4 (aguplus) and 6.7 (egs)

      Note that both sections are oudated
      since 2016 for aguplus and 2002 for egs
      I added notes avout this in the French version of the manual

6 years agoMake sure to add at least one element in row if possible
Jean-Marc Lasgouttes [Sat, 27 Jan 2018 11:29:27 +0000 (12:29 +0100)]
Make sure to add at least one element in row if possible

breakRow should only produce an empty row when there is nothing left
in the paragraph.

Fixes bug #10996.

(cherry picked from commit 253b935f65759ba15b6af02117f8316e2aaf676e)

6 years agoRemove 'premature optimization' that proved buggy
Jean-Marc Lasgouttes [Wed, 3 Jan 2018 17:28:55 +0000 (18:28 +0100)]
Remove 'premature optimization' that proved buggy

At some time it seemed like a good idea in breakRow() to return early
when the row was bound to be empty. It turns out that this creates two
symptoms:

* empty paragraphs will not have an end of paragraph marker

* since row width is not correctly computed in this case, caret ghosts
  can appear in master.

This commit removes the oprimization and replace the do {} while()
construct to a straightforward while() {}.

Related to bug #10952.

(cherry picked from commit 76f0a3dd4ee5c7958c6dea79628ef8c2ac2c59bd)

6 years agoDocument B_ in cite style definitions
Juergen Spitzmueller [Sat, 27 Jan 2018 13:53:18 +0000 (14:53 +0100)]
Document B_ in cite style definitions

(cherry picked from commit 8a08a19122c8319cd8761e32c582ec2f42f20034)

6 years agoDifferentiate Buffer strings and GUI strings in citeengines
Juergen Spitzmueller [Sat, 27 Jan 2018 13:26:36 +0000 (14:26 +0100)]
Differentiate Buffer strings and GUI strings in citeengines

The former need to be translated to the buffer language, the latter to
the GUI language.

Fixes: #10946
(cherry picked from commit 5db4d712ef660273c1c12f211fdb4adf5a792ec3)

6 years agoAdd Bibliography to the Outliner.
Juergen Spitzmueller [Mon, 29 Jan 2018 08:09:51 +0000 (09:09 +0100)]
Add Bibliography to the Outliner.

Fixes: #11001, #7724.
(cherry picked from commit fc2d8238dc5e589220e68766975b5438f1e57251)

6 years agoFrench EmbeddedObjects.lyx: sync document settings with English version
Uwe Stöhr [Mon, 29 Jan 2018 14:09:41 +0000 (15:09 +0100)]
French EmbeddedObjects.lyx: sync document settings with English version

- English EmbeddedObjects.lyx: correct a typo

6 years agoRevert "Fix bug #11055."
Richard Heck [Mon, 29 Jan 2018 04:51:40 +0000 (23:51 -0500)]
Revert "Fix bug #11055."

This reverts commit 0be5ae123c212f544ace41fa94a2149c0973595b.

Unintentionally committed. Sorry!!

6 years agoFix bug #11055.
Richard Heck [Mon, 29 Jan 2018 04:33:45 +0000 (23:33 -0500)]
Fix bug #11055.

See also https://marc.info/?l=lyx-devel&m=151709211602688&w=2.

(cherry picked from commit d3ee87eea282ca6e8f0a78bc6a0e27b4f0942624)

6 years agoBack to development
Scott Kostyshak [Mon, 29 Jan 2018 02:44:36 +0000 (21:44 -0500)]
Back to development

6 years agoThis is LyX 2.3.0rc2 2.3.0rc2
Scott Kostyshak [Mon, 29 Jan 2018 02:42:33 +0000 (21:42 -0500)]
This is LyX 2.3.0rc2

6 years agoRemerge strings for 2.3.0rc2
Scott Kostyshak [Mon, 29 Jan 2018 02:42:32 +0000 (21:42 -0500)]
Remerge strings for 2.3.0rc2

6 years agoUpdate docs to 2.3.0rc2 format
Scott Kostyshak [Mon, 29 Jan 2018 02:41:52 +0000 (21:41 -0500)]
Update docs to 2.3.0rc2 format

6 years agoUpdate NEWS for 2.3.0rc2
Scott Kostyshak [Mon, 29 Jan 2018 02:13:19 +0000 (21:13 -0500)]
Update NEWS for 2.3.0rc2

6 years agoUpdate ANNOUNCE for 2.3.0rc2
Scott Kostyshak [Mon, 29 Jan 2018 01:49:43 +0000 (20:49 -0500)]
Update ANNOUNCE for 2.3.0rc2

6 years agoFrench Additional.lyx: fixes to be in sync with the English version
Uwe Stöhr [Mon, 29 Jan 2018 00:34:31 +0000 (01:34 +0100)]
French Additional.lyx: fixes to be in sync with the English version

- 2 new sections added, some preamble fixes
- English Additional.lyx: remove unnecessary preamble code

6 years ago One more edtion after Additional.lyx update
jpc [Sun, 28 Jan 2018 21:16:30 +0000 (22:16 +0100)]
   One more edtion after Additional.lyx update

6 years ago A couple of typos detected while translating fr/Additional.lyx
jpc [Sun, 28 Jan 2018 21:10:29 +0000 (22:10 +0100)]
    A couple of typos detected while translating fr/Additional.lyx

6 years ago Update fr.po
jpc [Sun, 28 Jan 2018 21:00:19 +0000 (22:00 +0100)]
    Update fr.po

6 years ago Update French Additional manual fir 2.3.0
jpc [Sun, 28 Jan 2018 16:31:21 +0000 (17:31 +0100)]
  Update French Additional manual fir 2.3.0
      Correlated changes in fr.po

6 years agoUpdate sk.po
Kornel Benko [Sun, 28 Jan 2018 12:26:40 +0000 (13:26 +0100)]
Update sk.po