Commit Graph

46749 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
615f035854 Do not forget to reset stream after std::hex
Spotted by Coverity scan.

(cherry picked from commit f4c02d670b)
2024-09-10 11:59:22 +02:00
Juergen Spitzmueller
a7e8397a84 adapt tex2lyx to 0beb790a6a
(cherry picked from commit f725abea05)
2024-09-09 18:11:08 -04:00
Juergen Spitzmueller
fb5782b62a Handle space issue with refstyle more downstream
It is not necessarily, and infers with some usages, to generally escape
spaces in labels and references

(cherry picked from commit 0beb790a6a)
2024-09-09 18:05:10 -04:00
Juergen Spitzmueller
16281b4cf1 Fix indentation
(cherry picked from commit bfd855747a)
2024-09-09 18:04:59 -04:00
Pavel Sanda
806a67c75b * postats.py 2024-09-06 23:07:39 +02:00
Pavel Sanda
f0b7066f9b * cs.po 2024-09-06 22:51:48 +02:00
jpc
4792d6c75d Solve shortcut conflict in fr.po 2024-09-06 17:57:39 +02:00
jpc
2380c2c911 Update fr.po after pocheck 2024-09-06 15:59:50 +02:00
Richard Kimberly Heck
639563febc Update to simplified Chinese translation. 2024-09-04 21:36:18 -04:00
Jean-Marc Lasgouttes
4d46f766ea Avoid missing updates after some operations on selection
The logic at the end of Text::dispatch failed when needsUpdate and
singleParUpdate were true at the same time.
2024-08-31 16:12:59 +02:00
Jean-Marc Lasgouttes
5ca48a7a39 Fix update of cursor in tab-delete when there is a selection
The position of the cursor should not be decreased if it is already at
the start of the paragraph. This can lead to a crash when trying to
display the caret.

(cherry picked from commit 16be88ca18)
2024-08-31 16:12:59 +02:00
Jean-Marc Lasgouttes
d7e2ca377f Get rid of QPA_XCB define
Since the platform is selected at run time (e.g. xcb vs. Wayland), it
is not a good idea to decide at compile time what code is run. Another
example is on macOS, where having xcb libraries available will lead to
lauching the Xquartz whenever LyX is running.

With this patch, things are separated:
- the code is run when run-time platform is "xcb".
- the support code is compiled in when xcb header and libraries are
  available.

The cmake code is courtesy of Kornel Benko.

Fixes ticket #13086.

(cherry picked from commit 18c310a8cf)
(cherry picked from commit f1fddd86ef)
(cherry picked from commit 3bc4554e57)
(cherry picked from commit 8c14748e78)
2024-08-31 15:07:29 +02:00
Jean-Marc Lasgouttes
390f458122 Streamline -geometry command-line option support
Instead of baking our own support for -geometry command line option on
Windows (Qt only does that for Xcb), use the fact that Qt 5 provides
the equivalent -qwindowgeometry flag.

All we need to do is to replace the -geometry option with -qwindowgeometry.

This is part of the effort in ticket #13086 to get rid of the
compile-time QPA_XCB define.

(cherry picked from commit ce9de28f06)
2024-08-31 15:05:34 +02:00
Jean-Marc Lasgouttes
76ef192214 Fixup e2cf6731: fix thinko
The current buffer is part of allRelatives(), contrary to what I
thought. Therefore updateId() increased the buffer id by two.

(cherry picked from commit 2eb4e3d3ca)
2024-08-30 15:10:22 +02:00
Jean-Marc Lasgouttes
e2cf6731c0 Do not run updateMacros if the buffer has not changed
Each buffer now has an id which is increased when it is marked dirty
(or when one of its relatives is marked dirty).

This can be a big win since updateMacros is very expensive.

(cherry picked from commit 999fb37ebb)
(cherry picked from commit fe1a3b57df)
2024-08-30 11:11:10 +02:00
Koji Yokota
63165a95d5 update ja.po file 2024-08-28 23:39:03 +09:00
Richard Kimberly Heck
a8bc9c84eb Portuguese Brazilian update from Georger 2024-08-27 11:45:26 -04:00
Jean-Marc Lasgouttes
f06de64047 Force a metrics update of buffer after reload
It makes reload more robust and is in any case good enough to avoid
crash in #139091.

Fixes bug #13091.

(cherry picked from commit 52ec69a1af)
2024-08-27 14:07:51 +02:00
José Matos
f95e238ccd Python 3.13 removed the pipes module from the standard library
That module was a wrapper over the popen module and it was scheduled to
be removed in Python 3.11.

This code is also compatible with Python 2.

(cherry picked from commit d06a034578)
2024-08-27 08:50:11 +01:00
Enrico Forestieri
fd9f09e517 Update it.po 2024-08-25 23:38:11 +02:00
Juergen Spitzmueller
53ae96fb0b Assure OK/Apply button is initially disabled in InsetParamsDialogs (#8927)
(cherry picked from commit a2629b8eab)
2024-08-25 12:42:33 -04:00
Kornel Benko
16f8084536 Update sk.po 2024-08-25 11:31:14 +02:00
Pavel Sanda
940a58fa80 Update zh_CN.po from Jiaxu Zi 2024-08-24 19:48:29 +02:00
Pavel Sanda
83795d303b Fix branch name for the web 2024-08-23 21:37:38 +02:00
Pavel Sanda
f39711ee93 * postats.py description 2024-08-23 21:37:17 +02:00
Richard Kimberly Heck
b7e494bca8 Remerge strings. 2024-08-22 21:08:44 -04:00
jpc
df6fc4a6f8 Update fr.po before 2.4.2 2024-08-21 17:54:59 +02:00
Richard Kimberly Heck
a02c2f2f80 Begin preps for 2.4.2 2024-08-21 11:28:20 -04:00
Richard Kimberly Heck
4453ae8e97 Begin preps for 2.4.2 2024-08-21 11:26:30 -04:00
Richard Kimberly Heck
46f2fd1a74 Replace lyx2lyx code with native solution 2024-08-21 11:14:59 -04:00
Koji Yokota
0562b13743 Fix wrong preedit cursor position in Qt5 2024-08-20 21:11:15 +09:00
Kornel Benko
20548fbd0c Update sk.po, sk.gmo 2024-08-20 12:47:44 +02:00
Pavel Sanda
3a68177562 Fix regression introduced via #12819.
Cherry-pick e322ef153.
2024-08-20 09:32:03 +02:00
Koji Yokota
c1bfa93f1f Update ja.po 2024-08-19 11:05:10 +09:00
Enrico Forestieri
e4ed568921 Update status.24x 2024-08-18 23:00:02 +02:00
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