Commit Graph

47120 Commits

Author SHA1 Message Date
Juergen Spitzmueller
b319b31e6c Amend b6e4ba2548 2025-01-01 15:59:12 +01:00
Juergen Spitzmueller
b6e4ba2548 Reimplement error-next (#2775)
This is often more convenient for checking errors than the dialog.
At least if the errors are obvious.

I re-introduce the binding this had up to LyX 1.4.
2025-01-01 15:45:01 +01:00
Juergen Spitzmueller
7f27eabada Change function type
The return value is never used.
2025-01-01 15:27:37 +01:00
Juergen Spitzmueller
9a650644d7 Fix another indentation 2025-01-01 13:44:14 +01:00
Kornel Benko
2f3c60d5b1 Update sk.po 2025-01-01 13:54:39 +01:00
Scott Kostyshak
c6b4d32326 ctests: invert a test due to 'churchslavonic'
After the churchslavonic package is updated on CTAN, the export
should be fixed.

The error is:

LaTeX.cpp (867): Log line: ! Undefined control sequence.
LaTeX.cpp (1156): line: 29 Desc: Undefined control sequence.
Text:  \define@boolkey
                    {churchslavonic}[churchslavonic@]{babelshorthands}[false]{}

References:

  26e2882cad
  https://www.mail-archive.com/search?l=mid&q=CAMq1jyL2vo-vP%3DOPZQJyjkgyOjhjYkiwvN-btiTcf7Ym_2MjLg%40mail.gmail.com
2025-01-01 12:46:39 +01:00
Juergen Spitzmueller
516935f023 Fix indentation 2025-01-01 12:18:05 +01:00
Juergen Spitzmueller
8a181862d8 de.po 2024-12-31 13:57:04 +01:00
Juergen Spitzmueller
d7af257cae oops 2024-12-31 12:54:22 +01:00
Juergen Spitzmueller
7903b665a6 Introduce errors-show
a way to re-open the (LaTeX or other processing) errors dialog after it
had been closed without having to re-compile the document (#2775)
2024-12-31 12:49:38 +01:00
Kornel Benko
6563d81cd2 Check also for any unfinished structures. 2024-12-28 14:56:13 +01:00
Jean-Marc Lasgouttes
beb8dc0225 Documentation fix 2024-12-20 15:43:47 +01:00
Juergen Spitzmueller
40dd37089d Fix erroneous whitespace before and after math preview (#13127) 2024-12-15 09:49:36 +01:00
Koji Yokota
0c004a7566 Fix typos in Japanese Welcome.lyx 2024-12-14 13:37:05 +09:00
Jean-Marc Lasgouttes
e3ec44ffe7 Fixup 5e857883: update screen when clicking away from preview
This is a regression in 5e857883 that comes from the fact that the
Update::singlePar flag does not operate on the paragraph that may be
modified but on the one where the cursor currently lies.

Until this is fixed, we do a full update when this situation is encountered.

Fixes bug #13128.
2024-12-10 17:43:19 +01:00
Koji Yokota
6bfa5f2e38 Make upLaTeX a default compiler for Japanese documents 2024-12-08 11:12:26 +09:00
Koji Yokota
291a62263e Add front/main/backmatter styles to JLReq layout 2024-12-08 11:11:49 +09:00
Kornel Benko
e6c49c127f Cmake build: Remove warning about deprecated Compatibility with cmake <
3.10

Also use NEW policy CMP0177, since we already should not use '..' or '.'
in destination paths.
2024-12-07 15:24:15 +01:00
Pavel Sanda
ac90ebad04 * doxy - amend 1e5c366d53 2024-12-06 23:31:49 +01:00
Pavel Sanda
c05e5d3a34 * doxy - amend 154b4fdece 2024-12-06 23:19:08 +01:00
Richard Kimberly Heck
81f5fc80b5 Use buffer language 2024-12-05 17:21:40 -05:00
Richard Kimberly Heck
945251a6c5 Word count for references 2024-12-05 17:17:54 -05:00
Enrico Forestieri
556efce34b Account for extensions when creating a LyX archive
LyX archives created after importing a LaTeX document may not
include bibliography style and catalog files. This is because
tex2lyx does not remove extensions, but the lyxpak script
expects files without extensions. So, teach lyxpak to also take
possible extensions into account.

Fixes #13129
2024-12-05 10:05:53 +01:00
Stephan Witt
391ed04cd2 support for more modern macos versions 2024-12-02 08:47:28 -08:00
Stephan Witt
bdaf1dbe99 #12224 improved palette change event for macos 2024-12-02 08:46:04 -08:00
Jean-Marc Lasgouttes
8e29ad433d Fixup 91d1ad31: beware of the reurn values of getPosNearX
The pair returned by TextMetrics;;getPosNearX is (position, boundary).
Here one had to use short variable names p and b because 'pos' and
'boundary' are a members of Cursor, and [b, p] was use dinstead of
[p,b].

Here, we added a bool & version of boundary() instead to the usual
getter/setter paradigm, because pos() is already like that. It might
be that the setter should be removed later.

Using these two members, it is now possible to use std::tie instead of
auto [,].
2024-12-02 15:24:38 +01:00
Jean-Marc Lasgouttes
629a692ce2 Cleanup Row::findElement and introduce Row::pos2x
Remove the functionality of findElement of also computing a pixel
position and introduce a function that only does that.
2024-11-29 12:14:52 +01:00
Jean-Marc Lasgouttes
d19f4319dc Try to reduce the use of CoordCache::insets().dim()
The debug code does not needed it. The code in Cursor is only used in
mathed.
2024-11-29 11:52:57 +01:00
Jean-Marc Lasgouttes
6701a5d55c Get rid of TextMetrics::x2pos
Replace it with code that uses getPosNearX.
2024-11-25 17:34:43 +01:00
Jean-Marc Lasgouttes
4c72def295 Forgot that 2024-11-25 17:01:30 +01:00
Jean-Marc Lasgouttes
1dbe589b27 Use setCursorFromCoordinates when scrolling
This is better that rewriting yet another version of the same code.
2024-11-25 16:59:20 +01:00
Jean-Marc Lasgouttes
91d1ad319d Cleanup TextMetrics::getPosNearX
This function mostly iterates though a row. Therefore it makes sense
to turn it into a wrapper around an new Row::x2pos() function.

Take this opportunity to use the C++17 structured bindings declaration
instead of passing a bool variable by address (which is only an output
variable).

No change intended.
2024-11-25 15:55:20 +01:00
Juergen Spitzmueller
80d731e119 Add missing refprefix includes (#13125) 2024-11-25 11:07:59 +01:00
Jean-Marc Lasgouttes
ecac032a94 Improve cursor movement with boundaries
Introduce a new NoEndBoundary flag for insets like InsetNewline.

Indroduce Row::start_boundary() that is true when previous Row has
end_boundary() set.

Use this to improve cursor movement around row boundaries (both for
logical ad visible cursor movement). The new code remove some of the
newline/separator hardcoding.
2024-11-22 16:30:48 +01:00
Jean-Marc Lasgouttes
33442b17ee Insert a real empty row before display math at start of paragraph
In LaTeX, when a displayed equation is at the start of a paragraph,
there is an empty row in front of it. Up to now, this was mimicked in
LyX by increasing the metrics on top of the inset. This commit creates
a real empty row, accessible by the cursor.

To make this work, many small unrelated changes are needed.

* Introduce new AlwaysBreakBefore inset row flag that means "I want a
  break before myself, even if that means creating an empty row".

* Let InsetMathHull use that for display math.

* Remove the workaround that was added for InsetMathHull metrics. This
  means that MetricsInfo::vmode is not used anymore. I decided to keep it,
  since it may prove useful later.

* Handle the flag in TextMetrics::breakParagraph. This requires to add
  a new flag 'ignore_contents' to TextMetrics::leftMargin, because we
  want the empty row to have a normal left indentation, not the one of
  display math (which is also at pos==0).

* In the initial empty row, do not inherit from the centered alignment
  of the math inset, although both are at position 0.

* Concerning cursor positioning with mouse, two methods need fixing:

  For the vertical part, handle in TextMetrics::getRowIndex the cursor
  boundary at position 0 when it is set. Basically, with cursor
  boundary true, the cursor will be in the empty row, whereas it will
  be in font of the math inset otherwise.

  For the horizontal part, handle empty row in TextMetrics::getPosNearX.

Fixes bugs 11593 and 11093.
2024-11-22 15:29:00 +01:00
Jean-Marc Lasgouttes
6727022b05 Code factorization around getRow()
Rename ParagraphMetrics::pos2row to getRowIndex and add a 'boundary'
parameter. Simplify code that handles boundaries.

No change intended.
2024-11-22 10:33:03 +01:00
Scott Kostyshak
6cc9638dc2 Initial commit of lyx-tester
These scripts help with building and testing LyX, mostly with the
ctest framework.

"lyxbuild" is a build script that has different options (e.g., to
compile with Clang/GCC, Qt 5/6, CMake/autotools). The build script
also has an option to cherry-pick compiler fixes which make it
easier to build older commits on newer compiler versions (useful
when performing a "git bisect"). See "lyxbuild --help" for more
information.

The previous home of lyx-tester was:

  https://gitlab.com/scottkosty/lyx-tester
2024-11-18 16:20:40 +01:00
Juergen Spitzmueller
d42a300dfe Quote file name to table style in LFUN_TABULAR_STYLE_INSERT
This might fix the woes with table styles on windows, where the path
to the system directory has blanks IIRC (C:\Program Files\...)
2024-11-18 10:23:31 +01:00
Juergen Spitzmueller
7016f0c676 Remove unused variables
Probably relicts from development
2024-11-18 10:11:41 +01:00
Juergen Spitzmueller
db3f127e0d de.po 2024-11-17 17:12:32 +01:00
Enrico Forestieri
094bfce437 Update it.po 2024-11-17 16:12:47 +01:00
Koji Yokota
b30ccafb46 Fix a wrong UTF-8 character in a comment 2024-11-16 00:50:02 +09:00
Kornel Benko
3fe6163d74 Update sk.po 2024-11-14 12:08:02 +01:00
Thibaut Cuvelier
4d4888aba8 Added mrow to InsetMathCases::mathmlize
Co-authored-by: Lorenzo Bertini <lorenzobertini97@gmail.com>
2024-11-13 20:08:09 +01:00
Juergen Spitzmueller
51f4fc7f67 Revert unintended change
This has only been done locally to test for the fallback
2024-11-13 09:29:37 +01:00
Juergen Spitzmueller
360bb1fa7c Implement support for classico font package (#13124)
This is only an alternative to the classico font we already support
(uop), hence no file format change.
2024-11-13 09:04:56 +01:00
Juergen Spitzmueller
833c372931 Fixup logic in LaTeXFonts::getUsedFont()
Allow for unavailable switchdefault fonts fall back to AltFonts

Prerequisite to implement #13124
2024-11-13 09:02:49 +01:00
Thibaut Cuvelier
1381e3e575 docbook2epub: make the output of the parameters easier to read. 2024-11-11 23:50:43 +01:00
Thibaut Cuvelier
637ae9528f docbook2epub: create the OEBPS and META-INF folders that Saxon seems unable to create. 2024-11-11 23:46:27 +01:00
Scott Kostyshak
92b656c17b Revert "Amend a83159f0: Use logical operator ||."
This reverts commit 48c069fa8a.

The commit unintentionally changed behavior. See #13116.
2024-11-11 21:32:18 +01:00