Commit Graph

46056 Commits

Author SHA1 Message Date
Pavel Sanda
26ef36a29c * cs.po 2023-10-04 14:53:07 +02:00
Pavel Sanda
ff51dbd090 remerge cs.po 2023-10-04 14:43:50 +02:00
Juergen Spitzmueller
90307cf212 Amend 3f0bb8aa43
Account for the paragraph marker
2023-10-04 13:49:34 +02:00
Juergen Spitzmueller
3f0bb8aa43 Fix assertion on paste with empty pars 2023-10-04 13:40:38 +02:00
Juergen Spitzmueller
fc0ce87ce4 document selectionmath color 2023-10-04 13:29:06 +02:00
Juergen Spitzmueller
253a8ce2ce de.po 2023-10-04 13:22:27 +02:00
Juergen Spitzmueller
5cb53606b6 Introduce color_selectionmath
To have a distinctive color for selected math which works in both modes

Also, link color_selectionmath with QPalette::HighlightedText, so we
won't need to special-case on lyxrc.use_system_colors any longer
2023-10-04 13:10:07 +02:00
Jean-Marc Lasgouttes
65cb9fa4df Use Color_selectiontext as needed for partial selection in math
Currently, selected math hull insets use Color_selectiontext when
system colors are in use. This commit implements the same behavior
for partial selection.

This is done by introducing two element types (BEGIN_SEL and END_SEL)
to MathRow.
2023-10-03 12:51:11 +02:00
Kornel Benko
73e588bd44 Update sk.po 2023-10-01 20:15:07 +02:00
Juergen Spitzmueller
2b69dc54da Revert the logic of 343a9749ab
It might be better to be explicit also with black, after all.
2023-10-01 12:20:40 +02:00
Juergen Spitzmueller
242381464b Simplify 2023-10-01 11:38:10 +02:00
Juergen Spitzmueller
6df25c3585 When box background is "none", frame color != black and page color has been set
then use the page color as box background, not white
2023-10-01 11:08:11 +02:00
Juergen Spitzmueller
343a9749ab No need to use \fcolorbox with explicit black frame and no background
White background, however, is always treated explicit (think non-white
page background)
2023-10-01 10:12:52 +02:00
Juergen Spitzmueller
2854355fe3 Require xcolor whenever we use an \fcolorbox 2023-10-01 09:35:53 +02:00
Juergen Spitzmueller
3e063daeab Revert "Amend 087f6bce"
This reverts commit a6882a1db0.
2023-10-01 09:26:26 +02:00
Scott Kostyshak
bb55c3429f ctests: uninvert couple of suspended tests
Due to recent changes, 'xcolor' is now loaded in the corresponding
document export, which somehow fixes the compilation error that was
occurring.
2023-09-30 20:43:40 -04:00
Scott Kostyshak
a6882a1db0 Amend 087f6bce
Explanation from Udi:

  There is a missing validation for the requirement of xcolor in
  InsetBox::validate, the case we use Boxed with non-default color.

Patch from Udi.
2023-09-30 20:22:59 -04:00
Scott Kostyshak
10403b7959 Amend 04bfbc0f
Patch from Udi.
2023-09-30 20:20:03 -04:00
jpc
2c9178ecfd Uodate fr.po 2023-09-30 18:20:47 +02:00
Udi-Fogiel
48eda746da proper unicode support for hebrew in 8bit engines 2023-09-30 17:09:41 +02:00
Juergen Spitzmueller
04bfbc0f7a Limit RTL hack to classic engines (#12919)
It breaks with LuaTeX, is definitely not needed with XeTeX, and it is
doubted whether it is needed at all (but this needs further testing).
2023-09-30 17:00:51 +02:00
Juergen Spitzmueller
8b1f1c29ff Style 2023-09-30 13:58:57 +02:00
Udi Fogiel
7ccdc6edf5 fix nested uwave 2023-09-30 13:44:03 +02:00
Juergen Spitzmueller
9b8183b877 Fix escape string (reported by José) 2023-09-30 13:07:00 +02:00
Juergen Spitzmueller
fc9684a130 Prevent access to null local_font 2023-09-30 13:01:20 +02:00
Juergen Spitzmueller
1d00389bf8 Update tex2lyx tests after recent format change 2023-09-30 09:59:36 +02:00
Juergen Spitzmueller
087f6bce71 Introduce default box frame color (#12921)
This better aligns with dark mode
2023-09-30 09:56:27 +02:00
Scott Kostyshak
46a62573c3 Merge branch 'fix-spanish-quoting'
This branch reverts a document-specific fix and introduces a more
general fix.

The following tests still all pass:

  ctest -R "es/Letter"
2023-09-29 10:31:50 -04:00
Scott Kostyshak
d937afba8a Fix babel quoting for Spanish
The problem, described by Udi, was the following:

  See section 1.10 of babel's manual, on page 12 under
  "TROUBLESHOOTING". There cannot be
  a closing curly brace after a shorthand, and in babel-spanish
  ">" is a shorthand.

Thanks to Udi and Jürgen for the patch.

This is a more general fix than the (now reverted) fix at fa67f709.

For ML discussion, see here:

  https://www.mail-archive.com/search?l=mid&q=rwwvyyvwmx5wwvwhqdaioil32hblkzi7ghokzgekksrf66ww3f%40u6nj3guoayay
2023-09-29 10:30:34 -04:00
Scott Kostyshak
cc66c75593 Revert "Fix compilation of es/Letter standard class"
This fix hardcoded a language package and was specific to this
document.

The next commit will introduce a better fix, thanks to Udi and
Jürgen.

This reverts commit fa67f70992.
2023-09-29 10:23:26 -04:00
Juergen Spitzmueller
7aa00f0b92 Fix quote menu item, from Dan
Current language is relevant here, not main language
2023-09-29 13:09:20 +02:00
Pavel Sanda
6141b437b1 pdfcolmk is an empty stub for many years now (bug #12920).
Patch from Udi.
2023-09-28 00:36:35 +02:00
Scott Kostyshak
bf241165dd ctest: invert es/Intro_docbook5
This fails after recent changes to the document.
2023-09-27 13:42:40 -04:00
Pavel Sanda
26866d36b3 * es/Intro,Shortcuts updates from Dan. 2023-09-26 22:36:48 +02:00
Pavel Sanda
921cce8cfc * ca/Intro,Shortcuts updates from Dan.
All changes accepted.
2023-09-26 22:33:15 +02:00
Scott Kostyshak
beec7b669f ctests: update inverted list after DocBook fix
Thanks to the fix at ff9dfa96, we can uninvert a test.

Also invert a couple of other tests and organize into the correct
location.
2023-09-25 10:58:50 -04:00
Scott Kostyshak
ff9dfa96f2 DocBook: fix case with emphasis at end of footnote
For ML discussion, see here:

  https://www.mail-archive.com/search?l=mid&q=CAK0LPyiusCMu-X7KpgO0d1-rh4e3%3DRwR5ooXE_fdb7UVuB0VUA%40mail.gmail.com

Patch from Thibaut Cuvelier.
2023-09-25 10:41:21 -04:00
Jean-Marc Lasgouttes
549969a563 Improve comments 2023-09-25 12:51:33 +02:00
Jean-Marc Lasgouttes
71d9f6e90d Avoid row breaking at inconvenient places.
When it turns out that breaking a STRING row element was not
sufficient in Row::shortenIfNeeded, we still remember the shortest
width that one can obtain. Later, when we try to split a previous
element of the row, we have a better idea of how much of the row
remains after it.

To this end, change the signature of Element::splitAt to use an enum:
FIT (was: force=false), FORCE (was: force= true) and BEST_EFFORT
(split at max_width, but do not return an error if the string is too
large).

Fixes bug #12660.
2023-09-25 12:46:54 +02:00
Jean-Marc Lasgouttes
1ca43e1938 Revert "Avoid row breaking at inconvenient places."
The solution did create new issues.

Fixes bug #12899.
Unfixes bug #12660.

This reverts commit f7de345f85.
2023-09-25 12:28:51 +02:00
Jean-Marc Lasgouttes
9156712895 Make sure that caret width is not null in mathed
The same test exists in texted.

Fixes bug #12904.
2023-09-24 13:07:55 +02:00
Scott Kostyshak
fa67f70992 Fix compilation of es/Letter standard class
The problem, described by Udi, was the following:

  See section 1.10 of babel's manual, on page 12 under
  "TROUBLESHOOTING". There cannot be
  a closing curly brace after a shorthand, and in babel-spanish ">" is a
  shorthand.

Patch from Dan.

For more discussion, see the following ML thread:

  https://www.mail-archive.com/search?l=mid&q=rwwvyyvwmx5wwvwhqdaioil32hblkzi7ghokzgekksrf66ww3f%40u6nj3guoayay
2023-09-23 20:38:10 -04:00
Scott Kostyshak
c6317b123e ctests: invert another ca docbook test
Perhaps similar to eb920502.
2023-09-23 12:44:04 -04:00
Enrico Forestieri
7b6fe3555d Update it.po 2023-09-23 17:50:25 +02:00
Enrico Forestieri
ddf81b4e19 Amend 12e3d46b
Also account for alerts regarding documents that are explicitly
allowed to execute external commands through the settings.
2023-09-23 16:18:28 +02:00
Enrico Forestieri
12e3d46b5b Do not change font in html text without gui
As reported here:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg220399.html
if an alert is displayed when the gui is not available Qt6 crashes
when the text contains html directives and the font is changed.
2023-09-23 13:48:01 +02:00
Jean-Marc Lasgouttes
94c6d45b74 When drawing macro names, enforce LtR direction
Add a Direction parameter to the Painter::text methods that take a
FontInfo parameter.

In drawStrRed and drawStrBlack, force the direction to LtR.

Fixes bug #12905.
2023-09-22 12:41:44 +02:00
Jürgen Spitzmüller
fcbbb138a2 Adapt listings label color for darkmode
Do not use semantic foreground color here, as label button color does
not change in dark mode.
2023-09-21 07:11:07 +02:00
Pavel Sanda
153a16777e Whitespace 2023-09-19 23:52:13 +02:00
Pavel Sanda
a624e52c95 + es/Letter standard class (from Dan) 2023-09-19 23:48:31 +02:00