Commit Graph

545 Commits

Author SHA1 Message Date
Juergen Spitzmueller
6f65cbdce2 Update lilypond converter settings (#12618)
As of v. 2.23.12, the safe mode is no longer supported and results in
error.

We thus remove the -safe flags from the converter and use our own
needauth flag instead.
2024-04-21 11:43:41 +02:00
Richard Kimberly Heck
fe6cc89c54 Status 2024-04-18 18:40:34 -04:00
Jean-Marc Lasgouttes
29f2a7ed66 Do not error out with too new autoconf/automake
The tests are not useful, since the configure.ac file checks for
minimal version anyway.

(cherry picked from commit 510b2cfd64)
2024-02-05 22:55:32 +01:00
Jean-Marc Lasgouttes
b3332f032c Remove unused methods
They actually lead to the following warning:
../../stable/src/mathed/InsetMath.h:236:26: warning: ‘virtual lyx::HullType lyx::InsetMath::getType() const’ was hidden [-Woverloaded-virtual=]
  236 |         virtual HullType getType() const;
      |                          ^~~~~~~
In file included from ../../stable/src/insets/InsetLabel.cpp:36:
../../stable/src/mathed/InsetMathRef.h:65:20: note:   by ‘static int lyx::InsetMathRef::getType(const lyx::docstring&)’
   65 |         static int getType(docstring const & name);
      |                    ^~~~~~~

In master the removal of these methods occurred as part of cf07d482.
2023-11-08 17:03:55 +01:00
Scott Kostyshak
ebf09680da PreviewLoader: start fake pids after PID_MAX_LIMIT
(cherry picked from commit b67ff925e5)
2023-11-08 16:14:36 +01:00
Stephan Witt
b7403de38c Correct moc compiler version extractor regex for patch level greater 9.
(cherry picked from commit c93c94fd22)
2023-11-08 15:29:24 +01:00
Enrico Forestieri
a247305b31 Inherit outer font in text-in-math environments
Some text-in-math environments such as \text, \mbox, \fbox, and
\makebox, inherit the outer text font. This commit reflects this
in the on-screen representation.

Fixes #12950.
2023-11-02 18:04:04 +01:00
Udi Fogiel
1d41ca50c3 fix nested uwave
(cherry picked from commit 7ccdc6edf5)
2023-10-01 09:41:24 +02:00
Juergen Spitzmueller
6ea4a67863 Fix inset clicking problems on Mac (#12279, #12418, #12820)
We now register the coordinates where the latest mouse press happens,
and if that's on the inset button we are on when releasing,
we toggle the inset.

Thus, minimal unintentional mouse movements don't lead to the button not
to respond.

(cherry picked from commit effd65a586)
2023-09-14 08:14:07 +02:00
Juergen Spitzmueller
2d1df3140e typo 2023-08-19 12:06:48 +02:00
Pavel Sanda
a5e689eee5 Adding binary path for Homebrew on MacOS-arm64 (bug 12619).
Patch from Koji.
2023-07-18 22:24:06 +02:00
Enrico Forestieri
0ffcff55f3 Use \ifthenelse instead of relying on TeX primitives
This fixes the issue reported here:
https://www.mail-archive.com/lyx-users@lists.lyx.org/msg115156.html

The problem is due to the use of the mathpazo package because
it defines the macro \f@family as "ppl\n", i.e., it appends a
newline character at the end. Now, the "\if" TeX primitive
expands its arguments for comparing them and the newline causes
a "missing \begin{document}" error. Instead of complicating the
code to account for this, it is better using the ifthen package.
2023-06-19 19:53:16 +02:00
Pavel Sanda
2f25a73cdc * status.23x 2023-06-14 22:41:25 +02:00
Juergen Spitzmueller
f5457342c4 Do not load mathrsfs if unicode-math is required (#12734)
The latter provides \mathscr and the packages clash

(cherry picked from commit a15bc829d1)
2023-05-27 14:04:32 +02:00
Juergen Spitzmueller
624a1be072 tex2lyx: fix import of umlauts and ß in math (#12739) 2023-05-27 14:01:19 +02:00
Enrico Forestieri
27208273ef Fix bug #12711
Add a few missing autocorrect combinations and allow cycling
through arrows.

The way autocorrect is implemented it is not possible to map
--> and ==> to \longleftarrow and \Longleftarrow, respectively.
One has to type ->- and =>= to that effect, which may be
counterintuitive.

This commit allows typing -> or => followed by * to cycle through
all possible arrows of the same type.
2023-03-19 23:40:15 +01:00
Juergen Spitzmueller
ed9a846200 Add missing empty line (par break) between pars with differing line spacing (#12638)
cherry-picked from 8c6db95135
2023-02-10 09:20:29 +01:00
Jean-Marc Lasgouttes
dfbf4c4839 upgrade boost to 1.75.0
Boost is updated to a more recent version to avoid many compilation
warnings. However, boost 1.76 introduces a brand new regex library.
Therefore, it was chosen to use the last version before that to
minimize changes.

The part that adapts our source to the new boost requirements is
backported from 09130d7a62.
2023-02-05 20:27:43 +01:00
Enrico Forestieri
8bc83f123a Fix bug #12633
Avoid recursion when validating a macro that is defined recursively.
This avoids a crash but the latex engine will choke on it, of course.
2023-01-28 09:03:49 +01:00
Richard Kimberly Heck
4392031f1f Fix status file 2023-01-07 12:47:49 -05:00
Stephan Witt
419f15e511 Add status protocol for backport of macOS build improvements. 2022-12-15 22:43:50 +01:00
Juergen Spitzmueller
8900b5a3aa Check encodability of math user macro names (#11855)
(cherry picked from commit 14b108fc22)
2022-12-04 18:51:58 +01:00
Juergen Spitzmueller
0f34a81ee8 GuiGraphic: delimit "Scale in LyX" (1--1000%)
Larger values will eventually crash LyX (see #12353), 0 or negative
values make the image disappear in the workarea and impossible to edit.

(cherry picked from parts of
commit 14d63f5be8)
2022-11-26 18:32:34 +01:00
Juergen Spitzmueller
8e05616557 HP-Statements example: update
Some of the examples used here seem to be no longer supported by
the hpstatement package and lead to errors.
2022-11-25 08:49:23 +01:00
Jean-Marc Lasgouttes
e829576bb7 Fix distcheck target
1/ The most annoying part was the error in po/. It turns out that reading
and understanding the po/Makevars file was the key. A simple change of
variable ensures that "make dist" does not try to rebuild lyx.pot.

2/ The way tests in src/ are defined meant that the
dependency-tracking files were not all deleted. This should be OK now.

(cherry picked from commit 9017581ecf)
2022-11-24 23:50:09 +01:00
Juergen Spitzmueller
7d70bb0f69 GuiLog: don't miss package warnings for packages with dashes 2022-11-24 18:14:38 +01:00
Jean-Marc Lasgouttes
61306ab3d2 forgot that 2022-11-24 01:32:08 +01:00
Jean-Marc Lasgouttes
c203a842fc Set a maximum value to zoom level
The minimal vamue is set to 10%, let's set the max to 1000%. This
avoids crashes when characters are too large.

The code is refactored to be more compact and the tests are more precise.

Fixes bug #12452.

(cherry picked from commit 5259b6ba62)
2022-11-23 18:51:53 +01:00
Pavel Sanda
c8b0b15912 * status.23x 2022-11-23 13:46:20 +01:00
Pavel Sanda
c52a62dc53 status.23x: updates vs bug fixes 2022-11-23 13:38:09 +01:00
Pavel Sanda
758a9603cc Add missing status.23x entries from latest backports. 2022-11-23 13:33:29 +01:00
Juergen Spitzmueller
cd37ddc52c Fix crash when using Hebrew (bug 12464) 2022-11-23 12:28:59 +01:00
Juergen Spitzmueller
693112b3c2 Handle LFUN_FONT_DEFAULT is InsetTabular::Dispatch (fixes #12566) 2022-11-23 12:22:54 +01:00
Jean-Marc Lasgouttes
cac50fec00 Qt5 is now the default with configure 2022-11-17 15:10:21 +01:00
Jean-Marc Lasgouttes
6e9a0acdae document recent changes 2022-11-09 10:26:10 +01:00
Stephan Witt
c22119eb1c Use real path names for buffer lookup by name of temporary external files.
In case of path names for external files containing symbolic links the real path
and the logical path name may be different for the same file or directory.
LyX is using QDir::tempPath() to create the path name of the temporary directory.
The Qt implementation is free to return the logical or the real path name here and
it happens to be different for various platforms and versions.
The most stable and clean solution is to use the real path name consistently.

(cherry picked from commit f2f861f017)
2022-02-20 14:18:26 +01:00
Jean-Marc Lasgouttes
1def11d296 Add lyxrc option to force the use of backing store
LyX relies on a a backing store to draw when running under macOS or
Wayland, because Qt arbitrarily overwrites parts of the workarea
before we paint (and we paint only the parts that need to be painted).
However it seems that this is also necessary on X11 when the WM theme
is translucid. Since there is no way that I know of to detect this
situation, this patch adds a LyXRC setting to manually select this
drawing strategy.

Note that using a backing store is not always a good solution, since
this disables subpixel aliasing.

At this point there is no UI for the variable.

Fixes bug #12119

(cherry picked from commit c213eb7f75)
(cherry picked from commit 1ed9257c6d)
2022-01-13 17:24:28 +01:00
Stephan Witt
4455585608 #12150 don't set the directory file permissions of LyX app bundle to 444 anymore
(cherry picked from commit c38e759b28)

plus status entry
2021-10-31 10:39:27 +01:00
Stephan Witt
8b7c1d7800 #12247 disable Qt5 modifier hack for Qt-5.12 version or newer
backport of commit c5262f04a2
2021-10-31 10:35:15 +01:00
Juergen Spitzmueller
c276c3e7b1 Do not change bibliography processor to default if it is not found
Rather than that, keep it with a warning that it is not available.
Fallback procedure (which maintains security measures) is done in
the conversion step.

This prevents document properties being silently changed on sharing.

(cherry picked from commit 3543626182)
2021-10-18 08:38:10 +02:00
Jean-Marc Lasgouttes
1922ee7d40 Autoconf: disable warning deprecated-copy when supported
Cherry-picked from:
4aee447af1
c52049bb83
37c34c5ca9
2021-10-15 18:11:25 +02:00
Stephan Witt
3be447c9d8 #12305 add status entry for back-port 2021-06-16 07:58:32 +02:00
jpc
3ddd91487f Update Franch Additional manual
Update status
2021-04-13 18:51:46 +02:00
Juergen Spitzmueller
416d78076e Update status 2021-04-12 09:23:06 +02:00
Juergen Spitzmueller
c1e10c7185 Fix copy of multi-cells in table (#12196)
(cherry picked from commit ae892bff98)
2021-03-28 10:17:24 +02:00
Jean-Marc Lasgouttes
4b2bb08884 Fix display of emphasize in slanted text
Fixes bug #12175.

(cherry picked from commit 610ea7f4f5)
2021-03-27 19:32:15 +01:00
Jean-Marc Lasgouttes
2089fa7fa0 Avoid pointless 'undefined flex inset' errors
When switching class, it does not make sense to flag flex insets that
are undefined if they were already undefined before.

Part of bug #12163.

(cherry picked from commit 009efa195b)
2021-03-06 19:39:29 +01:00
Juergen Spitzmueller
8c00556d57 Fix wrap-around of spellchecker (#10383) 2021-03-06 08:27:30 +01:00
Juergen Spitzmueller
74ebb1de7f Remove redundant call (amend 2b7fae04f3)
(cherry picked from commit 23fc1b270d)
2021-03-06 08:08:56 +01:00
Jean-Marc Lasgouttes
8b6460e4f2 Improve HiDpi handling
Add code stolen from QBitTorrent and Qt Creator that properly enables
HighDpi handling.

The rules are:

1/ nothing needs to be done for macOS and Qt >= 6

2/ HighDpi support is set by default starting with Qt 5.6.

3/ Support for fractional scaling is added for Qt >= 5.14.

Hopefully fixes bug #12060.

(cherry picked from commit d7a4f47e7d)
(cherry picked from commit f92f2f95ff)
2021-03-04 10:21:17 +01:00