Commit Graph

47067 Commits

Author SHA1 Message Date
Thibaut Cuvelier
7e6597a5b4 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).
2024-03-11 02:00:47 +01:00
Thibaut Cuvelier
8f820d7ccb 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.
2024-03-11 01:40:16 +01:00
Thibaut Cuvelier
be03d69946 MathML: don't output delimiters in InsetMathBinom and
InsetMathDelim if the delimiter is a space.
2024-03-11 01:30:48 +01:00
Thibaut Cuvelier
9e6b810b37 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.
2024-03-11 01:22:12 +01:00
Thibaut Cuvelier
b1a4eb118c Improve const correctness. 2024-03-11 01:15:53 +01:00
Thibaut Cuvelier
93444892c5 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.
2024-03-11 01:10:15 +01:00
Thibaut Cuvelier
1680eaf5f0 Reduce code duplication. 2024-03-10 16:58:45 +01:00
Kornel Benko
ada52e014e Amend 04beccca: Group some entries in invertedTests 2024-03-10 14:11:27 +01:00
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