Commit Graph

46605 Commits

Author SHA1 Message Date
Juergen Spitzmueller
660ec568ef Check for uppercase marker after style prefix has been stripped 2024-07-13 17:16:34 +02:00
Jean-Marc Lasgouttes
ed2e5554d8 missing quote in message 2024-07-12 19:04:18 +02:00
Jean-Marc Lasgouttes
31cde72476 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.
2024-07-12 16:02:53 +02:00
Juergen Spitzmueller
29b36dd0b8 Improve on-screen representation with MLA style
This style is quite unique, so we need to accommodate that
2024-07-11 13:39:17 +02:00
Kornel Benko
d036c651d5 Update sk.po 2024-07-11 10:57:59 +02:00
Juergen Spitzmueller
9df0c7dbac de.po 2024-07-11 10:37:08 +02:00
Juergen Spitzmueller
a1e11fff44 update tex2lyx tests 2024-07-11 10:33:39 +02:00
Juergen Spitzmueller
2dac89aca0 Add support for biblatex-apa's \nptextcite 2024-07-11 10:28:38 +02:00
Juergen Spitzmueller
f7cc716861 Allow to pass several styles for style-specific cite commands 2024-07-11 10:09:26 +02:00
Juergen Spitzmueller
04d8616c0a Fix cut and paste error in fbbe1eb013 2024-07-11 09:56:08 +02:00
Juergen Spitzmueller
d2ad0618bb Amend fbbe1eb013
Include apa6
2024-07-11 09:47:37 +02:00
Juergen Spitzmueller
fbbe1eb013 Improve representation of APA citation 2024-07-11 09:20:19 +02:00
Juergen Spitzmueller
5c2652fa12 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
2024-07-11 09:13:43 +02:00
Juergen Spitzmueller
a1e57a8fe5 BiblioInfo: Add citestyle conditional 2024-07-11 07:41:47 +02:00
Udi Fogiel
ae70eb0d36 remove language switches from index entries in fr Additional.lyx 2024-07-10 23:07:31 +03:00
Scott Kostyshak
49907c9bd2 fr Additional.lyx: restore a path to an include 2024-07-10 11:41:43 -04:00
Juergen Spitzmueller
40d644a7f9 Implement possibility to define citestyle-specific commands with biblatex
Not yet used.
2024-07-10 16:58:34 +02:00
Jean-Marc Lasgouttes
8bc3799b35 Fixup 145af7c2: remove unused method
TextMetrics::firstVisible(), introduced in this commit, is actually unused.
2024-07-10 13:42:57 +02:00
Kornel Benko
54b77166b3 Update sk.po 2024-07-10 11:08:08 +02:00
Juergen Spitzmueller
f96422fc9c Fix glitch in revert_biblatex_chicago 2024-07-10 09:51:55 +02:00
jpc
18ce7a2e80 Import Additional from 2.4.x 2024-07-09 18:15:48 +02:00
jpc
22b893a63f Update fr.po 2024-07-09 17:56:58 +02:00
Juergen Spitzmueller
c50f9fee7a de.po 2024-07-09 15:50:23 +02:00
Juergen Spitzmueller
22332e35d8 update tex2lyx tests 2024-07-09 15:27:27 +02:00
Juergen Spitzmueller
8941b05774 Add support for biblatex-chicago (#12240)
File format change
2024-07-09 15:18:06 +02:00
Juergen Spitzmueller
a4b99aee94 BiblioInfo: provide macro for ellipses 2024-07-09 06:39:15 +02:00
jpc
d05809da3c French Additional manual, translation of chapter 4 up to sec. 4.3 2024-07-08 11:52:28 +02:00
Kornel Benko
5e7614b34c Update sk.po 2024-07-08 11:50:40 +02:00
Juergen Spitzmueller
fcb81ddf0b Add documentation for notes cite engine type. 2024-07-07 15:28:33 +02:00
Juergen Spitzmueller
f37448206a Fix string 2024-07-07 15:22:40 +02:00
Juergen Spitzmueller
8322622efa Add "notes" CiteEngine Type
This is needed for (forthcoming) biblatex-chicago support (see #12240)
2024-07-07 15:14:05 +02:00
Kornel Benko
3554fe0c42 Update sk.po 2024-07-06 09:35:55 +02:00
Juergen Spitzmueller
666304633a Improve 0f35e3141b
* also handle replace string case-insensitively in case-insensitive mode
* leaner code
2024-07-06 09:25:57 +02:00
Juergen Spitzmueller
7d2d26132b 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.
2024-07-05 17:19:24 +02:00
Jean-Marc Lasgouttes
6f6d9b631d 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 ;)
2024-07-05 16:18:09 +02:00
Juergen Spitzmueller
8ba74fe958 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.
2024-07-05 14:05:26 +02:00
Juergen Spitzmueller
28f49c90dc de/Customization: fix typo 2024-07-05 09:51:49 +02:00
Jean-Marc Lasgouttes
89ab9eb569 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.
2024-07-03 17:43:00 +02:00
Jean-Marc Lasgouttes
2bdd691130 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.
2024-07-03 17:31:38 +02:00
Jean-Marc Lasgouttes
a7204098cf comment 2024-07-03 16:23:30 +02:00
Jean-Marc Lasgouttes
29597f600e fix comment 2024-07-03 15:43:12 +02:00
Enrico Forestieri
1dd0bf3253 Update format in lyxrc.dist 2024-07-03 12:32:18 +02:00
Jean-Marc Lasgouttes
6e0ea4269a 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.
2024-07-03 00:34:11 +02:00
Pavel Sanda
65a5c3989f cosmetics - synchronize with the rest of strings 2024-07-02 23:47:42 +02:00
Juergen Spitzmueller
4ed8bfb974 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
2024-07-02 16:59:28 +02:00
Jean-Marc Lasgouttes
c84c59eaec 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.
2024-07-02 14:54:20 +02:00
Juergen Spitzmueller
574db22025 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
2024-07-02 11:02:36 +02:00
José Matos
7a79a416b8 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.
2024-06-27 21:20:49 +01:00
Koji Yokota
99d59490d7 Update ja.po 2024-06-27 06:42:26 +09:00
Kornel Benko
d3ea677a3e Update sk.po 2024-06-26 08:53:46 +02:00