Commit Graph

46459 Commits

Author SHA1 Message Date
Thibaut Cuvelier
011c3d73c0 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.
2024-03-09 20:59:12 +01:00
Thibaut Cuvelier
1b11dfeca5 Simplify a loop with a for-each.
These loops were brought by C++11. The next step could be using std::any_of.
2024-03-09 20:46:54 +01:00
Thibaut Cuvelier
04beccca4c DocBook: add missing mapping for AASTeX 6.3.
The result is far from perfect, see the TODOs. The corresponding tests are still inverted.
2024-03-09 15:09:45 +01:00
Juergen Spitzmueller
5e5612698f de/Additional: small adaptations 2024-03-08 09:06:26 +01:00
Juergen Spitzmueller
5e1dd61819 Additional: Minor fix 2024-03-08 09:05:57 +01:00
Kornel Benko
78846a6c94 Uppdate sk.po 2024-03-07 11:53:44 +01:00
jpc
beeb43fe08 AMS classes naming 2024-03-06 10:51:24 +01:00
jpc
456f2df69f Resolve shortcut conflicts in fr.po 2024-03-06 10:28:16 +01:00
Scott Kostyshak
8a0daee999 Restore origin tag 2024-03-05 11:34:59 -05:00
Juergen Spitzmueller
1ee04c77a7 de.po 2024-03-05 15:57:15 +01:00
Juergen Spitzmueller
7250f15b83 grmpf 2024-03-05 15:55:53 +01:00
Juergen Spitzmueller
503bc42d7e 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)
2024-03-05 15:52:22 +01:00
Jürgen Spitzmüller
de04f3270e Fix lyx2lyx bug with nested inset arguments 2024-03-05 15:41:21 +01:00
Jürgen Spitzmüller
a48e32fbe6 Amend e530f71f8f
I suppose the template file should not have been deleted, but moved.
2024-03-05 15:30:17 +01:00
jpc
c0f6631f59 layout fot aastex v631 2024-03-05 12:29:27 +01:00
jpc
fa04bf4b3f aastex v 631 2024-03-05 12:24:17 +01:00
jpc
a8bb10fe09 Typo in file name 2024-03-05 10:32:23 +01:00
jpc
e530f71f8f Additional.lyx : a number of typos and update aastex to version 631 2024-03-05 10:18:55 +01:00
jpc
cd83473d08 Transcription of Additional restructuration in the French version
Translations remain to be done
2024-03-05 10:04:14 +01:00
Pavel Sanda
56ab845ca5 * generate_contributions.py - another php 8 choking points 2024-03-03 00:26:26 +01:00
Pavel Sanda
0bd6fe0fc4 * 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.
2024-03-03 00:09:32 +01:00
Thibaut Cuvelier
5c5765061f 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.
2024-03-01 13:45:28 +01:00
Thibaut Cuvelier
3973bbcf99 DocBook: authorsToDocBookAuthorGroup never needs to return anything. 2024-03-01 13:32:17 +01:00
Thibaut Cuvelier
e3020a6b2d DocBook: support bookauthor in bibliographies. 2024-03-01 13:22:34 +01:00
Juergen Spitzmueller
88a2414839 Do not \cprotect in table cells 2024-03-01 07:18:28 +01:00
Jean-Marc Lasgouttes
677a2c2cd1 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.
2024-02-29 10:46:26 +01:00
Jean-Marc Lasgouttes
8f61b0859c 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.
2024-02-29 10:28:15 +01:00
Jean-Marc Lasgouttes
23105b2edd 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.
2024-02-28 17:00:54 +01:00
Juergen Spitzmueller
be209506d5 Linguistics: resolve tracked changes 2024-02-28 16:16:43 +01:00
jpc
026bd67568 French example Linguistics.lyx: upadate before 2.4.0 2024-02-28 11:37:24 +01:00
Jean-Marc Lasgouttes
789a886af8 fixup 97cf2b6a: avoid leak 2024-02-27 18:37:07 +01:00
Jean-Marc Lasgouttes
97cf2b6aef 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.
2024-02-27 18:21:57 +01:00
Juergen Spitzmueller
8742f77f3a Update of de/Math 2024-02-27 07:17:47 +01:00
Juergen Spitzmueller
d0a4b80256 Math.lyx: some formatting fixes 2024-02-27 07:17:31 +01:00
Juergen Spitzmueller
ead6eb8944 Consider bookauthor in preview
Hence, also support the inbook type
2024-02-27 05:40:57 +01:00
Thibaut Cuvelier
27c01ee1d3 Amend 8e0bc01d
std::set::find only appeared in C++20. Rather use std::set::find for compatibility.
2024-02-27 00:45:21 +01:00
Scott Kostyshak
0c0f4c6b56 ctests: invert a utf8x test failing on TL23
It seems that utf8x is not supported, or needed, on updated TL. From
David Carlisle:

  utf8x by default does nothing now, but as a compromise
  compatibility for some specific existing documents if you
  explicitly load ucs then it and utf8x work as before, but that
  over writes all of latex's default unicode handling and things
  will go wrong. There really isn't much that can be said other than
  don't load the package. The alternative would be to make ucs do
  nothing as well, but that would stop some documents working that
  currently work.
2024-02-26 11:12:20 -05:00
Thibaut Cuvelier
baccce7d2d DocBook: in a table, fix a typo in a condition.
Before this patch, all table cells had a semicolon at the beginning of their style:

<td style='; border-bottom:

This unwanted behaviour is only due to a typo in a condition when concatenating two styles: the previous code was checking the second part of the style once the first was output, instead of the first one.
2024-02-26 16:09:52 +01:00
Thibaut Cuvelier
8e0bc01d50 DocBook: when a similar tag is present multiple times in the bibliography entry, output it only once.
Other copies have an error message.
2024-02-26 16:06:26 +01:00
Thibaut Cuvelier
2be72a1534 DocBook: in bibliographies, fix support for editors.
Also, add TODOs for similar problems lurking around.
2024-02-26 15:52:35 +01:00
Thibaut Cuvelier
6b1441036f Use C++11 string literals to make code easier to read. 2024-02-26 15:24:36 +01:00
Thibaut Cuvelier
3fdf3aafe8 DocBook: restore index ranges. 2024-02-26 15:15:32 +01:00
Thibaut Cuvelier
5dd36404f2 DocBook: simplify building an error message. 2024-02-26 15:09:10 +01:00
Thibaut Cuvelier
c71f703914 DocBook: update bibliography handling for 337f953426. 2024-02-26 14:58:35 +01:00
Kornel Benko
8282a477f5 Update sk.po
Wrong shortcut case
2024-02-26 10:46:30 +01:00
jpc
9ca00ddc69 French Math manual: last update before 2.4.0 2024-02-26 10:03:04 +01:00
Thibaut Cuvelier
e311606a30 Update comment: a function was renamed. 2024-02-26 02:17:48 +01:00
Juergen Spitzmueller
ce27f5beca Consider biblatex author -> bookauthor mapping in preview 2024-02-25 08:10:23 +01:00
Juergen Spitzmueller
43ee724fcf update tex2lyx tests
in all these cases, though, typographic rather than plain quotes should
be used.
2024-02-25 07:03:06 +01:00
jpc
5bccb45968 French EmbeddedObjects manual: final upadte before 2.4.0 2024-02-24 16:11:53 +01:00