]> git.lyx.org Git - lyx.git/log
lyx.git
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

3 years agoPowerdot examples: work around undefined ref
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.

3 years agoctests: uninvert some unicode ctests
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.

3 years agoDocBook: implement other letter classes (frletter, standard letter, KOMA-Script).
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.

3 years agoDocBook: implement French letter.
Thibaut Cuvelier [Sun, 1 Nov 2020 02:03:38 +0000 (03:03 +0100)]
DocBook: implement French letter.

3 years agoDocBook: mark more presentations as expected failures.
Thibaut Cuvelier [Sun, 1 Nov 2020 01:52:42 +0000 (02:52 +0100)]
DocBook: mark more presentations as expected failures.

3 years agoDocBook: implement Hollywood layout.
Thibaut Cuvelier [Sun, 1 Nov 2020 01:51:49 +0000 (02:51 +0100)]
DocBook: implement Hollywood layout.

3 years agoWininstaller2: Imagemagick should be able to find ghostscript binaries
Eugene Chornyi [Sat, 31 Oct 2020 10:14:53 +0000 (11:14 +0100)]
Wininstaller2: Imagemagick should be able to find ghostscript binaries

3 years agoFoils: set default output to PDF (ps2pdf)
Scott Kostyshak [Sat, 31 Oct 2020 00:22:00 +0000 (20:22 -0400)]
Foils: set default output to PDF (ps2pdf)

We currently specify that dvips be used. This could potentially
change in the future. One issue is that with system fonts XeTeX and
LuaTeX do not correctly rotate pages.

3 years agoctests: invert JASA tests, consistent with Seminar
Scott Kostyshak [Fri, 30 Oct 2020 21:37:23 +0000 (17:37 -0400)]
ctests: invert JASA tests, consistent with Seminar

These tests are failing for the same reason as the Seminar tests.
See 1aa4987b.

3 years agoMake all exectuable python scripts use python3
José Matos [Fri, 30 Oct 2020 18:46:13 +0000 (18:46 +0000)]
Make all exectuable python scripts use python3

This is only relevant on linux/unix if running the scripts from a shell.
These two were the last where the call still used an unversioned python.

This has no reflex on the way that lyx calls the scripts or the python
version used since the #! "shebang line" is ignored.

3 years agoChange the logic of the indentation setting.
Richard Kimberly Heck [Fri, 30 Oct 2020 17:34:36 +0000 (13:34 -0400)]
Change the logic of the indentation setting.

The option here is to NOT indent the paragraph, so make that clear.
As it was, we would set "Indent" to false in the case of paragraphs
that do not permit indentation and then write that, uselessly, to the
LyX file if we wrote any other option (and then keep writing it, even
if other options were removed). Now, we will write it only if it's been
explicitly set.

3 years agoFix warning
Richard Kimberly Heck [Fri, 30 Oct 2020 17:25:15 +0000 (13:25 -0400)]
Fix warning

3 years agoWhitespace
Richard Kimberly Heck [Fri, 30 Oct 2020 16:16:42 +0000 (12:16 -0400)]
Whitespace

3 years agoAddress failures of Seminar examples on new TL20
Scott Kostyshak [Fri, 30 Oct 2020 03:09:59 +0000 (23:09 -0400)]
Address failures of Seminar examples on new TL20

Compilation of our Seminar example file fails on updated TL20. The
maintainer of "Seminar" is not planning to fix the core issue and
states the following (in a private email with permission to quote):

  it is a problem with the new hook management of the current latex.ltx
  seminar is a quite old package and there is no reason to use it with a
  new LaTeX format. It won't be fixed, so the usual way is to use the
  package latexrealease to get the old hook management.

This commit adds a note to the example files explaining the
workaround of exporting to a .tex file and prepending the following
line:

  \RequirePackage[2020-02-02]{latexrelease}

We now invert the relevant tests.

3 years agoDocBook: use the same normalisation for biblio IDs and their references.
Thibaut Cuvelier [Mon, 26 Oct 2020 23:49:26 +0000 (00:49 +0100)]
DocBook: use the same normalisation for biblio IDs and their references.

3 years agoDocBook: more robust list implementation.
Thibaut Cuvelier [Mon, 26 Oct 2020 04:11:59 +0000 (05:11 +0100)]
DocBook: more robust list implementation.

3 years agoDocBook: ensure to have paragraphs in <sidebar>.
Thibaut Cuvelier [Mon, 26 Oct 2020 04:03:22 +0000 (05:03 +0100)]
DocBook: ensure to have paragraphs in <sidebar>.

3 years agoDocBook: fix an issue where parts of list in abstract were duplicated.
Thibaut Cuvelier [Mon, 26 Oct 2020 03:19:11 +0000 (04:19 +0100)]
DocBook: fix an issue where parts of list in abstract were duplicated.

Excerpt from export/latex/lyxbugs-resolved/9633-languagenesting_enumerate_and_lyxcode.

3 years agoDocBook: update test suite.
Thibaut Cuvelier [Mon, 26 Oct 2020 03:13:32 +0000 (04:13 +0100)]
DocBook: update test suite.

Still an unexplained failure: for basic, in the test suite, the .bib file is not found; with the GUI, it is found.

3 years agoDocBook: support for <info> tags in inner sections.
Thibaut Cuvelier [Mon, 26 Oct 2020 02:55:25 +0000 (03:55 +0100)]
DocBook: support for <info> tags in inner sections.

Previously, this code only worked correctly for the root tag.

3 years agoDocBook: implement algorithm floats.
Thibaut Cuvelier [Sun, 25 Oct 2020 14:38:08 +0000 (15:38 +0100)]
DocBook: implement algorithm floats.

Now that https://github.com/docbook/docbook/pull/185 has been merged into DocBook 5.2.

3 years agoDocBook: generate chapter metadata in <info>, for Springer mono.
Thibaut Cuvelier [Thu, 22 Oct 2020 04:28:46 +0000 (06:28 +0200)]
DocBook: generate chapter metadata in <info>, for Springer mono.

3 years agoDocBook: don't consider sectioning items that shouldn't be in TOC for anything sectio...
Thibaut Cuvelier [Thu, 22 Oct 2020 03:24:55 +0000 (05:24 +0200)]
DocBook: don't consider sectioning items that shouldn't be in TOC for anything section-related.

3 years agoDocBook: add DocBookSection parameter for styles that define new sections and impleme...
Thibaut Cuvelier [Wed, 21 Oct 2020 12:54:25 +0000 (14:54 +0200)]
DocBook: add DocBookSection parameter for styles that define new sections and implement argument parameters; improve Springer support.

For elements that should behave like sections (for now, mostly prefaces).

A second paragraph of PartBacktext can only wreak havok: it should start a section, and nothing else (otherwise, it's a real nightmare to implement).

3 years agoConst
Richard Kimberly Heck [Thu, 29 Oct 2020 22:25:25 +0000 (18:25 -0400)]
Const

3 years agoctests: Invert some tests for new ru Additional
Scott Kostyshak [Thu, 29 Oct 2020 20:07:55 +0000 (16:07 -0400)]
ctests: Invert some tests for new ru Additional

These inversions are consistent with ru Math manual tests.

3 years agoUpdate Additional.lyx manual
Yuriy Skalko [Tue, 27 Oct 2020 19:39:30 +0000 (21:39 +0200)]
Update Additional.lyx manual

3 years agoSimplify DispatchResult ctors
Yuriy Skalko [Tue, 27 Oct 2020 12:16:07 +0000 (14:16 +0200)]
Simplify DispatchResult ctors

3 years agoUse nullptr
Yuriy Skalko [Tue, 27 Oct 2020 09:20:27 +0000 (11:20 +0200)]
Use nullptr

3 years agoMove HullType functions declared in InsetMath.h into InsetMath.cpp
Yuriy Skalko [Mon, 26 Oct 2020 18:16:28 +0000 (20:16 +0200)]
Move HullType functions declared in InsetMath.h into InsetMath.cpp

3 years agoUpdate Russian localization
Yuriy Skalko [Thu, 29 Oct 2020 08:14:04 +0000 (10:14 +0200)]
Update Russian localization

3 years agoRussian translation of Additional manual by Henry Chern
Yuriy Skalko [Mon, 26 Oct 2020 22:34:13 +0000 (00:34 +0200)]
Russian translation of Additional manual by Henry Chern

3 years agoCmake build: Fine tuning
Kornel Benko [Wed, 28 Oct 2020 22:12:03 +0000 (23:12 +0100)]
Cmake build: Fine tuning

1.) If building with external iconv, remove remnants of libiconv data
  created if previousy used internal iconv
2.) Remove the variable HELP from cache to enable subsequent builds.
  (Different variable-handling on new cmake (version >= 3.18))
3.) New macro to extract cmake-known-cxx-sts features
4.) Check for CXX11-features only for a subset of possibilities
  known by the used cmake

3 years agoctests: invert unicode failures from menukeys pack
Scott Kostyshak [Wed, 28 Oct 2020 20:35:51 +0000 (16:35 -0400)]
ctests: invert unicode failures from menukeys pack

The issue is already reported and it seems a fix could be released
soon (in which case we will uninvert the tests):

  https://github.com/tweh/menukeys/issues/59

3 years agoctests: ignore zh_CN dvi3_systemF tests
Scott Kostyshak [Wed, 28 Oct 2020 03:05:33 +0000 (23:05 -0400)]
ctests: ignore zh_CN dvi3_systemF tests

These exports had wrong output before, and now (on updated TL20)
they fail with the following error message:

  DVI output is not supported in LuaTeX-ja

3 years agoNo need to specify qt5
Richard Kimberly Heck [Mon, 26 Oct 2020 19:29:11 +0000 (15:29 -0400)]
No need to specify qt5

3 years agoAmend(3) 0ef96e4d: Use correct path for config.h
Kornel Benko [Mon, 26 Oct 2020 01:07:10 +0000 (02:07 +0100)]
Amend(3) 0ef96e4d: Use correct path for config.h

3 years agoAmend(2) 2dbf3515:
Kornel Benko [Sun, 25 Oct 2020 21:44:30 +0000 (22:44 +0100)]
Amend(2) 2dbf3515:

3 years agoMove Windows-specific stuff into os_win32.h
Yuriy Skalko [Sun, 25 Oct 2020 06:54:27 +0000 (08:54 +0200)]
Move Windows-specific stuff into os_win32.h

3 years agoMove include of own header to the top. Fix dependencies
Yuriy Skalko [Sat, 24 Oct 2020 21:47:13 +0000 (00:47 +0300)]
Move include of own header to the top. Fix dependencies

3 years agoAmend(1) 2dbf3515:
Kornel Benko [Sun, 25 Oct 2020 16:31:41 +0000 (17:31 +0100)]
Amend(1) 2dbf3515:

3 years agoUpdate build script again
Richard Kimberly Heck [Sun, 25 Oct 2020 15:54:37 +0000 (11:54 -0400)]
Update build script again

3 years agoUpdate layouts
Richard Kimberly Heck [Sun, 25 Oct 2020 15:43:32 +0000 (11:43 -0400)]
Update layouts

3 years agoDistribution: Added some missing files
Kornel Benko [Sun, 25 Oct 2020 15:38:00 +0000 (16:38 +0100)]
Distribution: Added some missing files

3 years agoDo not honor stdlib-debug when c++library is not gcc's libstdc++
Jean-Marc Lasgouttes [Sat, 24 Oct 2020 16:00:55 +0000 (18:00 +0200)]
Do not honor stdlib-debug when c++library is not gcc's libstdc++

Actually the real difference is that it does not complain about system
boost any more when LLVM's libc++ is used.

3 years agoUpdate Russian localization
Yuriy Skalko [Fri, 23 Oct 2020 08:17:44 +0000 (11:17 +0300)]
Update Russian localization

3 years agoFix obsoleted Qt values
Yuriy Skalko [Fri, 23 Oct 2020 10:40:41 +0000 (13:40 +0300)]
Fix obsoleted Qt values

All new values exist in Qt 4.8.7.

3 years agoSmall refactorings
Yuriy Skalko [Wed, 21 Oct 2020 07:23:43 +0000 (10:23 +0300)]
Small refactorings

3 years agoConstify
Yuriy Skalko [Wed, 21 Oct 2020 08:35:40 +0000 (11:35 +0300)]
Constify

3 years agotypo
Richard Kimberly Heck [Sun, 25 Oct 2020 03:24:28 +0000 (23:24 -0400)]
typo