]> git.lyx.org Git - lyx.git/log
lyx.git
7 weeks agoGuiLog: show also log files of additional indices
Juergen Spitzmueller [Fri, 26 Jul 2024 16:48:31 +0000 (18:48 +0200)]
GuiLog: show also log files of additional indices

7 weeks agoAdd support for multiple indexes in Memoir
Juergen Spitzmueller [Fri, 26 Jul 2024 10:48:12 +0000 (12:48 +0200)]
Add support for multiple indexes in Memoir

As with almost everything, this class bakes its own cake also with
multiple indexes. So we need to account for this to produce
compilable output.

Not very nice, but there you go!

7 weeks agoFixup 999fb37e: always run updateMacros when in batch mode
Jean-Marc Lasgouttes [Thu, 25 Jul 2024 16:30:38 +0000 (18:30 +0200)]
Fixup 999fb37e: always run updateMacros when in batch mode

The optimization is useful in GUI mode only, and it turns out that it
creates weird crashes otherwise.

Thanks to Juergen Spitzmuller for the idea.

7 weeks agoAvoid loop in math parsing function
Juergen Spitzmueller [Thu, 25 Jul 2024 07:18:01 +0000 (09:18 +0200)]
Avoid loop in math parsing function

7 weeks agoDo not update statisitics if buffer has not changed
Jean-Marc Lasgouttes [Wed, 24 Jul 2024 20:19:32 +0000 (22:19 +0200)]
Do not update statisitics if buffer has not changed

Rely on the newly-introduced Buffer::id() to skip statistics
computation if the id is the same as last time. This will reduce the
annoyance of updates triggering at random times.

Take this occasion to clean code up:

- add 'skip' parameter (true by default) to Statistics::update to indicate
  that the insets that do not produce output should be skipped.

- use a trailing underscrore for private members

7 weeks agoamend 9291fc465b0d
Juergen Spitzmueller [Wed, 24 Jul 2024 19:42:56 +0000 (21:42 +0200)]
amend 9291fc465b0d

XHTML wants LaTeX math, nothing converted to unicode

7 weeks agofix warning
Jean-Marc Lasgouttes [Wed, 24 Jul 2024 19:08:53 +0000 (21:08 +0200)]
fix warning

7 weeks agoSquash gcc warning.
Pavel Sanda [Wed, 24 Jul 2024 17:55:05 +0000 (19:55 +0200)]
Squash gcc warning.

7 weeks agoFixup 6e81f317: cut and paste error
Jean-Marc Lasgouttes [Wed, 24 Jul 2024 16:51:35 +0000 (18:51 +0200)]
Fixup 6e81f317: cut and paste error

7 weeks agoDo not run updateMacros if the buffer has not changed
Jean-Marc Lasgouttes [Sat, 20 Jul 2024 20:31:34 +0000 (22:31 +0200)]
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.

7 weeks agoRewrite statistics code
Jean-Marc Lasgouttes [Sun, 21 Jul 2024 20:09:28 +0000 (22:09 +0200)]
Rewrite statistics code

The statistics code is known to be very slow, because it relies on
DocIterator to go through the buffer.

This commit introduces a new Statistics class that encapsulates the
main code, along a virtual method Inset::updateStatistics() that
allows to fine-tune how counting is done inset by inset.

This is a faithful bug-for-bug reimplementation.

The new code appears to be 3x faster than the old one.

See bug #12929 for a discussion about statistics update woes.

7 weeks agoAmend previous commit (4b33e603)
Scott Kostyshak [Wed, 24 Jul 2024 15:00:51 +0000 (11:00 -0400)]
Amend previous commit (4b33e603)

Jürgen confirmed that the layout change to the last file is indeed
expected [1].

[1] https://www.mail-archive.com/search?l=mid&q=e00fb2e29dfd77b992761aaa1f822fc979059728.camel%40lyx.org

7 weeks agoUpdate layouts
Scott Kostyshak [Wed, 24 Jul 2024 14:14:34 +0000 (10:14 -0400)]
Update layouts

I do not commit the update to the following file since it has a
non-trivial change:

  lib/layouts/jlreq-common.inc

I'll ask for confirmation on the list before updating that file.

7 weeks agoDo not export the content of InsetMathBoxed as text in MathML
Jean-Marc Lasgouttes [Tue, 23 Jul 2024 21:44:58 +0000 (23:44 +0200)]
Do not export the content of InsetMathBoxed as text in MathML

\boxed{} is the only box in LaTeX that contains math. It is amusing
that the example file that we had for ticket #13609 should not have
been a problem since there is no reason to force <mtext> there.

7 weeks agoFixup 216a6fb348: close <mtext> when quitting text mode
Jean-Marc Lasgouttes [Tue, 23 Jul 2024 20:02:50 +0000 (22:02 +0200)]
Fixup 216a6fb348: close <mtext> when quitting text mode

This fixes malformed documents on UserGuide export.

Related to bug #13069.

7 weeks agoFixup 216a6fb3: fix broken xml syntax
Jean-Marc Lasgouttes [Tue, 23 Jul 2024 13:04:49 +0000 (15:04 +0200)]
Fixup 216a6fb3: fix broken xml syntax

This commit addresses two issues:

1/ the embarassing one: the member SetMode::old_text_level_ was
   declared as bool instead of int. This means that is was definitely
   not a proper backup variable!

2/ a robustness issue: replace two consecutive test for isTest() by a
   boolean veriable that is used twice. This makes sure that <mrow>
   cannot be output without the corresponding </mrow>.

Part of bug #13069.

7 weeks agoTypo
Richard Kimberly Heck [Mon, 22 Jul 2024 20:21:31 +0000 (16:21 -0400)]
Typo

7 weeks agoMake scrolling-by-selection smoother
Jean-Marc Lasgouttes [Sat, 20 Jul 2024 17:47:32 +0000 (19:47 +0200)]
Make scrolling-by-selection smoother

This trivial patch makes scrolling-by-selection smoother by dividing
the step size and the time between steps by 8 when generating
synthetic events in work area.

The scrolling speed is unchanged, but the result is visually better.

8 weeks agoFix crash when generating MathML with InsetMathBox
Jean-Marc Lasgouttes [Sat, 20 Jul 2024 10:15:32 +0000 (12:15 +0200)]
Fix crash when generating MathML with InsetMathBox

Instead of generating code and parsing it to add <mtext>...</mtext> at
the right spots, this commit honors the text mode setting that was
already present in the codebase to generate it automatically.

This is the work of two helper methods in MathMLStream:

* beforeText() notices when the stream is in text mode and that a
  <mtext> has not yet been generated. In this case it inserts it, so
  that raw text can be emitted afterwards.

* beforeTag() checks whether a <mtext> needs to be closed at this
  point, and does it if needed.

To make this work, the code now tracks the nesting level in the
stream, and compares it the what the level was when text mode has been
enabled using the SetMode helper function.

In order to avoid later bugs, member os() that allows to access the
underlying stream of MathMLStream is removed. This required many <<
operators to become friends of MathMLStream.

In InsetMathBox, rename splitAndWrapInMText() to mathmlizeHelper(),
which is not just a method that sets text mode inside a <mrow>
element.

In InsetMathFont and InsetMathHull, the explicit generation of nesting
in <mtext>...</mtext> can be removed now.

Fixes bug #13069.

8 weeks agoCleanup MathMLStream
Jean-Marc Lasgouttes [Fri, 19 Jul 2024 12:57:58 +0000 (14:57 +0200)]
Cleanup MathMLStream

This is preparatory work for fixing ticket #13069.

Remove direct accesses to the underlying stream of MathMLStream in
InsetMathChar, InsetMathSpecialChar, and in all << operators other
than MathMLStream << docstring. This will allow to add a hook later in
this operator.

Move default values of MathMLStream private members to their definition.

Get rid of line_ member, which is not used.

8 weeks agoRevert "Fix bug #13069."
Jean-Marc Lasgouttes [Fri, 19 Jul 2024 12:22:10 +0000 (14:22 +0200)]
Revert "Fix bug #13069."

This reverts commit fafe3ea5d7be1c06fb734e3bc621c551d617a6f7.

8 weeks agoRevert "Cmake build: Add Qt?Xml modules to build."
Jean-Marc Lasgouttes [Fri, 19 Jul 2024 12:20:53 +0000 (14:20 +0200)]
Revert "Cmake build: Add Qt?Xml modules to build."

This reverts commit 01160486974a69e62e0b21490454e8dc2e0a4c8e.

8 weeks agoRemove alpha component of system colors
Jean-Marc Lasgouttes [Mon, 22 Jul 2024 18:36:20 +0000 (20:36 +0200)]
Remove alpha component of system colors

When using system colors it may happen (on windows 11 in particular)
that the background color is actually translucid. This is not
something we are prepared to handle and it creates ghosts on screen.

The fix is easy: the alpha channel of the colors is set to 255.

Fixes bug #13084.

8 weeks ago Update fr.po
jpc [Mon, 22 Jul 2024 15:40:30 +0000 (17:40 +0200)]
       Update fr.po

8 weeks agoUpdate sk.po
Kornel Benko [Mon, 22 Jul 2024 11:59:27 +0000 (13:59 +0200)]
Update sk.po

8 weeks agoUserGuide: fix two nomencl entries
Juergen Spitzmueller [Mon, 22 Jul 2024 08:42:54 +0000 (10:42 +0200)]
UserGuide: fix two nomencl entries

8 weeks agotex2lyx: Fix two bugs in nomencl import
Juergen Spitzmueller [Mon, 22 Jul 2024 07:51:54 +0000 (09:51 +0200)]
tex2lyx: Fix two bugs in nomencl import

* The comment character % is made active to serve as an escape char
* quotation marks need to be escaped

8 weeks agoStore spellchecker_esc_chars as a docstring
Jean-Marc Lasgouttes [Sun, 21 Jul 2024 19:33:01 +0000 (21:33 +0200)]
Store spellchecker_esc_chars as a docstring

This is a minor optimization to avoid calling from_utf8() repeatedly
on a hot path.

8 weeks agode.po
Juergen Spitzmueller [Sun, 21 Jul 2024 16:10:33 +0000 (18:10 +0200)]
de.po

8 weeks agoupdate tex2lyx tests
Juergen Spitzmueller [Sun, 21 Jul 2024 16:06:58 +0000 (18:06 +0200)]
update tex2lyx tests

8 weeks agoAdd possibility to manually specify longest label in nomenclature
Juergen Spitzmueller [Sun, 21 Jul 2024 15:59:34 +0000 (17:59 +0200)]
Add possibility to manually specify longest label in nomenclature

File format change

8 weeks agoConsider masked modifiers (~S etc.) when writing to bind file
Juergen Spitzmueller [Sun, 21 Jul 2024 08:18:58 +0000 (10:18 +0200)]
Consider masked modifiers (~S etc.) when writing to bind file

Fixes #12973

8 weeks agoUse background to make math comments more visible
Jean-Marc Lasgouttes [Wed, 5 Jun 2024 08:41:47 +0000 (10:41 +0200)]
Use background to make math comments more visible

8 weeks agoupdate comment
Juergen Spitzmueller [Sat, 20 Jul 2024 15:47:47 +0000 (17:47 +0200)]
update comment

8 weeks agoImprove calculation of longest nomencl string
Juergen Spitzmueller [Sat, 20 Jul 2024 15:38:36 +0000 (17:38 +0200)]
Improve calculation of longest nomencl string

This tries o convert LaTeX macros before estimating the length

8 weeks agomode convertLaTeXCommands from BiblioInfo to Encodings
Juergen Spitzmueller [Sat, 20 Jul 2024 15:37:45 +0000 (17:37 +0200)]
mode convertLaTeXCommands from BiblioInfo to Encodings

So it can also be used in other contexts.

This includes also an improvement of math parsing

8 weeks agoFixup 2bdd691130: remove two more Update::SinglePar instances
Jean-Marc Lasgouttes [Sat, 20 Jul 2024 15:12:09 +0000 (17:12 +0200)]
Fixup 2bdd691130: remove two more Update::SinglePar instances

They do not do what the author(s) of these lines thought it would do,
and can create crashes.

2 months agoUpdate sk.po
Kornel Benko [Wed, 17 Jul 2024 06:33:58 +0000 (08:33 +0200)]
Update sk.po

2 months agoFix faulty undo recording
Jean-Marc Lasgouttes [Tue, 16 Jul 2024 13:43:11 +0000 (15:43 +0200)]
Fix faulty undo recording

The recordUndo() call is very wrong, since we may be inserting over a
selection covering several paragraphs (undo itself works at paragraph
granularity).

recordUndoSelection() is the right operation in this case. It is
equivalent to recordUndo() when there is no selection.

2 months agoFix crash when attempting to search in selection that contains only math
Juergen Spitzmueller [Mon, 15 Jul 2024 15:41:10 +0000 (17:41 +0200)]
Fix crash when attempting to search in selection that contains only math

2 months agoSort entries in src/Makefile.am
Jean-Marc Lasgouttes [Mon, 15 Jul 2024 10:10:08 +0000 (12:10 +0200)]
Sort entries in src/Makefile.am

Remove also STANDALONEFILES variable, which is a remain of monolithic
builds.

2 months agoGuiTabular: add missing connections
Juergen Spitzmueller [Sun, 14 Jul 2024 12:20:05 +0000 (14:20 +0200)]
GuiTabular: add missing connections

2 months agode.po
Juergen Spitzmueller [Sun, 14 Jul 2024 12:06:21 +0000 (14:06 +0200)]
de.po

2 months agoImprove tex2lyx for style-specific biblatex citation commands
Juergen Spitzmueller [Sun, 14 Jul 2024 12:02:10 +0000 (14:02 +0200)]
Improve tex2lyx for style-specific biblatex citation commands

2 months agoRename function
Juergen Spitzmueller [Sun, 14 Jul 2024 07:42:36 +0000 (09:42 +0200)]
Rename function

2 months agoFix non-biblatex style checks
Juergen Spitzmueller [Sun, 14 Jul 2024 07:39:54 +0000 (09:39 +0200)]
Fix non-biblatex style checks

2 months agoMake headlesscite an alias of MLA's autocite
Juergen Spitzmueller [Sun, 14 Jul 2024 06:57:02 +0000 (08:57 +0200)]
Make headlesscite an alias of MLA's autocite

As in biblatex-mla itself

2 months agoctests: invert a failing xhtml test
Scott Kostyshak [Sun, 14 Jul 2024 04:16:19 +0000 (00:16 -0400)]
ctests: invert a failing xhtml test

Explanation from Jürgen:

the author-specific keys now can have a trailing &
(after the key as in "abbrvciteauthor&" or at the start of the type
subtag, as in "abbrvnames:&author" (see 5c2652fa12b). This indicates
that we want "&" rather than "and" (in APA context).

See: https://www.mail-archive.com/search?l=mid&q=ildx4xd4o7ybeqroh3blxgnxqnsqnte256utip2fbmcwi4zolz%40wsh7ez36kkhl

2 months agoSupport MLA's \autocite variants
Juergen Spitzmueller [Sat, 13 Jul 2024 15:32:54 +0000 (17:32 +0200)]
Support MLA's \autocite variants

2 months agoconsider style-specifics for citation alias
Juergen Spitzmueller [Sat, 13 Jul 2024 15:21:27 +0000 (17:21 +0200)]
consider style-specifics for citation alias

2 months agoProvide reversed style specifier for citation commands
Juergen Spitzmueller [Sat, 13 Jul 2024 15:20:29 +0000 (17:20 +0200)]
Provide reversed style specifier for citation commands

This lets you exclude given variants for specific citation styles only

2 months agoCheck for uppercase marker after style prefix has been stripped
Juergen Spitzmueller [Sat, 13 Jul 2024 15:16:34 +0000 (17:16 +0200)]
Check for uppercase marker after style prefix has been stripped

2 months agomissing quote in message
Jean-Marc Lasgouttes [Fri, 12 Jul 2024 17:04:18 +0000 (19:04 +0200)]
missing quote in message

2 months agoAdd explicit check for EGREP in configure.ac
Jean-Marc Lasgouttes [Fri, 12 Jul 2024 14:02:53 +0000 (16:02 +0200)]
Add explicit check for EGREP in configure.ac

It is used in lib/Makefile.am and we were relying some autoconf macros
to define it as a side-effect. This is not the case anymore as of
autoconf 2.72.

2 months agoImprove on-screen representation with MLA style
Juergen Spitzmueller [Thu, 11 Jul 2024 11:38:22 +0000 (13:38 +0200)]
Improve on-screen representation with MLA style

This style is quite unique, so we need to accommodate that

2 months agoUpdate sk.po
Kornel Benko [Thu, 11 Jul 2024 08:57:59 +0000 (10:57 +0200)]
Update sk.po

2 months agode.po
Juergen Spitzmueller [Thu, 11 Jul 2024 08:37:08 +0000 (10:37 +0200)]
de.po

2 months agoupdate tex2lyx tests
Juergen Spitzmueller [Thu, 11 Jul 2024 08:33:39 +0000 (10:33 +0200)]
update tex2lyx tests

2 months agoAdd support for biblatex-apa's \nptextcite
Juergen Spitzmueller [Thu, 11 Jul 2024 08:28:38 +0000 (10:28 +0200)]
Add support for biblatex-apa's \nptextcite

2 months agoAllow to pass several styles for style-specific cite commands
Juergen Spitzmueller [Thu, 11 Jul 2024 08:09:26 +0000 (10:09 +0200)]
Allow to pass several styles for style-specific cite commands

2 months agoFix cut and paste error in fbbe1eb013
Juergen Spitzmueller [Thu, 11 Jul 2024 07:56:08 +0000 (09:56 +0200)]
Fix cut and paste error in fbbe1eb013

2 months agoAmend fbbe1eb01386e
Juergen Spitzmueller [Thu, 11 Jul 2024 07:47:37 +0000 (09:47 +0200)]
Amend fbbe1eb01386e

Include apa6

2 months agoImprove representation of APA citation
Juergen Spitzmueller [Thu, 11 Jul 2024 07:20:19 +0000 (09:20 +0200)]
Improve representation of APA citation

2 months agoBiblioInfo: Ability to distinguish '&' and 'and' author separation
Juergen Spitzmueller [Thu, 11 Jul 2024 07:13:43 +0000 (09:13 +0200)]
BiblioInfo: Ability to distinguish '&' and 'and' author separation

Finicky styles such as APA use both in different context, and we need
to represent this to make style choice differentiatable

2 months agoBiblioInfo: Add citestyle conditional
Juergen Spitzmueller [Thu, 11 Jul 2024 05:41:47 +0000 (07:41 +0200)]
BiblioInfo: Add citestyle conditional

2 months agoremove language switches from index entries in fr Additional.lyx
Udi Fogiel [Wed, 10 Jul 2024 20:07:31 +0000 (23:07 +0300)]
remove language switches from index entries in fr Additional.lyx

2 months agofr Additional.lyx: restore a path to an include
Scott Kostyshak [Wed, 10 Jul 2024 15:41:19 +0000 (11:41 -0400)]
fr Additional.lyx: restore a path to an include

2 months agoImplement possibility to define citestyle-specific commands with biblatex
Juergen Spitzmueller [Wed, 10 Jul 2024 14:58:34 +0000 (16:58 +0200)]
Implement possibility to define citestyle-specific commands with biblatex

Not yet used.

2 months agoFixup 145af7c2: remove unused method
Jean-Marc Lasgouttes [Wed, 10 Jul 2024 11:42:57 +0000 (13:42 +0200)]
Fixup 145af7c2: remove unused method

TextMetrics::firstVisible(), introduced in this commit, is actually unused.

2 months agoUpdate sk.po
Kornel Benko [Wed, 10 Jul 2024 09:08:08 +0000 (11:08 +0200)]
Update sk.po

2 months agoFix glitch in revert_biblatex_chicago
Juergen Spitzmueller [Wed, 10 Jul 2024 07:50:15 +0000 (09:50 +0200)]
Fix glitch in revert_biblatex_chicago

2 months ago Import Additional from 2.4.x
jpc [Tue, 9 Jul 2024 16:15:48 +0000 (18:15 +0200)]
        Import Additional from 2.4.x

2 months ago Update fr.po
jpc [Tue, 9 Jul 2024 15:56:58 +0000 (17:56 +0200)]
        Update fr.po

2 months agode.po
Juergen Spitzmueller [Tue, 9 Jul 2024 13:50:23 +0000 (15:50 +0200)]
de.po

2 months agoupdate tex2lyx tests
Juergen Spitzmueller [Tue, 9 Jul 2024 13:27:27 +0000 (15:27 +0200)]
update tex2lyx tests

2 months agoAdd support for biblatex-chicago (#12240)
Juergen Spitzmueller [Tue, 9 Jul 2024 13:18:06 +0000 (15:18 +0200)]
Add support for biblatex-chicago (#12240)

File format change

2 months agoBiblioInfo: provide macro for ellipses
Juergen Spitzmueller [Tue, 9 Jul 2024 04:39:15 +0000 (06:39 +0200)]
BiblioInfo: provide macro for ellipses

2 months ago French Additional manual, translation of chapter 4 up to sec. 4.3
jpc [Sat, 6 Apr 2024 16:42:09 +0000 (18:42 +0200)]
       French Additional manual, translation of chapter 4 up to sec. 4.3

2 months agoUpdate sk.po
Kornel Benko [Mon, 8 Jul 2024 09:50:40 +0000 (11:50 +0200)]
Update sk.po

2 months agoAdd documentation for notes cite engine type.
Juergen Spitzmueller [Sun, 7 Jul 2024 13:28:33 +0000 (15:28 +0200)]
Add documentation for notes cite engine type.

2 months agoFix string
Juergen Spitzmueller [Sun, 7 Jul 2024 13:22:40 +0000 (15:22 +0200)]
Fix string

2 months agoAdd "notes" CiteEngine Type
Juergen Spitzmueller [Sun, 7 Jul 2024 13:14:05 +0000 (15:14 +0200)]
Add "notes" CiteEngine Type

This is needed for (forthcoming) biblatex-chicago support (see #12240)

2 months agoUpdate sk.po
Kornel Benko [Sat, 6 Jul 2024 07:35:03 +0000 (09:35 +0200)]
Update sk.po

2 months agoImprove 0f35e3141bc5b6ba
Juergen Spitzmueller [Sat, 6 Jul 2024 07:24:07 +0000 (09:24 +0200)]
Improve 0f35e3141bc5b6ba

* also handle replace string case-insensitively in case-insensitive mode
* leaner code

2 months agoCut excessively long author lists before parsing them for the GUI
Juergen Spitzmueller [Fri, 5 Jul 2024 15:19:24 +0000 (17:19 +0200)]
Cut excessively long author lists before parsing them for the GUI

as they will be truncated anyway.

Fixes performance issues with long author lists in bib files.

2 months agoFix display of page references when language is not specified
Jean-Marc Lasgouttes [Fri, 5 Jul 2024 14:10:17 +0000 (16:10 +0200)]
Fix display of page references when language is not specified

Using translateIfPossible with null language does not make sense (and
gives an error on console).

Using translateIfPossible there actually does not make sense at all: it
is only for string from layout files that may already be translated.

We use the buffer language when no language has been specified. It
might have been better to use the GUI language.

A consequence of the commit is that "elsewhere" will be in the po
files and now really translatable ;)

2 months agoRemove performance bottleneck in getAuthors()
Juergen Spitzmueller [Fri, 5 Jul 2024 12:05:26 +0000 (14:05 +0200)]
Remove performance bottleneck in getAuthors()

The regex is expensive which is especially noticeable with very long
author lists.

This introduces a case-insensitive subst() variant which is much faster.

2 months agode/Customization: fix typo
Juergen Spitzmueller [Fri, 5 Jul 2024 07:51:49 +0000 (09:51 +0200)]
de/Customization: fix typo

2 months agoMake BufferView::singeParUpdate more robust
Jean-Marc Lasgouttes [Mon, 1 Jul 2024 21:56:33 +0000 (23:56 +0200)]
Make BufferView::singeParUpdate more robust

In some cases, it might happen that this method is called in cases
where no metrics is know for the current paragraph or where its
position is not set.

Take care of these cases to avoid assertions.

Remove setting of inset positions in the method, but make sure that
updateMetrics(false) is always called to get everything right.

In the new code, updateMetrics(bool) os the method that sets
everything right with minimal effort.

2 months agoRemove useless SinglePar update when scrolling in text
Jean-Marc Lasgouttes [Wed, 3 Jul 2024 15:31:38 +0000 (17:31 +0200)]
Remove useless SinglePar update when scrolling in text

Using SinglePar does not majke sense here since the paragraph is not
modified and it might even not have a position yet.

This fixes a crash in BufferView::singleParUpdate, which is not
prepared (yet) to such situations.

2 months agocomment
Jean-Marc Lasgouttes [Wed, 3 Jul 2024 14:23:30 +0000 (16:23 +0200)]
comment

2 months agofix comment
Jean-Marc Lasgouttes [Wed, 3 Jul 2024 13:42:54 +0000 (15:42 +0200)]
fix comment

2 months agoUpdate format in lyxrc.dist
Enrico Forestieri [Wed, 3 Jul 2024 10:32:18 +0000 (12:32 +0200)]
Update format in lyxrc.dist

2 months agoMake sure paragraph positions are updated when scrolling
Jean-Marc Lasgouttes [Tue, 2 Jul 2024 22:22:55 +0000 (00:22 +0200)]
Make sure paragraph positions are updated when scrolling

Sometimes quick selection-scrolling could cause a crash because the
position of some paragraphs is not computed. To fix that, in
BufferView::showCursor, make sure that the metrics are always kept
clean using updateMetrics(false), which is lighweight.

As a consequence, the 'update' parameter of showCursor and
scrollDocView is not needed anymore. Its removal is mechanical and
accounts for most of this commit.

The only other significant change is that, when creating synthetic
mouse events and relying on scroll() for small moves, the full metrics
recomputation is replaced by the lighter version.

More work is still to come on this code, but this should be going in
the right direction.

2 months agocosmetics - synchronize with the rest of strings
Pavel Sanda [Tue, 2 Jul 2024 21:47:42 +0000 (23:47 +0200)]
cosmetics - synchronize with the rest of strings

2 months agoDo not check for diverging input encoding if the files use XeTeX/LuaTeX
Juergen Spitzmueller [Tue, 2 Jul 2024 14:59:28 +0000 (16:59 +0200)]
Do not check for diverging input encoding if the files use XeTeX/LuaTeX

Fixes the problem reported at
https://marc.info/?l=lyx-users&m=171986173131406

2 months agoAvoid crash when InsetBibitem::updateCommand shows a dialog
Jean-Marc Lasgouttes [Tue, 2 Jul 2024 12:49:34 +0000 (14:49 +0200)]
Avoid crash when InsetBibitem::updateCommand shows a dialog

This is one of the places where a dialog is shown (indicating that
some bibtems have been renamed) while the metrics are not up to date.
Then a draw operation can be triggered too early and a crash can ensue.

Use ad-hoc solution for this case and use Buffer::setBusy(). The
Alert::warning helper cannot really do that since it doe snot know the
current buffer.

2 months agoGuiDocument::onBufferViewChanged(): exit early if dialog is not open
Juergen Spitzmueller [Tue, 2 Jul 2024 09:02:36 +0000 (11:02 +0200)]
GuiDocument::onBufferViewChanged(): exit early if dialog is not open

This should fix the bug reported at
https://marc.info/?l=lyx-users&m=171957953801548&w=2

2 months agoRemove profiling.py
José Matos [Thu, 27 Jun 2024 20:20:49 +0000 (21:20 +0100)]
Remove profiling.py

The hotshot module used there only works for Python 2.

BTW the profiling turned out not be necessary.

As a case in point Python 3.13 is twice as fast as Python 3.6 when using
lyx2lyx. Not only that but Python 3 is almost 10 times faster than using
Python 2 for this particular case.

2 months agoUpdate ja.po
Koji Yokota [Wed, 26 Jun 2024 21:42:26 +0000 (06:42 +0900)]
Update ja.po