]> git.lyx.org Git - lyx.git/log
lyx.git
2 months agoUpdate credits
Pavel Sanda [Thu, 11 Apr 2024 07:42:29 +0000 (09:42 +0200)]
Update credits

2 months ago* zh_CN.po - update credits
Pavel Sanda [Thu, 11 Apr 2024 07:37:36 +0000 (09:37 +0200)]
* zh_CN.po - update credits

2 months agoupdate zh_CN translation
Jiaxu Zi [Wed, 10 Apr 2024 09:19:28 +0000 (17:19 +0800)]
update zh_CN translation

2 months agoUpdate Win installer for new dictionary links. Untested.
Pavel Sanda [Wed, 10 Apr 2024 19:13:41 +0000 (21:13 +0200)]
Update Win installer for new dictionary links. Untested.

2 months agoDocs - update URL for dictionaries after recent infra movements
Pavel Sanda [Wed, 10 Apr 2024 19:12:36 +0000 (21:12 +0200)]
Docs - update URL for dictionaries after recent infra movements

2 months ago Update fr.po: a couple of typos and shortcut conflicts resolution
jpc [Wed, 10 Apr 2024 16:57:58 +0000 (18:57 +0200)]
    Update fr.po: a couple of typos and shortcut conflicts resolution

2 months ago French Additional manual, translation of chapter 4 up to sec. 4.9
jpc [Wed, 10 Apr 2024 16:50:42 +0000 (18:50 +0200)]
     French Additional manual, translation of chapter 4 up to sec. 4.9

2 months agoFix compilation with msvc 2019
Jean-Marc Lasgouttes [Sun, 7 Apr 2024 18:41:13 +0000 (20:41 +0200)]
Fix compilation with msvc 2019

'uint' is not defined, 'unsigned int' is better.

(cherry picked from commit c7f53afd319fc9028be74f8949cec00063972462)

2 months agoDo not include <QDate> in InsetInfo.h
Jean-Marc Lasgouttes [Thu, 4 Apr 2024 15:35:54 +0000 (17:35 +0200)]
Do not include <QDate> in InsetInfo.h

This is used by getDate/getTime, which actually should not be
InsetInfoParams methods, but functions in anonymous namespace.

(cherry picked from commit 51562ff37732f4949441bd8c2b55692b0719093a)

2 months ago* layouttranslations.review, ack from Yitzhak.
Pavel Sanda [Sun, 7 Apr 2024 20:01:49 +0000 (22:01 +0200)]
* layouttranslations.review, ack from Yitzhak.

2 months agoFix assertion when pasting paragraph with insets in lyxrc.ct_markup_copied
Juergen Spitzmueller [Sat, 6 Apr 2024 07:47:22 +0000 (09:47 +0200)]
Fix assertion when pasting paragraph with insets in lyxrc.ct_markup_copied

This has to be done after the inset buffers have been initialized.

(cherry picked from commit 9198ed5965809a1e951d1b721899d0051e619e34)

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 agoCmake build: Make QT5-compilation be default
Kornel Benko [Sat, 6 Apr 2024 10:36:47 +0000 (12:36 +0200)]
Cmake build: Make QT5-compilation be default

2 months ago* LFUNs.lyx - regenerate
Pavel Sanda [Fri, 5 Apr 2024 18:01:19 +0000 (20:01 +0200)]
* LFUNs.lyx - regenerate

2 months ago* quote-insert lfun description
Pavel Sanda [Fri, 5 Apr 2024 17:47:20 +0000 (19:47 +0200)]
* quote-insert lfun description

2 months agoRevert "Update sk.po"
jpc [Fri, 5 Apr 2024 15:48:43 +0000 (17:48 +0200)]
Revert "Update sk.po"

This reverts commit 148001f6fe5575cb3752f11a76360d0372d74ade.

2 months agoCouple of corrections in RELEASE-NOTES (mainly typos)
Juergen Spitzmueller [Fri, 5 Apr 2024 11:44:19 +0000 (13:44 +0200)]
Couple of corrections in RELEASE-NOTES (mainly typos)

2 months agoUpdate update-po.sh script
Richard Kimberly Heck [Thu, 4 Apr 2024 21:09:16 +0000 (17:09 -0400)]
Update update-po.sh script

(cherry picked from commit b360b9ebf7c2b1bbb0fe674790ed78065c3780c0)
(cherry picked from commit eb57c93aab05d586e8b06ef8a7277850f1591e24)

2 months agoCompilation fix with Qt < 5.7
Jean-Marc Lasgouttes [Wed, 3 Apr 2024 10:39:09 +0000 (12:39 +0200)]
Compilation fix with Qt < 5.7

Qt::ImAnchorRectangle has only been introduced in Qt 5.7. Since it is
used to answer a query from the IM machinery, there is no need for
it with older Qt versions.

(cherry picked from commit 6260689fd552a5e83d2970dcfd4d5ba7e09443e7)

2 months ago* ANNOUNCE
Pavel Sanda [Wed, 3 Apr 2024 19:49:05 +0000 (21:49 +0200)]
* ANNOUNCE

2 months agoFix label escaping in InsetMathRef (#12980)
Juergen Spitzmueller [Tue, 2 Apr 2024 06:15:53 +0000 (08:15 +0200)]
Fix label escaping in InsetMathRef (#12980)

This was completely broken: the IDs have been escaped in the LyX file
(which they absolutely shouldn't) but not in all LaTeX output (which
they should).

(cherry picked from commit 98080ca0d548b754433a99f9f097054134117184)

2 months ago Update fr.po
jpc [Tue, 2 Apr 2024 16:52:32 +0000 (18:52 +0200)]
     Update fr.po

2 months ago Translation of French Additional.lyx: chapter 3 completed
jpc [Tue, 2 Apr 2024 09:51:49 +0000 (11:51 +0200)]
      Translation of French Additional.lyx: chapter 3 completed

2 months agoUpdate sk.po
Kornel Benko [Tue, 2 Apr 2024 09:35:56 +0000 (11:35 +0200)]
Update sk.po

2 months agoCmake build: Adapt for branch 2.4
Kornel Benko [Tue, 2 Apr 2024 08:46:20 +0000 (10:46 +0200)]
Cmake build: Adapt for branch 2.4

2 months agode/UserGuide: update
Juergen Spitzmueller [Tue, 2 Apr 2024 07:32:02 +0000 (09:32 +0200)]
de/UserGuide: update

2 months agoMarking branching
Richard Kimberly Heck [Mon, 1 Apr 2024 20:20:24 +0000 (16:20 -0400)]
Marking branching

2 months agoFix context menu of InsetMathRef
Juergen Spitzmueller [Mon, 1 Apr 2024 15:59:56 +0000 (17:59 +0200)]
Fix context menu of InsetMathRef

2 months agoFix backslash LaTeXifying in InsetCommand
Juergen Spitzmueller [Mon, 1 Apr 2024 08:57:27 +0000 (10:57 +0200)]
Fix backslash LaTeXifying in InsetCommand

\ was transformed very early to \textbackslash{}, but then the following
routines escaped braces in the string, so we wrongly ended up in
\textbackslash\{\} and "\{} in the output

2 months agoFactor out shared method
Juergen Spitzmueller [Sun, 31 Mar 2024 10:40:27 +0000 (12:40 +0200)]
Factor out shared method

Amends babb5b007bd

2 months ago Restore Chapter 11
jpc [Sat, 30 Mar 2024 16:38:18 +0000 (17:38 +0100)]
       Restore Chapter 11

2 months agoFix crash with quick search starting with mathed selection
Juergen Spitzmueller [Sat, 30 Mar 2024 09:14:34 +0000 (10:14 +0100)]
Fix crash with quick search starting with mathed selection

setCursorSelection does not work with math. Copy the method from
spellchecker.

2 months ago Further translations of the French Additional manual
jpc [Fri, 29 Mar 2024 17:58:25 +0000 (18:58 +0100)]
   Further translations of the French Additional manual

2 months ago Further translations of French Additional manual + typo and ref. to Hebrew...
jpc [Thu, 28 Mar 2024 18:09:38 +0000 (19:09 +0100)]
  Further translations of French Additional manual + typo and ref. to Hebrew Letter in sec 3.5 of Additional.lyx

2 months agoDo not enter page break in heading (#13040)
Juergen Spitzmueller [Thu, 28 Mar 2024 17:03:54 +0000 (18:03 +0100)]
Do not enter page break in heading (#13040)

Rather than that, put it before or after, or disallow,
depending on the position.

2 months ago Further translations of French Additional manual
jpc [Thu, 28 Mar 2024 09:13:22 +0000 (10:13 +0100)]
  Further translations of French Additional manual

2 months ago Further translation of French Additional manual + typo in English version
jpc [Wed, 27 Mar 2024 17:38:28 +0000 (18:38 +0100)]
   Further translation of French Additional manual + typo in English version

2 months agoTypo in doc
Jean-Marc Lasgouttes [Mon, 25 Mar 2024 21:32:17 +0000 (22:32 +0100)]
Typo in doc

Thanks to Peter J. Puchyr for noticing it.

2 months agoFix alignment of screen font preview in prefs (remaining part of #13046)
Juergen Spitzmueller [Sun, 24 Mar 2024 08:00:41 +0000 (09:00 +0100)]
Fix alignment of screen font preview in prefs (remaining part of #13046)

2 months agoCmake build wit qt(5|6)(macos) did not include "plugins"
Patrick de Visschere [Sat, 23 Mar 2024 10:25:27 +0000 (11:25 +0100)]
Cmake build wit qt(5|6)(macos) did not include "plugins"

This makes things much simpler.

But at least with the latest macos tools (Sonoma and XCode15) a bundle
refuses to run if it 's not signed properly.

Both issues are solved with the patch included and have now been tested
with Qt5.15 and Qt6.7.

For completeness: I've checked the font-emph shortcut issue and, as
reported in the ticket mentioned, ^CmdE works with Qt5.15 but not with
Qt6.7. However the sequence ^C E does work. I don't know whether this is
intended as a workaround for this issue or was already implemented.

2 months agoFix display of a math hull inset in a tight inset
Jean-Marc Lasgouttes [Fri, 14 Jul 2023 00:13:18 +0000 (02:13 +0200)]
Fix display of a math hull inset in a tight inset

This is a kind of hack. This allows InsetMathHull to state that it
needs some elbow room beyond its width, in order to fit the numbering
and/or the left margin (with left alignment), which are outside of the
inset itself.

To this end, InsetMathHull::metrics() sets a value in
MetricsInfo::extrawidth and this value is added later to the width of
the row that contains the inset (when this row is tight or shorter
than the max allowed width).

Fixes bug #12320.

2 months agoRevert "Fix display of a math hull inset in a tight inset"
Jean-Marc Lasgouttes [Fri, 22 Mar 2024 14:08:26 +0000 (15:08 +0100)]
Revert "Fix display of a math hull inset in a tight inset"

This commit will be replaed by a better solution.

Part of ticket #12320.

This reverts commit 4bbd4a45e7494363903801540102150886fa2c6b.

2 months agofix documentation of --enable-cxx-mode
Jean-Marc Lasgouttes [Thu, 21 Mar 2024 21:50:38 +0000 (22:50 +0100)]
fix documentation of --enable-cxx-mode

2 months ago* cs.po
Pavel Sanda [Thu, 21 Mar 2024 21:47:31 +0000 (22:47 +0100)]
* cs.po

2 months agotypo
Jean-Marc Lasgouttes [Thu, 21 Mar 2024 21:40:19 +0000 (22:40 +0100)]
typo

2 months agoAmend 16660d12.
Thibaut Cuvelier [Thu, 21 Mar 2024 20:32:45 +0000 (21:32 +0100)]
Amend 16660d12.

The previous commit introduced wrong behaviours for <>. The new code carefully escapes what needs to be escaped from LaTeX, using the now-standard XML tools (XMLStream).

2 months agoMathML in HTML: don't escape <> for a raw LaTeX output.
Thibaut Cuvelier [Wed, 20 Mar 2024 23:29:23 +0000 (00:29 +0100)]
MathML in HTML: don't escape <> for a raw LaTeX output.

In some cases (I only found numbered equations), the LaTeX output still has a bit of HTML. For numbered equations, using \tag{X} (as suggested in https://www.lyx.org/trac/ticket/13048) would require fiddling with the output. KaTeX doesn't support \label. This patch is probably the easiest and most reliable fix.

Fixes https://www.lyx.org/trac/ticket/13048.

2 months agoUsing the latest commit and building lyx with cmake on macos-sonoma with
Patrick de Visschere [Wed, 20 Mar 2024 10:44:22 +0000 (11:44 +0100)]
Using the latest commit and building lyx with cmake on macos-sonoma with
xcode fails with multiple error messages like this one:

----------
CMake Error in po/CMakeLists.txt:
       The custom command generating

     <build-directory>/po/LyX2.4.cat.pot

       is attached to multiple targets:

     translations
     update-gmo

  but none of these is a common dependency of the other(s).  This is not
  allowed by the Xcode "new build system".

2 months agoAdd $$OrigAbsName placeholder to external
Jürgen Spitzmüller [Wed, 20 Mar 2024 06:57:43 +0000 (07:57 +0100)]
Add $$OrigAbsName placeholder to external

This produces the absolute path to the original file.

Documentation will follow in die time (after documentation has been
unfrozen)

2 months agoTableUI - allow expading of TableAlignCO (part of #13046).
Pavel Sanda [Tue, 19 Mar 2024 18:23:22 +0000 (19:23 +0100)]
TableUI - allow expading of TableAlignCO (part of #13046).

3 months agoUse docstring for preview snippet all the way down
Juergen Spitzmueller [Sat, 16 Mar 2024 10:55:17 +0000 (11:55 +0100)]
Use docstring for preview snippet all the way down

No need to convert back and forth

3 months agoMerge branch 'master' of git.lyx.org:lyx
Juergen Spitzmueller [Sat, 16 Mar 2024 04:03:16 +0000 (05:03 +0100)]
Merge branch 'master' of git.lyx.org:lyx

3 months agoSimplify b3fe9cb7049da
Juergen Spitzmueller [Sat, 16 Mar 2024 04:01:53 +0000 (05:01 +0100)]
Simplify b3fe9cb7049da

3 months agoMerge branch 'master' of git.lyx.org:lyx
Juergen Spitzmueller [Sat, 16 Mar 2024 03:59:08 +0000 (04:59 +0100)]
Merge branch 'master' of git.lyx.org:lyx

3 months agoPrevent iconv exception in previews (#13042)
Juergen Spitzmueller [Sat, 16 Mar 2024 03:52:51 +0000 (04:52 +0100)]
Prevent iconv exception in previews (#13042)

The preview loader assumes all content is in the main document encoding.

As soon as content was not encodable, LyX crashed. We now check for that
and if non-encodable glyphs are found, we do not produce a preview snippet
and warn.

Ideally, the preview loader should be made aware of encoding changes, or
we should generally use utf8 for previews.

3 months agoAdd Idan Pazi to contributors list
Juergen Spitzmueller [Tue, 12 Mar 2024 11:53:34 +0000 (12:53 +0100)]
Add Idan Pazi to contributors list

3 months agoFix returned value of win32file.ReadFile
Idan Pazi [Fri, 16 Feb 2024 13:17:17 +0000 (15:17 +0200)]
Fix returned value of win32file.ReadFile

returns an PyOVERLAPPEDReadBuffer that needs to be converted to str.

3 months agoMathML: don't let the processor stretch operators when they are single characters...
Thibaut Cuvelier [Mon, 11 Mar 2024 01:00:47 +0000 (02:00 +0100)]
MathML: don't let the processor stretch operators when they are single characters for LyX.

The main goal is to match TeX' behaviour. If you want stretchy operators, use InsetMathDelim / \left & \right. This patch will change the output in many files, but making the rendering much closer to that of TeX (which users should expect, due to LyX' roots in TeX).

3 months agoMathML: stop stretching all delimiters.
Thibaut Cuvelier [Mon, 11 Mar 2024 00:40:16 +0000 (01:40 +0100)]
MathML: stop stretching all delimiters.

No form? Reference: https://w3c.github.io/mathml-core/#dfn-form. The MathML processor is smart enough to determine whether the delimiter is prefix or postfix.

No stretchy/symmetric/fence in all cases? Reference: https://w3c.github.io/mathml-core/#algorithm-for-determining-the-properties-of-an-embellished-operator and https://w3c.github.io/mathml-core/#operator-dictionary-human (example entry: U+0028). Delimiters have the right properties by default.

3 months agoMathML: don't output delimiters in InsetMathBinom and
Thibaut Cuvelier [Mon, 11 Mar 2024 00:30:48 +0000 (01:30 +0100)]
MathML: don't output delimiters in InsetMathBinom and
 InsetMathDelim if the delimiter is a space.

3 months agoExtract vert, langle, rangle in MathExtern like parentheses and brackets.
Thibaut Cuvelier [Mon, 11 Mar 2024 00:22:12 +0000 (01:22 +0100)]
Extract vert, langle, rangle in MathExtern like parentheses and brackets.

This patch is part of a series that aims at solving https://www.lyx.org/trac/ticket/12891. It is an excerpt of the patch that lynx published at https://www.lyx.org/trac/ticket/12270.

3 months agoImprove const correctness.
Thibaut Cuvelier [Mon, 11 Mar 2024 00:15:48 +0000 (01:15 +0100)]
Improve const correctness.

3 months agoMemorise whether delims are extracted from MathExtern.
Thibaut Cuvelier [Mon, 11 Mar 2024 00:07:25 +0000 (01:07 +0100)]
Memorise whether delims are extracted from MathExtern.

This patch is part of a series that aims at solving https://www.lyx.org/trac/ticket/12891. It should not change any output.

3 months agoReduce code duplication.
Thibaut Cuvelier [Sun, 10 Mar 2024 15:55:12 +0000 (16:55 +0100)]
Reduce code duplication.

3 months agoAmend 04beccca: Group some entries in invertedTests
Kornel Benko [Sun, 10 Mar 2024 13:11:27 +0000 (14:11 +0100)]
Amend 04beccca: Group some entries in invertedTests

3 months agoMathML: consider ordinary and alphabetical characters as identifiers instead of opera...
Thibaut Cuvelier [Sat, 9 Mar 2024 19:59:12 +0000 (20:59 +0100)]
MathML: consider ordinary and alphabetical characters as identifiers instead of operators.

The goal is to consider all Greek letters as identifiers instead of operators.

Solves: https://www.lyx.org/trac/ticket/12948.

3 months agoSimplify a loop with a for-each.
Thibaut Cuvelier [Sat, 9 Mar 2024 19:46:54 +0000 (20:46 +0100)]
Simplify a loop with a for-each.

These loops were brought by C++11. The next step could be using std::any_of.

3 months agoDocBook: add missing mapping for AASTeX 6.3.
Thibaut Cuvelier [Sat, 9 Mar 2024 14:09:45 +0000 (15:09 +0100)]
DocBook: add missing mapping for AASTeX 6.3.

The result is far from perfect, see the TODOs. The corresponding tests are still inverted.

3 months agode/Additional: small adaptations
Juergen Spitzmueller [Fri, 8 Mar 2024 08:06:26 +0000 (09:06 +0100)]
de/Additional: small adaptations

3 months agoAdditional: Minor fix
Juergen Spitzmueller [Fri, 8 Mar 2024 08:05:57 +0000 (09:05 +0100)]
Additional: Minor fix

3 months agoUppdate sk.po
Kornel Benko [Thu, 7 Mar 2024 10:53:44 +0000 (11:53 +0100)]
Uppdate sk.po

3 months ago AMS classes naming
jpc [Wed, 6 Mar 2024 09:48:22 +0000 (10:48 +0100)]
       AMS classes naming

3 months ago Resolve shortcut conflicts in fr.po
jpc [Wed, 6 Mar 2024 09:28:16 +0000 (10:28 +0100)]
       Resolve shortcut conflicts in fr.po

3 months agoRestore origin tag
Scott Kostyshak [Tue, 5 Mar 2024 16:34:59 +0000 (11:34 -0500)]
Restore origin tag

3 months agode.po
Juergen Spitzmueller [Tue, 5 Mar 2024 14:57:15 +0000 (15:57 +0100)]
de.po

3 months agogrmpf
Juergen Spitzmueller [Tue, 5 Mar 2024 14:55:53 +0000 (15:55 +0100)]
grmpf

3 months agoFix file name
Juergen Spitzmueller [Tue, 5 Mar 2024 14:52:22 +0000 (15:52 +0100)]
Fix file name

This way, we still have a string freeze break, but it is at least only
one string :-(

(and no, it does not matter whether the translation of this string is
identical to the English string)

3 months agoFix lyx2lyx bug with nested inset arguments
Jürgen Spitzmüller [Tue, 5 Mar 2024 14:41:21 +0000 (15:41 +0100)]
Fix lyx2lyx bug with nested inset arguments

3 months agoAmend e530f71f8f33bc0
Jürgen Spitzmüller [Tue, 5 Mar 2024 14:30:17 +0000 (15:30 +0100)]
Amend e530f71f8f33bc0

I suppose the template file should not have been deleted, but moved.

3 months ago layout fot aastex v631
jpc [Tue, 5 Mar 2024 11:29:27 +0000 (12:29 +0100)]
    layout fot aastex v631

3 months ago aastex v 631
jpc [Tue, 5 Mar 2024 11:24:17 +0000 (12:24 +0100)]
        aastex v 631

3 months ago Typo in file name
jpc [Tue, 5 Mar 2024 09:32:23 +0000 (10:32 +0100)]
      Typo in file name

3 months ago Additional.lyx : a number of typos and update aastex to version 631
jpc [Tue, 5 Mar 2024 09:18:55 +0000 (10:18 +0100)]
     Additional.lyx : a number of typos and update aastex to version 631

3 months ago Transcription of Additional restructuration in the French version
jpc [Tue, 5 Mar 2024 09:03:13 +0000 (10:03 +0100)]
    Transcription of Additional restructuration in the French version
        Translations remain to be done

3 months ago* generate_contributions.py - another php 8 choking points
Pavel Sanda [Sat, 2 Mar 2024 23:26:26 +0000 (00:26 +0100)]
* generate_contributions.py - another php 8 choking points

3 months ago* generate_contributions.py - php 8 chokes on those
Pavel Sanda [Sat, 2 Mar 2024 23:07:08 +0000 (00:07 +0100)]
* generate_contributions.py - php 8 chokes on those

@anyone: please do not commit changes generated by generate_contributions.py
until we switch to the new web server. Not sure what will this output do
with older php.

3 months agoDocBook: amend e3020a6b.
Thibaut Cuvelier [Fri, 1 Mar 2024 12:45:28 +0000 (13:45 +0100)]
DocBook: amend e3020a6b.

Book authorship and authorship can be quite distinct. As far as I know, there is no standard way to represent book authorship in DocBook bibliographies.

3 months agoDocBook: authorsToDocBookAuthorGroup never needs to return anything.
Thibaut Cuvelier [Fri, 1 Mar 2024 12:32:17 +0000 (13:32 +0100)]
DocBook: authorsToDocBookAuthorGroup never needs to return anything.

3 months agoDocBook: support bookauthor in bibliographies.
Thibaut Cuvelier [Fri, 1 Mar 2024 11:55:40 +0000 (12:55 +0100)]
DocBook: support bookauthor in bibliographies.

3 months agoDo not \cprotect in table cells
Juergen Spitzmueller [Fri, 1 Mar 2024 06:18:28 +0000 (07:18 +0100)]
Do not \cprotect in table cells

3 months agoFixup 71d9f6e9: swap two tests to avoid line breaking issues
Jean-Marc Lasgouttes [Wed, 28 Feb 2024 10:27:52 +0000 (11:27 +0100)]
Fixup 71d9f6e9: swap two tests to avoid line breaking issues

The new approach to line breaking introduced in 71d9f6e9 is correct,
but the newly introduced min_row_wid should not be updated when the
remaining line width after a break is larger than next_width.

Swapping the two tests fixes remaining issues.

Fixes (for good?) #12899.

3 months agoFix support for screen fractional scaling with Wayland
Jean-Marc Lasgouttes [Sun, 25 Feb 2024 19:17:31 +0000 (20:17 +0100)]
Fix support for screen fractional scaling with Wayland

The display was wrong when a backing store is in use (which is the case
with Wayland). To fix this in GuiWorkArea::Private::resetScreen(), the
pixelRatio is now stored as a double instead of an int.

Concerning support for QT_SCALE_FACTOR, the existing code was wrong
because this value is already taken into account in devicePixelRatioF
for Qt > 5.6 (no fractional scaling support before that). The
situation is as follows:

                   Qt < 5.6    5.6 <= Qt < 6  Qt 6
devicePixelRatio   int(ratio)  int(ratio)     ratio
devicePixelRatioF  N/A         ratio          ratio

So it is only between Qt 5.6 and Qt 6 that devicePixelRatioF() has to
be used instead of devicePixelRatio().
QGuiApplication::devicePixelRatio() does not have a 'F' version, it
always returns the real thing.

Fixes ticket #13039.

3 months agoFix compilation on ubuntu 18.04
Jean-Marc Lasgouttes [Wed, 28 Feb 2024 15:58:35 +0000 (16:58 +0100)]
Fix compilation on ubuntu 18.04

One of Qt 5.9 or gcc 7.5 does not like the or-ing of several enum flags.

3 months agoLinguistics: resolve tracked changes
Juergen Spitzmueller [Wed, 28 Feb 2024 15:16:43 +0000 (16:16 +0100)]
Linguistics: resolve tracked changes

3 months ago French example Linguistics.lyx: upadate before 2.4.0
jpc [Wed, 28 Feb 2024 10:36:45 +0000 (11:36 +0100)]
        French example Linguistics.lyx: upadate before 2.4.0

3 months agofixup 97cf2b6a: avoid leak
Jean-Marc Lasgouttes [Tue, 27 Feb 2024 17:37:07 +0000 (18:37 +0100)]
fixup 97cf2b6a: avoid leak

3 months agoAvoid crash when inserting macro template in tabular inset
Jean-Marc Lasgouttes [Tue, 27 Feb 2024 17:09:42 +0000 (18:09 +0100)]
Avoid crash when inserting macro template in tabular inset

The issue here is that macro templates are forbidden in InsetTabular
(why? I do not know) and Text::getStatus does not enforce that
properly. Text::insertInset is called and does nothing (because
insertion is forbidden) and yet the cursor is changed to point into
this non existent inset.

Solution:

1/ block insertion of macro templates when not allowed

2/ (additional safety) when insertion of a math macro inset failed, do
   not try to set cursor inside the non-existing inset.

Additionally clarify comments.

3 months agoUpdate of de/Math
Juergen Spitzmueller [Tue, 27 Feb 2024 06:17:47 +0000 (07:17 +0100)]
Update of de/Math

3 months agoMath.lyx: some formatting fixes
Juergen Spitzmueller [Tue, 27 Feb 2024 06:17:31 +0000 (07:17 +0100)]
Math.lyx: some formatting fixes

3 months agoConsider bookauthor in preview
Juergen Spitzmueller [Tue, 27 Feb 2024 04:40:57 +0000 (05:40 +0100)]
Consider bookauthor in preview

Hence, also support the inbook type