]>
git.lyx.org Git - features.git/log
Richard Kimberly Heck [Tue, 17 Nov 2020 07:33:41 +0000 (02:33 -0500)]
Fix warnings
Richard Kimberly Heck [Tue, 17 Nov 2020 07:30:04 +0000 (02:30 -0500)]
Fix warning
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.
Richard Kimberly Heck [Tue, 17 Nov 2020 06:37:09 +0000 (01:37 -0500)]
Comment
Richard Kimberly Heck [Tue, 17 Nov 2020 06:21:57 +0000 (01:21 -0500)]
Renaming
Richard Kimberly Heck [Tue, 17 Nov 2020 06:15:45 +0000 (01:15 -0500)]
nullptr
Richard Kimberly Heck [Tue, 17 Nov 2020 06:08:35 +0000 (01:08 -0500)]
Move dump code to after we are done
Richard Kimberly Heck [Fri, 13 Nov 2020 02:06:34 +0000 (21:06 -0500)]
Quash error message when we are loading.
Richard Kimberly Heck [Fri, 13 Nov 2020 01:31:13 +0000 (20:31 -0500)]
Another comment
Richard Kimberly Heck [Fri, 13 Nov 2020 01:13:19 +0000 (20:13 -0500)]
Fix comments
Richard Kimberly Heck [Fri, 13 Nov 2020 00:59:45 +0000 (19:59 -0500)]
Remove now useless routine
Richard Kimberly Heck [Fri, 13 Nov 2020 00:58:30 +0000 (19:58 -0500)]
Fix iterator in InsetInclude to be as it was previously.
Richard Kimberly Heck [Fri, 13 Nov 2020 00:57:45 +0000 (19:57 -0500)]
Update script a bit.
Richard Kimberly Heck [Fri, 13 Nov 2020 00:56:08 +0000 (19:56 -0500)]
Remove now unneeded headers.
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.
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.
Richard Kimberly Heck [Thu, 12 Nov 2020 23:03:36 +0000 (18:03 -0500)]
Move updateMacros code into InsetMathMacroTemplate.
Richard Kimberly Heck [Thu, 12 Nov 2020 22:48:51 +0000 (17:48 -0500)]
Move updateMacros code to InsetInclude.
Richard Kimberly Heck [Thu, 12 Nov 2020 22:43:57 +0000 (17:43 -0500)]
Move code to InsetMathHull::updateMacros.
Richard Kimberly Heck [Thu, 12 Nov 2020 22:20:48 +0000 (17:20 -0500)]
Move updateMacros code into InsetTabular
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.
Richard Kimberly Heck [Fri, 13 Nov 2020 00:10:24 +0000 (19:10 -0500)]
Send all updateMacro stuff through the insets.
Richard Kimberly Heck [Thu, 12 Nov 2020 21:16:15 +0000 (16:16 -0500)]
Start moving updateMacros code into the insets.
Richard Kimberly Heck [Thu, 12 Nov 2020 23:05:40 +0000 (18:05 -0500)]
nullptr
Richard Kimberly Heck [Thu, 12 Nov 2020 21:30:03 +0000 (16:30 -0500)]
nullptr
Richard Kimberly Heck [Thu, 12 Nov 2020 21:19:46 +0000 (16:19 -0500)]
Temporary script for testing math export.
Yuriy Skalko [Thu, 12 Nov 2020 22:48:11 +0000 (00:48 +0200)]
Support `optional` type
Richard Kimberly Heck [Thu, 12 Nov 2020 03:47:57 +0000 (22:47 -0500)]
Redo the getMacroDefinitions routine.
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 )
Richard Kimberly Heck [Wed, 11 Nov 2020 16:58:30 +0000 (11:58 -0500)]
MacroScope --> MacroDefinition
Richard Kimberly Heck [Wed, 11 Nov 2020 16:57:05 +0000 (11:57 -0500)]
Renaming
Richard Kimberly Heck [Mon, 9 Nov 2020 22:29:27 +0000 (17:29 -0500)]
Renaming
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 )
Richard Kimberly Heck [Mon, 9 Nov 2020 21:59:04 +0000 (16:59 -0500)]
More comments and minor code cleanup
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 )
Richard Kimberly Heck [Mon, 9 Nov 2020 21:36:20 +0000 (16:36 -0500)]
More comments and minor cleanup
Richard Kimberly Heck [Mon, 9 Nov 2020 20:56:01 +0000 (15:56 -0500)]
Some comments and some minor re-organization
Richard Kimberly Heck [Mon, 9 Nov 2020 20:39:20 +0000 (15:39 -0500)]
Properly implement the singleton pattern
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.
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 .
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.
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)
Pavel Sanda [Mon, 9 Nov 2020 14:06:42 +0000 (15:06 +0100)]
Fix Riki's contact
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.
Yuriy Skalko [Sun, 8 Nov 2020 21:26:36 +0000 (23:26 +0200)]
Simplify operator== for ParConstIterator
Comment out it while it is unused.
Yuriy Skalko [Thu, 5 Nov 2020 10:01:21 +0000 (12:01 +0200)]
Whitespace & renaming
Yuriy Skalko [Wed, 4 Nov 2020 10:04:39 +0000 (12:04 +0200)]
MacroData refactoring
Yuriy Skalko [Wed, 4 Nov 2020 09:27:08 +0000 (11:27 +0200)]
Improve structure of updateMacros
Richard Kimberly Heck [Fri, 6 Nov 2020 16:30:02 +0000 (11:30 -0500)]
Remove dead comment
Richard Kimberly Heck [Fri, 6 Nov 2020 16:23:52 +0000 (11:23 -0500)]
Move trivial constructors into header. Remove unimplemented one.
Yuriy Skalko [Fri, 30 Oct 2020 21:49:21 +0000 (23:49 +0200)]
Update Russian localization
Thibaut Cuvelier [Thu, 5 Nov 2020 04:35:53 +0000 (05:35 +0100)]
DocBook: mark more tests to be ignored.
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.
Thibaut Cuvelier [Thu, 5 Nov 2020 02:10:37 +0000 (03:10 +0100)]
DocBook: polyglossia test now works.
Thibaut Cuvelier [Thu, 5 Nov 2020 01:42:03 +0000 (02:42 +0100)]
DocBook: many fixes for the user guide.
Thibaut Cuvelier [Thu, 5 Nov 2020 01:25:30 +0000 (02:25 +0100)]
DocBook: exclude the Math docs from the tests.
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.
Thibaut Cuvelier [Thu, 5 Nov 2020 01:06:31 +0000 (02:06 +0100)]
DocBook: EmbeddedObjects is too complex to have a truly valid output.
Thibaut Cuvelier [Thu, 5 Nov 2020 01:03:34 +0000 (02:03 +0100)]
DocBook: ensure that tables do not get wrapped in a paragraph.
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).
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.
Thibaut Cuvelier [Wed, 4 Nov 2020 23:02:59 +0000 (00:02 +0100)]
DocBook: don't consider bridgeheads for abstracts.
Thibaut Cuvelier [Wed, 4 Nov 2020 21:43:05 +0000 (22:43 +0100)]
DocBook: implement AMS articles.
Thibaut Cuvelier [Wed, 4 Nov 2020 21:36:27 +0000 (22:36 +0100)]
DocBook: missing inverted tests.
Thibaut Cuvelier [Wed, 4 Nov 2020 21:29:02 +0000 (22:29 +0100)]
DocBook: implement AMS book.
Thibaut Cuvelier [Wed, 4 Nov 2020 17:50:45 +0000 (18:50 +0100)]
DocBook: basic implementation of recipe book.
Thibaut Cuvelier [Wed, 4 Nov 2020 16:31:22 +0000 (17:31 +0100)]
DocBook: ignore other KOMA-Script letters.
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).
Jean-Marc Lasgouttes [Tue, 3 Nov 2020 15:22:20 +0000 (16:22 +0100)]
Fixup
ce526607 again: last-minute blunder
Jean-Marc Lasgouttes [Tue, 3 Nov 2020 14:11:06 +0000 (15:11 +0100)]
Fixup
6394dd89 : small cleanups
Jean-Marc Lasgouttes [Tue, 3 Nov 2020 14:10:19 +0000 (15:10 +0100)]
Indentation
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.
Richard Kimberly Heck [Mon, 2 Nov 2020 22:36:58 +0000 (17:36 -0500)]
StepMasterCounter --> StepParentCounter
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!
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'.
Yuriy Skalko [Mon, 2 Nov 2020 00:06:30 +0000 (02:06 +0200)]
Use default member initialization in OutputParams
Richard Kimberly Heck [Mon, 2 Nov 2020 17:03:37 +0000 (12:03 -0500)]
Fix a number of signedness warnings
Richard Kimberly Heck [Mon, 2 Nov 2020 16:45:09 +0000 (11:45 -0500)]
whitespace and style
Richard Kimberly Heck [Mon, 2 Nov 2020 16:38:52 +0000 (11:38 -0500)]
whitespace
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.
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
Yuriy Skalko [Sun, 1 Nov 2020 20:39:21 +0000 (22:39 +0200)]
Simplify bformat
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.
Thibaut Cuvelier [Mon, 2 Nov 2020 02:11:28 +0000 (03:11 +0100)]
DocBook: more tests to be ignored.
Thibaut Cuvelier [Mon, 2 Nov 2020 02:03:24 +0000 (03:03 +0100)]
DocBook: implement DIN-Brief.
Thibaut Cuvelier [Mon, 2 Nov 2020 01:22:48 +0000 (02:22 +0100)]
DocBook: ignore obsolete document layouts, at least for now.
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 .*.
Richard Kimberly Heck [Sun, 1 Nov 2020 23:08:18 +0000 (18:08 -0500)]
Comment updates
Richard Kimberly Heck [Sun, 1 Nov 2020 22:37:19 +0000 (17:37 -0500)]
Some constness, following Yuriy
Yuriy Skalko [Sun, 1 Nov 2020 12:00:49 +0000 (14:00 +0200)]
Constify LaTeXFont
Yuriy Skalko [Sun, 1 Nov 2020 11:34:49 +0000 (13:34 +0200)]
Use default member initialization
Yuriy Skalko [Sun, 1 Nov 2020 11:05:14 +0000 (13:05 +0200)]
Use bool literals
Yuriy Skalko [Sun, 1 Nov 2020 10:57:14 +0000 (12:57 +0200)]
Constify InsetQuotesParams
Yuriy Skalko [Sat, 31 Oct 2020 17:18:51 +0000 (19:18 +0200)]
Match header/source function argument naming
Yuriy Skalko [Sat, 31 Oct 2020 13:09:46 +0000 (15:09 +0200)]
Use const references
Yuriy Skalko [Fri, 30 Oct 2020 21:27:44 +0000 (23:27 +0200)]
Use default member initialization in InsetLayout
Yuriy Skalko [Sat, 31 Oct 2020 15:13:52 +0000 (17:13 +0200)]
Simplify with std::map::insert
Scott Kostyshak [Sun, 1 Nov 2020 18:27:43 +0000 (13:27 -0500)]
Powerdot examples: work around undefined ref
The hook that defines the "lastslide" label is interfered with for
some reason on an updated TeX Live 2020. We thus avoid referencing
the label and instead show only the current slide number on each
slide. We leave instructions in the preamble for how to get back the
previous behavior if desired.
Scott Kostyshak [Sun, 1 Nov 2020 18:26:03 +0000 (13:26 -0500)]
ctests: uninvert some unicode ctests
Thanks to an update of the "menukey" package, these exports now
succeed. For more information, see
33228178 .
Thibaut Cuvelier [Sun, 1 Nov 2020 02:58:25 +0000 (03:58 +0100)]
DocBook: implement other letter classes (frletter, standard letter, KOMA-Script).
I gave up on G-Brief, it's too far from the other classes.