]> git.lyx.org Git - lyx.git/log
lyx.git
4 weeks agoFix wrong preedit cursor position in Qt5
Koji Yokota [Tue, 20 Aug 2024 12:11:15 +0000 (21:11 +0900)]
Fix wrong preedit cursor position in Qt5

4 weeks agoUpdate sk.po, sk.gmo
Kornel Benko [Tue, 20 Aug 2024 10:47:44 +0000 (12:47 +0200)]
Update sk.po, sk.gmo

4 weeks agoFix regression introduced via #12819.
Pavel Sanda [Tue, 20 Aug 2024 07:32:03 +0000 (09:32 +0200)]
Fix regression introduced via #12819.

Cherry-pick e322ef153.

4 weeks agoUpdate ja.po
Koji Yokota [Mon, 19 Aug 2024 02:05:10 +0000 (11:05 +0900)]
Update ja.po

4 weeks agoUpdate status.24x
Enrico Forestieri [Sun, 18 Aug 2024 21:00:02 +0000 (23:00 +0200)]
Update status.24x

4 weeks agoUpdate it.po
Enrico Forestieri [Sun, 18 Aug 2024 20:56:29 +0000 (22:56 +0200)]
Update it.po

4 weeks agode.po
Juergen Spitzmueller [Sun, 18 Aug 2024 16:43:16 +0000 (18:43 +0200)]
de.po

4 weeks agoDocument recent commits
Juergen Spitzmueller [Sun, 18 Aug 2024 16:34:29 +0000 (18:34 +0200)]
Document recent commits

4 weeks agoImprove output pane, as discussed in #12372
Juergen Spitzmueller [Sun, 18 Aug 2024 16:18:07 +0000 (18:18 +0200)]
Improve output pane, as discussed in #12372

* The image scale param is shared by XHTML and DocBook
* It does not only apply to math
* Get rid of redundant group headers (#12902)

(cherry picked from commit 1429552063dfe9909dd5789b9fb1715ddee7d77d)

4 weeks agoAdd "needcopiesfrom" converter flag
Juergen Spitzmueller [Sun, 18 Aug 2024 15:53:51 +0000 (17:53 +0200)]
Add "needcopiesfrom" converter flag

This is needed to provide ePub and other DocBook-based exports with
the right (renamed) images (fixes #12372)

(cherry picked from commit 03c58420060fef520d74d835bb39e1b1c9fd7c1e)

4 weeks agoUpdate sk.po, sk.gmo
Kornel Benko [Sun, 18 Aug 2024 11:09:26 +0000 (13:09 +0200)]
Update sk.po, sk.gmo

4 weeks ago* cs.po
Pavel Sanda [Sun, 18 Aug 2024 10:07:24 +0000 (12:07 +0200)]
* cs.po

4 weeks agode.po
Juergen Spitzmueller [Sun, 18 Aug 2024 07:20:56 +0000 (09:20 +0200)]
de.po

4 weeks agoRemerge strings.
Richard Kimberly Heck [Sat, 17 Aug 2024 23:38:54 +0000 (19:38 -0400)]
Remerge strings.

4 weeks agoAdd temporary directory to About LyX dialog
Richard Kimberly Heck [Tue, 25 Jun 2024 15:32:26 +0000 (11:32 -0400)]
Add temporary directory to About LyX dialog

(cherry picked from commit e7af6afb01183e2fdf798dd401499839ba0a195a)

5 weeks agoImprove detection of our math fonts
Enrico Forestieri [Tue, 13 Aug 2024 20:51:40 +0000 (22:51 +0200)]
Improve detection of our math fonts

It turns out that Qt font selection via style name is broken on
Windows (QTBUG-101436). As we use our own style name for discriminating
our math fonts and applying proper kerning, we need a fallback method.
With this commit we check for the family name when the style name does
not match. In computing the kerning we also consider the right bearing
reported by the font instead of the width of the enclosing bounding box,
as this produces better results (see bug 13087).

Fixes #13087.

(cherry picked from commit d632753dea7cd3985f64b0c7e9db055c5a6c48f4)

5 weeks agoforgotten subindex
Juergen Spitzmueller [Thu, 15 Aug 2024 06:51:18 +0000 (08:51 +0200)]
forgotten subindex

(cherry picked from commit 9835022c59b005a34b6f1c47031b7402ed526909)

5 weeks agoDisable valign widget in tabularx tables
Juergen Spitzmueller [Wed, 14 Aug 2024 14:28:15 +0000 (16:28 +0200)]
Disable valign widget in tabularx tables

See https://marc.info/?l=lyx-users&m=172363857509065&w=2

(cherry picked from commit c993485782a1f47c6eafc9335c8905b3def7e083)

5 weeks agoUnbreak GuiTabular::fucEnabled()
Juergen Spitzmueller [Wed, 14 Aug 2024 14:27:20 +0000 (16:27 +0200)]
Unbreak GuiTabular::fucEnabled()

I wonder how long this has been broken (if it ever worked)

(cherry picked from commit 6b0c243cda6a540907ded6d5298ae3fb23836a6d)

5 weeks agoProperly escape special characters (!, @, |) in nomenclature output
Juergen Spitzmueller [Mon, 12 Aug 2024 16:22:57 +0000 (18:22 +0200)]
Properly escape special characters (!, @, |) in nomenclature output

5 weeks ago Update fr.po
jpc [Sat, 10 Aug 2024 16:08:34 +0000 (18:08 +0200)]
  Update fr.po

6 weeks agoUpdate sk.po
Kornel Benko [Thu, 8 Aug 2024 08:36:52 +0000 (10:36 +0200)]
Update sk.po

6 weeks agolyx_pot.py: Fix regex for \Format
Juergen Spitzmueller [Wed, 7 Aug 2024 07:11:35 +0000 (09:11 +0200)]
lyx_pot.py: Fix regex for \Format

Each token could be delimited by quotation marks or not. The previous
regexes only considered this for two tokens and hence produced wrong
matches for cases such as

\Format gnuplot     "gp, gnuplot, plt"    "Gnuplot"     "" "" ""  "vector" "text/plain"

where the extension list wasn't parsed as a single token.

(cherry picked from commit 1efdc11296b0acf98d1180e18c0daa3e9a79bfec)

6 weeks agoUpdate sk.po
Kornel Benko [Wed, 7 Aug 2024 08:53:41 +0000 (10:53 +0200)]
Update sk.po

6 weeks agode.po
Juergen Spitzmueller [Wed, 7 Aug 2024 07:14:44 +0000 (09:14 +0200)]
de.po

6 weeks agoRestore obvious shortcut
Richard Kimberly Heck [Tue, 6 Aug 2024 18:50:29 +0000 (14:50 -0400)]
Restore obvious shortcut

(cherry picked from commit 337a94a425b02b5fb685740f9f636c1696600e83)

6 weeks agoAdd plt as gnuplot extension (#11148)
Juergen Spitzmueller [Tue, 6 Aug 2024 14:29:55 +0000 (16:29 +0200)]
Add plt as gnuplot extension (#11148)

This seems to be the common one on Windows

(cherry picked from commit f2e6a9b4aed4125284712ff041b6443e0ba01c57)

6 weeks agoFix bug with display of reference tooltips.
Richard Kimberly Heck [Tue, 6 Aug 2024 15:31:35 +0000 (11:31 -0400)]
Fix bug with display of reference tooltips.

Previously, the tooltip was assigned during updateBuffer. But then
we could not determine the value for forward references.

(cherry picked from commit b494286a9c271b1f39d6248d977d2ef14a71f64c)

6 weeks agotemp
Richard Kimberly Heck [Tue, 6 Aug 2024 15:18:51 +0000 (11:18 -0400)]
temp

6 weeks agoset toc_string_ before the label is being truncated
Juergen Spitzmueller [Tue, 6 Aug 2024 08:57:11 +0000 (10:57 +0200)]
set toc_string_ before the label is being truncated

We do not want truncated items in the outliner.

(cherry picked from commit 8aeee03e3ad61b437fb8ef9a4b5c4744f5b18c22)

6 weeks agoUse the old-style sorts of label strings in the TOC.
Richard Kimberly Heck [Mon, 5 Aug 2024 22:11:24 +0000 (18:11 -0400)]
Use the old-style sorts of label strings in the TOC.

There are several reasons to do it this way, among which is odd
behavior of the TOC filter if we put anything else there. This also
allows for filtering of the references themsevles in a natural way.

The change, I think, was really an unintended consequence of other
changes connected to showing formatted references in the work area.

(cherry picked from commit 1de4645286e5e51d2e5f6084ee53f3fcb463475d)

6 weeks agoOops
Juergen Spitzmueller [Mon, 5 Aug 2024 11:43:51 +0000 (13:43 +0200)]
Oops

6 weeks agoupdate status
Juergen Spitzmueller [Mon, 5 Aug 2024 11:20:23 +0000 (13:20 +0200)]
update status

6 weeks agoAdd Tomasz Kołodziejski to the credits
Juergen Spitzmueller [Mon, 5 Aug 2024 08:42:06 +0000 (10:42 +0200)]
Add Tomasz Kołodziejski to the credits

6 weeks agoUpdate Polish translation (from Tomasz Kołodziejski)
Juergen Spitzmueller [Mon, 5 Aug 2024 08:40:19 +0000 (10:40 +0200)]
Update Polish translation (from Tomasz Kołodziejski)

6 weeks agoUpdate Polish translation (from Tomasz Kołodziejski)
Juergen Spitzmueller [Mon, 5 Aug 2024 08:40:19 +0000 (10:40 +0200)]
Update Polish translation (from Tomasz Kołodziejski)

6 weeks agoAdd Tomasz Kołodziejski to the credits
Juergen Spitzmueller [Mon, 5 Aug 2024 08:28:31 +0000 (10:28 +0200)]
Add Tomasz Kołodziejski to the credits

(cherry picked from commit 43baae382c201beff9d967e72dbf9ec699980c88)

6 weeks agoUpdate sk.po
Kornel Benko [Fri, 2 Aug 2024 07:14:27 +0000 (09:14 +0200)]
Update sk.po

7 weeks agode.po
Juergen Spitzmueller [Thu, 1 Aug 2024 15:10:54 +0000 (17:10 +0200)]
de.po

7 weeks agoDisambiguate string
Juergen Spitzmueller [Thu, 1 Aug 2024 10:16:10 +0000 (12:16 +0200)]
Disambiguate string

At least in German "label" in a form and "label" as in \label
translate differently

(cherry picked from commit 7ac4e53e37d10dc2e4b99fc5527db366bcc504f4)

7 weeks agoConsider masked modifiers (~S etc.) when writing to bind file
Juergen Spitzmueller [Sun, 21 Jul 2024 08:18:58 +0000 (10:18 +0200)]
Consider masked modifiers (~S etc.) when writing to bind file

Fixes #12973

(cherry picked from commit eb1ac06a9ad9bafd50c26fb951dd38a8d970c199)

7 weeks agoStatus
Richard Kimberly Heck [Sat, 27 Jul 2024 15:19:19 +0000 (11:19 -0400)]
Status

7 weeks agoLoad geometry after graphics
Juergen Spitzmueller [Sat, 27 Jul 2024 10:46:12 +0000 (12:46 +0200)]
Load geometry after graphics

Newer graphics driver overwrite some (output) page settings otherwise
See https://tex.stackexchange.com/a/384952/19291

Re-fixes #10970

(cherry picked from commit ca4fc01847c721b0ed23ef7a486444d47ff70cf0)

8 weeks agoMake scrolling-by-selection smoother
Jean-Marc Lasgouttes [Sat, 20 Jul 2024 17:47:32 +0000 (19:47 +0200)]
Make scrolling-by-selection smoother

This trivial patch makes scrolling-by-selection smoother by dividing
the step size and the time between steps by 8 when generating
synthetic events in work area.

The scrolling speed is unchanged, but the result is visually better.

(cherry picked from commit 1cc1f0ba27d1846ba244507529d4795ecfa29a39)

8 weeks agoSquash gcc warning.
Pavel Sanda [Wed, 24 Jul 2024 17:55:05 +0000 (19:55 +0200)]
Squash gcc warning.

8 weeks agoDo not export the content of InsetMathBoxed as text in MathML
Jean-Marc Lasgouttes [Tue, 23 Jul 2024 21:44:58 +0000 (23:44 +0200)]
Do not export the content of InsetMathBoxed as text in MathML

\boxed{} is the only box in LaTeX that contains math. It is amusing
that the example file that we had for ticket #13609 should not have
been a problem since there is no reason to force <mtext> there.

(cherry picked from commit 1186d90edf9a6702573f296d5642c5e61ceaaedf)

8 weeks agoFixup b29b3eb1: close <mtext> when quitting text mode
Jean-Marc Lasgouttes [Tue, 23 Jul 2024 20:02:50 +0000 (22:02 +0200)]
Fixup b29b3eb1: close <mtext> when quitting text mode

This fixes malformed documents on UserGuide export.

Related to bug #13069.

(cherry picked from commit 1385f0fddd0229770496b1e50b76782892032d18)

8 weeks agoFixup b29b3eb1: fix broken xml syntax
Jean-Marc Lasgouttes [Tue, 23 Jul 2024 13:04:49 +0000 (15:04 +0200)]
Fixup b29b3eb1: fix broken xml syntax

This commit addresses two issues:

1/ the embarassing one: the member SetMode::old_text_level_ was
   declared as bool instead of int. This means that is was definitely
   not a proper backup variable!

2/ a robustness issue: replace two consecutive test for isTest() by a
   boolean veriable that is used twice. This makes sure that <mrow>
   cannot be output without the corresponding </mrow>.

Part of bug #13069.

(cherry picked from commit a268fe096a58a7818554a7da4da85896bb289c81)

8 weeks ago Update fr.po
jpc [Wed, 24 Jul 2024 14:24:38 +0000 (16:24 +0200)]
        Update fr.po

8 weeks agoFix crash when generating MathML with InsetMathBox
Jean-Marc Lasgouttes [Sat, 20 Jul 2024 10:15:32 +0000 (12:15 +0200)]
Fix crash when generating MathML with InsetMathBox

Instead of generating code and parsing it to add <mtext>...</mtext> at
the right spots, this commit honors the text mode setting that was
already present in the codebase to generate it automatically.

This is the work of two helper methods in MathMLStream:

* beforeText() notices when the stream is in text mode and that a
  <mtext> has not yet been generated. In this case it inserts it, so
  that raw text can be emitted afterwards.

* beforeTag() checks whether a <mtext> needs to be closed at this
  point, and does it if needed.

To make this work, the code now tracks the nesting level in the
stream, and compares it the what the level was when text mode has been
enabled using the SetMode helper function.

In order to avoid later bugs, member os() that allows to access the
underlying stream of MathMLStream is removed. This required many <<
operators to become friends of MathMLStream.

In InsetMathBox, rename splitAndWrapInMText() to mathmlizeHelper(),
which is not just a method that sets text mode inside a <mrow>
element.

In InsetMathFont and InsetMathHull, the explicit generation of nesting
in <mtext>...</mtext> can be removed now.

Fixes bug #13069.

(cherry picked from commit 216a6fb348dedac3230f651287a0ccfb48b88818)

8 weeks agoCleanup MathMLStream
Jean-Marc Lasgouttes [Fri, 19 Jul 2024 12:57:58 +0000 (14:57 +0200)]
Cleanup MathMLStream

This is preparatory work for fixing ticket #13069.

Remove direct accesses to the underlying stream of MathMLStream in
InsetMathChar, InsetMathSpecialChar, and in all << operators other
than MathMLStream << docstring. This will allow to add a hook later in
this operator.

Move default values of MathMLStream private members to their definition.

Get rid of line_ member, which is not used.

(cherry picked from commit fbd4b0a13fae4263cc88aa76bc4fbba5178b15fa)

8 weeks agoRemove alpha component of system colors
Jean-Marc Lasgouttes [Mon, 22 Jul 2024 18:36:20 +0000 (20:36 +0200)]
Remove alpha component of system colors

When using system colors it may happen (on windows 11 in particular)
that the background color is actually translucid. This is not
something we are prepared to handle and it creates ghosts on screen.

The fix is easy: the alpha channel of the colors is set to 255.

Fixes bug #13084.

(cherry picked from commit 095bb18331f8eb4653691a64520d89d4a2d60fc4)

8 weeks agotex2lyx: Fix two bugs in nomencl import
Juergen Spitzmueller [Mon, 22 Jul 2024 07:51:54 +0000 (09:51 +0200)]
tex2lyx: Fix two bugs in nomencl import

* The comment character % is made active to serve as an escape char
* quotation marks need to be escaped

(cherry picked from commit 5bc4c11fd601773a7ffba850524afa03eafe13f9)

8 weeks agoUserGuide: fix two nomencl entries
Juergen Spitzmueller [Mon, 22 Jul 2024 08:42:54 +0000 (10:42 +0200)]
UserGuide: fix two nomencl entries

(cherry picked from commit 9f31d562bfbfbc3432c74ed3330447de70d21329)

2 months agoFixup f4364c75: remove two more Update::SinglePar instances
Jean-Marc Lasgouttes [Sat, 20 Jul 2024 15:12:09 +0000 (17:12 +0200)]
Fixup f4364c75: remove two more Update::SinglePar instances

They do not do what the author(s) of these lines thought it would do,
and can create crashes.

(cherry picked from commit 485f5afc21ba553fd16465231de7570b0c631298)

2 months ago* status.24x
Pavel Sanda [Fri, 19 Jul 2024 21:52:04 +0000 (23:52 +0200)]
* status.24x

2 months agoStatus bar did not show font info anymore.
Pavel Sanda [Fri, 19 Jul 2024 21:47:22 +0000 (23:47 +0200)]
Status bar did not show font info anymore.

This line from commit 1d1f95d2e seem to inadvertedly
slipped into commit 76dbb9dc.

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

2 months agoFix faulty undo recording
Jean-Marc Lasgouttes [Tue, 16 Jul 2024 13:43:11 +0000 (15:43 +0200)]
Fix faulty undo recording

The recordUndo() call is very wrong, since we may be inserting over a
selection covering several paragraphs (undo itself works at paragraph
granularity).

recordUndoSelection() is the right operation in this case. It is
equivalent to recordUndo() when there is no selection.

(cherry picked from commit 82f387dabc2b18de6a9917192f4304e92bff8bc1)

2 months ago* status.24x
Pavel Sanda [Wed, 17 Jul 2024 14:06:47 +0000 (16:06 +0200)]
* status.24x

2 months ago* lib/RELEASE-NOTES
Pavel Sanda [Wed, 17 Jul 2024 13:07:16 +0000 (15:07 +0200)]
* lib/RELEASE-NOTES

2 months agoFix crash when attempting to search in selection that contains only math
Juergen Spitzmueller [Mon, 15 Jul 2024 15:41:10 +0000 (17:41 +0200)]
Fix crash when attempting to search in selection that contains only math

(cherry picked from commit cca68d0614269edfc256db82b3849afde4640dd7)

2 months agoAdd explicit check for EGREP in configure.ac
Jean-Marc Lasgouttes [Fri, 12 Jul 2024 14:02:53 +0000 (16:02 +0200)]
Add explicit check for EGREP in configure.ac

It is used in lib/Makefile.am and we were relying some autoconf macros
to define it as a side-effect. This is not the case anymore as of
autoconf 2.72.

(cherry picked from commit 31cde7247638a50c2302744984732064505b7d85)

2 months agoGuiTabular: add missing connections
Juergen Spitzmueller [Sun, 14 Jul 2024 12:20:05 +0000 (14:20 +0200)]
GuiTabular: add missing connections

(cherry picked from commit 2bf3124f25bd7f71ad37adcf710b66dfb52192ff)

2 months agoremove language switches from index entries in fr Additional.lyx
Udi Fogiel [Wed, 10 Jul 2024 20:14:25 +0000 (23:14 +0300)]
remove language switches from index entries in fr Additional.lyx

2 months agoMake BufferView::singeParUpdate more robust
Jean-Marc Lasgouttes [Mon, 1 Jul 2024 21:56:33 +0000 (23:56 +0200)]
Make BufferView::singeParUpdate more robust

In some cases, it might happen that this method is called with no
metrics or position known for the current paragraph.

Take care of these cases to avoid assertions.

Remove setting of inset positions in the method, but make sure that
updateMetrics(false) is always called to get everything right.

In the new code, updateMetrics(bool) is the method that sets
everything right with minimal effort.

(cherry picked from commit 89ab9eb569ec0eea87d9a8c269eb87507934e1c5)

2 months agoRemove useless SinglePar update when scrolling in text
Jean-Marc Lasgouttes [Wed, 3 Jul 2024 15:31:38 +0000 (17:31 +0200)]
Remove useless SinglePar update when scrolling in text

Using SinglePar does not majke sense here since the paragraph is not
modified and it might even not have a position yet.

This fixes a crash in BufferView::singleParUpdate, which is not
prepared (yet) to such situations.

(cherry picked from commit 2bdd691130e5507fc5cc2ca81e71eef189e90fc5)

2 months agoMake sure paragraph positions are updated when scrolling
Jean-Marc Lasgouttes [Tue, 2 Jul 2024 22:22:55 +0000 (00:22 +0200)]
Make sure paragraph positions are updated when scrolling

Sometimes quick selection-scrolling could cause a crash because the
position of some paragraphs is not computed. To fix that, in
BufferView::showCursor, make sure that the metrics are always kept
clean using updateMetrics(false), which is lighweight.

As a consequence, the 'update' parameter of showCursor and
scrollDocView is not needed anymore. Its removal is mechanical and
accounts for most of this commit.

The only other significant change is that, when creating synthetic
mouse events and relying on scroll() for small moves, the full metrics
recomputation is replaced by the lighter version.

More work is still to come on this code, but this should be going in
the right direction.

(cherry picked from commit 6e0ea4269ae792225bb4e0d0f0ffcb3236c3c5c9)

2 months agoHandle metrics of not visible paragraphs
Jean-Marc Lasgouttes [Fri, 17 May 2024 13:42:08 +0000 (15:42 +0200)]
Handle metrics of not visible paragraphs

The code is not ready for situations where some paragraphs that are
not visible have metrics available.

In PararagraphMetrics, some methods are added to be able to handle the
fact that paragraphs have or do not have a position.

In TextMetrics, a new method returns the first visible paragraph.

Finally, in BufferView::updateMetrics, the paragraphs' positions are
reset (in the case where everything is not cleared) and some care is
taken to skip the ones that are not relevant.

The assumption outside of this method is that all the paragraphs that
are in the TextMetrics are visible (we are talking about top-level
TextMetrics here). This could be changed (in order to avoid
recomputing paragraph metrics), but the cost is high in terms of
complexity and it is not clear that the gain in terms of performance
would be important.

NOTE: contrary to the code in master which returns npos = -10000, this
code still returns -1 when the position of a paragraph is unknown.

(cherry picked from commit 145af7c2ac1eb2c5ec5102a7a11cb740be7b3c43)
(cherry picked from commit 05bb851adfb733c942d243800d7151c6b9194645)
(cherry picked from commit 8bc3799b354908f22270f9d96b2cce43ebd96d66)

2 months agoFix display of page references when language is not specified
Jean-Marc Lasgouttes [Fri, 5 Jul 2024 14:10:17 +0000 (16:10 +0200)]
Fix display of page references when language is not specified

Using translateIfPossible with null language does not make sense (and
gives an error on console).

Using translateIfPossible there actually does not make sense at all: it
is only for string from layout files that may already be translated.

We use the GUI language when no language has been specified (this is
different and probably safer than what is done in master).

A consequence of the commit is that "elsewhere" will be in the po
files and now really translatable ;)

(cherry picked from commit 6f6d9b631d110fb71fcd99351b4f40d58451700a)

2 months agoUpdate sk.po
Kornel Benko [Mon, 8 Jul 2024 09:49:18 +0000 (11:49 +0200)]
Update sk.po

2 months ago Update fr.po
jpc [Mon, 8 Jul 2024 09:30:22 +0000 (11:30 +0200)]
        Update fr.po

2 months ago* cs.po
Pavel Sanda [Sun, 7 Jul 2024 10:07:04 +0000 (12:07 +0200)]
* cs.po

2 months agoUpdate sk.po
Kornel Benko [Sat, 6 Jul 2024 07:38:56 +0000 (09:38 +0200)]
Update sk.po

2 months agodocument performance fixes
Juergen Spitzmueller [Fri, 5 Jul 2024 16:56:59 +0000 (18:56 +0200)]
document performance fixes

2 months agoCut excessively long author lists before parsing them for the GUI
Juergen Spitzmueller [Fri, 5 Jul 2024 15:19:24 +0000 (17:19 +0200)]
Cut excessively long author lists before parsing them for the GUI

as they will be truncated anyway.

Fixes performance issues with long author lists in bib files.

(cherry picked from commit 7d2d26132b6bb285e96d65da5ca8269061af8d6c)

2 months agoRemove performance bottleneck in getAuthors()
Juergen Spitzmueller [Fri, 5 Jul 2024 12:05:26 +0000 (14:05 +0200)]
Remove performance bottleneck in getAuthors()

The regex is expensive which is especially noticeable with very long
author lists.

This introduces a case-insensitive subst() variant which is much faster.

(cherry picked from commit 8ba74fe9589fca3b00134e4d4f1fc130ad960c69)

2 months agoRemove setBuffer call in Cursor::push.
Richard Kimberly Heck [Sat, 1 Jun 2024 16:06:13 +0000 (12:06 -0400)]
Remove setBuffer call in Cursor::push.

This is potentially slow. It also should be unnecessary after
some of JMarc's recent commits. See bug #13050.

(cherry picked from commit 66cfc6af3c764b6923aae6c134c43c2155317c6a)

2 months agoForce a Buffer * argument to math insets constructor
Jean-Marc Lasgouttes [Wed, 24 Apr 2024 13:07:15 +0000 (15:07 +0200)]
Force a Buffer * argument to math insets constructor

Make sure that math insets have a proper buffer. To this end, make the
Buffer* parameter of InsetMath mandatory and fix the compilation
errors that ensue.

(cherry picked from commit c013799887eb5c330f3cff4d51542028683fe1bb)

2 months agoForce a Buffer * argument to MathData constructor
Jean-Marc Lasgouttes [Wed, 24 Apr 2024 10:04:23 +0000 (12:04 +0200)]
Force a Buffer * argument to MathData constructor

In order to ensure that MathData objects have a valid buffer, the
default MathData() constructor is deleted. This means that a buffer
shall be specified for each MathData object created.

This is fairly mechanical, actually. In particular, in most
InsetMathXxx cases, in MathData and in MathParser, the available
buffer_ member is used.

More specific cases:
- lyxfind.cpp takes the buffer from the Cursor

- calls to vector<MathData>::resize take an additional
  MathData(buffer_) parameter. There are cases where resize actually
  remove cells, and in this case clear() or even erase() have been
  used.

- in InsetMathMacroTemplate, the optional parameters of the
  constructors cannot be allowed anymore (a default value cannot
  depend on another parameter). Therefore there a now two constructors
  instead.

- in MathAutoCorrect.cpp, the MathData objects are not bound to a
  buffer, so that std::nullptr is used instead.

- in MathExtern, use a buffer when one is specified, std::nulptr
  instead.

(cherry picked from commit 57d713065545ac53a62a641d12a8b8c2c62c22fc)

2 months agode/Customization: fix typo
Juergen Spitzmueller [Fri, 5 Jul 2024 07:52:49 +0000 (09:52 +0200)]
de/Customization: fix typo

2 months agoUpdate format in lyxrc.dist
Enrico Forestieri [Wed, 3 Jul 2024 10:32:18 +0000 (12:32 +0200)]
Update format in lyxrc.dist

(cherry picked from commit 1dd0bf3253a7d6abd5f4b13fe46e9a4d83887b5e)

2 months agoAvoid bogus warnings when configuring for Qt6
Enrico Forestieri [Wed, 3 Jul 2024 19:02:51 +0000 (21:02 +0200)]
Avoid bogus warnings when configuring for Qt6

Recent versions of qmake complain loudly when the locale
does not explicitly specify the utf8 codeset. Specifically,
the configure script exports LC_ALL=C and that implies the
ascii codeset. Previously, this was silently changed to utf8,
whereas now we get a warning for each qmake invocation.
So, explicitly set utf8 before calling qmake.

2 months agoDocument fix of #12954
Juergen Spitzmueller [Wed, 3 Jul 2024 07:56:25 +0000 (09:56 +0200)]
Document fix of #12954

2 months agoRemove unneeded cycle checks (#12954)
Juergen Spitzmueller [Sun, 23 Jun 2024 12:53:07 +0000 (14:53 +0200)]
Remove unneeded cycle checks (#12954)

(cherry picked from commit b5260a3a0f8b5267b108b9d94520a6b77b2fe5ac)

2 months agoAmend fd78a25a7c0b307
Juergen Spitzmueller [Sun, 23 Jun 2024 16:52:07 +0000 (18:52 +0200)]
Amend fd78a25a7c0b307

This way, it is a bit more plausible what we're doing

(cherry picked from commit c394a1ccf9eab08221efc45f5d4ca26bbd963968)

2 months agoOnly issue currentWorkareaChanged() if the work area really changed.
Juergen Spitzmueller [Sun, 23 Jun 2024 12:52:02 +0000 (14:52 +0200)]
Only issue currentWorkareaChanged() if the work area really changed.

(this function can be called repeatedly while the work area doesn't
change any further)

(cherry picked from commit fd78a25a7c0b307da32c7cd805ce9f101160610a)

2 months agoFixup [152811a27d242/lyxgit]
Juergen Spitzmueller [Sun, 23 Jun 2024 12:47:43 +0000 (14:47 +0200)]
Fixup [152811a27d242/lyxgit]

tabBarClicked() should really only reset focus if a click in a different
TabBarGroup happened. And no need to issue workAreaChanged() again.

This has lead to extra and erroneous focus changes (see #12954)

(cherry picked from commit 026c4bd726f36623772dc152740f709ce9972415)

2 months agocosmetics - synchronize with the rest of strings
Pavel Sanda [Tue, 2 Jul 2024 21:47:42 +0000 (23:47 +0200)]
cosmetics - synchronize with the rest of strings

2 months agoBegin 2.4.2 development.
Richard Kimberly Heck [Tue, 2 Jul 2024 19:38:49 +0000 (15:38 -0400)]
Begin 2.4.2 development.

2 months agoAvoid crash when InsetBibitem::updateCommand shows a dialog 2.4.1
Jean-Marc Lasgouttes [Tue, 2 Jul 2024 12:49:34 +0000 (14:49 +0200)]
Avoid crash when InsetBibitem::updateCommand shows a dialog

This is one of the places where a dialog is shown (indicating that
some bibtems have been renamed) while the metrics are not up to date.
Then a draw operation can be triggered too early and a crash can ensue.

Use ad-hoc solution for this case and use Buffer::setBusy(). The
Alert::warning helper cannot really do that since it doe snot know the
current buffer.

(cherry picked from commit c84c59eaecf19b1eb8227f9aadc7f5be187b3856)

2 months agoDo not check for diverging input encoding if the files use XeTeX/LuaTeX
Juergen Spitzmueller [Tue, 2 Jul 2024 14:59:28 +0000 (16:59 +0200)]
Do not check for diverging input encoding if the files use XeTeX/LuaTeX

Fixes the problem reported at
https://marc.info/?l=lyx-users&m=171986173131406

(cherry picked from commit 4ed8bfb974e9bf5c626f00f4a57989c64320a568)

2 months agoGuiDocument::onBufferViewChanged(): exit early if dialog is not open
Juergen Spitzmueller [Tue, 2 Jul 2024 09:02:36 +0000 (11:02 +0200)]
GuiDocument::onBufferViewChanged(): exit early if dialog is not open

This should fix the bug reported at
https://marc.info/?l=lyx-users&m=171957953801548&w=2

(cherry picked from commit 574db220255dcd8c83f85e30527009a9af41e21d)

2 months agoStart prep for 2.4.1
Richard Kimberly Heck [Mon, 1 Jul 2024 01:00:32 +0000 (21:00 -0400)]
Start prep for 2.4.1

2 months agoUpdate it.po
Enrico Forestieri [Fri, 28 Jun 2024 20:45:02 +0000 (22:45 +0200)]
Update it.po

2 months agoUpdate version in German docs
Juergen Spitzmueller [Fri, 28 Jun 2024 05:19:23 +0000 (07:19 +0200)]
Update version in German docs

2 months agoja User Guide: restore bibfiles path
Scott Kostyshak [Thu, 27 Jun 2024 22:48:03 +0000 (18:48 -0400)]
ja User Guide: restore bibfiles path

2 months agoja Additional: restore path
Scott Kostyshak [Thu, 27 Jun 2024 22:47:38 +0000 (18:47 -0400)]
ja Additional: restore path

2 months agoRestore origin tag
Scott Kostyshak [Thu, 27 Jun 2024 22:23:38 +0000 (18:23 -0400)]
Restore origin tag

2 months ago* typo
Pavel Sanda [Thu, 27 Jun 2024 18:16:04 +0000 (20:16 +0200)]
* typo

2 months agoStatus
Richard Kimberly Heck [Thu, 27 Jun 2024 16:41:44 +0000 (12:41 -0400)]
Status