]> git.lyx.org Git - lyx.git/log
lyx.git
8 weeks agoupdate tex2lyx tests
Juergen Spitzmueller [Tue, 9 Jul 2024 13:27:27 +0000 (15:27 +0200)]
update tex2lyx tests

8 weeks agoAdd support for biblatex-chicago (#12240)
Juergen Spitzmueller [Tue, 9 Jul 2024 13:18:06 +0000 (15:18 +0200)]
Add support for biblatex-chicago (#12240)

File format change

8 weeks agoBiblioInfo: provide macro for ellipses
Juergen Spitzmueller [Tue, 9 Jul 2024 04:39:15 +0000 (06:39 +0200)]
BiblioInfo: provide macro for ellipses

2 months ago French Additional manual, translation of chapter 4 up to sec. 4.3
jpc [Sat, 6 Apr 2024 16:42:09 +0000 (18:42 +0200)]
       French Additional manual, translation of chapter 4 up to sec. 4.3

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

2 months agoAdd documentation for notes cite engine type.
Juergen Spitzmueller [Sun, 7 Jul 2024 13:28:33 +0000 (15:28 +0200)]
Add documentation for notes cite engine type.

2 months agoFix string
Juergen Spitzmueller [Sun, 7 Jul 2024 13:22:40 +0000 (15:22 +0200)]
Fix string

2 months agoAdd "notes" CiteEngine Type
Juergen Spitzmueller [Sun, 7 Jul 2024 13:14:05 +0000 (15:14 +0200)]
Add "notes" CiteEngine Type

This is needed for (forthcoming) biblatex-chicago support (see #12240)

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

2 months agoImprove 0f35e3141bc5b6ba
Juergen Spitzmueller [Sat, 6 Jul 2024 07:24:07 +0000 (09:24 +0200)]
Improve 0f35e3141bc5b6ba

* also handle replace string case-insensitively in case-insensitive mode
* leaner code

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.

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 buffer language when no language has been specified. It
might have been better to use the GUI language.

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

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.

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

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 in cases
where no metrics is know for the current paragraph or where its
position is not set.

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) os the method that sets
everything right with minimal effort.

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.

2 months agocomment
Jean-Marc Lasgouttes [Wed, 3 Jul 2024 14:23:30 +0000 (16:23 +0200)]
comment

2 months agofix comment
Jean-Marc Lasgouttes [Wed, 3 Jul 2024 13:42:54 +0000 (15:42 +0200)]
fix comment

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

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.

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 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

2 months agoAvoid crash when InsetBibitem::updateCommand shows a dialog
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.

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

2 months agoRemove profiling.py
José Matos [Thu, 27 Jun 2024 20:20:49 +0000 (21:20 +0100)]
Remove profiling.py

The hotshot module used there only works for Python 2.

BTW the profiling turned out not be necessary.

As a case in point Python 3.13 is twice as fast as Python 3.6 when using
lyx2lyx. Not only that but Python 3 is almost 10 times faster than using
Python 2 for this particular case.

2 months agoUpdate ja.po
Koji Yokota [Wed, 26 Jun 2024 21:42:26 +0000 (06:42 +0900)]
Update ja.po

2 months agoUpdate sk.po
Kornel Benko [Wed, 26 Jun 2024 06:53:46 +0000 (08:53 +0200)]
Update sk.po

2 months 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

2 months agoTypo
Kornel Benko [Tue, 25 Jun 2024 12:36:35 +0000 (14:36 +0200)]
Typo

2 months agoCmake build: Require std >= 17 for compilation of QT6
Kornel Benko [Tue, 25 Jun 2024 11:50:32 +0000 (13:50 +0200)]
Cmake build: Require std >= 17 for compilation of QT6

2 months agofix comment
Jean-Marc Lasgouttes [Tue, 25 Jun 2024 10:01:05 +0000 (12:01 +0200)]
fix comment

2 months agoftp->http
Pavel Sanda [Mon, 24 Jun 2024 20:54:21 +0000 (22:54 +0200)]
ftp->http

2 months agoDocument python changes
Pavel Sanda [Mon, 24 Jun 2024 20:45:15 +0000 (22:45 +0200)]
Document python changes

2 months agoPrepare notes for 2.5
Pavel Sanda [Mon, 24 Jun 2024 20:44:49 +0000 (22:44 +0200)]
Prepare notes for 2.5

2 months agoLet the middle button pasting respect newlines by default.
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

2 months agoAdd runpath verification of deployed binaries and plugins
Stephan Witt [Mon, 24 Jun 2024 06:24:45 +0000 (08:24 +0200)]
Add runpath verification of deployed binaries and plugins

2 months agoAdd Qt binary directory to PATH to locate qmake utility
Stephan Witt [Mon, 24 Jun 2024 05:32:08 +0000 (07:32 +0200)]
Add Qt binary directory to PATH to locate qmake utility

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

2 months agoFix up fafe3ea5d7.
Richard Kimberly Heck [Sun, 23 Jun 2024 16:48:17 +0000 (12:48 -0400)]
Fix up fafe3ea5d7.

There was a merge conflict, and it looks like I didn't fix it right.

I had set the author of that commit to Alexander, but for some
reason it didn't stick?

2 months agoCmake build: Add Qt?Xml modules to build.
Kornel Benko [Sun, 23 Jun 2024 16:34:50 +0000 (12:34 -0400)]
Cmake build: Add Qt?Xml modules to build.

Cmake part of the fix to #13069 XHTML output for InsetMathBox can loop forever

2 months agoFix bug #13069.
Richard Kimberly Heck [Sun, 23 Jun 2024 16:37:25 +0000 (12:37 -0400)]
Fix bug #13069.

Use XML parser to handle <mtext> issues.

Some of the config/qt.m4 code by JMarc.

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)

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)

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)

2 months ago\cprotect amendment
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.

2 months agoredoParagraph: avoid extra cache accesses
Jean-Marc Lasgouttes [Fri, 21 Jun 2024 15:02:13 +0000 (17:02 +0200)]
redoParagraph: avoid extra cache accesses

To this end, CoordCacheBase::add returns true when a change was made.
This uses the return value of std::unordered_map::insert.

2 months agoRename DocumentCLass:plainInsetLayout() to InsetLayout::undefined()
Jean-Marc Lasgouttes [Thu, 20 Jun 2024 16:26:50 +0000 (18:26 +0200)]
Rename DocumentCLass:plainInsetLayout() to InsetLayout::undefined()

This makes the code easier to understand.

2 months agoFix cursor when undoing accept/reject all changes
Jean-Marc Lasgouttes [Thu, 20 Jun 2024 16:00:13 +0000 (18:00 +0200)]
Fix cursor when undoing accept/reject all changes

Before this change, the whole document would remain selected.

This relies on the new UndoGroupHelper constructor introduced at e7b1ee47.

2 months agoAdd a constructor of UndoGroupHelper that uses a CursorData parameter
Jean-Marc Lasgouttes [Thu, 20 Jun 2024 15:52:19 +0000 (17:52 +0200)]
Add a constructor of UndoGroupHelper that uses a CursorData parameter

This aloows to se the the `before' cursor of the undo group.

Not used for now.

2 months agoRemove useless cursor parameter to global undo actions
Jean-Marc Lasgouttes [Thu, 20 Jun 2024 15:25:25 +0000 (17:25 +0200)]
Remove useless cursor parameter to global undo actions

Add a Cursor-less version of Undo::recordUndoBufferParams (we don't
use an optional arument to avoir #includ'ing Cursor.h).

The version with CursorData parameter has been kept for the case of
local dictionary lfuns that have some kind of locality.

Remove Cursor argument to Undo::recordUndoFullBuffer().

2 months agoRemove trailing underscore on members x and y of Point class.
Jean-Marc Lasgouttes [Thu, 20 Jun 2024 12:28:45 +0000 (14:28 +0200)]
Remove trailing underscore on members x and y of Point class.

These members are not private.

2 months agoAdd missing override keyword
Jean-Marc Lasgouttes [Wed, 19 Jun 2024 13:05:04 +0000 (15:05 +0200)]
Add missing override keyword

2 months agoAvoid bogus warnings when configuring for Qt6
Enrico Forestieri [Tue, 18 Jun 2024 19:56:15 +0000 (21:56 +0200)]
Avoid bogus warnings when configuring for Qt6

Recent versions of qmake complain loudly when the locale
does not explicitley 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 agoMove DrawStrategy enum to update_flags.h.
Jean-Marc Lasgouttes [Tue, 18 Jun 2024 12:28:28 +0000 (14:28 +0200)]
Move DrawStrategy enum to update_flags.h.

Introduce new drawStrategy() and drawStrategyDescription() methods to
frontend::Application.

Show the current draw strategy in About dialog.

2 months agoSort and format comments
José Matos [Tue, 18 Jun 2024 09:52:05 +0000 (10:52 +0100)]
Sort and format comments

The last code change shuffled the comments out of place

2 months agoOrder imports
José Matos [Tue, 18 Jun 2024 09:25:52 +0000 (10:25 +0100)]
Order imports

This is similar to what we have in C++ code where we order the standard
includes to be easier to read.

This is a readability change only.

2 months agoTweak ruff configuration
José Matos [Tue, 18 Jun 2024 09:24:09 +0000 (10:24 +0100)]
Tweak ruff configuration

Add I - isort rules (order of imports);
Ignore line too long warnings.

2 months 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.

2 months 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.

2 months 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.

2 months 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.

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

2 months 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

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

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

2 months 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.

2 months 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