]> git.lyx.org Git - lyx.git/log
lyx.git
8 weeks agoAdd xcb lib if x11extras is detected
Enrico Forestieri [Mon, 17 Jun 2024 19:57:24 +0000 (21:57 +0200)]
Add xcb lib if x11extras is detected

In this case we use directly some xcb api outside of the Qt framework
and hence we have to add the xcb library by ourselves.

8 weeks agoSupport qmake with Qt5 too
Jean-Marc Lasgouttes [Fri, 14 Jun 2024 17:17:27 +0000 (19:17 +0200)]
Support qmake with Qt5 too

This extends the support of qmake to Qt5. Currently, the other
configuration methods are tried if qmake fails, but a message is
printed.

A nice goal would be to get rid of those legacy methods (pkg-config,
plain autoconf-style), if this proves possible.

8 weeks agoFix functions that used functions but did not defined it
José Matos [Mon, 17 Jun 2024 10:31:10 +0000 (11:31 +0100)]
Fix functions that used functions but did not defined it

The functions were selected from the parser files where document is
always defined.

The only case was this code was used was on document.warning.

Since our documents are well formed this code was never active and thus
the reason why we did not saw this before.

One possible solution to assure that these type of errors do not occur
is to make the convention that all the functions in lyx2lyx_tools have
as the first argument document.

8 weeks agoAdapt to deprecation of \DeclareCollectionInstance
Scott Kostyshak [Sun, 16 Jun 2024 15:41:46 +0000 (11:41 -0400)]
Adapt to deprecation of \DeclareCollectionInstance

Change LaTeX output of smallLetterFrac. For more information, see:

  https://tex.stackexchange.com/questions/720579/do-i-need-to-replace-declarecollectioninstance-after-recent-package-change/

This fixes 44 failing tests from 074-76-letterlike-numberforms-arrows.lyx
that started failing after a tlmgr update around 2024-06-04.

8 weeks agomore indentation fixes
Juergen Spitzmueller [Sun, 16 Jun 2024 14:16:59 +0000 (16:16 +0200)]
more indentation fixes

8 weeks agoGuiDocument: do not ask switch-back question on document closing
Juergen Spitzmueller [Sun, 16 Jun 2024 13:53:37 +0000 (15:53 +0200)]
GuiDocument: do not ask switch-back question on document closing

8 weeks agoFix indentation
Juergen Spitzmueller [Sun, 16 Jun 2024 13:53:22 +0000 (15:53 +0200)]
Fix indentation

8 weeks agoFix indentation
Juergen Spitzmueller [Sun, 16 Jun 2024 12:12:23 +0000 (14:12 +0200)]
Fix indentation

8 weeks agoRemove undisclosed imports (from xxx import *)
José Matos [Sun, 16 Jun 2024 06:45:43 +0000 (07:45 +0100)]
Remove undisclosed imports (from xxx import *)

This was the last example in this directory.

8 weeks agoAdd common pattern in linter exclusion list
José Matos [Sun, 16 Jun 2024 06:34:34 +0000 (07:34 +0100)]
Add common pattern in linter exclusion list

# ambiguous-variable-name (E741)

Derived from the **pycodestyle** linter.

## What it does
Checks for the use of the characters 'l', 'O', or 'I' as variable names.

## Why is this bad?
In some fonts, these characters are indistinguishable from the
numerals one and zero. When tempted to use 'l', use 'L' instead.

## Reason to ignore in LyX?
With appropriated fonts that is not an issue. In our case we just use
the 'l', in particular in the context of iterators: 'i', 'j', 'k', 'l'.

2 months agoPrevent division by zero
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

2 months agode/UserGuide: updates
Juergen Spitzmueller [Sat, 15 Jun 2024 12:29:26 +0000 (14:29 +0200)]
de/UserGuide: updates

2 months agoFix code
José Matos [Sat, 15 Jun 2024 10:26:28 +0000 (11:26 +0100)]
Fix code

Run "ruff check --fix"

Remove unneeded imports;
Reword code to make clear the "not in" operator;
Put imports in its own line (readability);

2 months agoReformat lyx2lyx code using ruff
José Matos [Sat, 15 Jun 2024 09:06:06 +0000 (10:06 +0100)]
Reformat lyx2lyx code using ruff

2 months agoAdd pyproject.toml file to manage some options for tools
José Matos [Sat, 15 Jun 2024 09:04:31 +0000 (10:04 +0100)]
Add pyproject.toml file to manage some options for tools

This file is only relevant for tools that use it, in development, and so
it is not supposed to be installed. It does not harm but there is no
purpose.

2 months agoAdd comment from dev list.
Pavel Sanda [Fri, 14 Jun 2024 20:40:22 +0000 (22:40 +0200)]
Add comment from dev list.

2 months ago* UG - note about gnuplot from Tobias Hilbricht
Pavel Sanda [Fri, 14 Jun 2024 19:18:29 +0000 (21:18 +0200)]
* UG - note about gnuplot from Tobias Hilbricht

2 months agoFix depth bar optics
Daniel Ramoeller [Thu, 13 Aug 2020 14:36:15 +0000 (16:36 +0200)]
Fix depth bar optics

2 months agoUpdate python requirements notice in INSTALL
José Matos [Thu, 13 Jun 2024 09:44:56 +0000 (10:44 +0100)]
Update python requirements notice in INSTALL

2 months agoupdate tex2lyx tests
Juergen Spitzmueller [Thu, 13 Jun 2024 05:49:32 +0000 (07:49 +0200)]
update tex2lyx tests

2 months agoRemove hebrew letter document class
Udi Fogiel [Tue, 11 Jun 2024 18:14:27 +0000 (21:14 +0300)]
Remove hebrew letter document class

The only difference from regular letter is the alignment of
"Send To Address" layout, but it no longer reflect the output
corrctly, probably because LyX revert the alignment of layouts
in RTL context now.

2 months agoInsetMathMacoTemplate: recompute metrics on editXY too
Jean-Marc Lasgouttes [Tue, 11 Jun 2024 15:04:58 +0000 (17:04 +0200)]
InsetMathMacoTemplate: recompute metrics on editXY too

This inset can change dimensions when edited (like macros can).
Therefore Update::SinglePar should be set with editXY() like it is
already set for edit().

2 months agoAdd "full" drawing strategy
Jean-Marc Lasgouttes [Sat, 15 Jul 2023 09:46:25 +0000 (11:46 +0200)]
Add "full" drawing strategy

With this patch, 3 draw strategies (set in prefs with
\draw_strategy partial|backingstore|full) are available:

- "partial": only draw the parts of text that have changed since last
  paint event (default for X11 and windows)

- "backingstore": the same, but drawing happens on an offspring
  pixmap; this breaks subpixel rendering (default for Wayland and
  macOS)

- "full": the screen is fully redrawn at each paint event and should
  therefore always be correct; this is presumably slower but
  introducing it will allow to test it.

This would deserve a proper UI eventually.

2 months agoUpdate sk.po
Kornel Benko [Tue, 11 Jun 2024 11:26:34 +0000 (13:26 +0200)]
Update sk.po

2 months agoRemove debug code that is not very useful as it is.
Jean-Marc Lasgouttes [Mon, 10 Jun 2024 18:32:47 +0000 (20:32 +0200)]
Remove debug code that is not very useful as it is.

2 months agoFindAdv: Omitting cursor advance at start of search if in mathed.
Alexander Dunlap [Mon, 10 Jun 2024 12:42:29 +0000 (14:42 +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

2 months agoFix change tracking colors with RTL languages (#12923)
Udi Fogiel [Mon, 10 Jun 2024 12:19:08 +0000 (15:19 +0300)]
Fix change tracking colors with RTL languages (#12923)

2 months agoFix greyedout with RTL languages (#8647)
Udi Fogiel [Mon, 10 Jun 2024 12:03:05 +0000 (15:03 +0300)]
Fix greyedout with RTL languages (#8647)

2 months agoReformat imports for easier reading
José Matos [Mon, 10 Jun 2024 11:05:03 +0000 (12:05 +0100)]
Reformat imports for easier reading

This is in line with the current hints for better readability:

* one import per line;
* order the imports alphabetically to be easier to search;

Take the chance to remove unused imports.

2 months agoUpdate generate contributions to Python 3+
José Matos [Mon, 10 Jun 2024 10:43:04 +0000 (11:43 +0100)]
Update generate contributions to Python 3+

2 months agoUpdate Python scripts to Python 3+
José Matos [Mon, 10 Jun 2024 10:29:56 +0000 (11:29 +0100)]
Update Python scripts to Python 3+

Remove support for Python 2

Use formatted strings where appropriated

2 months agoUpdate lyx2lyx folder to Python 3+
José Matos [Mon, 10 Jun 2024 09:55:40 +0000 (10:55 +0100)]
Update lyx2lyx folder to Python 3+

Remove support for Python 2
Take advantage of new features (euphemism) not possible before due to
python 2 compatibility

2 months agoUpdate configure.py to Python3+
José Matos [Mon, 10 Jun 2024 09:38:28 +0000 (10:38 +0100)]
Update configure.py to Python3+

Remove Python 2 support

This simplifies the code and allows to use other more modern features,
like formatted strings, that were not possible while keeping Python 2
compatibility.

2 months agoUpdate build time Python requirement to 2.8 (cmake edition)
José Matos [Mon, 10 Jun 2024 09:33:33 +0000 (10:33 +0100)]
Update build time Python requirement to 2.8 (cmake edition)

2 months agoUpdate Python build time requirement to 3.8
José Matos [Mon, 10 Jun 2024 09:10:39 +0000 (10:10 +0100)]
Update Python build time requirement to 3.8

2 months agoPython runtime detection requirement upgraded to 3.8
José Matos [Mon, 10 Jun 2024 09:04:26 +0000 (10:04 +0100)]
Python runtime detection requirement upgraded to 3.8

Remove -tt option that is a no-op in Python 3.

Remove search for Python 2

2 months agoBrackets.
Richard Kimberly Heck [Mon, 10 Jun 2024 01:02:24 +0000 (21:02 -0400)]
Brackets.

I read somewhere that comments after an if-statement without brackets
is dangerous.

2 months agoFix bug #13028.
Richard Kimberly Heck [Sun, 9 Jun 2024 18:12:40 +0000 (14:12 -0400)]
Fix bug #13028.

Bindings for 'join lines.

2 months agoammend 64aad586f49b904
Udi Fogiel [Sun, 9 Jun 2024 18:06:25 +0000 (21:06 +0300)]
ammend 64aad586f49b904

Remove an empty auxiliary file that snuck in (sorry...)

2 months agoFix textstyle-update handling in mathed
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.

2 months agomissing background in xetex and fix RTL stuff in preview
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)

2 months agoReturn false on invalid input in Font::fromString()
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

2 months agorename function
Juergen Spitzmueller [Sun, 9 Jun 2024 05:29:37 +0000 (07:29 +0200)]
rename function

2 months agoFix Python warning of invalid escape in lyx_pot.py
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.

2 months agoImplement InsetLayout::requiresPackage()
Juergen Spitzmueller [Sat, 8 Jun 2024 11:02:26 +0000 (13:02 +0200)]
Implement InsetLayout::requiresPackage()

2 months agoText::dispatch: ignore single par update when there is a full update
Jean-Marc Lasgouttes [Fri, 7 Jun 2024 14:49:25 +0000 (16:49 +0200)]
Text::dispatch: ignore single par update when there is a full update

Reorder the tests so that, when the flag Update::SinglePar has been
specified, it does not take precedence over Update::Force flag.

This fixes the crash with inset-split.

2 months agoFixup 7acfbe0fccc7: forgot to change one location
Jean-Marc Lasgouttes [Thu, 6 Jun 2024 15:27:24 +0000 (17:27 +0200)]
Fixup 7acfbe0fccc7: forgot to change one location

2 months agoDo not draw appendix lines below en of document
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.

2 months agoFixup de5f63eeb: the code did not do what it was supposed to
Jean-Marc Lasgouttes [Wed, 5 Jun 2024 21:05:22 +0000 (23:05 +0200)]
Fixup de5f63eeb: the code did not do what it was supposed to

2 months agoStrip quotes from PackageOptions. Amends a77c84a0b4d5
Juergen Spitzmueller [Thu, 6 Jun 2024 04:58:33 +0000 (06:58 +0200)]
Strip quotes from PackageOptions. Amends a77c84a0b4d5

2 months agoUpdate tex info in readme
Pavel Sanda [Wed, 5 Jun 2024 18:43:51 +0000 (20:43 +0200)]
Update tex info in readme

2 months agoSome comments into bind file
Pavel Sanda [Wed, 5 Jun 2024 18:42:10 +0000 (20:42 +0200)]
Some comments into bind file

2 months agoUse ranges
Richard Kimberly Heck [Tue, 4 Jun 2024 02:04:57 +0000 (22:04 -0400)]
Use ranges

2 months agoavoid adding redundant preamble to double column hebrew documents (#12919)
Udi-Fogiel [Mon, 3 Jun 2024 18:06:10 +0000 (21:06 +0300)]
avoid adding redundant preamble to double column hebrew documents (#12919)

2 months agohe.po
Udi-Fogiel [Mon, 3 Jun 2024 17:25:40 +0000 (20:25 +0300)]
he.po

2 months agode.po
Juergen Spitzmueller [Mon, 3 Jun 2024 16:11:41 +0000 (18:11 +0200)]
de.po

2 months agoRevert "Update layouts"
Scott Kostyshak [Mon, 3 Jun 2024 14:37:02 +0000 (10:37 -0400)]
Revert "Update layouts"

This reverts commit 7c041af6425001d7779f5e44d72918d8591ea37d.

We will hold this back until we fix the issue discussed here:

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

2 months agoShow full inset context-menu when clicking on text part of collapsible (#10370)
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

2 months agoUpdate sk.po
Kornel Benko [Mon, 3 Jun 2024 07:00:44 +0000 (09:00 +0200)]
Update sk.po

2 months agoAdv. F&R: strange dialog text
Kornel Benko [Mon, 3 Jun 2024 06:13:28 +0000 (08:13 +0200)]
Adv. F&R: strange dialog text

Fixes #12997
Added 'Scope' to better indicate the searched area.

2 months agoFix bug #13066
Richard Kimberly Heck [Mon, 3 Jun 2024 03:06:11 +0000 (23:06 -0400)]
Fix bug #13066

Patch from Lorenzo

2 months agoFix table crash reported on Windows.
Richard Kimberly Heck [Sun, 2 Jun 2024 18:12:23 +0000 (14:12 -0400)]
Fix table crash reported on Windows.

2 months agoUpdate layouts
Scott Kostyshak [Mon, 3 Jun 2024 02:52:37 +0000 (22:52 -0400)]
Update layouts

2 months agoWhitespace
Scott Kostyshak [Mon, 3 Jun 2024 02:52:18 +0000 (22:52 -0400)]
Whitespace

2 months agoSupport half und full line parskip class options (#12946)
Juergen Spitzmueller [Sun, 2 Jun 2024 09:41:54 +0000 (11:41 +0200)]
Support half und full line parskip class options (#12946)

Currently only employed by the KOMA classes.

Layout format change.

2 months agoPut new citation after selected item rather than at end of list.
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.

2 months agoExtend tab context menu features
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

2 months agoFix bug #12934
Richard Kimberly Heck [Sat, 1 Jun 2024 17:05:12 +0000 (13:05 -0400)]
Fix bug #12934

2 months agoFix bug #11796.
Richard Kimberly Heck [Sat, 1 Jun 2024 16:43:56 +0000 (12:43 -0400)]
Fix bug #11796.

Toolbars are now locked by default. Unlocked state should be saved
by Qt as a session variable.

Patch from Daniel.

2 months agoFix bug #8856.
Richard Kimberly Heck [Sat, 1 Jun 2024 16:36:00 +0000 (12:36 -0400)]
Fix bug #8856.

Show values of cross-references in tooltips.

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.

2 months agoFix bug #12981
Richard Kimberly Heck [Sat, 1 Jun 2024 15:52:05 +0000 (11:52 -0400)]
Fix bug #12981

2 months agoFix bug #12981
Richard Kimberly Heck [Tue, 28 Nov 2023 02:49:43 +0000 (21:49 -0500)]
Fix bug #12981

2 months agoupdate tex2lyx tests
Juergen Spitzmueller [Sat, 1 Jun 2024 11:50:41 +0000 (13:50 +0200)]
update tex2lyx tests

2 months agoAdd support for glue length in parskip (#12867)
Juergen Spitzmueller [Sat, 1 Jun 2024 11:47:39 +0000 (13:47 +0200)]
Add support for glue length in parskip (#12867)

2 months agoReset require_fresh_start_ after buffer has been viewed/exported
Juergen Spitzmueller [Sat, 1 Jun 2024 07:06:44 +0000 (09:06 +0200)]
Reset require_fresh_start_ after buffer has been viewed/exported

The LFUN buffer-reset-export states to start afresh the export for the
next run, but in fact, the boolean was never reset, so that this was
done for all subsequent runs unless the buffer had been closed and
reopened.

Now the lfun does what it states and only acts on the next pass.

2 months agoAmend 6c3447c8: FindAdv: sometimes a space is added on some math symbols
Kornel Benko [Fri, 31 May 2024 07:15:59 +0000 (09:15 +0200)]
Amend 6c3447c8: FindAdv: sometimes a space is added on some math symbols

Restrict the removing to math insets

2 months agoFindAdv: sometimes a space is added on some math symbols
Kornel Benko [Wed, 29 May 2024 12:09:20 +0000 (14:09 +0200)]
FindAdv: sometimes a space is added on some math symbols

For example '\int '.
Should fix regression #13070
Spotted  by Alexander Dunlap

(cherry picked from commit 4730ec78f544b6fd51defd063e52955554b14e89)

2 months agoWininstaller Qt6.7 changed file name
Eugene Chornyi [Sun, 26 May 2024 07:35:10 +0000 (09:35 +0200)]
Wininstaller Qt6.7 changed file name

2 months agoCmake build: Initialize variable 'CMAKE_INSTALL_PREFIX' before use
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)

2 months agoInsetNote: pass on inset-modify lfuns addressed at other insets (#13068)
Juergen Spitzmueller [Fri, 24 May 2024 12:19:18 +0000 (14:19 +0200)]
InsetNote: pass on inset-modify lfuns addressed at other insets (#13068)

2 months agoXHTML: in InsetGraphics, use the bounding box that LyX computes for each image instea...
Thibaut Cuvelier [Mon, 20 May 2024 14:59:46 +0000 (16:59 +0200)]
XHTML: in InsetGraphics, use the bounding box that LyX computes for each image instead of using the scale.

2 months agoctests: keep a DocBook test inverted for test file
Scott Kostyshak [Mon, 20 May 2024 14:19:15 +0000 (10:19 -0400)]
ctests: keep a DocBook test inverted for test file

DocBook is not currently expected to work with Beamer.

2 months agoctests: mark a fixed export test as fixed
Scott Kostyshak [Mon, 20 May 2024 14:01:30 +0000 (10:01 -0400)]
ctests: mark a fixed export test as fixed

The ed62816e test file was fixed at 6ef18c35.

2 months agoUpdate aastex63.layout according to https://journals.aas.org/aastexguide/#acknowledgments
Juergen Spitzmueller [Mon, 20 May 2024 14:10:23 +0000 (16:10 +0200)]
Update aastex63.layout according to https://journals.aas.org/aastexguide/#acknowledgments

2 months agoAddress Qt 6.7 deprecation warning
Juergen Spitzmueller [Mon, 20 May 2024 07:49:10 +0000 (09:49 +0200)]
Address Qt 6.7 deprecation warning

2 months agoInitialize is_long_tabular before updateIndexes() (which employs it)
Juergen Spitzmueller [Mon, 20 May 2024 06:50:39 +0000 (08:50 +0200)]
Initialize is_long_tabular before updateIndexes() (which employs it)

2 months agoLimit the nopassthurchars case in beamer to URL
Juergen Spitzmueller [Mon, 20 May 2024 06:26:03 +0000 (08:26 +0200)]
Limit the nopassthurchars case in beamer to URL

and also generally extend to classes that provide hyperref

2 months agoXHTML: export paragraph IDs also for list items, but not for the opening tag of the...
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.

2 months agoXHTML: fix typo in comment.
Thibaut Cuvelier [Mon, 20 May 2024 01:11:41 +0000 (03:11 +0200)]
XHTML: fix typo in comment.

2 months agoInsetGraphics: use the `scale` CSS property instead of `width` with percentages.
Thibaut Cuvelier [Sun, 19 May 2024 23:09:43 +0000 (01:09 +0200)]
InsetGraphics: use the `scale` CSS property instead of `width` with percentages.

The effect is closer to what LyX offers. Previously, the percentage was of the HTML container (often, the whole page), meaning that images were oversized. Now, the scale is respected in the same way as LyX, but its bounding box is off. Overall, the result is better, but not what users expect.

2 months agoReturn a reference, not a copy.
Richard Kimberly Heck [Sun, 19 May 2024 20:55:48 +0000 (16:55 -0400)]
Return a reference, not a copy.

Stupid mistake from 2009. Thanks to Scott and JMarc for tracking
it down.

2 months agoctests: automatically invert more lyxbugs files
Scott Kostyshak [Sun, 19 May 2024 16:23:25 +0000 (12:23 -0400)]
ctests: automatically invert more lyxbugs files

Only files in the directory with a trac number prefixed were
inverted.

Now files with a Git short hash (length 7 or 8) are additionally
inverted.

2 months agoTest file with knitr chunk in beamer
Scott Kostyshak [Sun, 19 May 2024 15:27:11 +0000 (11:27 -0400)]
Test file with knitr chunk in beamer

This file fails to compile starting with ed62816e.

2 months agoInsetInfo: no need to output + explicitly in a shortcut, it is already contained...
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.

2 months agoMake comment clearer.
Thibaut Cuvelier [Sat, 18 May 2024 17:38:52 +0000 (19:38 +0200)]
Make comment clearer.

2 months agoCmake build: Set LYX_DATA_SUBDIR in cache unconditionaly
Kornel Benko [Sat, 18 May 2024 08:27:54 +0000 (10:27 +0200)]
Cmake build: Set LYX_DATA_SUBDIR in cache unconditionaly

The value is wrong if CMakeCache.txt already exists and the version is
changed inside configure.ac in AC_INIT()

2 months agoComment typo
Scott Kostyshak [Fri, 17 May 2024 16:18:09 +0000 (12:18 -0400)]
Comment typo

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

The code is not ready for situations where some paragraphs that are
not visible have metrics available. This has been made visible by
a4d9315b, which removes a couple of full metrics updates: the screen
was not correctly scrolled after a scrollToCursor() call.

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.

2 months agoUpdate sk.po
Kornel Benko [Fri, 17 May 2024 10:09:37 +0000 (12:09 +0200)]
Update sk.po