]> git.lyx.org Git - lyx.git/log
lyx.git
2 years agoMerge branch 'master' into features/indexmacros
Juergen Spitzmueller [Wed, 20 Apr 2022 06:38:12 +0000 (08:38 +0200)]
Merge branch 'master' into features/indexmacros

2 years agode.po
Juergen Spitzmueller [Wed, 20 Apr 2022 06:04:15 +0000 (08:04 +0200)]
de.po

2 years agoUpdate sk.po
Kornel Benko [Tue, 19 Apr 2022 21:35:31 +0000 (23:35 +0200)]
Update sk.po

2 years agoFindAdv: Fix search for '}'
Kornel Benko [Tue, 19 Apr 2022 21:28:27 +0000 (23:28 +0200)]
FindAdv: Fix search for '}'

Problem occured if
1.) not using regex and
2.) search without format and
3.) the search pattern ended with '}'.

then this last char '}' in the search pattern was discarded.

2 years ago Update fr.po
jpc [Tue, 19 Apr 2022 16:22:53 +0000 (18:22 +0200)]
       Update fr.po

2 years agoImprove string
Juergen Spitzmueller [Tue, 19 Apr 2022 13:12:56 +0000 (15:12 +0200)]
Improve string

2 years agoUpdate sk.po
Kornel Benko [Tue, 19 Apr 2022 11:53:44 +0000 (13:53 +0200)]
Update sk.po

2 years agoFindAdv, Debug: Added new debug level :findverbose
Kornel Benko [Tue, 19 Apr 2022 11:41:38 +0000 (13:41 +0200)]
FindAdv, Debug: Added new debug level :findverbose

With the debug-level 'find' there are now less output.
The original output can be received now with debig-level 'findverbose'

Also constructions like
 LYXERR(Debug::FIND|Debug::FINDVERBOSE, "...");
are now possible.

2 years agoMerge branch 'master' into features/indexmacros
Juergen Spitzmueller [Tue, 19 Apr 2022 09:54:11 +0000 (11:54 +0200)]
Merge branch 'master' into features/indexmacros

2 years agoIntroduce InsetIndexMacros
Juergen Spitzmueller [Tue, 19 Apr 2022 09:46:08 +0000 (11:46 +0200)]
Introduce InsetIndexMacros

This adds native macros for subindexes (!level), |see and |seealso
as well as native support for ranges |( |) and pagination format
-- e.g., |textbf -- via the index dialog

Resolves #12478, #7232 and #5014

The feature is complete (incl. tex2lyx) except for

* file format change and lyx2lyx
* docbook/xhtml
* documentation

2 years agoImprove selection when selecting out of inset by the left
Jean-Marc Lasgouttes [Mon, 18 Apr 2022 16:13:17 +0000 (18:13 +0200)]
Improve selection when selecting out of inset by the left

1/ put cusror in some display inset
2/ use shift-left until the cursor exits the inset
3/ see how the selection extends on the right.

This is not really a selection drawing bug, but rather the fact that
the anchor will be normalized to the first position after the inset,
which is in the next row.

This can be avoided by using the boundary property.

See discussion in bug #12520.

2 years ago* RELEASE-NOTES
Pavel Sanda [Sat, 16 Apr 2022 22:49:35 +0000 (00:49 +0200)]
* RELEASE-NOTES

2 years agoforgotten bit
Pavel Sanda [Sat, 16 Apr 2022 22:38:17 +0000 (00:38 +0200)]
forgotten bit

2 years ago*doc - branch-sync-all
Pavel Sanda [Sat, 16 Apr 2022 22:37:22 +0000 (00:37 +0200)]
*doc - branch-sync-all

2 years agoAllow syncing open/close status of branch inset with it's activation status.
Pavel Sanda [Sat, 16 Apr 2022 22:16:19 +0000 (00:16 +0200)]
Allow syncing open/close status of branch inset with it's activation status.

This was kicked out by 742b39f4 (the code in inset toggle survived).
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg217311.html

2 years agoFindAdv: Convert '\%' in a regex to '%'
Kornel Benko [Sat, 16 Apr 2022 13:10:33 +0000 (15:10 +0200)]
FindAdv: Convert '\%' in a regex to '%'

Regex contents comes from handling hullRegexp, so we
have to reverse some its handling, among others also for the char '%'

2 years agoFindadv: Correct findadv-combined test
Kornel Benko [Fri, 15 Apr 2022 15:18:40 +0000 (17:18 +0200)]
Findadv: Correct findadv-combined test

Replaced some 'CP' commands with 'CN' comments.

2 years agoFindAdv: Handling of '%' in searched string while not ignoring format
Kornel Benko [Fri, 15 Apr 2022 15:09:08 +0000 (17:09 +0200)]
FindAdv: Handling of '%' in searched string while not ignoring format

Difficult to decide, when to remove the sequence '%\n'.
The sequence is OK for latex output as a command separator,
but must be removed in searched string.

Alas, not all occurences are wrong. Sigh.

2 years agode.po
Juergen Spitzmueller [Thu, 14 Apr 2022 08:27:10 +0000 (10:27 +0200)]
de.po

2 years agoUpdate status of layouttranslations
Pavel Sanda [Wed, 13 Apr 2022 09:36:49 +0000 (11:36 +0200)]
Update status of layouttranslations

2 years agoBackport bg strings
Pavel Sanda [Wed, 13 Apr 2022 09:33:28 +0000 (11:33 +0200)]
Backport bg strings

2 years ago* layouttranslations updates from Veselin
Pavel Sanda [Wed, 13 Apr 2022 09:32:45 +0000 (11:32 +0200)]
* layouttranslations updates from Veselin

2 years agoFind: Renamend for_searchAdv to for_serach in src/OutputParams.h
Kornel Benko [Tue, 12 Apr 2022 16:02:12 +0000 (18:02 +0200)]
Find: Renamend for_searchAdv to for_serach in src/OutputParams.h

Since this variable is used by quick find too, the naming was misleading

2 years agoImproved package build script for MacOS. Handle compiler standard for Qt6.
Stephan Witt [Sat, 9 Apr 2022 07:19:46 +0000 (09:19 +0200)]
Improved package build script for MacOS. Handle compiler standard for Qt6.

2 years agoFindQuick: Amend 4bd38d8a: Remove now unneeded code
Kornel Benko [Sat, 9 Apr 2022 07:11:38 +0000 (09:11 +0200)]
FindQuick: Amend 4bd38d8a: Remove now unneeded code

2 years agoFindQuick: Handle quotes special (as in findadv)
Kornel Benko [Sat, 9 Apr 2022 06:52:24 +0000 (08:52 +0200)]
FindQuick: Handle quotes special (as in findadv)

2 years agoFindQuick: Amend 1f7d90d6: Add some not handled quotation marks
Kornel Benko [Fri, 8 Apr 2022 17:56:41 +0000 (19:56 +0200)]
FindQuick: Amend 1f7d90d6: Add some not handled quotation marks

2 years agoFix crash with countExpanders in Qt6
Jean-Marc Lasgouttes [Fri, 8 Apr 2022 09:51:53 +0000 (11:51 +0200)]
Fix crash with countExpanders in Qt6

It is not a good idea to contruct a QChar from a char_type that is
really 32bits.

Use lyx::isSpace, which already catters for this case.

Since this code does not depend on qt anymore, move it to
support::countExpanders.

Get rid of Row::countSeparators, which is not used anymore.

Fixes bug #12519.

2 years agoFind: Advanced + Quick:
Kornel Benko [Fri, 8 Apr 2022 06:40:32 +0000 (08:40 +0200)]
Find: Advanced + Quick:

Expand list of quotes to include also '» « › ‹'
Enable quick find to search for quotes too

2 years agoFindAdv: Amend 58f70b9d
Kornel Benko [Wed, 6 Apr 2022 17:00:20 +0000 (19:00 +0200)]
FindAdv: Amend 58f70b9d

Consider plain-quotes, inner-quotes
1 independent if in regex or text
2 independent of quote style
3 independent of using dynamic marks

2 years agoFindAdv: Handle search for quotes
Kornel Benko [Tue, 5 Apr 2022 15:04:51 +0000 (17:04 +0200)]
FindAdv: Handle search for quotes

Double quotes will be found if using the string '"' in pattern.
Single quotes needs "'" in pattern.

2 years agoFix indentation
Juergen Spitzmueller [Mon, 4 Apr 2022 10:02:25 +0000 (12:02 +0200)]
Fix indentation

2 years agoInitialize member
Juergen Spitzmueller [Mon, 4 Apr 2022 09:43:55 +0000 (11:43 +0200)]
Initialize member

2 years agoFindAdv: Amend 6e7fd68c: Handle InsetNoteParams::Comment too
Kornel Benko [Mon, 4 Apr 2022 08:46:55 +0000 (10:46 +0200)]
FindAdv: Amend 6e7fd68c: Handle InsetNoteParams::Comment too

2 years agoFindAdv: Allow to search in LyX-Note also if ignoring format
Kornel Benko [Sun, 3 Apr 2022 17:03:47 +0000 (19:03 +0200)]
FindAdv: Allow to search in LyX-Note also if ignoring format

2 years agoFindAdv: Amend 4125f6a9
Kornel Benko [Sun, 3 Apr 2022 16:05:15 +0000 (18:05 +0200)]
FindAdv: Amend 4125f6a9

Variables regexError and regexError only defined
when searching via QT-version >= 5

2 years agoFindAdv: Omit possible empty patterns
Kornel Benko [Sun, 3 Apr 2022 11:21:02 +0000 (13:21 +0200)]
FindAdv: Omit possible empty patterns

Normally this is done by the GUI, but searching for e.g. LyX-Comment
allows empty patterns.

2 years agoDocBook: fix a test to ensure that the DocBook document is valid.
Thibaut Cuvelier [Sun, 3 Apr 2022 01:41:02 +0000 (03:41 +0200)]
DocBook: fix a test to ensure that the DocBook document is valid.

A book cannot directly contain paragraphs, they must be within a chapter.

2 years agoMathML: fix validity for fractions with units.
Thibaut Cuvelier [Sat, 2 Apr 2022 02:03:12 +0000 (04:03 +0200)]
MathML: fix validity for fractions with units.

https://www.lyx.org/trac/ticket/12513

Contributed by lynx.

2 years agoMake clang happy
Kornel Benko [Sat, 2 Apr 2022 15:01:02 +0000 (17:01 +0200)]
Make clang happy

Omitting 'error: comparison of integer expressions of different signedness'

2 years agoAmend d96135a9dcc5
Juergen Spitzmueller [Sat, 2 Apr 2022 10:05:18 +0000 (12:05 +0200)]
Amend d96135a9dcc5

2 years agoAmend bcad19e504f845
Juergen Spitzmueller [Sat, 2 Apr 2022 09:19:55 +0000 (11:19 +0200)]
Amend bcad19e504f845

Allow searching in notes and comments if non-output-content is true

2 years agoXHTML/CALS tables: create helper functions to share more code.
Thibaut Cuvelier [Sat, 2 Apr 2022 01:31:15 +0000 (03:31 +0200)]
XHTML/CALS tables: create helper functions to share more code.

2 years agoCALS tables: base implementation of row separators on the new code from XHTML.
Thibaut Cuvelier [Sat, 2 Apr 2022 00:56:32 +0000 (02:56 +0200)]
CALS tables: base implementation of row separators on the new code from XHTML.

2 years agoCALS tables: fix implementation of multirow/col.
Thibaut Cuvelier [Sat, 2 Apr 2022 00:54:12 +0000 (02:54 +0200)]
CALS tables: fix implementation of multirow/col.

2 years agoXHTML tables: fix borders and implement booktabs.
Thibaut Cuvelier [Fri, 1 Apr 2022 19:15:13 +0000 (21:15 +0200)]
XHTML tables: fix borders and implement booktabs.

https://www.lyx.org/trac/ticket/10154

Contributed by raccoon.

2 years agoXHTML/DocBook tables: slight refactoring.
Thibaut Cuvelier [Fri, 1 Apr 2022 18:39:02 +0000 (20:39 +0200)]
XHTML/DocBook tables: slight refactoring.

2 years agoDocBook: remove unused variable.
Thibaut Cuvelier [Fri, 1 Apr 2022 02:40:10 +0000 (04:40 +0200)]
DocBook: remove unused variable.

2 years agoXHTML/DocBook: merge code paths to generate a row in a table.
Thibaut Cuvelier [Fri, 1 Apr 2022 02:37:48 +0000 (04:37 +0200)]
XHTML/DocBook: merge code paths to generate a row in a table.

2 years agoRemove debug output.
Thibaut Cuvelier [Fri, 1 Apr 2022 02:37:33 +0000 (04:37 +0200)]
Remove debug output.

2 years ago* layouttranslations for bg
Pavel Sanda [Fri, 1 Apr 2022 21:05:04 +0000 (23:05 +0200)]
* layouttranslations for bg

2 years ago* bash_completion from Hernan Solari
Pavel Sanda [Fri, 1 Apr 2022 20:56:57 +0000 (22:56 +0200)]
* bash_completion from Hernan Solari

2 years agoAdd Hernan to credits
Pavel Sanda [Fri, 1 Apr 2022 20:55:41 +0000 (22:55 +0200)]
Add Hernan to credits

2 years agoFindAdv: Handle latex-output for comment-environment
Kornel Benko [Fri, 1 Apr 2022 18:14:47 +0000 (20:14 +0200)]
FindAdv: Handle latex-output for comment-environment

Disable if in search-adv modus and not searching in not-printed contents,
enable otherwise

2 years agoFindAdv: Ignore comment-feature (but not its content)
Kornel Benko [Fri, 1 Apr 2022 11:45:57 +0000 (13:45 +0200)]
FindAdv: Ignore comment-feature (but not its content)

TODO: Handle 'comment' like other features, but this needs more thinking.

2 years agoIndentation
Juergen Spitzmueller [Fri, 1 Apr 2022 09:34:26 +0000 (11:34 +0200)]
Indentation

2 years agobg.po: update from Veselin
Juergen Spitzmueller [Fri, 1 Apr 2022 07:27:55 +0000 (09:27 +0200)]
bg.po: update from Veselin

2 years agoDocBook: merge code duplicates for HTML and CALS tables.
Thibaut Cuvelier [Fri, 1 Apr 2022 02:12:14 +0000 (04:12 +0200)]
DocBook: merge code duplicates for HTML and CALS tables.

2 years agoXHTML/DocBook: merge code duplicates for horizontal alignment.
Thibaut Cuvelier [Fri, 1 Apr 2022 02:01:40 +0000 (04:01 +0200)]
XHTML/DocBook: merge code duplicates for horizontal alignment.

2 years agoXHTML/DocBook: merge code duplicates for vertical alignment.
Thibaut Cuvelier [Fri, 1 Apr 2022 01:51:24 +0000 (03:51 +0200)]
XHTML/DocBook: merge code duplicates for vertical alignment.

2 years agoMathML: fix underbraces to be stretchable.
Thibaut Cuvelier [Thu, 31 Mar 2022 22:01:42 +0000 (00:01 +0200)]
MathML: fix underbraces to be stretchable.

Ticket: https://www.lyx.org/trac/ticket/12502

Contributed by lynx

2 years agoFindAdv: Amend a0daf5e5
Kornel Benko [Thu, 31 Mar 2022 09:39:46 +0000 (11:39 +0200)]
FindAdv: Amend a0daf5e5

1.) Completed non backslashed '{' and '}' in regex in non format-search

2 years agoFindAdv: Optimizing
Kornel Benko [Wed, 30 Mar 2022 20:15:22 +0000 (22:15 +0200)]
FindAdv: Optimizing

1.) Handle backslashed '{' and '}' in regex also in non format-search
2.) Simplify a complex regex in format-search

2 years agoFindAdv: Amend 23fe87bf:
Kornel Benko [Tue, 29 Mar 2022 16:00:13 +0000 (18:00 +0200)]
FindAdv: Amend 23fe87bf:

Write one line of code and produce 10 new errors :(

2 years agoFindAdv: Amend f78ddc49, Added handling of accented chars like \ddot{a}
Kornel Benko [Tue, 29 Mar 2022 15:22:22 +0000 (17:22 +0200)]
FindAdv: Amend f78ddc49, Added handling of accented chars like \ddot{a}

Only important for search without format. The format search was already OK.

2 years agoDoc for inset-forall: how to open branch insets
Scott Kostyshak [Tue, 29 Mar 2022 01:44:40 +0000 (21:44 -0400)]
Doc for inset-forall: how to open branch insets

The functionality was mentioned, but it seems worth it to give the
command explicitly, so it is seen how "Branch:<branch name>" is used
to refer to the specific branch with name <branch name>.

Additionally, tweak a phrase in doc for buffer-forall.

2 years agoFindAdv: Amend 93b6fe2c, forgot about uppercase greek symbols
Kornel Benko [Sun, 27 Mar 2022 11:43:42 +0000 (13:43 +0200)]
FindAdv: Amend 93b6fe2c, forgot about uppercase greek symbols

2 years agoCmake key-tests: Adapted to changed shortcuts
Kornel Benko [Sat, 26 Mar 2022 18:38:55 +0000 (19:38 +0100)]
Cmake key-tests: Adapted to changed shortcuts

2 years agoFindAdv: Use always converted latex macros
Kornel Benko [Sat, 26 Mar 2022 18:32:33 +0000 (19:32 +0100)]
FindAdv: Use always converted latex macros

In some situation the macros are not used with their unicode
representation. For instance all greek characters are used
as \alpha, \beta, ... in the latex output.
For the search it is more convenient to use the corresponding UTF-8 codes.

2 years ago* RELEASE-NOTES
Pavel Sanda [Sat, 26 Mar 2022 10:58:49 +0000 (11:58 +0100)]
* RELEASE-NOTES

2 years ago* bash_completion - outdated syntax
Pavel Sanda [Sat, 26 Mar 2022 10:16:38 +0000 (11:16 +0100)]
* bash_completion - outdated syntax

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008257

2 years agoAdvFind: Adapt a testfile
Kornel Benko [Fri, 25 Mar 2022 22:00:59 +0000 (23:00 +0100)]
AdvFind: Adapt a testfile

Change [a-z]* to [a-z]+ . This omits finds of empty strings.

2 years agoUpdate sk.po
Kornel Benko [Thu, 24 Mar 2022 14:04:01 +0000 (15:04 +0100)]
Update sk.po

Correct some shortcuts

2 years agoIndentation
Kornel Benko [Tue, 22 Mar 2022 09:43:23 +0000 (10:43 +0100)]
Indentation

2 years agoFindAdv: If possible use unicode instead of math command when searching
Kornel Benko [Sun, 20 Mar 2022 10:33:12 +0000 (11:33 +0100)]
FindAdv: If possible use unicode instead of math command when searching

Wrong behaviour before this commit:
Open new lyx-file
insert
unicode-insert 0x025c 0x1d08
Open adv-find dialog
search for unicode 0x025c OK
search for unicode 0x1d08 OK
search with regex for unicode 0x025c OK
search with regex for unicode 0x1d08 ==> NOT OK (because we are searching for \textrevepsilon
and this was mapped to 0x025c

2 years ago Update fr.po
jpc [Thu, 17 Mar 2022 17:26:00 +0000 (18:26 +0100)]
       Update fr.po

2 years agoRevert part of 503c7c16: InsetMathNest:edit resets anchor.
Jean-Marc Lasgouttes [Thu, 17 Mar 2022 15:42:39 +0000 (16:42 +0100)]
Revert part of 503c7c16: InsetMathNest:edit resets anchor.

Fixes bug reported here:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg217265.html

1. Start a new document.
2. Start a math inset and inside put "1+2".
3. Put the cursor to the right of "+".
4. Press <Shift> + L three times. This will select the entire math inset
   (as expected).
5. Press <Shift> + R.

Before 503c7c16, the selection inside the math inset was preserved.
After 503c7c16, it is lost.

The problem is that InsetMathNest does too much for our needs and
resets the anchor (why, I do not know). Therefore, it is better to
duplicate the code.

2 years agoProperly color red checkbox labels in validation (part of #12508)
Juergen Spitzmueller [Thu, 17 Mar 2022 07:47:43 +0000 (08:47 +0100)]
Properly color red checkbox labels in validation (part of #12508)

2 years agoAmend 0f80de308c67
Juergen Spitzmueller [Thu, 17 Mar 2022 07:16:54 +0000 (08:16 +0100)]
Amend 0f80de308c67

2 years ago0 is a plausible intermediate length in positive context (#12508)
Juergen Spitzmueller [Thu, 17 Mar 2022 07:15:09 +0000 (08:15 +0100)]
0 is a plausible intermediate length in positive context (#12508)

2 years agoFindAdv: Generalize substitutions of commands to unicode inside regex
Kornel Benko [Wed, 16 Mar 2022 12:46:24 +0000 (13:46 +0100)]
FindAdv: Generalize substitutions of commands to unicode inside regex

2 years agoAmend f8071449: Added conversion for unicode 0x2bb
Kornel Benko [Tue, 15 Mar 2022 12:01:51 +0000 (13:01 +0100)]
Amend f8071449: Added conversion for unicode 0x2bb

Now regex using \textquoteleft works also without format search.

2 years agoFindAdv: Added conversion for unicode 0x2bb
Kornel Benko [Tue, 15 Mar 2022 09:35:22 +0000 (10:35 +0100)]
FindAdv: Added conversion for unicode 0x2bb

In math-mode \textquoteleft was still not used as unicode
so it was not possible to find the char using regex

2 years agoUpdate sk.po
Kornel Benko [Sun, 13 Mar 2022 22:23:09 +0000 (23:23 +0100)]
Update sk.po

2 years agoAdd toggle feature for all, outer and inner borders
Daniel Ramoeller [Sun, 13 Mar 2022 07:57:49 +0000 (08:57 +0100)]
Add toggle feature for all, outer and inner borders

Fix for bug #12503.

Also some bug fixes for the set inner lines algorithm. See discussion of #12503.

2 years agoFix signal (#12506)
Juergen Spitzmueller [Sun, 13 Mar 2022 09:26:26 +0000 (10:26 +0100)]
Fix signal (#12506)

2 years agoctests: log a fixed issue
Scott Kostyshak [Sat, 12 Mar 2022 12:41:00 +0000 (07:41 -0500)]
ctests: log a fixed issue

2 years agoFixup 12dfdbf0: intercept validate(), not latex()
Jean-Marc Lasgouttes [Thu, 10 Mar 2022 16:10:17 +0000 (17:10 +0100)]
Fixup 12dfdbf0: intercept validate(), not latex()

The fake contents of the inset should be created before validate(), so
that the correct packages are loaded.

2 years agoGet rid of spelling and language marks in info inset
Jean-Marc Lasgouttes [Thu, 10 Mar 2022 12:35:45 +0000 (13:35 +0100)]
Get rid of spelling and language marks in info inset

These are just annoying. Note that the language mark cannot currently
be specified in a layout file, but it is not clear that there is a
need for that. Therefore I used the simple and hackish way.

2 years agoFix crash in InsetInfo when bindings change
Jean-Marc Lasgouttes [Thu, 10 Mar 2022 11:19:44 +0000 (12:19 +0100)]
Fix crash in InsetInfo when bindings change

This is actually a generic InsetInfo issue:

1/ the contents of the inset is computed in updateBuffer, so that it
   is available for drawing but also for latex output (think batch
   export). When it is called, it deletes the existing inner paragraph
   and replaces it by a new one

2/ metrics build a new Row object that represents to paragraph

3/ draw() relies on this information

Now, imagine that updateBuffer() is called after metrics(). This can
happen for many reasons, and does happen here (display a shortcut info
and change the shortcut file from cua to emacs).

This problem has been here forever, but is only visible now that the
(experimental) bookmark display code needs to read the underlying
paragraph id.

The solution is to compute the inset contents at metrics time. This
is done by moving the relevant code to a new standalone build() method
that is called in metrics() but also in latex().

2 years agoFindAdv: Added possibility to search also in deactvated branches
Kornel Benko [Thu, 10 Mar 2022 09:51:02 +0000 (10:51 +0100)]
FindAdv: Added possibility to search also in deactvated branches

To include content of deactivated branches to the searched region
one has to use the lyx-funcion
search-ignore non-output-content true

2 years agoCorrect fix for search-ignore docs.
Pavel Sanda [Tue, 8 Mar 2022 20:50:48 +0000 (21:50 +0100)]
Correct fix for search-ignore docs.

2 years agolyx2lyx: prefix warning messages with "lyx2lyx"
Scott Kostyshak [Tue, 8 Mar 2022 16:53:10 +0000 (11:53 -0500)]
lyx2lyx: prefix warning messages with "lyx2lyx"

Both lyx2lyx and LyX write output to the terminal, and it's helpful
to know which messages are coming from lyx2lyx. For example, before
this commit if we opened a document in LyX that has a newer file format than
lyx2lyx can deal with, we see the following output in the terminal:

  Warning: 619: Format not supported.
  Warning: Quitting.
  Error: Document format failure

The first two lines (the warnings) are output from lyx2lyx, and the
third is output by LyX. This output was particularly confusing
because I first thought "LyX tries to quit if the document is too
new?", but in fact LyX still stays open; it just doesn't open the
document. After this change, the output is now the following:

  lyx2lyx warning: 619: Format not supported.
  lyx2lyx warning: Quitting.
  Error: Document format failure

2 years agoupdateBuffer needs an undo group
Jean-Marc Lasgouttes [Tue, 8 Mar 2022 15:16:50 +0000 (16:16 +0100)]
updateBuffer needs an undo group

Otherwise warning messages appear when loading a file that contains
missing modules, for example (which may require to adjust depths in
document).

2 years agoAmend 3f9e21b8
Enrico Forestieri [Sun, 6 Mar 2022 22:01:56 +0000 (23:01 +0100)]
Amend 3f9e21b8

This avoids a compile error on cygwin.

2 years agoDo not try to access user_defined_bullet with nesting > 3
Juergen Spitzmueller [Sun, 6 Mar 2022 16:27:28 +0000 (17:27 +0100)]
Do not try to access user_defined_bullet with nesting > 3

We only have 4 nesting labels available.

In the workarea, display a fallback label with deeper nesting.

2 years agoctests: uninvert 2 LuaTeX tests fixed on TL21
Scott Kostyshak [Sun, 6 Mar 2022 14:15:16 +0000 (09:15 -0500)]
ctests: uninvert 2 LuaTeX tests fixed on TL21

These exports now pass, and a quick check of the output looks good.

These might have been fixed (although it is just a guess) due to the
following entry in the changelog of luaotfload v3.19:

  A new algorithm for selecting fonts based on font family names
  allows to more reliably load fonts based on their family name.

This commit reverts 2a665dcc.

2 years agoRevert "Don't asssert on (too) deeply nested items"
Juergen Spitzmueller [Sun, 6 Mar 2022 08:48:39 +0000 (09:48 +0100)]
Revert "Don't asssert on (too) deeply nested items"

This reverts commit 44d1756783262ae0af39991e18ec9bcb847fb439.

2 years agoDon't asssert on (too) deeply nested items
Juergen Spitzmueller [Sat, 5 Mar 2022 13:17:37 +0000 (14:17 +0100)]
Don't asssert on (too) deeply nested items

Use a fallback label instead.

2 years agoWhitespace
Juergen Spitzmueller [Sat, 5 Mar 2022 12:45:27 +0000 (13:45 +0100)]
Whitespace