]> git.lyx.org Git - features.git/log
features.git
3 years agoComments cleanup/updateMacros4
Richard Kimberly Heck [Sun, 6 Dec 2020 00:48:16 +0000 (19:48 -0500)]
Comments

3 years agoUpdate test script.
Richard Kimberly Heck [Thu, 3 Dec 2020 02:46:52 +0000 (21:46 -0500)]
Update test script.

3 years agoBig comment
Richard Kimberly Heck [Sat, 28 Nov 2020 15:02:52 +0000 (10:02 -0500)]
Big comment

3 years agoFix warnings
Richard Kimberly Heck [Tue, 17 Nov 2020 07:33:41 +0000 (02:33 -0500)]
Fix warnings

3 years agoFix warning
Richard Kimberly Heck [Tue, 17 Nov 2020 07:30:04 +0000 (02:30 -0500)]
Fix warning

3 years agoNo problems in two years. Do not need to run updateMacros there.
Richard Kimberly Heck [Tue, 17 Nov 2020 06:39:59 +0000 (01:39 -0500)]
No problems in two years. Do not need to run updateMacros there.

3 years agoComment
Richard Kimberly Heck [Tue, 17 Nov 2020 06:37:09 +0000 (01:37 -0500)]
Comment

3 years agoRenaming
Richard Kimberly Heck [Tue, 17 Nov 2020 06:21:57 +0000 (01:21 -0500)]
Renaming

3 years agonullptr
Richard Kimberly Heck [Tue, 17 Nov 2020 06:15:45 +0000 (01:15 -0500)]
nullptr

3 years agoMove dump code to after we are done
Richard Kimberly Heck [Tue, 17 Nov 2020 06:08:35 +0000 (01:08 -0500)]
Move dump code to after we are done

3 years agoQuash error message when we are loading.
Richard Kimberly Heck [Fri, 13 Nov 2020 02:06:34 +0000 (21:06 -0500)]
Quash error message when we are loading.

3 years agoAnother comment
Richard Kimberly Heck [Fri, 13 Nov 2020 01:31:13 +0000 (20:31 -0500)]
Another comment

3 years agoFix comments
Richard Kimberly Heck [Fri, 13 Nov 2020 01:13:19 +0000 (20:13 -0500)]
Fix comments

3 years agoRemove now useless routine
Richard Kimberly Heck [Fri, 13 Nov 2020 00:59:45 +0000 (19:59 -0500)]
Remove now useless routine

3 years agoFix iterator in InsetInclude to be as it was previously.
Richard Kimberly Heck [Fri, 13 Nov 2020 00:58:30 +0000 (19:58 -0500)]
Fix iterator in InsetInclude to be as it was previously.

3 years agoUpdate script a bit.
Richard Kimberly Heck [Fri, 13 Nov 2020 00:57:45 +0000 (19:57 -0500)]
Update script a bit.

3 years agoRemove now unneeded headers.
Richard Kimberly Heck [Fri, 13 Nov 2020 00:56:08 +0000 (19:56 -0500)]
Remove now unneeded headers.

3 years agoMove updateMacros code to Paragraph class.
Richard Kimberly Heck [Fri, 13 Nov 2020 00:26:44 +0000 (19:26 -0500)]
Move updateMacros code to Paragraph class.

My dream is that this will eventually allow us to run updateMacros
only on a Paragraph when, say, a character is entered.

3 years agoNow just use the Inset::updateMacros method.
Richard Kimberly Heck [Thu, 12 Nov 2020 23:07:35 +0000 (18:07 -0500)]
Now just use the Inset::updateMacros method.

I did all this step by step so (a) I could check the output along
the way and (b) so it will be easier to isolate problems if those
should arise.

3 years agoMove updateMacros code into InsetMathMacroTemplate.
Richard Kimberly Heck [Thu, 12 Nov 2020 23:03:36 +0000 (18:03 -0500)]
Move updateMacros code into InsetMathMacroTemplate.

3 years agoMove updateMacros code to InsetInclude.
Richard Kimberly Heck [Thu, 12 Nov 2020 22:48:51 +0000 (17:48 -0500)]
Move updateMacros code to InsetInclude.

3 years agoMove code to InsetMathHull::updateMacros.
Richard Kimberly Heck [Thu, 12 Nov 2020 22:43:57 +0000 (17:43 -0500)]
Move code to InsetMathHull::updateMacros.

3 years agoMove updateMacros code into InsetTabular
Richard Kimberly Heck [Thu, 12 Nov 2020 22:20:48 +0000 (17:20 -0500)]
Move updateMacros code into InsetTabular

3 years agoMove some processing from the loop into the main InsetText routine.
Richard Kimberly Heck [Thu, 12 Nov 2020 21:33:28 +0000 (16:33 -0500)]
Move some processing from the loop into the main InsetText routine.

3 years agoSend all updateMacro stuff through the insets.
Richard Kimberly Heck [Fri, 13 Nov 2020 00:10:24 +0000 (19:10 -0500)]
Send all updateMacro stuff through the insets.

3 years agoStart moving updateMacros code into the insets.
Richard Kimberly Heck [Thu, 12 Nov 2020 21:16:15 +0000 (16:16 -0500)]
Start moving updateMacros code into the insets.

3 years agonullptr
Richard Kimberly Heck [Thu, 12 Nov 2020 23:05:40 +0000 (18:05 -0500)]
nullptr

3 years agonullptr
Richard Kimberly Heck [Thu, 12 Nov 2020 21:30:03 +0000 (16:30 -0500)]
nullptr

3 years agoTemporary script for testing math export.
Richard Kimberly Heck [Thu, 12 Nov 2020 21:19:46 +0000 (16:19 -0500)]
Temporary script for testing math export.

3 years agoSupport `optional` type
Yuriy Skalko [Thu, 12 Nov 2020 22:48:11 +0000 (00:48 +0200)]
Support `optional` type

3 years agoRedo the getMacroDefinitions routine.
Richard Kimberly Heck [Thu, 12 Nov 2020 03:47:57 +0000 (22:47 -0500)]
Redo the getMacroDefinitions routine.

3 years agoRefactor the macro tables in Buffer.
Richard Kimberly Heck [Mon, 9 Nov 2020 23:29:26 +0000 (18:29 -0500)]
Refactor the macro tables in Buffer.

The use of maps of maps of structs is beyond confusing. Replace that
with a class that hides at least some of the complexity. There is
probably more that could be done along the same lines.

(Note: This fixes a thinko but is otherwise the same as the previous
commit. So it rewrites history.)

(cherry picked from commit dbf24b113ebb559d91b20fd84c7de1b96684d752)

3 years agoMacroScope --> MacroDefinition
Richard Kimberly Heck [Wed, 11 Nov 2020 16:58:30 +0000 (11:58 -0500)]
MacroScope --> MacroDefinition

3 years agoRenaming
Richard Kimberly Heck [Wed, 11 Nov 2020 16:57:05 +0000 (11:57 -0500)]
Renaming

3 years agoRenaming
Richard Kimberly Heck [Mon, 9 Nov 2020 22:29:27 +0000 (17:29 -0500)]
Renaming

3 years agoSome comments, and some conditional code to dump the macro table.
Richard Kimberly Heck [Mon, 9 Nov 2020 22:27:57 +0000 (17:27 -0500)]
Some comments, and some conditional code to dump the macro table.

(cherry picked from commit 30415c80f7934580ce2e1fdf0b5f84b5faeba9da)

3 years agoMore comments and minor code cleanup
Richard Kimberly Heck [Mon, 9 Nov 2020 21:59:04 +0000 (16:59 -0500)]
More comments and minor code cleanup

3 years agoSurely we do not need to clear objects that are about to be destroyed
Richard Kimberly Heck [Mon, 9 Nov 2020 21:37:18 +0000 (16:37 -0500)]
Surely we do not need to clear objects that are about to be destroyed

(cherry picked from commit efe55ba6a700ed9eec836d9bc23fd5756cfdcd47)

3 years agoMore comments and minor cleanup
Richard Kimberly Heck [Mon, 9 Nov 2020 21:36:20 +0000 (16:36 -0500)]
More comments and minor cleanup

3 years agoSome comments and some minor re-organization
Richard Kimberly Heck [Mon, 9 Nov 2020 20:56:01 +0000 (15:56 -0500)]
Some comments and some minor re-organization

3 years agoProperly implement the singleton pattern
Richard Kimberly Heck [Mon, 9 Nov 2020 20:39:20 +0000 (15:39 -0500)]
Properly implement the singleton pattern

3 years agoThe isMacroScope method is just !producesOutput (or should be).
Richard Kimberly Heck [Fri, 6 Nov 2020 16:41:20 +0000 (11:41 -0500)]
The isMacroScope method is just !producesOutput (or should be).

So remove that, and restructure the code a bit.

3 years agoRevert "Improve structure of updateMacros"
Richard Kimberly Heck [Wed, 11 Nov 2020 16:24:59 +0000 (11:24 -0500)]
Revert "Improve structure of updateMacros"

The problem here is that the check against TEXT_CODE only
catches InsetText, and not its subclasses. Same for the check
against MATH_HULL_CODE. So there is reason not to check codes
here.

This reverts commit 5a54ccfa87057fd3220d7193b40ac2dd37a9e6e1.

3 years agoFixup aeb51be9: set current font correctly when editing inset
Jean-Marc Lasgouttes [Tue, 10 Nov 2020 14:39:47 +0000 (15:39 +0100)]
Fixup aeb51be9: set current font correctly when editing inset

When using InsetText::edit(), invoke Cursor::setCurrentFont (note that
editXY does it already). It is a good idea in general, especially
after commit 411333fa95, which sets languagecorrectly in ERT.

This allows to comment out (again!) the trick added to fix ticket #9042.

3 years agoMake sure that Cursor::setCurrentFont sets LaTeX language in ERT&friends
Jean-Marc Lasgouttes [Tue, 10 Nov 2020 12:47:53 +0000 (13:47 +0100)]
Make sure that Cursor::setCurrentFont sets LaTeX language in ERT&friends

Fix issue when language is set to document language instead of
latex_language in ERT and pass thru layouts.

To trigger the issue
1/ select all in a ERT inset
2/ type "abc"
3/ look at code in code preview pane

==> result: the "a" is in document language, the "bc" in LaTeX language
(as should be)

3 years agoFix Riki's contact
Pavel Sanda [Mon, 9 Nov 2020 14:06:42 +0000 (15:06 +0100)]
Fix Riki's contact

3 years agoCustomization.lyx: Import and review changes from Phil Netro.
Pavel Sanda [Mon, 9 Nov 2020 13:42:25 +0000 (14:42 +0100)]
Customization.lyx: Import and review changes from Phil Netro.

Chap. 1 & 2.

3 years agoSimplify operator== for ParConstIterator
Yuriy Skalko [Sun, 8 Nov 2020 21:26:36 +0000 (23:26 +0200)]
Simplify operator== for ParConstIterator

Comment out it while it is unused.

3 years agoWhitespace & renaming
Yuriy Skalko [Thu, 5 Nov 2020 10:01:21 +0000 (12:01 +0200)]
Whitespace & renaming

3 years agoMacroData refactoring
Yuriy Skalko [Wed, 4 Nov 2020 10:04:39 +0000 (12:04 +0200)]
MacroData refactoring

3 years agoImprove structure of updateMacros
Yuriy Skalko [Wed, 4 Nov 2020 09:27:08 +0000 (11:27 +0200)]
Improve structure of updateMacros

3 years agoRemove dead comment
Richard Kimberly Heck [Fri, 6 Nov 2020 16:30:02 +0000 (11:30 -0500)]
Remove dead comment

3 years agoMove trivial constructors into header. Remove unimplemented one.
Richard Kimberly Heck [Fri, 6 Nov 2020 16:23:52 +0000 (11:23 -0500)]
Move trivial constructors into header. Remove unimplemented one.

3 years agoUpdate Russian localization
Yuriy Skalko [Fri, 30 Oct 2020 21:49:21 +0000 (23:49 +0200)]
Update Russian localization

3 years agoDocBook: mark more tests to be ignored.
Thibaut Cuvelier [Thu, 5 Nov 2020 04:35:53 +0000 (05:35 +0100)]
DocBook: mark more tests to be ignored.

3 years agoDocBook: remove special options from InsetGraphics.cpp
Thibaut Cuvelier [Thu, 5 Nov 2020 04:35:34 +0000 (05:35 +0100)]
DocBook: remove special options from InsetGraphics.cpp

This was not really a useful attribute for DocBook, or it must be parsed beforehand.

3 years agoDocBook: polyglossia test now works.
Thibaut Cuvelier [Thu, 5 Nov 2020 02:10:37 +0000 (03:10 +0100)]
DocBook: polyglossia test now works.

3 years agoDocBook: many fixes for the user guide.
Thibaut Cuvelier [Thu, 5 Nov 2020 01:42:03 +0000 (02:42 +0100)]
DocBook: many fixes for the user guide.

3 years agoDocBook: exclude the Math docs from the tests.
Thibaut Cuvelier [Thu, 5 Nov 2020 01:25:30 +0000 (02:25 +0100)]
DocBook: exclude the Math docs from the tests.

3 years agoMathML: make InsetMathXArrow generate valid XML entities when required.
Thibaut Cuvelier [Thu, 5 Nov 2020 01:18:47 +0000 (02:18 +0100)]
MathML: make InsetMathXArrow generate valid XML entities when required.

Before this, it only supported HTML entities.

3 years agoDocBook: EmbeddedObjects is too complex to have a truly valid output.
Thibaut Cuvelier [Thu, 5 Nov 2020 01:06:31 +0000 (02:06 +0100)]
DocBook: EmbeddedObjects is too complex to have a truly valid output.

3 years agoDocBook: ensure that tables do not get wrapped in a paragraph.
Thibaut Cuvelier [Thu, 5 Nov 2020 01:03:34 +0000 (02:03 +0100)]
DocBook: ensure that tables do not get wrapped in a paragraph.

3 years agoDocBook: a previous patch has unexpectedly nice consequences!
Thibaut Cuvelier [Thu, 5 Nov 2020 00:45:40 +0000 (01:45 +0100)]
DocBook: a previous patch has unexpectedly nice consequences!

Tests that used to fail now pass (the title structure is now better handled).

3 years agoDocBook: mark nested sidebars as allowed.
Thibaut Cuvelier [Wed, 4 Nov 2020 23:27:29 +0000 (00:27 +0100)]
DocBook: mark nested sidebars as allowed.

This is mostly for shapepar support, in a rare situation. Fixing this would create a lot of special cases in output_docbook.cpp, i.e. fixing the issue (which will barely happen in real life) would make maintenance much harder.

3 years agoDocBook: don't consider bridgeheads for abstracts.
Thibaut Cuvelier [Wed, 4 Nov 2020 23:02:59 +0000 (00:02 +0100)]
DocBook: don't consider bridgeheads for abstracts.

3 years agoDocBook: implement AMS articles.
Thibaut Cuvelier [Wed, 4 Nov 2020 21:43:05 +0000 (22:43 +0100)]
DocBook: implement AMS articles.

3 years agoDocBook: missing inverted tests.
Thibaut Cuvelier [Wed, 4 Nov 2020 21:36:27 +0000 (22:36 +0100)]
DocBook: missing inverted tests.

3 years agoDocBook: implement AMS book.
Thibaut Cuvelier [Wed, 4 Nov 2020 21:29:02 +0000 (22:29 +0100)]
DocBook: implement AMS book.

3 years agoDocBook: basic implementation of recipe book.
Thibaut Cuvelier [Wed, 4 Nov 2020 17:50:45 +0000 (18:50 +0100)]
DocBook: basic implementation of recipe book.

3 years agoDocBook: ignore other KOMA-Script letters.
Thibaut Cuvelier [Wed, 4 Nov 2020 16:31:22 +0000 (17:31 +0100)]
DocBook: ignore other KOMA-Script letters.

3 years agoDocBook: implement Braille.
Thibaut Cuvelier [Wed, 4 Nov 2020 04:06:56 +0000 (05:06 +0100)]
DocBook: implement Braille.

Basically, nothing to do: the conversion must be performed by the DocBook-processing agent (which is not a standard feature).

3 years agoFixup ce526607 again: last-minute blunder
Jean-Marc Lasgouttes [Tue, 3 Nov 2020 15:22:20 +0000 (16:22 +0100)]
Fixup ce526607 again: last-minute blunder

3 years agoFixup 6394dd89: small cleanups
Jean-Marc Lasgouttes [Tue, 3 Nov 2020 14:11:06 +0000 (15:11 +0100)]
Fixup 6394dd89: small cleanups

3 years agoIndentation
Jean-Marc Lasgouttes [Tue, 3 Nov 2020 14:10:19 +0000 (15:10 +0100)]
Indentation

3 years agoMake it possible to select C++ standard with autoconf
Jean-Marc Lasgouttes [Mon, 2 Nov 2020 16:40:29 +0000 (17:40 +0100)]
Make it possible to select C++ standard with autoconf

Introduce new configure option --enable-cxx-mode=MODE, which allows to
force a C++ version. The default is {14,11}, which means that C++14 is
chosen if it is supported, and C++11 will be selected as a fallback.

Using --enable-cxx-mode=11 ensures that LyX compiles correctly
with an older C++11 compiler.

3 years agoStepMasterCounter --> StepParentCounter
Richard Kimberly Heck [Mon, 2 Nov 2020 22:36:58 +0000 (17:36 -0500)]
StepMasterCounter --> StepParentCounter

3 years agoRevert "Fix a number of signedness warnings"
Richard Kimberly Heck [Mon, 2 Nov 2020 22:09:13 +0000 (17:09 -0500)]
Revert "Fix a number of signedness warnings"

This reverts commit e8a28c33c564784899ecd427c06d1fe8678bfc07.

I was not aware that we used negative numbers for author IDs!

3 years agoRemove 'slave' terminology from Counters.cpp.
Richard Kimberly Heck [Mon, 2 Nov 2020 22:03:42 +0000 (17:03 -0500)]
Remove 'slave' terminology from Counters.cpp.

And with it, 'master'. That is less problematic by itself (so I'm not
worried about 'master document'), but here it doesn't make a lot of
sense without 'slave'.

3 years agoUse default member initialization in OutputParams
Yuriy Skalko [Mon, 2 Nov 2020 00:06:30 +0000 (02:06 +0200)]
Use default member initialization in OutputParams

3 years agoFix a number of signedness warnings
Richard Kimberly Heck [Mon, 2 Nov 2020 17:03:37 +0000 (12:03 -0500)]
Fix a number of signedness warnings

3 years agowhitespace and style
Richard Kimberly Heck [Mon, 2 Nov 2020 16:45:09 +0000 (11:45 -0500)]
whitespace and style

3 years agowhitespace
Richard Kimberly Heck [Mon, 2 Nov 2020 16:38:52 +0000 (11:38 -0500)]
whitespace

3 years agoMerge tests in invertedTests, proposed by Kornel
Thibaut Cuvelier [Mon, 2 Nov 2020 14:39:25 +0000 (15:39 +0100)]
Merge tests in invertedTests, proposed by Kornel

This should improve performance when building LyX.

3 years agoCmake tests: Do not remove temporary data while debugging
Kornel Benko [Mon, 2 Nov 2020 12:12:56 +0000 (13:12 +0100)]
Cmake tests: Do not remove temporary data while debugging

The debug mode is set with the environment LYX_DEBUG_LATEX
 $ export LYX_DEBUG_LATEX=1

The downside: From time to time the need to remove the superfluous dirs
 $ cd build-dir
 $ find autotests/out-home -name AbC_\* | xargs rm -rf

3 years agoSimplify bformat
Yuriy Skalko [Sun, 1 Nov 2020 20:39:21 +0000 (22:39 +0200)]
Simplify bformat

3 years agoDocBook: implement svmult.
Thibaut Cuvelier [Mon, 2 Nov 2020 02:44:51 +0000 (03:44 +0100)]
DocBook: implement svmult.

More generally, ensures that paragraphs in abstracts do not have something else configured.

A major problem in making the layout more useful is that article titles are not supposed to be in TOC.

3 years agoDocBook: more tests to be ignored.
Thibaut Cuvelier [Mon, 2 Nov 2020 02:11:28 +0000 (03:11 +0100)]
DocBook: more tests to be ignored.

3 years agoDocBook: implement DIN-Brief.
Thibaut Cuvelier [Mon, 2 Nov 2020 02:03:24 +0000 (03:03 +0100)]
DocBook: implement DIN-Brief.

3 years agoDocBook: ignore obsolete document layouts, at least for now.
Thibaut Cuvelier [Mon, 2 Nov 2020 01:22:48 +0000 (02:22 +0100)]
DocBook: ignore obsolete document layouts, at least for now.

3 years agoDocBook: write correctly the lists of tests that are expected to fail, with the langu...
Thibaut Cuvelier [Mon, 2 Nov 2020 00:51:25 +0000 (01:51 +0100)]
DocBook: write correctly the lists of tests that are expected to fail, with the language instead of .*.

3 years agoComment updates
Richard Kimberly Heck [Sun, 1 Nov 2020 23:08:18 +0000 (18:08 -0500)]
Comment updates

3 years agoSome constness, following Yuriy
Richard Kimberly Heck [Sun, 1 Nov 2020 22:37:19 +0000 (17:37 -0500)]
Some constness, following Yuriy

3 years agoConstify LaTeXFont
Yuriy Skalko [Sun, 1 Nov 2020 12:00:49 +0000 (14:00 +0200)]
Constify LaTeXFont

3 years agoUse default member initialization
Yuriy Skalko [Sun, 1 Nov 2020 11:34:49 +0000 (13:34 +0200)]
Use default member initialization

3 years agoUse bool literals
Yuriy Skalko [Sun, 1 Nov 2020 11:05:14 +0000 (13:05 +0200)]
Use bool literals

3 years agoConstify InsetQuotesParams
Yuriy Skalko [Sun, 1 Nov 2020 10:57:14 +0000 (12:57 +0200)]
Constify InsetQuotesParams

3 years agoMatch header/source function argument naming
Yuriy Skalko [Sat, 31 Oct 2020 17:18:51 +0000 (19:18 +0200)]
Match header/source function argument naming

3 years agoUse const references
Yuriy Skalko [Sat, 31 Oct 2020 13:09:46 +0000 (15:09 +0200)]
Use const references

3 years agoUse default member initialization in InsetLayout
Yuriy Skalko [Fri, 30 Oct 2020 21:27:44 +0000 (23:27 +0200)]
Use default member initialization in InsetLayout

3 years agoSimplify with std::map::insert
Yuriy Skalko [Sat, 31 Oct 2020 15:13:52 +0000 (17:13 +0200)]
Simplify with std::map::insert