]>
git.lyx.org Git - lyx.git/log
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 )
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 )
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 )
Kornel Benko [Mon, 8 Jul 2024 09:49:18 +0000 (11:49 +0200)]
Update sk.po
jpc [Mon, 8 Jul 2024 09:30:22 +0000 (11:30 +0200)]
Update fr.po
Pavel Sanda [Sun, 7 Jul 2024 10:07:04 +0000 (12:07 +0200)]
* cs.po
Kornel Benko [Sat, 6 Jul 2024 07:38:56 +0000 (09:38 +0200)]
Update sk.po
Juergen Spitzmueller [Fri, 5 Jul 2024 16:56:59 +0000 (18:56 +0200)]
document performance fixes
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 )
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 )
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 )
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 )
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 )
Juergen Spitzmueller [Fri, 5 Jul 2024 07:52:49 +0000 (09:52 +0200)]
de/Customization: fix typo
Enrico Forestieri [Wed, 3 Jul 2024 10:32:18 +0000 (12:32 +0200)]
Update format in lyxrc.dist
(cherry picked from commit
1dd0bf3253a7d6abd5f4b13fe46e9a4d83887b5e )
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.
Juergen Spitzmueller [Wed, 3 Jul 2024 07:56:25 +0000 (09:56 +0200)]
Document fix of #12954
Juergen Spitzmueller [Sun, 23 Jun 2024 12:53:07 +0000 (14:53 +0200)]
Remove unneeded cycle checks (#12954)
(cherry picked from commit
b5260a3a0f8b5267b108b9d94520a6b77b2fe5ac )
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 )
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 )
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 )
Pavel Sanda [Tue, 2 Jul 2024 21:47:42 +0000 (23:47 +0200)]
cosmetics - synchronize with the rest of strings
Richard Kimberly Heck [Tue, 2 Jul 2024 19:38:49 +0000 (15:38 -0400)]
Begin 2.4.2 development.
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 )
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 )
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 )
Richard Kimberly Heck [Mon, 1 Jul 2024 01:00:32 +0000 (21:00 -0400)]
Start prep for 2.4.1
Enrico Forestieri [Fri, 28 Jun 2024 20:45:02 +0000 (22:45 +0200)]
Update it.po
Juergen Spitzmueller [Fri, 28 Jun 2024 05:19:23 +0000 (07:19 +0200)]
Update version in German docs
Scott Kostyshak [Thu, 27 Jun 2024 22:48:03 +0000 (18:48 -0400)]
ja User Guide: restore bibfiles path
Scott Kostyshak [Thu, 27 Jun 2024 22:47:38 +0000 (18:47 -0400)]
ja Additional: restore path
Scott Kostyshak [Thu, 27 Jun 2024 22:23:38 +0000 (18:23 -0400)]
Restore origin tag
Pavel Sanda [Thu, 27 Jun 2024 18:16:04 +0000 (20:16 +0200)]
* typo
Richard Kimberly Heck [Thu, 27 Jun 2024 16:41:44 +0000 (12:41 -0400)]
Status
Richard Kimberly Heck [Thu, 27 Jun 2024 16:41:16 +0000 (12:41 -0400)]
Updated simplified Chinese translation
Koji Yokota [Thu, 27 Jun 2024 16:00:19 +0000 (01:00 +0900)]
Update Japanese documentation (and typo in the original)
Koji Yokota [Wed, 26 Jun 2024 05:48:48 +0000 (14:48 +0900)]
Updating ja.po
Richard Kimberly Heck [Tue, 25 Jun 2024 17:38:30 +0000 (13:38 -0400)]
Revert "Add temporary directory to About LyX dialog"
This introduced a new string, which is not for 2.4.1.
This reverts commit
5b51bab39b31207dd16e31651ffecbec052272d4 .
Pavel Sanda [Tue, 25 Jun 2024 17:33:58 +0000 (19:33 +0200)]
* uk.po from Yuri
Pavel Sanda [Tue, 25 Jun 2024 17:32:56 +0000 (19:32 +0200)]
* cs.po
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 )
Richard Kimberly Heck [Tue, 25 Jun 2024 14:54:41 +0000 (10:54 -0400)]
More translation status
Richard Kimberly Heck [Mon, 24 Jun 2024 21:32:33 +0000 (17:32 -0400)]
Remerge strings.
Richard Kimberly Heck [Mon, 24 Jun 2024 21:10:37 +0000 (17:10 -0400)]
Transation status
Pavel Sanda [Mon, 24 Jun 2024 21:01:49 +0000 (23:01 +0200)]
* uk.po - make it compilable again
Pavel Sanda [Mon, 24 Jun 2024 20:57:09 +0000 (22:57 +0200)]
* pt_BR.po update from Georger.
Pavel Sanda [Mon, 24 Jun 2024 20:43:17 +0000 (22:43 +0200)]
Add status comment
Pavel Sanda [Mon, 24 Jun 2024 20:29:23 +0000 (22:29 +0200)]
Let the middle button pasting respect newlines by default.
This makes it in sync with the new default for Edit > Paste operation.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg222233.html
Richard Kimberly Heck [Mon, 24 Jun 2024 20:23:32 +0000 (16:23 -0400)]
Ukranian update from Yuri
Pavel Sanda [Mon, 24 Jun 2024 20:23:02 +0000 (22:23 +0200)]
* cs.po
jpc [Mon, 24 Jun 2024 08:11:49 +0000 (10:11 +0200)]
Update fr.po for 2.4.1
Richard Kimberly Heck [Sun, 23 Jun 2024 16:25:38 +0000 (12:25 -0400)]
Remerge strings.
Richard Kimberly Heck [Sun, 23 Jun 2024 16:22:03 +0000 (12:22 -0400)]
svn --> git
Juergen Spitzmueller [Sat, 22 Jun 2024 11:38:47 +0000 (13:38 +0200)]
\cprotect amendment
\cprotect'ed insets do not need forced local font switch; in fact files
with this break in compilation. E.g. a caption with an URL containing
the char '#' and caption text set to a secondary language.
(cherry picked from commit
8659924abd7026aa97a36bd99efeb11705ff7190 )
Juergen Spitzmueller [Sun, 16 Jun 2024 13:53:37 +0000 (15:53 +0200)]
GuiDocument: do not ask switch-back question on document closing
(cherry picked from commit
c243126eb406c10420fc112ca1d24ae7e8e42a1f )
Juergen Spitzmueller [Sat, 15 Jun 2024 17:32:30 +0000 (19:32 +0200)]
Correct status entry
Richard Kimberly Heck [Sat, 15 Jun 2024 17:32:17 +0000 (13:32 -0400)]
Add status
Juergen Spitzmueller [Sat, 15 Jun 2024 12:48:37 +0000 (14:48 +0200)]
Prevent division by zero
Fixes crash reported at
https://marc.info/?l=lyx-users&m=
171842978728676
(cherry picked from commit
0fc8ee5ace22c11175cb93f5b6f7310cc4d646c1 )
Pavel Sanda [Sat, 15 Jun 2024 08:32:26 +0000 (10:32 +0200)]
Regenerate LFUNs.lyx
Richard Kimberly Heck [Tue, 2 Apr 2024 16:46:36 +0000 (12:46 -0400)]
Update doc info for quote-insert
Juergen Spitzmueller [Tue, 11 Jun 2024 12:30:47 +0000 (14:30 +0200)]
de.po
Kornel Benko [Tue, 11 Jun 2024 11:29:19 +0000 (13:29 +0200)]
Update sk.po
Alexander Dunlap [Mon, 10 Jun 2024 18:08:39 +0000 (20:08 +0200)]
FindAdv: Omitting cursor advance at start of search if in mathed.
Fixes #13070 Advanced S&R does not find math symbols at start of document
(Should be cherry-pick of
8c501308 , but due to merge conflicts its done
manually)
Udi Fogiel [Mon, 10 Jun 2024 12:19:08 +0000 (15:19 +0300)]
Fix change tracking colors with RTL languages (#12923)
(cherry picked from commit
a5749b9c1f5c5b42e6d6db7cd9f2aab16bc28f5b )
Udi Fogiel [Mon, 10 Jun 2024 12:03:05 +0000 (15:03 +0300)]
Fix greyedout with RTL languages (#8647)
(cherry picked from commit
ee43584140d9c62801d524291c5cfd0c29c8d916 )
Udi Fogiel [Sun, 9 Jun 2024 23:20:25 +0000 (02:20 +0300)]
fix a typo
Udi Fogiel [Sun, 9 Jun 2024 23:18:02 +0000 (02:18 +0300)]
document recent fixes
Udi Fogiel [Sun, 9 Jun 2024 18:06:25 +0000 (21:06 +0300)]
ammend
64aad586f49b904
Remove an empty auxiliary file that snuck in (sorry...)
(cherry picked from commit
61bee11a628d1f9c05ef66fa9669c84fa67e2c4d )
Udi-Fogiel [Sun, 9 Jun 2024 10:36:35 +0000 (13:36 +0300)]
missing background in xetex and fix RTL stuff in preview
* previwes with xetex did not produce any background (\pagecolor does not work for some reason), adding the direct command for that, \special{background <color>} inside the preview box solved it.
* similar to #12923 we should push the color node in horizontal mode
* there is a bug in preview with LuaTeX with main RTL language, this commit fix this bug, but it should be removed when it is fixed upstream (the code related to \pr@set@pagerightoffset)
(cherry picked from commit
64aad586f49b9047082356e5f217fc6147ac9500 )
Richard Kimberly Heck [Sun, 9 Jun 2024 18:12:40 +0000 (14:12 -0400)]
Fix bug #13028.
Bindings for 'join lines.
(cherry picked from commit
8655c83a902bfb2261e5c1fd3fade71883282864 )
Daniel Ramoeller [Sat, 27 Feb 2021 06:05:54 +0000 (07:05 +0100)]
Extend tab context menu features
Add
- Close Other Tabs
- Close Tabs to Left/Right
- Move Tab to Start/End
- Show Enclosing Folder
to the tabs context menus.
Fix for bug #11963
(cherry picked from commit
a114f12868f8b48b9507aa22bf4156af0062ac97 )
Richard Kimberly Heck [Sun, 9 Jun 2024 17:13:12 +0000 (13:13 -0400)]
Merge branch '2.4.x' into 2.4.1-devel
Enrico Forestieri [Sun, 9 Jun 2024 11:04:22 +0000 (13:04 +0200)]
Fix textstyle-update handling in mathed
The code was expecting that all properties were specified
in the argument and not only some. Simply do not process
those properties not specified in the argument.
(cherry picked from commit
afb70c905b526ec6fdc5ed66afe800fcd705b425 )
Juergen Spitzmueller [Sun, 9 Jun 2024 06:09:01 +0000 (08:09 +0200)]
Return false on invalid input in Font::fromString()
Fixes crash with invalid font-update lfun
(cherry picked from commit
2a9648fc4c58a007f7ddb4012d608666f8cc2ec8 )
Scott Kostyshak [Sat, 8 Jun 2024 15:54:44 +0000 (11:54 -0400)]
Fix Python warning of invalid escape in lyx_pot.py
Newer Python versions (e.g., Python 3.12.3) gave the following
warning:
po/lyx_pot.py:607: SyntaxWarning: invalid escape sequence '\w'
An alternative fix would be to double the backslash, but that might
be less readable than this fix.
(cherry picked from commit
325f1429f83d7ce1d35404c3f99a31d19c0dbe45 )
Richard Kimberly Heck [Fri, 7 Jun 2024 19:59:27 +0000 (15:59 -0400)]
Status
Richard Kimberly Heck [Sun, 2 Jun 2024 18:12:23 +0000 (14:12 -0400)]
Fix table crash reported on Windows.
(cherry picked from commit
3e796c680a11593bd09433be22bec45dcfe0d7a7 )
Juergen Spitzmueller [Thu, 6 Jun 2024 04:58:33 +0000 (06:58 +0200)]
Strip quotes from PackageOptions. Amends
a77c84a0b4d5
(cherry picked from commit
1449fbf9ae3ecc70fbc7299f8901ecc31cdff1ab )
Jean-Marc Lasgouttes [Wed, 5 Jun 2024 21:05:22 +0000 (23:05 +0200)]
Fixup
39c7199a : the code did not do what it was supposed to
(cherry picked from commit
92ef555abde86466b7ca3c3401ab8132258fc497 )
Jean-Marc Lasgouttes [Thu, 6 Jun 2024 12:32:00 +0000 (14:32 +0200)]
Do not draw appendix lines below en of document
This bug is pretty old, but it was not visible because the grey area
below the document would overwrite it.
It would be better to close the frame at the end of the document, but
this is for later.
(cherry picked from commit
7acfbe0fccc729dcf5d910a4049b25e9943329fc )
(cherry picked from commit
c96d3a03400893f440dca7e68ed87bd70bea0b39 )
Pavel Sanda [Wed, 5 Jun 2024 18:43:51 +0000 (20:43 +0200)]
Update tex info in readme
Pavel Sanda [Wed, 5 Jun 2024 18:42:10 +0000 (20:42 +0200)]
Some comments into bind file
Richard Kimberly Heck [Tue, 4 Jun 2024 15:25:58 +0000 (11:25 -0400)]
Update README
Udi-Fogiel [Mon, 3 Jun 2024 18:05:20 +0000 (21:05 +0300)]
avoid adding redundant preamble to double column hebrew documents (#12919)
Udi-Fogiel [Mon, 3 Jun 2024 17:16:34 +0000 (20:16 +0300)]
he.po
Juergen Spitzmueller [Mon, 3 Jun 2024 16:04:53 +0000 (18:04 +0200)]
de.po
Juergen Spitzmueller [Mon, 3 Jun 2024 14:10:17 +0000 (16:10 +0200)]
Show full inset context-menu when clicking on text part of collapsible (#10370)
Re-fix this since #12907 has been resolved
(cherry picked from commit
7a85b1b7caeb3fb390aa488d7061e29b9a77cc6b )
Richard Kimberly Heck [Sun, 2 Jun 2024 18:12:23 +0000 (14:12 -0400)]
Fix table crash reported on Windows.
(cherry picked from commit
3e796c680a11593bd09433be22bec45dcfe0d7a7 )
Kornel Benko [Mon, 3 Jun 2024 07:17:19 +0000 (09:17 +0200)]
Update sk.po
Kornel Benko [Mon, 3 Jun 2024 06:23:35 +0000 (08:23 +0200)]
Adv. F&R: strange dialog text
Fixes #12997
Added 'Scope' to better indicate the searched area.
Richard Kimberly Heck [Mon, 3 Jun 2024 03:06:11 +0000 (23:06 -0400)]
Fix bug #13066
Patch from Lorenzo
(cherry picked from commit
0c70f340c0fe33daa68b2a3eb4b3347fef1a9a95 )
Richard Kimberly Heck [Mon, 3 Jun 2024 02:23:38 +0000 (22:23 -0400)]
Copy French manuals from 2.4.x branch
Kornel Benko [Fri, 24 May 2024 18:26:04 +0000 (20:26 +0200)]
Cmake build: Initialize variable 'CMAKE_INSTALL_PREFIX' before use
Spotted by Eugene Chornyi <yu_jin@lyx.org>
(cherry picked from commit
ea74574d8f02481732b591306410e3c49faae87d )
Kornel Benko [Sat, 6 Apr 2024 10:36:47 +0000 (12:36 +0200)]
Cmake build: Make QT5-compilation be default
(cherry picked from commit
c971974f331c249fa4d57953d8d93c107c154024 )
Richard Kimberly Heck [Mon, 3 Jun 2024 01:49:54 +0000 (21:49 -0400)]
Merge branch '2.4.x' into 2.4.1-devel
Richard Kimberly Heck [Sun, 2 Jun 2024 00:25:20 +0000 (20:25 -0400)]
Put new citation after selected item rather than at end of list.
Fixes bug #12940.
Patch from Daniel.
(cherry picked from commit
40ae8644f9f81576033ff1f8f56428946029b4f4 )
Thibaut Cuvelier [Mon, 20 May 2024 01:21:00 +0000 (03:21 +0200)]
XHTML: export paragraph IDs also for list items, but not for the opening tag of the list.
The IDs are used to link to specific elements (for instance, the User's guide nomenclature).
The beginning of the list (<ul> or <ol>) has the same magic ID as the first item of the list.
Thibaut Cuvelier [Sat, 18 May 2024 17:38:52 +0000 (19:38 +0200)]
Make comment clearer.
Thibaut Cuvelier [Sat, 18 May 2024 17:41:44 +0000 (19:41 +0200)]
InsetInfo: no need to output + explicitly in a shortcut, it is already contained in the sequence.
Richard Kimberly Heck [Sun, 2 Jun 2024 00:24:15 +0000 (20:24 -0400)]
One more