]> git.lyx.org Git - lyx.git/log
lyx.git
2 months agoImproved copy operation for user directory contents of previous major releases
Stephan Witt [Thu, 11 Apr 2024 16:30:29 +0000 (18:30 +0200)]
Improved copy operation for user directory contents of previous major releases

- avoid copying of configure.log
- avoid copying of chkconfig.ltx
  There is a report of a hang on first start of LyX with new major release.
  The removal of the chkconfig.ltx (leftover from early LyX versions) fixed the issue.

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 agoUpdate sk.po
Kornel Benko [Wed, 10 Apr 2024 14:04:22 +0000 (16:04 +0200)]
Update sk.po

2 months agoFixup 'Avoid metrics computation on resize when width did not change'
Jean-Marc Lasgouttes [Wed, 10 Apr 2024 10:31:12 +0000 (12:31 +0200)]
Fixup 'Avoid metrics computation on resize when width did not change'

When the width of the window did not change, computing full metrics is
not necessary in BufferView::resize(), but it is better to redraw the
screen (especially with Wayland).

Typical use cases are when using M-x to open the minibuffer or going
in and out of an equation (which shows/hides the math toolbars).

2 months agoComment out too verbose debug output
Jean-Marc Lasgouttes [Wed, 10 Apr 2024 12:06:30 +0000 (14:06 +0200)]
Comment out too verbose debug output

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 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.

2 months agoFix crash when deleting inset with backspace
Jean-Marc Lasgouttes [Sun, 7 Apr 2024 17:23:12 +0000 (19:23 +0200)]
Fix crash when deleting inset with backspace

See description here:
https://marc.info/?l=lyx-devel&m=171243435229412&w=2

cutSelectionHelper did not request a metrics update when the selection
was inner to a paragraph. The new code is better, but it was not
necessary before the biginset branch because of a full metrics
computation that hid this missing case.

2 months agoComment on 9198ed596580
Juergen Spitzmueller [Sun, 7 Apr 2024 04:24:37 +0000 (06:24 +0200)]
Comment on 9198ed596580

2 months agoCmake build: Check for needed qt6 required packages before using QT6
Kornel Benko [Sat, 6 Apr 2024 08:34:00 +0000 (10:34 +0200)]
Cmake build: Check for needed qt6 required packages before using QT6
compilation

2 months agoDocument 0d3d91c0551
Juergen Spitzmueller [Sat, 6 Apr 2024 07:58:31 +0000 (09:58 +0200)]
Document 0d3d91c0551

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.

2 months agoImprove stats update times for buffer switches and toolbar toggles.
Pavel Sanda [Fri, 5 Apr 2024 20:59:07 +0000 (22:59 +0200)]
Improve stats update times for buffer switches and toolbar toggles.

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 agoAllow relative statistics values in statusbar.
Pavel Sanda [Fri, 5 Apr 2024 17:34:29 +0000 (19:34 +0200)]
Allow relative statistics values in statusbar.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg221311.html

2 months agoIndicate that, by default, mouse LFUN do not require a metrics update
Jean-Marc Lasgouttes [Mon, 27 Nov 2023 16:50:40 +0000 (17:50 +0100)]
Indicate that, by default, mouse LFUN do not require a metrics update

This is done easily in LyXAction.cpp. Remember that, by default, each
function is supposed to request a full metrics computation.

Part of bug #12297.

2 months agoAvoid full metrics computation when entering/leaving inset
Jean-Marc Lasgouttes [Mon, 27 Nov 2023 14:57:09 +0000 (15:57 +0100)]
Avoid full metrics computation when entering/leaving inset

Annotate function LFUN_FINISHED_xxx to indicate that they do not
require a full metrics computation.

Remove an "optimization" that meant that when the cursor changed
inset, a full metrics computation was requested.

Part of bug #12297

2 months agoAvoid some full metrics computations related to math previews
Jean-Marc Lasgouttes [Mon, 27 Nov 2023 14:13:56 +0000 (15:13 +0100)]
Avoid some full metrics computations related to math previews

When entering/leaving a math hull inset, a Update::Force flag was set,
in case the metrics of the inset would change because of a switch
between normal and preview representation.

When entering the inset, this code is now used only when the inset was
in preview mode.

In both cases, Update::Force is replaced with Update::SinglePar.

This requites in Text::dispatch to honor Update::SinglePar when it has
been set by some lfun, even when singleparupdate is false.

Part of bug #12297.

2 months agoAvoid metrics computation on resize when width did not change
Jean-Marc Lasgouttes [Mon, 27 Nov 2023 10:46:52 +0000 (11:46 +0100)]
Avoid metrics computation on resize when width did not change

Entering a math inset triggers a work area reize because the math
toobars appear automatically. However, by default these toolbars are
at the bottom of the screen and their presence does not change the
typesetting of paragraphs. Therefore it is useful to avoid a call to
updateMetrics() in the case where the width of the work area did not
change.

Part of bug #12297.

2 months agoReduce metrics updates from 4 to 1 when loading file
Jean-Marc Lasgouttes [Wed, 22 Nov 2023 11:07:51 +0000 (12:07 +0100)]
Reduce metrics updates from 4 to 1 when loading file

The number of metrics updates when loading file and showing it in a
new work area is unreasonable.

The first avoided call to updateMetrics() was an explicit resize in
BufferView::init(). Instead, an assertion is suppressed by exiting
early BufferView::processUpdateFlags() when BufferView::ready()
returns false. This is a new method introduced to factor in some
existing tests.

Two other metrics computations are avoided by setting the enclosing
View object busy() while creating the new tab. To make this work
properly, GuiWorkArea::scheduleRedraw has to return early in this
case.

When saving an unnamed document or invoking "Save as...", call
setBusy(false) earlier so that repainting occurs correctly.

Fixes bug #12976.

2 months agoUpdate PAINTING_ANALYSIS
Jean-Marc Lasgouttes [Mon, 20 Nov 2023 16:24:09 +0000 (17:24 +0100)]
Update PAINTING_ANALYSIS

2 months agoDo not compute metrics at each preview when loading file
Jean-Marc Lasgouttes [Thu, 21 Dec 2023 15:33:06 +0000 (16:33 +0100)]
Do not compute metrics at each preview when loading file

With the branch-test.lyx file from #12297, loading takes forever when
previews are activated. This is because each preview element causes a
full screen metrics recomputation.

This commit just skips these calls and only does one when all previews
have been obtained. As a result, computing the previews takes 1 second
instead of 25 seconds on branch-test.lyx.

Part of bug #12297.

2 months agoImprove the code that limits scrolling at top/bottom
Jean-Marc Lasgouttes [Fri, 17 Nov 2023 17:30:37 +0000 (18:30 +0100)]
Improve the code that limits scrolling at top/bottom

The most visible part of this commit is the move of part of
BufferView::updateMetrics to a new TextMetrics::updateMetrics. This
new method makes sure that metrics are known for all visible paragraphs
(starting from anchor), and that the positions of the paragraphs have
been recorded.

This method is called up to 3 times in BufferView::updateMetrics:
* unconditionally, to update all visible metrics,
* then, if the bottom of the document is visible and too high, after
  updating the anchor ypos,
* and similarly if the top of the document is visible and too low.

This fixes for example the case where one jumps to Section 5.3 at the
end of Tutorial and 'scroll_below_document' is false.

Some now redundant code is removed from BufferView::scrollToCursor.

The anchor-setting code in BufferView::draw is not clearly useful, but
left here just in case. It generates a debug warning, though.

Part of bug #12297.

2 months agoImplement quick scroll
Jean-Marc Lasgouttes [Mon, 24 Jul 2023 21:23:40 +0000 (23:23 +0200)]
Implement quick scroll

Replace flag parameter for updateMetrics() by a `force' boolean. When
it is false, the method keeps the metrics of paragraphs that are still
visible in WorkArea instead of computing everything afresh. All it has
to do is update their positions.

Add code to updateMetrics() to update the value of the anchor pit/ypos
(similar to the one in draw()).

Update processUpdateFlags() to use this when update flag is ForceDraw.

Modify scrollDocView() to just change the anchor paragraph position
when the scrolling operation would re-use some of the existing
paragraphs.

The time needed to update the metrics when scrolling with mouse in the
branch-test.lyx document is now divided by 20!

Part of bug #12297.

2 months agoIntroduce new helpers ParagraphMetrics::top/bottom
Jean-Marc Lasgouttes [Tue, 25 Jul 2023 14:31:13 +0000 (16:31 +0200)]
Introduce new helpers ParagraphMetrics::top/bottom

This avoids code with position/ascent/descent that is difficult to follow.

No change in function intended.

2 months agoIn the no-draw phase, do not cache the positions of not visible insets
Jean-Marc Lasgouttes [Mon, 24 Jul 2023 15:53:16 +0000 (17:53 +0200)]
In the no-draw phase, do not cache the positions of not visible insets

This can make a big difference for a very large branch that contains
lots of equations.

This is complementary to the previous patch, since instead of reducing
the number of calls to updatePosCache, we make it faster.

In the same test of scrolling with mouse wheel through the
branch-test.lyx document, one finds a 23% improvement for
BufferView::updateMetrics().

Part of bug #12297.

2 months agoRemove some redundant calls to updatePosCache
Jean-Marc Lasgouttes [Mon, 24 Jul 2023 13:35:16 +0000 (15:35 +0200)]
Remove some redundant calls to updatePosCache

The setting of insets positions was done twice in updateMetrics.
When one of the paragraph is a huge branch, this can be very expensive.

This leads to a 17% improvement on updateMetrics time on a scrolling test.

Part of bug #12297

2 months agoEnable Update::SinglePar in nested insets too
Jean-Marc Lasgouttes [Mon, 17 Jul 2023 12:43:29 +0000 (14:43 +0200)]
Enable Update::SinglePar in nested insets too

The idea of single par update is to try to re-break only the paragraph
containing the cursor (if this paragraph contains insets etc.,
re-breaking will recursively descend).

The existing single paragraph update mechanism was tailored to work
only at top level. Indeed changing a paragraph nested into an inset may
lead to larger changes.

This commit tries a rather naive approach that seems to work well: we
need a full redraw if either

1/ the height has changed
or
2/ the width has changed and it was equal to the text metrics width;
   the goal is to catch the case of a one-row inset that grows with
   its contents, but optimize the case of typing in a short paragraph
   part of a larger inset.

NOTE: if only the height has changed, then it should be
  possible to update all metrics at minimal cost. However,
  since this is risky, we do not try that right now.

Part of bug #12297.

2 months agoImplement undo coalescing
Jean-Marc Lasgouttes [Wed, 13 Jul 2022 23:02:28 +0000 (01:02 +0200)]
Implement undo coalescing

if the undo element we want to add only changes stuff that was already
modified by the previous one on undo stack (in the same group), then
skip it. There is nothing to gain in adding it to the stack.

The typical use case is when doing a search and replace in a large
document that does many replacements in each paragraph. In this case,
the same paragraph would be stored repeatedly.

Fixes bug #12564.

2 months ago#13049 add window activation for preferences to avoid it be hidden by main window...
Stephan Witt [Fri, 5 Apr 2024 08:47:49 +0000 (10:47 +0200)]
#13049 add window activation for preferences to avoid it be hidden by main window on mac after alert prompts

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)

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.

2 months agode.po
Juergen Spitzmueller [Thu, 4 Apr 2024 15:17:05 +0000 (17:17 +0200)]
de.po

2 months agofix typo in fr/Intro.lyx
Jean-Marc Lasgouttes [Thu, 4 Apr 2024 15:16:06 +0000 (17:16 +0200)]
fix typo in fr/Intro.lyx

2 months agoAllow for multiple accelerator alternatives
Juergen Spitzmueller [Thu, 4 Apr 2024 15:12:48 +0000 (17:12 +0200)]
Allow for multiple accelerator alternatives

This needs some testing before it could go to 2.4.x eventually

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.

2 months agoUpdate sk.po
Kornel Benko [Wed, 3 Apr 2024 10:24:28 +0000 (12:24 +0200)]
Update sk.po

2 months agode.po
Juergen Spitzmueller [Wed, 3 Apr 2024 07:12:15 +0000 (09:12 +0200)]
de.po

2 months agoDissolve some shortcut conflicts in the wake of f3a4602c4c1ec
Juergen Spitzmueller [Wed, 3 Apr 2024 06:28:00 +0000 (08:28 +0200)]
Dissolve some shortcut conflicts in the wake of f3a4602c4c1ec

2 months agoUpdate German User Guide
Juergen Spitzmueller [Wed, 3 Apr 2024 05:35:59 +0000 (07:35 +0200)]
Update German User Guide

2 months agoMerge branch 'master' of git.lyx.org:lyx
Juergen Spitzmueller [Wed, 3 Apr 2024 05:26:11 +0000 (07:26 +0200)]
Merge branch 'master' of git.lyx.org:lyx

2 months agoIgnore all build* directories
Richard Kimberly Heck [Wed, 3 Apr 2024 02:03:53 +0000 (22:03 -0400)]
Ignore all build* directories

(cherry picked from commit 368f10571aab8b6796218a1ac70b98a940e45722)

2 months agoDocs for menu change
Richard Kimberly Heck [Wed, 3 Apr 2024 02:02:55 +0000 (22:02 -0400)]
Docs for menu change

(cherry picked from commit c8534081c9d40b7331ac73513a758ffc51bc423e)

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

2 months agoUpdate doc info for quote-insert
Richard Kimberly Heck [Tue, 2 Apr 2024 16:46:36 +0000 (12:46 -0400)]
Update doc info for quote-insert

2 months agode.po
Juergen Spitzmueller [Tue, 2 Apr 2024 14:26:00 +0000 (16:26 +0200)]
de.po

2 months agoSmarter menu length calculation
Juergen Spitzmueller [Tue, 2 Apr 2024 12:41:54 +0000 (14:41 +0200)]
Smarter menu length calculation

It is possible I have missed some shortcut conflicts, so please report
if you find any.

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 agocmake build with qt6 (macos) did not include "plugins"
P. De Visschere [Sun, 31 Dec 2023 14:30:12 +0000 (15:30 +0100)]
cmake build with qt6 (macos) did not include "plugins"

2 months agoCmake build: Handle deprecated cmake versions
Kornel Benko [Sun, 31 Dec 2023 14:18:11 +0000 (15:18 +0100)]
Cmake build: Handle deprecated cmake versions

The warning says:
CMake Deprecation Warning at .../CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

Spotted by Scott Kostyshak

2 months agoFindAdv: no paragraph indentation for more space in the search string
Daniel Ramoeller [Sun, 31 Dec 2023 13:36:01 +0000 (14:36 +0100)]
FindAdv: no paragraph indentation for more space in the search string

See #11555

2 months agoFindAdv: Handle neg-spaces like normal space if searching without format
Kornel Benko [Sun, 31 Dec 2023 13:27:40 +0000 (14:27 +0100)]
FindAdv: Handle neg-spaces like normal space if searching without format

2 months agoRename hasToString() to findUsesToString()
Kornel Benko [Sun, 31 Dec 2023 13:09:17 +0000 (14:09 +0100)]
Rename hasToString() to findUsesToString()

There are special cases where the toString() exist,
but still plaintext() is not to be used by find.

2 months agode.po
Juergen Spitzmueller [Tue, 2 Apr 2024 06:23:42 +0000 (08:23 +0200)]
de.po

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).

2 months agoFix duplicate accelerator
Richard Kimberly Heck [Tue, 2 Apr 2024 01:54:44 +0000 (21:54 -0400)]
Fix duplicate accelerator

2 months agoAdd shortcut for plain single quote.
Richard Kimberly Heck [Mon, 1 Apr 2024 21:26:29 +0000 (17:26 -0400)]
Add shortcut for plain single quote.

(cherry picked from commit d3101e6d6f325c4597ec0945fecb03fee745c56e)

2 months agoClarify quote-insert LFUN.
Richard Kimberly Heck [Mon, 1 Apr 2024 21:26:01 +0000 (17:26 -0400)]
Clarify quote-insert LFUN.

And add remark about multiple optional arguments.

(cherry picked from commit 29be057a073fde4e36c9adbf31c6cd764f62bda2)

2 months agoFix bug #13025.
Richard Kimberly Heck [Mon, 1 Apr 2024 21:25:40 +0000 (17:25 -0400)]
Fix bug #13025.

Add plain single quote to menu.

(cherry picked from commit 9e5a98e8f92f773e11815631961997b8045d20b1)

2 months agoOpen for 2.5 development
Richard Kimberly Heck [Mon, 1 Apr 2024 20:19:22 +0000 (16:19 -0400)]
Open for 2.5 development

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.