]> git.lyx.org Git - features.git/log
features.git
2 years agoGuard against possible referencing null.
Pavel Sanda [Thu, 14 Oct 2021 20:23:14 +0000 (22:23 +0200)]
Guard against possible referencing null.

Those checks might not be needed, but it's not self obvious from
the surrounding code. Because we already experienced crash from
similar change (cf 1c1c83eced96), let's be prudent here.

If you know that these pointers can't be null from broader context
feel free to remove the guards.

Introduced by 24926b2e2399, fix 104fdcc9be40df1 not backported
but now fixed by 1c1c83eced96 in 2.3.

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

2 years agoUpdate correctly completion after undo
Jean-Marc Lasgouttes [Thu, 14 Oct 2021 14:39:33 +0000 (16:39 +0200)]
Update correctly completion after undo

This is take #2 after reverting e59aee458.

Request the completer to rebuild a completion after undo/redo.

Fixes #12383.

2 years agoRevert "Reset inline completion after undo/redo"
Jean-Marc Lasgouttes [Thu, 14 Oct 2021 14:26:21 +0000 (16:26 +0200)]
Revert "Reset inline completion after undo/redo"

Try a solution closer to other code instead.

This reverts commit e59aee45801f6f61489a4be3162b4c43f6b8a658.

2 years agoDocBook: generate images for layouts that request it.
Thibaut Cuvelier [Wed, 13 Oct 2021 01:02:19 +0000 (03:02 +0200)]
DocBook: generate images for layouts that request it.

2 years agoFactor out the generation of the code to create a preview.
Thibaut Cuvelier [Wed, 13 Oct 2021 01:01:54 +0000 (03:01 +0200)]
Factor out the generation of the code to create a preview.

This will be soon reused in InsetText to generate images for DocBook.

2 years agoTypos and comment improvements.
Thibaut Cuvelier [Wed, 13 Oct 2021 01:01:11 +0000 (03:01 +0200)]
Typos and comment improvements.

2 years agoFactor out the list of macro definitions for InsetPreview.
Thibaut Cuvelier [Fri, 8 Oct 2021 01:14:18 +0000 (03:14 +0200)]
Factor out the list of macro definitions for InsetPreview.

This will be soon reused in InsetText to generate images for DocBook.

2 years agoDocBook: add assertion to help debugging.
Thibaut Cuvelier [Thu, 7 Oct 2021 00:34:07 +0000 (02:34 +0200)]
DocBook: add assertion to help debugging.

2 years agoDocBook: overall structure for rendered insets.
Thibaut Cuvelier [Thu, 7 Oct 2021 00:27:54 +0000 (02:27 +0200)]
DocBook: overall structure for rendered insets.

2 years agoDocBook: don't use a surrounding <para> for rendered insets.
Thibaut Cuvelier [Wed, 6 Oct 2021 22:07:21 +0000 (00:07 +0200)]
DocBook: don't use a surrounding <para> for rendered insets.

2 years agoDocBook: add the DocBookRenderAsImage tag.
Thibaut Cuvelier [Mon, 27 Sep 2021 01:30:45 +0000 (03:30 +0200)]
DocBook: add the DocBookRenderAsImage tag.

2 years ago#12368 correct spelling of toolbars visibility check function name
Stephan Witt [Wed, 13 Oct 2021 16:11:37 +0000 (18:11 +0200)]
#12368 correct spelling of toolbars visibility check function name

2 years agoDocBook: add test for the forest package.
Thibaut Cuvelier [Mon, 27 Sep 2021 01:22:04 +0000 (03:22 +0200)]
DocBook: add test for the forest package.

2 years agoDocBook: update links to LilyPond bugs.
Thibaut Cuvelier [Wed, 29 Sep 2021 00:26:29 +0000 (02:26 +0200)]
DocBook: update links to LilyPond bugs.

Also updates the test so that it matches the next version of LilyPond.

2 years agoDocBook: make copier compatible with Python 2.
Thibaut Cuvelier [Mon, 27 Sep 2021 13:36:09 +0000 (15:36 +0200)]
DocBook: make copier compatible with Python 2.

2 years agoFix build with Qt6
Enrico Forestieri [Tue, 12 Oct 2021 18:23:27 +0000 (20:23 +0200)]
Fix build with Qt6

In Qt6 the Svg includes are split into two different subdirs,
namely QtSvg and QtSvgWidgets. So, after 0862042b, it is necessary
to also account for the last one. Nothing needs to be done for Qt5.

2 years agoReset inline completion after undo/redo
Jean-Marc Lasgouttes [Tue, 12 Oct 2021 13:45:04 +0000 (15:45 +0200)]
Reset inline completion after undo/redo

Fixes bug #12383.

2 years agoWork around compilation warning
Jean-Marc Lasgouttes [Fri, 16 Jul 2021 16:27:15 +0000 (18:27 +0200)]
Work around compilation warning

Clang 12 (at least) misses the fact that tag is always initialized,
because the if/else sequence does cover all cases.

Initialize the variable although it is not required. It does not hurt
at least.

2 years agoFixup c52049bb83d: -Werror is needed to test for warning flags
Jean-Marc Lasgouttes [Mon, 11 Oct 2021 12:31:58 +0000 (14:31 +0200)]
Fixup c52049bb83d: -Werror is needed to test for warning flags

At least on my old clang++, this is required.

Fixes bug #12391.

2 years agoMake CoordCache assertions less annoying.
Jean-Marc Lasgouttes [Sat, 9 Oct 2021 10:25:29 +0000 (12:25 +0200)]
Make CoordCache assertions less annoying.

2 years agoAvoid duplicate checks in CoordCache
Jean-Marc Lasgouttes [Wed, 6 Oct 2021 11:06:45 +0000 (13:06 +0200)]
Avoid duplicate checks in CoordCache

The code is written in such a way that the elements are searched
several times. This can be expensive when there are a lots of insets
in the document.

Concerning the sanity checks, they are now conditionned on the
presence of assertion.

Related to bug #12297.

2 years agoReduce the number of accesses to coord cache when drawing a math row
Jean-Marc Lasgouttes [Fri, 8 Oct 2021 15:38:25 +0000 (17:38 +0200)]
Reduce the number of accesses to coord cache when drawing a math row

Each of these accesses is somewhat costly when using large branches
with lots of maths

Related to bug #12297.

2 years agoUse unordered maps to store inset and math rows geometry.
Jean-Marc Lasgouttes [Tue, 5 Oct 2021 14:58:49 +0000 (16:58 +0200)]
Use unordered maps to store inset and math rows geometry.

Simply using unordered_map instead of map makes a big difference for
documents with lots of math insets in one text inset.

Related to bug #12297.

2 years agoMinor refactor of previous commit
Scott Kostyshak [Fri, 8 Oct 2021 00:37:48 +0000 (20:37 -0400)]
Minor refactor of previous commit

A bit easier to read and avoids unnecessary status.clear().

2 years agoDisable LFUN for last column/row deletion
Daniel Ramoeller [Sun, 3 Oct 2021 04:22:48 +0000 (06:22 +0200)]
Disable LFUN for last column/row deletion

Fix for #12380.

2 years agoCheck changed status after decimal sep has been edited
Juergen Spitzmueller [Wed, 6 Oct 2021 16:05:23 +0000 (18:05 +0200)]
Check changed status after decimal sep has been edited

2 years agoNew Brazillian Portuguese translation.
Richard Kimberly Heck [Wed, 6 Oct 2021 16:00:04 +0000 (12:00 -0400)]
New Brazillian Portuguese translation.

2 years agoAmend d3c335a5d5
Yuriy Skalko [Thu, 30 Sep 2021 21:37:58 +0000 (00:37 +0300)]
Amend d3c335a5d5

2 years agoFix \cline calculation when last column has decimal alignment
Juergen Spitzmueller [Fri, 1 Oct 2021 10:42:06 +0000 (12:42 +0200)]
Fix \cline calculation when last column has decimal alignment

2 years agoAdd regression test for font switch before comment
Scott Kostyshak [Thu, 30 Sep 2021 18:22:49 +0000 (14:22 -0400)]
Add regression test for font switch before comment

This is a tricky issue that was fixed at 9eab66eb.

2 years agoClose font switches before comments
Juergen Spitzmueller [Thu, 30 Sep 2021 10:53:41 +0000 (12:53 +0200)]
Close font switches before comments

2 years agoRemove useless casts reported by GCC with -Wuseless-cast option
Yuriy Skalko [Wed, 29 Sep 2021 09:49:21 +0000 (12:49 +0300)]
Remove useless casts reported by GCC with -Wuseless-cast option

2 years agoAutoconf build: Fix the invalid test for '-Wno-deprecated-copy' flag
Jean-Marc Lasgouttes [Wed, 29 Sep 2021 16:01:14 +0000 (18:01 +0200)]
Autoconf build: Fix the invalid test for '-Wno-deprecated-copy' flag

(shamelessly stolen from c26db650a1, which was for cmake build)

The original test was always successfull, even if the flag was invalid.

But checking for '-Wdeprecated-copy' instead yields to error if the
warning does not exist. Existent warning for 'deprecated-copy' implies
that 'no-deprecated-copy' also exist.

2 years agoCmake build: Fix the invalid test for '-Wno-deprecated-copy' flag
Kornel Benko [Wed, 29 Sep 2021 15:53:50 +0000 (17:53 +0200)]
Cmake build: Fix the invalid test for '-Wno-deprecated-copy' flag

The original test was always successfull, even if the flag was invalid.
But checking for '-Wdeprecated-copy' instead yields to error if the warning does not exist.
Existent warning for 'deprecated-copy' implies that 'no-deprecated-copy' also exist.

2 years agoSVG replacement of busy.gif
Daniel Ramoeller [Wed, 29 Sep 2021 02:25:58 +0000 (04:25 +0200)]
SVG replacement of busy.gif

Fix for bug #10384.

2 years agoMake paragraph-goto and friends set paragraph to the top
Jean-Marc Lasgouttes [Wed, 17 Feb 2021 11:30:16 +0000 (12:30 +0100)]
Make paragraph-goto and friends set paragraph to the top

Add parameter 'force' to scrollToCursor(...) to avoid the case where the
cursor is not set to top because it is already visible on screen.
Change screen offset in this method so that the paragraph is really at
the top of the screen. This part may cause unforeseen issues and needs care.

gotoInset: use the new force flag and do not trigger a redraw.
Instead, return a boolean telling whether redraw is needed.
In the code that use it, set an update flag instead of the extra redraw.

In the handling of paragraph-goto, also set the update flag instead of
triggering a repaint.

Remove Bufferview::scrollToCursor(), which was equivalent to showCursor().

Fixes bug #10425.

2 years agoRemove redundant declarations reported by GCC with -Wredundant-decls option
Yuriy Skalko [Tue, 28 Sep 2021 17:20:57 +0000 (20:20 +0300)]
Remove redundant declarations reported by GCC with -Wredundant-decls option

2 years agotypo
Jean-Marc Lasgouttes [Tue, 28 Sep 2021 09:25:25 +0000 (11:25 +0200)]
typo

2 years agoFix crash
Kornel Benko [Tue, 28 Sep 2021 08:32:02 +0000 (10:32 +0200)]
Fix crash

Lyx crashes on export to pdf if used with sanitizer set to 'unspecified'.
Crash found by Scott.

Given that if we export without GUI, there is some weirdness here though.
1.) Why does lyx not crash if not using '-fsanitize' compile-option
2.) Why is export to pdf dependent on the screen-resolution

2 years agoRemove redundant semicolons reported by GCC with -Wextra-semi option
Yuriy Skalko [Tue, 28 Sep 2021 08:21:45 +0000 (11:21 +0300)]
Remove redundant semicolons reported by GCC with -Wextra-semi option

2 years agoInclude docbook_copy.py in released tarball.
Pavel Sanda [Mon, 27 Sep 2021 20:07:07 +0000 (22:07 +0200)]
Include docbook_copy.py in released tarball.

2 years agoMake rectangles have pointy corners
Jean-Marc Lasgouttes [Mon, 27 Sep 2021 15:46:38 +0000 (17:46 +0200)]
Make rectangles have pointy corners

This only makes a difference in HiDpi mode.

Adaptation of the patch proposed by Daniel.

Fix for bug #12336.

2 years agoFixup 6bbd88ac: compilation fix for Qt4
Jean-Marc Lasgouttes [Mon, 27 Sep 2021 11:56:04 +0000 (13:56 +0200)]
Fixup 6bbd88ac: compilation fix for Qt4

2 years agoWhitespace
Jean-Marc Lasgouttes [Mon, 27 Sep 2021 09:53:46 +0000 (11:53 +0200)]
Whitespace

2 years agoDocBook copy: add links to bug reports.
Thibaut Cuvelier [Sun, 26 Sep 2021 23:46:01 +0000 (01:46 +0200)]
DocBook copy: add links to bug reports.

2 years agoDocBook copy: don't error if the file was already copied.
Thibaut Cuvelier [Sun, 26 Sep 2021 23:15:16 +0000 (01:15 +0200)]
DocBook copy: don't error if the file was already copied.

2 years agoDocBook copy: large refactoring to improve readability.
Thibaut Cuvelier [Sun, 26 Sep 2021 22:42:08 +0000 (00:42 +0200)]
DocBook copy: large refactoring to improve readability.

2 years agoDocBook: make LilyPond work more reliably.
Thibaut Cuvelier [Sun, 26 Sep 2021 22:39:10 +0000 (00:39 +0200)]
DocBook: make LilyPond work more reliably.

2 years agoDocBook: redirect LilyPond output to main LyX output to ease debugging.
Thibaut Cuvelier [Sun, 26 Sep 2021 19:13:17 +0000 (21:13 +0200)]
DocBook: redirect LilyPond output to main LyX output to ease debugging.

2 years agoDocBook: work around bug in LilyPond.
Thibaut Cuvelier [Sun, 26 Sep 2021 19:00:59 +0000 (21:00 +0200)]
DocBook: work around bug in LilyPond.

https://lists.gnu.org/archive/html/bug-lilypond/2021-09/msg00039.html

2 years agoDocBook: missing multicol test.
Thibaut Cuvelier [Sun, 26 Sep 2021 17:10:22 +0000 (19:10 +0200)]
DocBook: missing multicol test.

2 years agoDocBook: add the new script as DocBook copier.
Thibaut Cuvelier [Sun, 26 Sep 2021 17:10:13 +0000 (19:10 +0200)]
DocBook: add the new script as DocBook copier.

2 years agoDocBook: add script to start LilyPond on the generated file.
Thibaut Cuvelier [Sun, 26 Sep 2021 16:15:09 +0000 (18:15 +0200)]
DocBook: add script to start LilyPond on the generated file.

Not yet used anywhere in the code for now (see next commit).

2 years agoUnused code.
Thibaut Cuvelier [Sun, 26 Sep 2021 15:27:41 +0000 (17:27 +0200)]
Unused code.

2 years agoTypo.
Thibaut Cuvelier [Sun, 26 Sep 2021 15:25:28 +0000 (17:25 +0200)]
Typo.

2 years agoFix warning.
Jean-Marc Lasgouttes [Fri, 24 Sep 2021 16:45:08 +0000 (18:45 +0200)]
Fix warning.

2 years agoImprove (modestly) the performance of font metrics caches
Jean-Marc Lasgouttes [Fri, 24 Sep 2021 14:57:05 +0000 (16:57 +0200)]
Improve (modestly) the performance of font metrics caches

This fixes two performance issues and improves the performance of
TextMetrics::redoParagraph by 15% in a workload that uses the cache a
lot. The difference will be much less when the cache is not used much.

1/ repetion of the hash code computation

The code
  if (cache.contains(key))
   result = cache[key]:
is not efficient, since qHash(key) has to be computed twice.
To fix this a new Cache::object_str() method is added, which allows
  if (auto * obj = cache.object(key))
   result = *obj;

2/ code of has code computation

Instead of using a verbose string that is complicated to build as
key, new key structs BreakAtKey and TextLayoutKey are introduced,
along with the relevant qHash() implementation.

2 years agoFix bug #12373
Enrico Forestieri [Fri, 24 Sep 2021 08:15:58 +0000 (10:15 +0200)]
Fix bug #12373

Do not perform any autocorrection in the presence of a selection.

2 years agoAmend dca39815: Fix a few warnings in Floating.
Kornel Benko [Fri, 24 Sep 2021 08:08:02 +0000 (10:08 +0200)]
Amend dca39815: Fix a few warnings in Floating.

2 years agoFix a few warnings in Floating.
Thibaut Cuvelier [Thu, 23 Sep 2021 23:19:28 +0000 (01:19 +0200)]
Fix a few warnings in Floating.

2 years agoDocBook: add a LilyPond test.
Thibaut Cuvelier [Thu, 23 Sep 2021 22:43:32 +0000 (00:43 +0200)]
DocBook: add a LilyPond test.

2 years agoAmend 4fd6edf3
Thibaut Cuvelier [Thu, 23 Sep 2021 21:40:21 +0000 (23:40 +0200)]
Amend 4fd6edf3

Escape paths in the generated RC file.

2 years agoFind LilyPond on Windows too.
Thibaut Cuvelier [Thu, 23 Sep 2021 00:59:39 +0000 (02:59 +0200)]
Find LilyPond on Windows too.

The main problem is that, while lilypond.exe exists, there is not lilypond-book.exe: the previous calls always failed, even though the file was there, just not called the right way.

2 years agoCmake build: Unify use of sanitizer
Kornel Benko [Tue, 21 Sep 2021 09:27:13 +0000 (11:27 +0200)]
Cmake build: Unify use of sanitizer

The configuration variable is LYX_DEBUG_SANITIZE
which can have following values:
"NONE"
"ADDRESS" Use address sanitizer (previously used with the variable LYX_ASAN)
"UNSPECIFIED" Use unspecified sanitizer

2 years agoDocBook: add inner tags for layouts.
Thibaut Cuvelier [Mon, 20 Sep 2021 23:21:13 +0000 (01:21 +0200)]
DocBook: add inner tags for layouts.

This makes it possible to implement LilyPond as prescribed in https://lilypond.org/doc/v2.22/Documentation/usage/docbook.

2 years agoXML: add a check for a typical case in the xml name space.
Thibaut Cuvelier [Mon, 20 Sep 2021 23:18:10 +0000 (01:18 +0200)]
XML: add a check for a typical case in the xml name space.

IGNORE is a typical placeholder for tags that should not be output, along with NONE. At some point, we should check if both are required, or if NONE is enough…

2 years agoDocBook: start implementing LilyPond.
Thibaut Cuvelier [Mon, 20 Sep 2021 01:19:20 +0000 (03:19 +0200)]
DocBook: start implementing LilyPond.

All the changes that can be achieved without C++ code changes.

2 years agoComplete the FontTag typeinfo
Kornel Benko [Mon, 20 Sep 2021 09:52:16 +0000 (11:52 +0200)]
Complete the FontTag typeinfo

2 years agoDocBook: add more flexibility for floats.
Thibaut Cuvelier [Sun, 19 Sep 2021 22:06:20 +0000 (00:06 +0200)]
DocBook: add more flexibility for floats.

Intended to fix #12371.

2 years agoKill warning for uncovered code path.
Thibaut Cuvelier [Sun, 19 Sep 2021 18:10:51 +0000 (20:10 +0200)]
Kill warning for uncovered code path.

2 years ago#12247 disable Qt5 modifier hack for Qt-5.12 version or newer
Stephan Witt [Mon, 23 Aug 2021 12:44:36 +0000 (14:44 +0200)]
#12247 disable Qt5 modifier hack for Qt-5.12 version or newer

Initially Qt5 modifier handling was broken. Therefore a workaround was introduced.
This workaround broke the LyX modifier handling with swap of Command-Control-key disabled.
The change disables the hack to get the correct behavior in LyX.

2 years agoUpdate sk.po
Kornel Benko [Sat, 21 Aug 2021 19:29:25 +0000 (21:29 +0200)]
Update sk.po

2 years agode.po
Juergen Spitzmueller [Sat, 21 Aug 2021 13:28:16 +0000 (15:28 +0200)]
de.po

2 years agoFix debug output
Juergen Spitzmueller [Sat, 21 Aug 2021 13:19:30 +0000 (15:19 +0200)]
Fix debug output

2 years agoCorrect tooltip
Juergen Spitzmueller [Sat, 21 Aug 2021 13:19:07 +0000 (15:19 +0200)]
Correct tooltip

as advised by Scott

2 years agoRecheck whole buffer after word has been added to/removed from document dic.
Juergen Spitzmueller [Sat, 21 Aug 2021 13:18:30 +0000 (15:18 +0200)]
Recheck whole buffer after word has been added to/removed from document dic.

2 years agoxhtml Toc rendering seems bit too dense now.
Pavel Sanda [Mon, 2 Aug 2021 13:25:36 +0000 (15:25 +0200)]
xhtml Toc rendering seems bit too dense now.

2 years agoUpdate sk.po
Kornel Benko [Thu, 22 Jul 2021 15:04:25 +0000 (17:04 +0200)]
Update sk.po

2 years agoGive the user visible feedback when reconfiguring.
Pavel Sanda [Thu, 22 Jul 2021 12:30:08 +0000 (14:30 +0200)]
Give the user visible feedback when reconfiguring.

2 years agoCount the width of pilcrows indicating changed end-of-par
Jean-Marc Lasgouttes [Wed, 21 Jul 2021 09:24:45 +0000 (11:24 +0200)]
Count the width of pilcrows indicating changed end-of-par

This is related to #10357. The case of real end-of-par markers is
taken into account, but not "change" markers, which have been
introduced in 2.4.

2 years agoStandard proof layout does not have an end label
Jean-Marc Lasgouttes [Mon, 19 Jul 2021 10:36:34 +0000 (12:36 +0200)]
Standard proof layout does not have an end label

Most proof environment have a qed box at the end, but not this one.
This only changes screen rendering.

2 years agofind: auto-wrap by default
Scott Kostyshak [Wed, 2 Jun 2021 03:59:57 +0000 (23:59 -0400)]
find: auto-wrap by default

For ML discussion on this change of default, see here:

  https://www.mail-archive.com/search?l=mid&q=20210602042644.g3s42nbeevdujzb5%40tallinn

2 years agofind: give status message when auto-wrapping
Scott Kostyshak [Wed, 2 Jun 2021 03:59:50 +0000 (23:59 -0400)]
find: give status message when auto-wrapping

When auto-wrap is enabled, it is sometimes informative to know
when the search wraps.

A status message is consistent with LibreOffice and Vim.

2 years agorefactor: keep meaning of a variable consistent
Scott Kostyshak [Wed, 2 Jun 2021 03:59:40 +0000 (23:59 -0400)]
refactor: keep meaning of a variable consistent

We now use a new variable, "wrap", to track if a wrap should be
done, which is true either if "auto_wrap" is true or if the user
chooses to wrap in the dialog.

This preserves the meaning of the "auto_wrap" variable and also
removes the confusion of why the previous code of

  if (!auto_wrap) {
    ...
  }
  if (auto_wrap) {

did not use an "else" instead of the second "if".

No change in functionality.

2 years agoCorrect moc compiler version extractor regex for patch level greater 9.
Stephan Witt [Fri, 16 Jul 2021 16:12:33 +0000 (18:12 +0200)]
Correct moc compiler version extractor regex for patch level greater 9.

2 years agoUse a central typedef for vectors of WordLangTuple.
Stephan Witt [Fri, 16 Jul 2021 14:39:05 +0000 (16:39 +0200)]
Use a central typedef for vectors of WordLangTuple.

2 years agoCare for included hunspell library.
Stephan Witt [Fri, 16 Jul 2021 14:35:30 +0000 (16:35 +0200)]
Care for included hunspell library.

2 years agoWhitespace
Jean-Marc Lasgouttes [Tue, 13 Jul 2021 09:15:13 +0000 (11:15 +0200)]
Whitespace

2 years agoRevert "Add a move constructor to Inset"
Jean-Marc Lasgouttes [Mon, 12 Jul 2021 10:38:16 +0000 (12:38 +0200)]
Revert "Add a move constructor to Inset"

It does not compile :-p

This reverts commit 874928f4a4370d8b7b8092df33f4436a0f52e7f7.

2 years agoAdd a move constructor to Inset
Jean-Marc Lasgouttes [Mon, 12 Jul 2021 09:55:19 +0000 (11:55 +0200)]
Add a move constructor to Inset

Does not change much, but Coverity complains about it. Let's see if
this allows Inset's child classes to grow their own move constructor.

Also some whitespace.

2 years ago* lib/RELEASE-NOTES
Pavel Sanda [Sun, 11 Jul 2021 16:16:42 +0000 (18:16 +0200)]
* lib/RELEASE-NOTES

2 years agoProperly distribute metainfo.
Pavel Sanda [Sun, 11 Jul 2021 16:08:03 +0000 (18:08 +0200)]
Properly distribute metainfo.

2 years agoUpdate metainfo to newer format.
Pavel Sanda [Sun, 11 Jul 2021 02:15:55 +0000 (04:15 +0200)]
Update metainfo to newer format.

Used appstream form:
https://www.freedesktop.org/software/appstream/metainfocreator/#/guiapp

2 years agoRework display of numbers in margins of hull insets
Jean-Marc Lasgouttes [Thu, 1 Jul 2021 16:35:16 +0000 (18:35 +0200)]
Rework display of numbers in margins of hull insets

This requires the introduction of the booleans selected_left and
selected_right in PainterInfo. These tell whether the selection
continues at the left/right of the inset.

This information allows to

1/ paint equation number in the right color: either current text color
   or selection text color.

2/ before that, paint a small background rectangle of the correct color.

This allows to avoid painting a large rectangle of an arbitrary color
that was the cause of the bug.

Fixes bug #12319.

2 years agoReformat mangled filenames for (xhtml) export to have them sorted.
Pavel Sanda [Fri, 9 Jul 2021 12:32:36 +0000 (14:32 +0200)]
Reformat mangled filenames for (xhtml) export to have them sorted.

2 years ago Add hint about the need of Acrobat DC
jpc [Tue, 6 Jul 2021 16:51:30 +0000 (18:51 +0200)]
       Add hint about the need of Acrobat DC

3 years agoAlways remove selection after cursor up/down
Jean-Marc Lasgouttes [Tue, 29 Jun 2021 10:43:59 +0000 (12:43 +0200)]
Always remove selection after cursor up/down

When the cursor cannot move on cursor up/down, at least the selection
should be cleared (when not selecting).

To detect this, the method Cursor::upDownInText has been modified to
return true when cursor is at top/bottom of inset, but there is some
room above/below.

Moreover, introduce the functions LFUN_FINISHED_UP/DOWN, which is
dispatched at upper cursor level as long as no local movement is
possible. This allows to handle differently the original char moving
action and its consequences.

Fixes part of bug #12310.

3 years agoAlways remove selection after cursor left/right
Jean-Marc Lasgouttes [Fri, 18 Jun 2021 11:53:37 +0000 (13:53 +0200)]
Always remove selection after cursor left/right

Example: when a selection is set, a `Left' cursor movement would not
reset selection when the cursor was at the beginning of buffer.

To fix this, it is necessary, when cursor is in top-level text, to
avoid the mechnanism (undispatched cursor) that sends the action to the
upper level (necessary when the cursor leaves an inset).

The change is mechanical and is done for : char-backward,
char-forward, char-left, char-right, word-left, word-right, word-left,
word-right. It might be possible to factor this code a bit, but there
is no evident solution.

char-up/down are *not* handled at this point.

Fixes part of bug #12310.

3 years ago Update French translation of Linguistics manual
jpc [Mon, 28 Jun 2021 09:01:30 +0000 (11:01 +0200)]
       Update French translation of Linguistics manual

3 years ago Update fr.po
jpc [Mon, 28 Jun 2021 09:00:11 +0000 (11:00 +0200)]
         Update fr.po