]>
git.lyx.org Git - lyx.git/log
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.
Juergen Spitzmueller [Sun, 14 Jul 2024 12:20:05 +0000 (14:20 +0200)]
GuiTabular: add missing connections
Juergen Spitzmueller [Sun, 14 Jul 2024 12:06:21 +0000 (14:06 +0200)]
de.po
Juergen Spitzmueller [Sun, 14 Jul 2024 12:02:10 +0000 (14:02 +0200)]
Improve tex2lyx for style-specific biblatex citation commands
Juergen Spitzmueller [Sun, 14 Jul 2024 07:42:36 +0000 (09:42 +0200)]
Rename function
Juergen Spitzmueller [Sun, 14 Jul 2024 07:39:54 +0000 (09:39 +0200)]
Fix non-biblatex style checks
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
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
Juergen Spitzmueller [Sat, 13 Jul 2024 15:32:54 +0000 (17:32 +0200)]
Support MLA's \autocite variants
Juergen Spitzmueller [Sat, 13 Jul 2024 15:21:27 +0000 (17:21 +0200)]
consider style-specifics for citation alias
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
Juergen Spitzmueller [Sat, 13 Jul 2024 15:16:34 +0000 (17:16 +0200)]
Check for uppercase marker after style prefix has been stripped
Jean-Marc Lasgouttes [Fri, 12 Jul 2024 17:04:18 +0000 (19:04 +0200)]
missing quote in message
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.
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
Kornel Benko [Thu, 11 Jul 2024 08:57:59 +0000 (10:57 +0200)]
Update sk.po
Juergen Spitzmueller [Thu, 11 Jul 2024 08:37:08 +0000 (10:37 +0200)]
de.po
Juergen Spitzmueller [Thu, 11 Jul 2024 08:33:39 +0000 (10:33 +0200)]
update tex2lyx tests
Juergen Spitzmueller [Thu, 11 Jul 2024 08:28:38 +0000 (10:28 +0200)]
Add support for biblatex-apa's \nptextcite
Juergen Spitzmueller [Thu, 11 Jul 2024 08:09:26 +0000 (10:09 +0200)]
Allow to pass several styles for style-specific cite commands
Juergen Spitzmueller [Thu, 11 Jul 2024 07:56:08 +0000 (09:56 +0200)]
Fix cut and paste error in
fbbe1eb013
Juergen Spitzmueller [Thu, 11 Jul 2024 07:47:37 +0000 (09:47 +0200)]
Amend
fbbe1eb01386e
Include apa6
Juergen Spitzmueller [Thu, 11 Jul 2024 07:20:19 +0000 (09:20 +0200)]
Improve representation of APA citation
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
Juergen Spitzmueller [Thu, 11 Jul 2024 05:41:47 +0000 (07:41 +0200)]
BiblioInfo: Add citestyle conditional
Udi Fogiel [Wed, 10 Jul 2024 20:07:31 +0000 (23:07 +0300)]
remove language switches from index entries in fr Additional.lyx
Scott Kostyshak [Wed, 10 Jul 2024 15:41:19 +0000 (11:41 -0400)]
fr Additional.lyx: restore a path to an include
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.
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.
Kornel Benko [Wed, 10 Jul 2024 09:08:08 +0000 (11:08 +0200)]
Update sk.po
Juergen Spitzmueller [Wed, 10 Jul 2024 07:50:15 +0000 (09:50 +0200)]
Fix glitch in revert_biblatex_chicago
jpc [Tue, 9 Jul 2024 16:15:48 +0000 (18:15 +0200)]
Import Additional from 2.4.x
jpc [Tue, 9 Jul 2024 15:56:58 +0000 (17:56 +0200)]
Update fr.po
Juergen Spitzmueller [Tue, 9 Jul 2024 13:50:23 +0000 (15:50 +0200)]
de.po
Juergen Spitzmueller [Tue, 9 Jul 2024 13:27:27 +0000 (15:27 +0200)]
update tex2lyx tests
Juergen Spitzmueller [Tue, 9 Jul 2024 13:18:06 +0000 (15:18 +0200)]
Add support for biblatex-chicago (#12240)
File format change
Juergen Spitzmueller [Tue, 9 Jul 2024 04:39:15 +0000 (06:39 +0200)]
BiblioInfo: provide macro for ellipses
jpc [Sat, 6 Apr 2024 16:42:09 +0000 (18:42 +0200)]
French Additional manual, translation of chapter 4 up to sec. 4.3
Kornel Benko [Mon, 8 Jul 2024 09:50:40 +0000 (11:50 +0200)]
Update sk.po
Juergen Spitzmueller [Sun, 7 Jul 2024 13:28:33 +0000 (15:28 +0200)]
Add documentation for notes cite engine type.
Juergen Spitzmueller [Sun, 7 Jul 2024 13:22:40 +0000 (15:22 +0200)]
Fix string
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)
Kornel Benko [Sat, 6 Jul 2024 07:35:03 +0000 (09:35 +0200)]
Update sk.po
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
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.
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 ;)
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.
Juergen Spitzmueller [Fri, 5 Jul 2024 07:51:49 +0000 (09:51 +0200)]
de/Customization: fix typo
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.
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.
Jean-Marc Lasgouttes [Wed, 3 Jul 2024 14:23:30 +0000 (16:23 +0200)]
comment
Jean-Marc Lasgouttes [Wed, 3 Jul 2024 13:42:54 +0000 (15:42 +0200)]
fix comment
Enrico Forestieri [Wed, 3 Jul 2024 10:32:18 +0000 (12:32 +0200)]
Update format in lyxrc.dist
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.
Pavel Sanda [Tue, 2 Jul 2024 21:47:42 +0000 (23:47 +0200)]
cosmetics - synchronize with the rest of strings
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
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.
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
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.
Koji Yokota [Wed, 26 Jun 2024 21:42:26 +0000 (06:42 +0900)]
Update ja.po
Kornel Benko [Wed, 26 Jun 2024 06:53:46 +0000 (08:53 +0200)]
Update sk.po
Richard Kimberly Heck [Tue, 25 Jun 2024 15:32:26 +0000 (11:32 -0400)]
Add temporary directory to About LyX dialog
Kornel Benko [Tue, 25 Jun 2024 12:36:35 +0000 (14:36 +0200)]
Typo
Kornel Benko [Tue, 25 Jun 2024 11:50:32 +0000 (13:50 +0200)]
Cmake build: Require std >= 17 for compilation of QT6
Jean-Marc Lasgouttes [Tue, 25 Jun 2024 10:01:05 +0000 (12:01 +0200)]
fix comment
Pavel Sanda [Mon, 24 Jun 2024 20:54:21 +0000 (22:54 +0200)]
ftp->http
Pavel Sanda [Mon, 24 Jun 2024 20:45:15 +0000 (22:45 +0200)]
Document python changes
Pavel Sanda [Mon, 24 Jun 2024 20:44:49 +0000 (22:44 +0200)]
Prepare notes for 2.5
Pavel Sanda [Mon, 24 Jun 2024 20:29:23 +0000 (22:29 +0200)]
Let the middle button pasting respect newlines by default.
This makes it in sync with the new default for Edit > Paste operation.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg222233.html
Stephan Witt [Mon, 24 Jun 2024 06:24:45 +0000 (08:24 +0200)]
Add runpath verification of deployed binaries and plugins
Stephan Witt [Mon, 24 Jun 2024 05:32:08 +0000 (07:32 +0200)]
Add Qt binary directory to PATH to locate qmake utility
Juergen Spitzmueller [Sun, 23 Jun 2024 16:52:07 +0000 (18:52 +0200)]
Amend
fd78a25a7c0b307
This way, it is a bit more plausible what we're doing
Richard Kimberly Heck [Sun, 23 Jun 2024 16:48:17 +0000 (12:48 -0400)]
Fix up
fafe3ea5d7 .
There was a merge conflict, and it looks like I didn't fix it right.
I had set the author of that commit to Alexander, but for some
reason it didn't stick?
Kornel Benko [Sun, 23 Jun 2024 16:34:50 +0000 (12:34 -0400)]
Cmake build: Add Qt?Xml modules to build.
Cmake part of the fix to #13069 XHTML output for InsetMathBox can loop forever
Richard Kimberly Heck [Sun, 23 Jun 2024 16:37:25 +0000 (12:37 -0400)]
Fix bug #13069.
Use XML parser to handle <mtext> issues.
Some of the config/qt.m4 code by JMarc.
Juergen Spitzmueller [Sun, 23 Jun 2024 12:53:07 +0000 (14:53 +0200)]
Remove unneeded cycle checks (#12954)
Juergen Spitzmueller [Sun, 23 Jun 2024 12:52:02 +0000 (14:52 +0200)]
Only issue currentWorkareaChanged() if the work area really changed.
(this function can be called repeatedly while the work area doesn't
change any further)
Juergen Spitzmueller [Sun, 23 Jun 2024 12:47:43 +0000 (14:47 +0200)]
Fixup [
152811a27d242 /lyxgit]
tabBarClicked() should really only reset focus if a click in a different
TabBarGroup happened. And no need to issue workAreaChanged() again.
This has lead to extra and erroneous focus changes (see #12954)
Juergen Spitzmueller [Sat, 22 Jun 2024 11:38:47 +0000 (13:38 +0200)]
\cprotect amendment
\cprotect'ed insets do not need forced local font switch; in fact files
with this break in compilation. E.g. a caption with an URL containing
the char '#' and caption text set to a secondary language.
Jean-Marc Lasgouttes [Fri, 21 Jun 2024 15:02:13 +0000 (17:02 +0200)]
redoParagraph: avoid extra cache accesses
To this end, CoordCacheBase::add returns true when a change was made.
This uses the return value of std::unordered_map::insert.
Jean-Marc Lasgouttes [Thu, 20 Jun 2024 16:26:50 +0000 (18:26 +0200)]
Rename DocumentCLass:plainInsetLayout() to InsetLayout::undefined()
This makes the code easier to understand.
Jean-Marc Lasgouttes [Thu, 20 Jun 2024 16:00:13 +0000 (18:00 +0200)]
Fix cursor when undoing accept/reject all changes
Before this change, the whole document would remain selected.
This relies on the new UndoGroupHelper constructor introduced at
e7b1ee47 .
Jean-Marc Lasgouttes [Thu, 20 Jun 2024 15:52:19 +0000 (17:52 +0200)]
Add a constructor of UndoGroupHelper that uses a CursorData parameter
This aloows to se the the `before' cursor of the undo group.
Not used for now.
Jean-Marc Lasgouttes [Thu, 20 Jun 2024 15:25:25 +0000 (17:25 +0200)]
Remove useless cursor parameter to global undo actions
Add a Cursor-less version of Undo::recordUndoBufferParams (we don't
use an optional arument to avoir #includ'ing Cursor.h).
The version with CursorData parameter has been kept for the case of
local dictionary lfuns that have some kind of locality.
Remove Cursor argument to Undo::recordUndoFullBuffer().
Jean-Marc Lasgouttes [Thu, 20 Jun 2024 12:28:45 +0000 (14:28 +0200)]
Remove trailing underscore on members x and y of Point class.
These members are not private.
Jean-Marc Lasgouttes [Wed, 19 Jun 2024 13:05:04 +0000 (15:05 +0200)]
Add missing override keyword
Enrico Forestieri [Tue, 18 Jun 2024 19:56:15 +0000 (21:56 +0200)]
Avoid bogus warnings when configuring for Qt6
Recent versions of qmake complain loudly when the locale
does not explicitley specify the utf8 codeset. Specifically,
the configure script exports LC_ALL=C and that implies the
ascii codeset. Previously, this was silently changed to utf8,
whereas now we get a warning for each qmake invocation.
So, explicitly set utf8 before calling qmake.
Jean-Marc Lasgouttes [Tue, 18 Jun 2024 12:28:28 +0000 (14:28 +0200)]
Move DrawStrategy enum to update_flags.h.
Introduce new drawStrategy() and drawStrategyDescription() methods to
frontend::Application.
Show the current draw strategy in About dialog.
José Matos [Tue, 18 Jun 2024 09:52:05 +0000 (10:52 +0100)]
Sort and format comments
The last code change shuffled the comments out of place
José Matos [Tue, 18 Jun 2024 09:25:52 +0000 (10:25 +0100)]
Order imports
This is similar to what we have in C++ code where we order the standard
includes to be easier to read.
This is a readability change only.
José Matos [Tue, 18 Jun 2024 09:24:09 +0000 (10:24 +0100)]
Tweak ruff configuration
Add I - isort rules (order of imports);
Ignore line too long warnings.
Enrico Forestieri [Mon, 17 Jun 2024 19:57:24 +0000 (21:57 +0200)]
Add xcb lib if x11extras is detected
In this case we use directly some xcb api outside of the Qt framework
and hence we have to add the xcb library by ourselves.
Jean-Marc Lasgouttes [Fri, 14 Jun 2024 17:17:27 +0000 (19:17 +0200)]
Support qmake with Qt5 too
This extends the support of qmake to Qt5. Currently, the other
configuration methods are tried if qmake fails, but a message is
printed.
A nice goal would be to get rid of those legacy methods (pkg-config,
plain autoconf-style), if this proves possible.
José Matos [Mon, 17 Jun 2024 10:31:10 +0000 (11:31 +0100)]
Fix functions that used functions but did not defined it
The functions were selected from the parser files where document is
always defined.
The only case was this code was used was on document.warning.
Since our documents are well formed this code was never active and thus
the reason why we did not saw this before.
One possible solution to assure that these type of errors do not occur
is to make the convention that all the functions in lyx2lyx_tools have
as the first argument document.
Scott Kostyshak [Sun, 16 Jun 2024 15:41:46 +0000 (11:41 -0400)]
Adapt to deprecation of \DeclareCollectionInstance
Change LaTeX output of smallLetterFrac. For more information, see:
https://tex.stackexchange.com/questions/720579/do-i-need-to-replace-declarecollectioninstance-after-recent-package-change/
This fixes 44 failing tests from 074-76-letterlike-numberforms-arrows.lyx
that started failing after a tlmgr update around 2024-06-04.
Juergen Spitzmueller [Sun, 16 Jun 2024 14:16:59 +0000 (16:16 +0200)]
more indentation fixes
Juergen Spitzmueller [Sun, 16 Jun 2024 13:53:37 +0000 (15:53 +0200)]
GuiDocument: do not ask switch-back question on document closing
Juergen Spitzmueller [Sun, 16 Jun 2024 13:53:22 +0000 (15:53 +0200)]
Fix indentation
Juergen Spitzmueller [Sun, 16 Jun 2024 12:12:23 +0000 (14:12 +0200)]
Fix indentation
José Matos [Sun, 16 Jun 2024 06:45:43 +0000 (07:45 +0100)]
Remove undisclosed imports (from xxx import *)
This was the last example in this directory.