Commit Graph

46614 Commits

Author SHA1 Message Date
Enrico Forestieri
0237398a59 Update it.po 2024-08-18 22:56:29 +02:00
Juergen Spitzmueller
51d9776df3 de.po 2024-08-18 18:43:16 +02:00
Juergen Spitzmueller
7955854269 Document recent commits 2024-08-18 18:34:29 +02:00
Juergen Spitzmueller
a46fb46633 Improve output pane, as discussed in #12372
* The image scale param is shared by XHTML and DocBook
* It does not only apply to math
* Get rid of redundant group headers (#12902)

(cherry picked from commit 1429552063)
2024-08-18 18:32:03 +02:00
Juergen Spitzmueller
b21f104b37 Add "needcopiesfrom" converter flag
This is needed to provide ePub and other DocBook-based exports with
the right (renamed) images (fixes #12372)

(cherry picked from commit 03c5842006)
2024-08-18 18:29:22 +02:00
Kornel Benko
f8b18714c4 Update sk.po, sk.gmo 2024-08-18 13:09:26 +02:00
Pavel Sanda
3f31c8994c * cs.po 2024-08-18 12:07:24 +02:00
Juergen Spitzmueller
f179759b67 de.po 2024-08-18 09:20:56 +02:00
Richard Kimberly Heck
a9bc7a5752 Remerge strings. 2024-08-17 19:38:54 -04:00
Richard Kimberly Heck
3f7569edcd Add temporary directory to About LyX dialog
(cherry picked from commit e7af6afb01)
2024-08-17 19:37:37 -04:00
Enrico Forestieri
b079bfe4c8 Improve detection of our math fonts
It turns out that Qt font selection via style name is broken on
Windows (QTBUG-101436). As we use our own style name for discriminating
our math fonts and applying proper kerning, we need a fallback method.
With this commit we check for the family name when the style name does
not match. In computing the kerning we also consider the right bearing
reported by the font instead of the width of the enclosing bounding box,
as this produces better results (see bug 13087).

Fixes #13087.

(cherry picked from commit d632753dea)
2024-08-15 11:36:49 -04:00
Juergen Spitzmueller
9c13752d34 forgotten subindex
(cherry picked from commit 9835022c59)
2024-08-15 08:52:33 +02:00
Juergen Spitzmueller
092911880a Disable valign widget in tabularx tables
See https://marc.info/?l=lyx-users&m=172363857509065&w=2

(cherry picked from commit c993485782)
2024-08-15 07:32:04 +02:00
Juergen Spitzmueller
7d309d08fd Unbreak GuiTabular::fucEnabled()
I wonder how long this has been broken (if it ever worked)

(cherry picked from commit 6b0c243cda)
2024-08-15 07:26:59 +02:00
Juergen Spitzmueller
b6cd31e99a Properly escape special characters (!, @, |) in nomenclature output 2024-08-12 18:22:57 +02:00
jpc
b0fd84ea96 Update fr.po 2024-08-10 18:08:34 +02:00
Kornel Benko
097eba2ed1 Update sk.po 2024-08-08 10:36:52 +02:00
Juergen Spitzmueller
e5e4cd6086 lyx_pot.py: Fix regex for \Format
Each token could be delimited by quotation marks or not. The previous
regexes only considered this for two tokens and hence produced wrong
matches for cases such as

\Format gnuplot     "gp, gnuplot, plt"    "Gnuplot"     "" "" ""  "vector"	"text/plain"

where the extension list wasn't parsed as a single token.

(cherry picked from commit 1efdc11296)
2024-08-07 11:37:17 -04:00
Kornel Benko
38e36c552d Update sk.po 2024-08-07 10:53:41 +02:00
Juergen Spitzmueller
2802d8f6ec de.po 2024-08-07 09:14:44 +02:00
Richard Kimberly Heck
c13b5922c0 Restore obvious shortcut
(cherry picked from commit 337a94a425)
2024-08-06 14:51:12 -04:00
Juergen Spitzmueller
7ec52ec846 Add plt as gnuplot extension (#11148)
This seems to be the common one on Windows

(cherry picked from commit f2e6a9b4ae)
2024-08-06 11:38:11 -04:00
Richard Kimberly Heck
1ddd148b06 Fix bug with display of reference tooltips.
Previously, the tooltip was assigned during updateBuffer. But then
we could not determine the value for forward references.

(cherry picked from commit b494286a9c)
2024-08-06 11:35:20 -04:00
Richard Kimberly Heck
8f6c41a110 temp 2024-08-06 11:18:51 -04:00
Juergen Spitzmueller
f37bd183ab set toc_string_ before the label is being truncated
We do not want truncated items in the outliner.

(cherry picked from commit 8aeee03e3a)
2024-08-06 11:08:03 -04:00
Richard Kimberly Heck
91b085d5ad Use the old-style sorts of label strings in the TOC.
There are several reasons to do it this way, among which is odd
behavior of the TOC filter if we put anything else there. This also
allows for filtering of the references themsevles in a natural way.

The change, I think, was really an unintended consequence of other
changes connected to showing formatted references in the work area.

(cherry picked from commit 1de4645286)
2024-08-05 18:23:25 -04:00
Juergen Spitzmueller
366efa9e61 Oops 2024-08-05 13:43:51 +02:00
Juergen Spitzmueller
cb3d88e22c update status 2024-08-05 13:20:23 +02:00
Juergen Spitzmueller
a46aa9bdc9 Add Tomasz Kołodziejski to the credits 2024-08-05 10:42:06 +02:00
Juergen Spitzmueller
eab7eebe41 Update Polish translation (from Tomasz Kołodziejski) 2024-08-05 10:40:19 +02:00
Juergen Spitzmueller
220b3c51eb Update Polish translation (from Tomasz Kołodziejski) 2024-08-05 10:40:19 +02:00
Juergen Spitzmueller
03741f4bd1 Add Tomasz Kołodziejski to the credits
(cherry picked from commit 43baae382c)
2024-08-05 10:36:38 +02:00
Kornel Benko
cbc9022af6 Update sk.po 2024-08-02 09:14:27 +02:00
Juergen Spitzmueller
a5aa413256 de.po 2024-08-01 17:10:54 +02:00
Juergen Spitzmueller
2277a9a557 Disambiguate string
At least in German "label" in a form and "label" as in \label
translate differently

(cherry picked from commit 7ac4e53e37)
2024-08-01 17:05:29 +02:00
Juergen Spitzmueller
451f3b2784 Consider masked modifiers (~S etc.) when writing to bind file
Fixes #12973

(cherry picked from commit eb1ac06a9a)
2024-07-29 18:14:45 +02:00
Richard Kimberly Heck
f6074c329a Status 2024-07-27 11:19:19 -04:00
Juergen Spitzmueller
c16f99c524 Load geometry after graphics
Newer graphics driver overwrite some (output) page settings otherwise
See https://tex.stackexchange.com/a/384952/19291

Re-fixes #10970

(cherry picked from commit ca4fc01847)
2024-07-27 11:17:20 -04:00
Jean-Marc Lasgouttes
73bfef16f3 Make scrolling-by-selection smoother
This trivial patch makes scrolling-by-selection smoother by dividing
the step size and the time between steps by 8 when generating
synthetic events in work area.

The scrolling speed is unchanged, but the result is visually better.

(cherry picked from commit 1cc1f0ba27)
2024-07-25 18:20:38 +02:00
Pavel Sanda
df313e9920 Squash gcc warning. 2024-07-25 11:52:20 +02:00
Jean-Marc Lasgouttes
2baa292314 Do not export the content of InsetMathBoxed as text in MathML
\boxed{} is the only box in LaTeX that contains math. It is amusing
that the example file that we had for ticket #13609 should not have
been a problem since there is no reason to force <mtext> there.

(cherry picked from commit 1186d90edf)
2024-07-24 18:26:53 +02:00
Jean-Marc Lasgouttes
458ce0fdba Fixup b29b3eb1: close <mtext> when quitting text mode
This fixes malformed documents on UserGuide export.

Related to bug #13069.

(cherry picked from commit 1385f0fddd)
2024-07-24 18:17:20 +02:00
Jean-Marc Lasgouttes
8ea0987644 Fixup b29b3eb1: fix broken xml syntax
This commit addresses two issues:

1/ the embarassing one: the member SetMode::old_text_level_ was
   declared as bool instead of int. This means that is was definitely
   not a proper backup variable!

2/ a robustness issue: replace two consecutive test for isTest() by a
   boolean veriable that is used twice. This makes sure that <mrow>
   cannot be output without the corresponding </mrow>.

Part of bug #13069.

(cherry picked from commit a268fe096a)
2024-07-24 18:17:13 +02:00
jpc
a0752e4dfc Update fr.po 2024-07-24 16:25:00 +02:00
Jean-Marc Lasgouttes
b29b3eb1fc Fix crash when generating MathML with InsetMathBox
Instead of generating code and parsing it to add <mtext>...</mtext> at
the right spots, this commit honors the text mode setting that was
already present in the codebase to generate it automatically.

This is the work of two helper methods in MathMLStream:

* beforeText() notices when the stream is in text mode and that a
  <mtext> has not yet been generated. In this case it inserts it, so
  that raw text can be emitted afterwards.

* beforeTag() checks whether a <mtext> needs to be closed at this
  point, and does it if needed.

To make this work, the code now tracks the nesting level in the
stream, and compares it the what the level was when text mode has been
enabled using the SetMode helper function.

In order to avoid later bugs, member os() that allows to access the
underlying stream of MathMLStream is removed. This required many <<
operators to become friends of MathMLStream.

In InsetMathBox, rename splitAndWrapInMText() to mathmlizeHelper(),
which is not just a method that sets text mode inside a <mrow>
element.

In InsetMathFont and InsetMathHull, the explicit generation of nesting
in <mtext>...</mtext> can be removed now.

Fixes bug #13069.

(cherry picked from commit 216a6fb348)
2024-07-22 22:08:58 +02:00
Jean-Marc Lasgouttes
17bc6d05b3 Cleanup MathMLStream
This is preparatory work for fixing ticket #13069.

Remove direct accesses to the underlying stream of MathMLStream in
InsetMathChar, InsetMathSpecialChar, and in all << operators other
than MathMLStream << docstring. This will allow to add a hook later in
this operator.

Move default values of MathMLStream private members to their definition.

Get rid of line_ member, which is not used.

(cherry picked from commit fbd4b0a13f)
2024-07-22 22:06:02 +02:00
Jean-Marc Lasgouttes
2999061e38 Remove alpha component of system colors
When using system colors it may happen (on windows 11 in particular)
that the background color is actually translucid. This is not
something we are prepared to handle and it creates ghosts on screen.

The fix is easy: the alpha channel of the colors is set to 255.

Fixes bug #13084.

(cherry picked from commit 095bb18331)
2024-07-22 15:55:46 -04:00
Juergen Spitzmueller
4a796889e9 tex2lyx: Fix two bugs in nomencl import
* The comment character % is made active to serve as an escape char
* quotation marks need to be escaped

(cherry picked from commit 5bc4c11fd6)
2024-07-22 19:03:10 +02:00
Juergen Spitzmueller
40ac463724 UserGuide: fix two nomencl entries
(cherry picked from commit 9f31d562bf)
2024-07-22 10:44:13 +02:00
Jean-Marc Lasgouttes
0867aaf5c5 Fixup f4364c75: remove two more Update::SinglePar instances
They do not do what the author(s) of these lines thought it would do,
and can create crashes.

(cherry picked from commit 485f5afc21)
2024-07-20 23:50:48 +02:00