]> git.lyx.org Git - lyx.git/log
lyx.git
4 years agoVarious fixes suggested by cppcheck
Jean-Marc Lasgouttes [Fri, 13 Sep 2019 20:36:53 +0000 (22:36 +0200)]
Various fixes suggested by cppcheck

Rename local variables the hide other ones: get_binary_path, find_python_binary

Use unsigned int for conversion from hex using sscanf().

FileName::checksum(), parsecmd (SystemCall): use explcit values rather
than variable which value is known.

4 years agoForgot to test aspell and hunspell support
Jean-Marc Lasgouttes [Fri, 13 Sep 2019 16:59:11 +0000 (18:59 +0200)]
Forgot to test aspell and hunspell support

4 years agoUse const &
Richard Kimberly Heck [Fri, 13 Sep 2019 15:49:29 +0000 (11:49 -0400)]
Use const &

4 years agoFollow some of the performance advice from cppcheck
Jean-Marc Lasgouttes [Fri, 13 Sep 2019 14:23:49 +0000 (16:23 +0200)]
Follow some of the performance advice from cppcheck

Most of that is changing string to string const &.

4 years agoFix bug #11619.
Richard Kimberly Heck [Thu, 12 Sep 2019 02:13:58 +0000 (22:13 -0400)]
Fix bug #11619.

4 years agoFix nullptr warnings
Richard Kimberly Heck [Thu, 12 Sep 2019 02:13:25 +0000 (22:13 -0400)]
Fix nullptr warnings

4 years agoMinor renaming for clarity.
Richard Kimberly Heck [Thu, 12 Sep 2019 00:54:51 +0000 (20:54 -0400)]
Minor renaming for clarity.

4 years agoFix bug #11636.
Richard Kimberly Heck [Thu, 12 Sep 2019 00:54:42 +0000 (20:54 -0400)]
Fix bug #11636.

Directories are created when files are copied, so we do not need
to do it prospectively here.

4 years agoRevert last two commits, which we pushed accidentally.
Richard Kimberly Heck [Thu, 12 Sep 2019 00:46:33 +0000 (20:46 -0400)]
Revert last two commits, which we pushed accidentally.

4 years agoWhoops, forgot this part
Richard Kimberly Heck [Thu, 12 Sep 2019 00:30:31 +0000 (20:30 -0400)]
Whoops, forgot this part

4 years agoConstify, largely for debugging purposes
Richard Kimberly Heck [Thu, 12 Sep 2019 00:29:58 +0000 (20:29 -0400)]
Constify, largely for debugging purposes

4 years agoConstify
Richard Kimberly Heck [Wed, 11 Sep 2019 23:39:03 +0000 (19:39 -0400)]
Constify

4 years agoEnable dissolve in undefined Flex inset context menu
Jean-Marc Lasgouttes [Wed, 11 Sep 2019 13:49:50 +0000 (15:49 +0200)]
Enable dissolve in undefined Flex inset context menu

This is a hackish special case, so I had to add a hack...

Fixes bug #8650.

4 years agoReset layout when inserting an inset over full paragraph(s)
Jean-Marc Lasgouttes [Wed, 4 Sep 2019 14:13:22 +0000 (16:13 +0200)]
Reset layout when inserting an inset over full paragraph(s)

1/ When inserting an inset over a selection, it makes sense if the
selection covers a complete or several paragraphs to reset the layout of
the paragraph that contains the inset to plain layout. In general the
inner inset will have the needed layout information and it does not
make sense to keep this information outside.

However, when the inset forces plain layout, it does not make sense to
do that and the outer layout is preserved.

Some code that duplicates what is done in pasteSelectionHelper is also
removed.

2/ Similarly, when dissolving an inset, do not reset the layout of the
first paragraph if the inset was alone in its own paragraph.

Note that this does not work as intended when change tracking is enabled.

Fixes bugs #10266 and #10369.

4 years agoAllow to hide formats from menus
Juergen Spitzmueller [Wed, 11 Sep 2019 08:29:50 +0000 (10:29 +0200)]
Allow to hide formats from menus

Fixes: #11657
4 years agoru/Tutorial.lyx: update by Yuriy
Juergen Spitzmueller [Wed, 11 Sep 2019 08:22:01 +0000 (10:22 +0200)]
ru/Tutorial.lyx: update by Yuriy

4 years agoUserGuide: some typos fixed by Yuriy
Juergen Spitzmueller [Wed, 11 Sep 2019 08:21:15 +0000 (10:21 +0200)]
UserGuide: some typos fixed by Yuriy

4 years agoGive error if undefined citations with Biblatex
Scott Kostyshak [Tue, 10 Sep 2019 14:43:11 +0000 (10:43 -0400)]
Give error if undefined citations with Biblatex

This commit catches situations when one key in a multi-key citation
is not defined. This commit causes an error to be given, but the
name of the key that is undefined is not provided in the error
dialog.

This commit is consistent with bf99ece7.

For more information, and possible follow-up discussion (e.g., on
putting the key in the error dialog), see the following ML thread:

https://www.mail-archive.com/search?l=mid&q=20190908165644.qnz6xu5bm5eqiko6%40boogie

4 years ago#6961 correct the big-endian conversion of UInt32
Patrick de Visschere [Sun, 8 Sep 2019 09:11:00 +0000 (11:11 +0200)]
#6961 correct the big-endian conversion of UInt32

This is a patch from Patrick de Visschere. Thanks.

4 years agoMinor update for supported-languages test.
Günter Milde [Thu, 5 Sep 2019 07:44:18 +0000 (09:44 +0200)]
Minor update for supported-languages test.

4 years agoMake preview skript Python-3 compatible.
Günter Milde [Wed, 4 Sep 2019 20:18:03 +0000 (22:18 +0200)]
Make preview skript Python-3 compatible.

4 years agoReset directory after os.chdir
Jean-Marc Lasgouttes [Wed, 4 Sep 2019 14:50:07 +0000 (16:50 +0200)]
Reset directory after os.chdir

Related to bug #10454

4 years agoPort gnuplot2pdf.py to Python 3
Scott Kostyshak [Fri, 30 Aug 2019 00:48:34 +0000 (20:48 -0400)]
Port gnuplot2pdf.py to Python 3

Instead of wait(), use communicate(), as mentioned here:

  https://docs.python.org/3/library/subprocess.html

Otherwise, the process seems to hang as cautioned in the above URL.

Also, use byte strings.

4 years agoctests: update supported-languages tests.
Günter Milde [Tue, 3 Sep 2019 20:54:05 +0000 (22:54 +0200)]
ctests: update supported-languages tests.

Simplify user preamble.

Use common test document for Xe- and LuaTeX with polyglossia
and special one for languages only supported by XeTeX.

Update tagging patterns and comments.

4 years agoObs. APA: fix missing citations
Scott Kostyshak [Tue, 3 Sep 2019 02:22:20 +0000 (22:22 -0400)]
Obs. APA: fix missing citations

The document now compiles and the ctests pass.

4 years agoFix origin path of three obsolete docs
Scott Kostyshak [Tue, 3 Sep 2019 02:18:25 +0000 (22:18 -0400)]
Fix origin path of three obsolete docs

4 years agoctests: invert a test failing due to babel bug
Scott Kostyshak [Tue, 3 Sep 2019 00:46:05 +0000 (20:46 -0400)]
ctests: invert a test failing due to babel bug

This test fails with an updated TL, although it passes on some older
systems.

4 years agoUpdate test document for supported languages.
Günter Milde [Mon, 2 Sep 2019 14:07:10 +0000 (16:07 +0200)]
Update test document for supported languages.

4 years agolyx2lyx: Fix revert_new_languages
Juergen Spitzmueller [Sat, 31 Aug 2019 09:20:10 +0000 (11:20 +0200)]
lyx2lyx: Fix revert_new_languages

4 years agoru.po: Update from Yuriy
Juergen Spitzmueller [Sat, 31 Aug 2019 08:40:57 +0000 (10:40 +0200)]
ru.po: Update from Yuriy

4 years agoEnable change tracking if paragraph break change
Scott Kostyshak [Sat, 17 Aug 2019 20:35:01 +0000 (16:35 -0400)]
Enable change tracking if paragraph break change

When a selection spans more than one line, we now check for whether
there is a change at one position after the last position of each
fully selected line.

This fixes #11629.

4 years agoPartially revert 6b014ec7
Kornel Benko [Fri, 30 Aug 2019 15:32:25 +0000 (17:32 +0200)]
Partially revert 6b014ec7

Allow use for font MonomakhUnicode. The font is available in texlive
and making a symbolic link in ~/.fonts/fonts to point to the appropriate
directory makes the font available to the system too.

4 years agoctests: update unreliableTests
Günter Milde [Fri, 30 Aug 2019 14:23:59 +0000 (16:23 +0200)]
ctests: update unreliableTests

4 years agoctests: uninvert AA tests thanks to recent fixes
Scott Kostyshak [Fri, 30 Aug 2019 11:52:13 +0000 (07:52 -0400)]
ctests: uninvert AA tests thanks to recent fixes

Thanks to 54fd0a70, all AA tests can be uninverted except for two
texF tests.

4 years agoHooked in one year too early
Juergen Spitzmueller [Fri, 30 Aug 2019 06:27:34 +0000 (08:27 +0200)]
Hooked in one year too early

4 years agoFix encoding in aa class, which is preset via class options
Juergen Spitzmueller [Fri, 30 Aug 2019 06:09:57 +0000 (08:09 +0200)]
Fix encoding in aa class, which is preset via class options

Hook into nearby file format change.

4 years agoJ of Acoustical Society: add a space before cite
Scott Kostyshak [Thu, 29 Aug 2019 21:09:20 +0000 (17:09 -0400)]
J of Acoustical Society: add a space before cite

Without the space, the citation followed directly the word "in".

4 years agoAutotests: Try to not use hard available fonts
Kornel Benko [Thu, 29 Aug 2019 10:54:31 +0000 (12:54 +0200)]
Autotests: Try to not use hard available fonts

4 years agoFix test BATCH_outline-beamer
Kornel Benko [Thu, 29 Aug 2019 08:54:02 +0000 (10:54 +0200)]
Fix test BATCH_outline-beamer

4 years agoSmall ctest update.
Günter Milde [Thu, 29 Aug 2019 07:54:30 +0000 (09:54 +0200)]
Small ctest update.

4 years agoJ of Acoustical Society: fix missing citations
Scott Kostyshak [Thu, 29 Aug 2019 01:39:44 +0000 (21:39 -0400)]
J of Acoustical Society: fix missing citations

This restores compilation of the file and all ctests work as
expected.

4 years agoSet buffer correctly when deleting column in math grid
Jean-Marc Lasgouttes [Wed, 28 Aug 2019 16:21:17 +0000 (18:21 +0200)]
Set buffer correctly when deleting column in math grid

This is a followup to 837bcbb0.

Fixes bug #11623.

4 years agoInitialize num_bib_key_
Jean-Marc Lasgouttes [Wed, 28 Aug 2019 12:25:44 +0000 (14:25 +0200)]
Initialize num_bib_key_

Spotted by Coverity.

4 years agoFix totalheight reversion routine if there was no totalheight set
Juergen Spitzmueller [Wed, 28 Aug 2019 05:27:28 +0000 (07:27 +0200)]
Fix totalheight reversion routine if there was no totalheight set

4 years agoTutorial: some style fixes by Yuryi.
Juergen Spitzmueller [Wed, 28 Aug 2019 04:20:57 +0000 (06:20 +0200)]
Tutorial: some style fixes by Yuryi.

4 years agoUpdate of Russian po and Tutorial by Yuriy
Juergen Spitzmueller [Tue, 27 Aug 2019 08:45:10 +0000 (10:45 +0200)]
Update of Russian po and Tutorial by Yuriy

4 years agoUse acadian rather than canadien
Juergen Spitzmueller [Tue, 27 Aug 2019 08:25:15 +0000 (10:25 +0200)]
Use acadian rather than canadien

This is what babel-french urges, and canadien currently is broken.

acadien seems to be there for at least 15 years.

4 years agoEnable Canadian English and French in polyglossia
Juergen Spitzmueller [Mon, 26 Aug 2019 07:18:59 +0000 (09:18 +0200)]
Enable Canadian English and French in polyglossia

These are equivalent to usenglish and french in babel anyway.

4 years agoctest update: new and resolved failures after TL update, resoved lyxbug.
Günter Milde [Sun, 25 Aug 2019 10:27:25 +0000 (12:27 +0200)]
ctest update: new and resolved failures after TL update, resoved lyxbug.

4 years agoCorrect index
Juergen Spitzmueller [Fri, 23 Aug 2019 20:36:35 +0000 (22:36 +0200)]
Correct index

4 years agolyx2lyx: correct placement of (new) local layout
Juergen Spitzmueller [Fri, 23 Aug 2019 16:38:55 +0000 (18:38 +0200)]
lyx2lyx: correct placement of (new) local layout

This ended up inside modules sometimes.

4 years ago#11642 add version of used python to configure.log protocol
Stephan Witt [Fri, 23 Aug 2019 06:09:53 +0000 (08:09 +0200)]
#11642 add version of used python to configure.log protocol

4 years agolyx2lyx: fixup gloss reversion
Juergen Spitzmueller [Thu, 22 Aug 2019 15:16:26 +0000 (17:16 +0200)]
lyx2lyx: fixup gloss reversion

4 years agoFix export with Japanese (platex) and non-TeX fonts.
Günter Milde [Wed, 21 Aug 2019 10:33:13 +0000 (12:33 +0200)]
Fix export with Japanese (platex) and non-TeX fonts.

Revert a change in c83765163f that inserts a spurious "}".

4 years agounicodesymbols: force "latin capital letter Schwa" also for utf8x.
Günter Milde [Wed, 21 Aug 2019 07:00:10 +0000 (09:00 +0200)]
unicodesymbols: force "latin capital letter Schwa" also for utf8x.

4 years agoctests: make a comment more specific.
Günter Milde [Wed, 21 Aug 2019 06:59:35 +0000 (08:59 +0200)]
ctests: make a comment more specific.

4 years agoctest update: we now work around a problem with Czech or Slovak text in some tables.
Günter Milde [Tue, 20 Aug 2019 20:37:41 +0000 (22:37 +0200)]
ctest update: we now work around a problem with Czech or Slovak text in some tables.

4 years agoProperly terminate command
Juergen Spitzmueller [Mon, 19 Aug 2019 05:30:06 +0000 (07:30 +0200)]
Properly terminate command

4 years agode.po
Juergen Spitzmueller [Sun, 18 Aug 2019 16:43:01 +0000 (18:43 +0200)]
de.po

4 years agoCmake tests: Really ignore wrong_output_3059-rtl-tables-xetex_pdf4_texF test
Kornel Benko [Sun, 18 Aug 2019 16:07:42 +0000 (18:07 +0200)]
Cmake tests: Really ignore wrong_output_3059-rtl-tables-xetex_pdf4_texF test

4 years agoHandle endnotes aux file in removeAuxiliaryFiles()
Juergen Spitzmueller [Sat, 17 Aug 2019 07:32:15 +0000 (09:32 +0200)]
Handle endnotes aux file in removeAuxiliaryFiles()

4 years agoAs observed on users list it's hard to guess where to setup external editor.
Pavel Sanda [Fri, 16 Aug 2019 21:01:34 +0000 (23:01 +0200)]
As observed on users list it's hard to guess where to setup external editor.

4 years agoCorrectly set language after intitle paragraphs
Juergen Spitzmueller [Fri, 16 Aug 2019 14:24:09 +0000 (16:24 +0200)]
Correctly set language after intitle paragraphs

Fixes: #11514
4 years agoja/EmbeddedObjects: fix case of KOMA-script cites
Scott Kostyshak [Fri, 16 Aug 2019 13:27:24 +0000 (09:27 -0400)]
ja/EmbeddedObjects: fix case of KOMA-script cites

Without these case changes, the citations are undefined.

4 years agoja/EmbeddedObjects: update format for next commit
Scott Kostyshak [Fri, 16 Aug 2019 13:23:34 +0000 (09:23 -0400)]
ja/EmbeddedObjects: update format for next commit

The format was already post-2.3.x.

4 years agoTiny cleanup
Juergen Spitzmueller [Fri, 16 Aug 2019 09:48:57 +0000 (11:48 +0200)]
Tiny cleanup

No change in functionality

4 years agoru/Tutorial: re-save in 2.3 format
Juergen Spitzmueller [Fri, 16 Aug 2019 05:30:16 +0000 (07:30 +0200)]
ru/Tutorial: re-save in 2.3 format

4 years agoru/Tutorial: fix for utf8 doc encoding
Juergen Spitzmueller [Fri, 16 Aug 2019 05:26:58 +0000 (07:26 +0200)]
ru/Tutorial: fix for utf8 doc encoding

4 years agoes/UserGuide: comment out 2 citations to fix comp
Scott Kostyshak [Thu, 15 Aug 2019 20:05:26 +0000 (16:05 -0400)]
es/UserGuide: comment out 2 citations to fix comp

The citation "spanish" is broken. Commenting it out at least fixes
the compilation.

4 years agoes/UserGuide: fix a broken cross-reference
Scott Kostyshak [Thu, 15 Aug 2019 20:04:54 +0000 (16:04 -0400)]
es/UserGuide: fix a broken cross-reference

4 years agoes/Customization: fix ref to fix compilation
Scott Kostyshak [Thu, 15 Aug 2019 17:34:38 +0000 (13:34 -0400)]
es/Customization: fix ref to fix compilation

The reference was using the label of the English version, so was
broken.

4 years agoes/Customization: update format for next commit
Scott Kostyshak [Thu, 15 Aug 2019 17:30:04 +0000 (13:30 -0400)]
es/Customization: update format for next commit

This manual was already saved with a post-2.3.x format, so I am
updating to the format of master so that the next commit's diff is
readable.

4 years agoes/Additional: remove citation to fix compilation
Scott Kostyshak [Thu, 15 Aug 2019 16:53:29 +0000 (12:53 -0400)]
es/Additional: remove citation to fix compilation

Removing this last citation in the manual is consistent with
032932cb, as well as other similar places in the text (it seems we
now reference documentation with a hyperlink instead of a citation).

4 years agoCREDITS: "!" in email should be followed by space
Scott Kostyshak [Thu, 15 Aug 2019 15:46:02 +0000 (11:46 -0400)]
CREDITS: "!" in email should be followed by space

Otherwise a literal "!" is output. This commit fixes typos in two
email addresses.

4 years agohebarticle: fix compilation with XeTeX (bug #10525)
Juergen Spitzmueller [Thu, 15 Aug 2019 15:42:27 +0000 (17:42 +0200)]
hebarticle: fix compilation with XeTeX (bug #10525)

4 years agoFix coloured boxes in RTL with [pdf]latex (#8642)
Juergen Spitzmueller [Thu, 15 Aug 2019 14:21:13 +0000 (16:21 +0200)]
Fix coloured boxes in RTL with [pdf]latex (#8642)

4 years agoFix greyedout note in RTL (#8647)
Juergen Spitzmueller [Thu, 15 Aug 2019 13:15:59 +0000 (15:15 +0200)]
Fix greyedout note in RTL (#8647)

More complicated than I wished for, but color handling in RTL is
particularly tricky.

The three versions are needed due to the differences between [pdf]latex,
xetex, luatex/luabidi and luatex/babel.

4 years agoImplement commenting for CREDITS file
Scott Kostyshak [Thu, 15 Aug 2019 01:23:48 +0000 (21:23 -0400)]
Implement commenting for CREDITS file

The reader of CREDITS (GuiAbout.cpp) now ignores lines that start
with the number sign (#). This commit also introduces a commented
out header in CREDITS reminding any potential editor that all
changes will be overwritten by generate_contributions.py.

4 years agoPort CREDITS changes to source
Scott Kostyshak [Wed, 14 Aug 2019 23:26:06 +0000 (19:26 -0400)]
Port CREDITS changes to source

All changes must be in generate_contributions.py.

This commit amends 144e5189.

4 years agoCREDITS: remove errant ">" from two addresses
Scott Kostyshak [Wed, 14 Aug 2019 17:09:52 +0000 (13:09 -0400)]
CREDITS: remove errant ">" from two addresses

4 years agoCorrect typo in contributor email address
Joel A. Kulesza [Thu, 25 Jul 2019 03:06:57 +0000 (21:06 -0600)]
Correct typo in contributor email address

4 years agoar.po: update from Hatim Ali
Juergen Spitzmueller [Wed, 14 Aug 2019 16:43:09 +0000 (18:43 +0200)]
ar.po: update from Hatim Ali

4 years agoCorrect ^ catcode for \cprotect
Juergen Spitzmueller [Wed, 14 Aug 2019 16:32:34 +0000 (18:32 +0200)]
Correct ^ catcode for \cprotect

4 years agoUpdate tex2lyx tests
Juergen Spitzmueller [Wed, 14 Aug 2019 15:07:47 +0000 (17:07 +0200)]
Update tex2lyx tests

4 years agoInsetGraphics: use totalheight for height output
Juergen Spitzmueller [Wed, 14 Aug 2019 14:55:43 +0000 (16:55 +0200)]
InsetGraphics: use totalheight for height output

Graphics "height" is only the height above the baseline and thus not
what most people will expect. Also, using height can result in a
division by zero with rotation.

Use totalheight now since this means "height of the figure" (independent
of the baseline).

The custom options field can be used if height is really desired.
We handle this in conversion/reversion, respectively, so document
output will not change.

Hence, file format change.

Fixes: #9676
4 years agoLoad rotfloat and rotating after graphicx.
Juergen Spitzmueller [Wed, 14 Aug 2019 13:16:10 +0000 (15:16 +0200)]
Load rotfloat and rotating after graphicx.

Fixes: #11502
4 years agoRe-fix #2005
Juergen Spitzmueller [Wed, 14 Aug 2019 12:49:38 +0000 (14:49 +0200)]
Re-fix #2005

Loading keyval does not work any longer. Fix it properly by de-activating
the equal character locally if graphics options use it.

4 years agoFix cprotect with Slovak
Juergen Spitzmueller [Wed, 14 Aug 2019 12:00:29 +0000 (14:00 +0200)]
Fix cprotect with Slovak

babel-slovak makes ^ active, though cprotect relies on it being
catcode 9 ("ignored"). Thus we locally change the catcode with Slovak.

4 years agoDeactivate active - in tables with \cline or \cmidrule
Juergen Spitzmueller [Wed, 14 Aug 2019 11:10:42 +0000 (13:10 +0200)]
Deactivate active - in tables with \cline or \cmidrule

This introduces a new languages tag ActiveChar which also can be used
for similar cases.

4 years agoFix cline/cmidrule calculation once more
Juergen Spitzmueller [Wed, 14 Aug 2019 09:25:31 +0000 (11:25 +0200)]
Fix cline/cmidrule calculation once more

4 years agofix midrule calculation
Juergen Spitzmueller [Tue, 13 Aug 2019 17:29:39 +0000 (19:29 +0200)]
fix midrule calculation

4 years agoGuiSetBorder: Fix drawing glitch with trimmed lines
Juergen Spitzmueller [Tue, 13 Aug 2019 15:04:42 +0000 (17:04 +0200)]
GuiSetBorder: Fix drawing glitch with trimmed lines

4 years agoDon't output default papersize
Juergen Spitzmueller [Tue, 13 Aug 2019 13:55:34 +0000 (15:55 +0200)]
Don't output default papersize

4 years agoFix another dead ref
Juergen Spitzmueller [Tue, 13 Aug 2019 10:31:34 +0000 (12:31 +0200)]
Fix another dead ref

4 years agoFix another dead ref
Juergen Spitzmueller [Tue, 13 Aug 2019 10:25:30 +0000 (12:25 +0200)]
Fix another dead ref

4 years agoFix documents
Juergen Spitzmueller [Tue, 13 Aug 2019 10:18:50 +0000 (12:18 +0200)]
Fix documents

4 years agoUpdate sk.po
Kornel Benko [Tue, 13 Aug 2019 09:13:27 +0000 (11:13 +0200)]
Update sk.po

4 years agoUpdate sk.po
Kornel Benko [Tue, 13 Aug 2019 09:07:27 +0000 (11:07 +0200)]
Update sk.po

4 years agoSupport memoir's builtin endnotes
Juergen Spitzmueller [Tue, 13 Aug 2019 08:38:26 +0000 (10:38 +0200)]
Support memoir's builtin endnotes

4 years agoLocalize endnotes header (with endnotes.sty)
Juergen Spitzmueller [Tue, 13 Aug 2019 08:13:32 +0000 (10:13 +0200)]
Localize endnotes header (with endnotes.sty)