]> git.lyx.org Git - lyx.git/log
lyx.git
5 years agounicodesymbols Force substitution of NNBSP in utf8.
Günter Milde [Wed, 16 Jan 2019 17:32:20 +0000 (18:32 +0100)]
unicodesymbols Force substitution of NNBSP in utf8.

NNBSP (narrow no break space) is supported by LyX's unicodesymbols
but missing in LaTeX inputenc *.dfu definitions. (TeXLive 2017)

5 years agoTry to compute row height like it should be done
Jean-Marc Lasgouttes [Thu, 3 Jan 2019 15:03:48 +0000 (16:03 +0100)]
Try to compute row height like it should be done

Currently, our computation of row height is not completely standard:
* we ignore completely the QFontMetrics::leading() parameter

* we add arbitrarily 2 hardcoded pixels to the height.

This patch reverses these two choices, which leads to
* slightly larger spacing for MinionPro (which has a big leading).

* an additional spacing of 20% font height that depends on dpi and zoom.

Visual inspection with LibreOffice seems to imply that it disregards
the font leading but uses a interline which is 20% larger than the
font height.

5 years agoFix unicodesymbols.
Günter Milde [Tue, 15 Jan 2019 15:35:34 +0000 (16:35 +0100)]
Fix unicodesymbols.

Remove 4 spurious tags that slipped in in [4ebb415/lyxgit].

5 years agoUpdate some special latex export tests.
Günter Milde [Mon, 14 Jan 2019 21:40:03 +0000 (22:40 +0100)]
Update some special latex export tests.

5 years agoUpdate unicodesymbols replacements
Günter Milde [Mon, 14 Jan 2019 21:35:14 +0000 (22:35 +0100)]
Update unicodesymbols replacements

"textcomp" supports some more characters in its ts1enc.dfu Unicode definition file.

5 years agoDevelopment.lyx: check that PDF is good before inv
Scott Kostyshak [Mon, 14 Jan 2019 17:40:37 +0000 (12:40 -0500)]
Development.lyx: check that PDF is good before inv

Before uninverting a test, we should check that the PDF looks
correct.

5 years agoDevelopment.lyx: remove an unmatched parenthesis
Scott Kostyshak [Mon, 14 Jan 2019 17:36:25 +0000 (12:36 -0500)]
Development.lyx: remove an unmatched parenthesis

5 years agoAllow to type a space in front of another one
Jean-Marc Lasgouttes [Mon, 14 Jan 2019 15:37:10 +0000 (16:37 +0100)]
Allow to type a space in front of another one

This is a follow-up to 714b731e. This fixes the issue when the cursor
is in front of a space
  abc| def
and one inserts another space (to start a word). DEPM would eat one
space and produce
  abc |def
instead of
  abc | def

Additionally, fix the same_par boolean, wheich did not take the cell
index into account.

Related to ticket #11412.

5 years agoctests: update test tagging/categorization and export test for accents on Cyrillic...
Günter Milde [Mon, 14 Jan 2019 11:21:34 +0000 (12:21 +0100)]
ctests: update test tagging/categorization and export test for accents on Cyrillic letters.

5 years agoctests: ignore latex8 LyX 2.2.x and 2.3.x tests
Scott Kostyshak [Sun, 13 Jan 2019 19:18:25 +0000 (14:18 -0500)]
ctests: ignore latex8 LyX 2.2.x and 2.3.x tests

The cls is obsolete, so all PDF exports are disabled. We keep the
1.6.x and 2.1.x tests because those only check roundtrip
convergence, and do not export to PDF.

5 years agoctests: ignore minted 2.2.x tests
Scott Kostyshak [Sun, 13 Jan 2019 18:04:26 +0000 (13:04 -0500)]
ctests: ignore minted 2.2.x tests

As explained by Enrico, backward compatibility is not guaranteed for
these cases (and indeed currently fails):

  https://www.mail-archive.com/search?l=mid&q=20190113085555.GA7928%40GIOVE

5 years agoctests: add comment about formats that won't work
Scott Kostyshak [Sun, 13 Jan 2019 17:31:55 +0000 (12:31 -0500)]
ctests: add comment about formats that won't work

This way we will not try to test those formats for this file in the
future.

5 years agoFix copy-paste error
Juergen Spitzmueller [Sun, 13 Jan 2019 10:38:28 +0000 (11:38 +0100)]
Fix copy-paste error

5 years agoAmend 7b639d2db212
Juergen Spitzmueller [Sun, 13 Jan 2019 10:25:17 +0000 (11:25 +0100)]
Amend 7b639d2db212

Not the (ASCII) encoding matters here, but the (TU) font encoding.

5 years agoScript wrapper is needed with ASCII encoding
Juergen Spitzmueller [Sat, 12 Jan 2019 17:44:52 +0000 (18:44 +0100)]
Script wrapper is needed with ASCII encoding

5 years agoRemove PYTHONPATH from the environment on Windows
Enrico Forestieri [Sat, 12 Jan 2019 17:37:41 +0000 (18:37 +0100)]
Remove PYTHONPATH from the environment on Windows

This make sure to use the the modules distributed with LyX,
avoiding reconfigure failures.

5 years agoReplace environment variables in PATH prefix
Enrico Forestieri [Fri, 11 Jan 2019 17:15:40 +0000 (18:15 +0100)]
Replace environment variables in PATH prefix

The PATH prefix modified through the GUI was set without
replacing embedded environment variables. This might have
caused problems on Windows with external python installations.

5 years agoAdd support for U+2693 (ANCHOR)
Juergen Spitzmueller [Fri, 11 Jan 2019 15:40:41 +0000 (16:40 +0100)]
Add support for U+2693 (ANCHOR)

Fixes: #10706
5 years agoFix alignment of rows when text width is variable
Jean-Marc Lasgouttes [Fri, 11 Jan 2019 14:55:17 +0000 (15:55 +0100)]
Fix alignment of rows when text width is variable

When several lines of text are in the same variable-width tabular
cell, it is not possible to align properly the rows until the cell
width is known.

Therefore a parameter is added to redoParagraph to skip this
computation, so that it can be done later in TextMetrics::metrics.
Other calls to redoParagraph in the code are not affected. It is not
clear at this point whether they may create artefacts.

computeRowMetrics has been renamed to setRowAlignment to better
reflect its use.

Fixes bug #11447.

5 years agoAmend 23f7431c: Renamed files
Kornel Benko [Fri, 11 Jan 2019 12:14:49 +0000 (13:14 +0100)]
Amend 23f7431c: Renamed files

latex/inputenc-utf8-plain.lyx -> latex/luainputenc-utf8.lyx

5 years ago"Script chars" also need to be output as macro with full utf8 engines and TeX fonts
Juergen Spitzmueller [Fri, 11 Jan 2019 09:08:49 +0000 (10:08 +0100)]
"Script chars" also need to be output as macro with full utf8 engines and TeX fonts

Fixes rest of #9681

5 years agoctests: update sorting and documentation of inverted and ignored tests.
Günter Milde [Thu, 10 Jan 2019 21:37:03 +0000 (22:37 +0100)]
ctests: update sorting and documentation of inverted and ignored tests.

5 years agoRemove empty file discovered by Kornel.
Richard Kimberly Heck [Thu, 10 Jan 2019 18:22:58 +0000 (13:22 -0500)]
Remove empty file discovered by Kornel.

Looks like an accidental commit.

> git log GuiGraphicsUi.h
commit a1cec91afaca91968b46e695533c10ad2a3f73d3
Author: André Pönitz <poenitz@gmx.net>
Date:   Fri Aug 31 05:53:55 2007 +0000

    move our stuff off the Q* namespace

    git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19935 a592a061-630c-0410-9148-cb99ea01b6c8

That's all a rename, basically. The original file, QGraphicsUi.h, was commited at 12e5a52b92, and it was empty then, too.

5 years agoForce more symbols with utf8-cjk
Günter Milde [Thu, 10 Jan 2019 17:46:47 +0000 (18:46 +0100)]
Force more symbols with utf8-cjk

5 years agoctests: Update/clean up latex export tests after fix of #9681.
Günter Milde [Thu, 10 Jan 2019 16:11:42 +0000 (17:11 +0100)]
ctests: Update/clean up latex export tests after fix of #9681.

5 years agolyx2lyx: Minor formatting fix.
Günter Milde [Thu, 10 Jan 2019 16:13:45 +0000 (17:13 +0100)]
lyx2lyx: Minor formatting fix.

5 years agoForce more symbols with utf8-cjk
Juergen Spitzmueller [Thu, 10 Jan 2019 08:56:11 +0000 (09:56 +0100)]
Force more symbols with utf8-cjk

5 years agoforce some symbols as macros with utf8-cjk
Juergen Spitzmueller [Thu, 10 Jan 2019 08:43:40 +0000 (09:43 +0100)]
force some symbols as macros with utf8-cjk

Probably more needed.

5 years agoctests: uninvert two 008-greek-and-coptic tests
Scott Kostyshak [Thu, 10 Jan 2019 00:49:48 +0000 (19:49 -0500)]
ctests: uninvert two 008-greek-and-coptic tests

The following two exports now succeed, likely thanks to recent
commits:

  008-greek-and-coptic_(utf8|utf8x)_pdf2

5 years agoctests: move IEEEtran-Journal_lyx16 to inverted
Scott Kostyshak [Thu, 10 Jan 2019 00:00:08 +0000 (19:00 -0500)]
ctests: move IEEEtran-Journal_lyx16 to inverted

It used to give an endless loop, so we "ignored" it (did not run the
test). Now it gives a lyx2lyx warning, which is reported at #11455,
so it is appropriate to invert the test.

5 years agounicodesymbols: support for LOW ASTERISK, use textcomp for (non-combining) Breve...
Günter Milde [Wed, 9 Jan 2019 13:12:37 +0000 (14:12 +0100)]
unicodesymbols: support for LOW ASTERISK, use textcomp for (non-combining) Breve and Caron

The textcomp Unicode support file "ts1enc.dfu" defines 0x204E Low Asterisk
as \textasteriskcentered. LyX should follow suit.
The ASTERISK OPERATOR (correctly) maps to the same macro,
the "deprecated" tag marks the upstream mapping as preferred choice.

5 years agoctests: Dedicated LaTeX export tests for problematic input encodings.
Günter Milde [Wed, 9 Jan 2019 13:10:40 +0000 (14:10 +0100)]
ctests: Dedicated LaTeX export tests for problematic input encodings.

5 years agoRemove omikron from math tests.
Günter Milde [Wed, 9 Jan 2019 09:39:40 +0000 (10:39 +0100)]
Remove omikron from math tests.

The letter Omikron is not available in TeX math mode because
it looks like the latin O and hence not used as mathematical symbol.

5 years agoUse LatinModern fonts for Greek documentation Intro.
Günter Milde [Wed, 9 Jan 2019 09:35:08 +0000 (10:35 +0100)]
Use LatinModern fonts for Greek documentation Intro.

Since some years, the LatinModern 8-bit fonts work well with Greek,
using the high quality CB-Fonts as substitution (just as ComputerModern).

5 years agoFix Ticket #9904 ("strange dots" with input encoding iso8859-7).
Günter Milde [Wed, 9 Jan 2019 07:59:24 +0000 (08:59 +0100)]
Fix Ticket #9904 ("strange dots" with input encoding iso8859-7).

Added "force=iso8859-7" for some characters:

The iso8859-7.def file for the Greek 8-bit input encoding
used \textbullet as placeholder for non-defined characters.
This is fixed in v1.7 2019/01/08.

Once the fixed version is in common use, all "force=iso8859-7"
tags can be removed.

5 years agoFix handling of Thai tis620-0 input encoding.
Günter Milde [Tue, 8 Jan 2019 09:52:20 +0000 (10:52 +0100)]
Fix handling of Thai tis620-0 input encoding.

The Thai tis620-0 input encoding is supported via the inputenc "plug in"
(data) file tis620.def from https://ctan.org/pkg/babel-thai.

We can handle it like the other contributed input encodings, e.g.,
Greek (ISO 8859-7) and the several Cyrillic encodings from
http://www.ctan.org/pkg/latex-cyrillic.

Under TeXLive 2018, the input encoding defaults to utf8, if there is no call to
inputenc. The added test file fails without the patch but compiles fine, if the
file "tis620.def" is present in the TEXPATH.

5 years agoCJKutf8 is only to be used with the dedicated utf8-cjk encoding
Juergen Spitzmueller [Wed, 9 Jan 2019 07:29:41 +0000 (08:29 +0100)]
CJKutf8 is only to be used with the dedicated utf8-cjk encoding

5 years agoctests: ingore a utf8-cjk test instead of invert
Scott Kostyshak [Tue, 8 Jan 2019 22:05:55 +0000 (17:05 -0500)]
ctests: ingore a utf8-cjk test instead of invert

The 001-4-latin_utf8x_pdf2 test passes and the
001-4-latin_utf8-cjk_pdf2 test fails, which means that there are
characters in the .lyx file that are only available with
utf8-extended encoding, so the utf8 test is never expected to pass
in the future.

Thanks to Kornel.

5 years agoctests: improve a regex
Scott Kostyshak [Mon, 7 Jan 2019 23:17:43 +0000 (18:17 -0500)]
ctests: improve a regex

The "004" did not actually match anything, so there is no change in
functionality.

This commit amends c2a99965.

5 years agoctests: utf8-plain now works with all export variants.
Günter Milde [Mon, 7 Jan 2019 22:17:47 +0000 (23:17 +0100)]
ctests: utf8-plain now works with all export variants.

utf8-plain (Unicode (utf8 XeTeX)) is a power-user setting
for the input encoding with two use cases:

a) setup of system fonts or

b) setup of input encoding supportuser preamble

in the document class or user preamble.

The test file is an example for use case b.

5 years agoctests: uninvert CJK exports that now succeed
Scott Kostyshak [Mon, 7 Jan 2019 19:44:46 +0000 (14:44 -0500)]
ctests: uninvert CJK exports that now succeed

These tests were likely fixed with d193cd05. There are still some
failing CJK tests, but many were fixed.

5 years agoImprove readability
Juergen Spitzmueller [Mon, 7 Jan 2019 16:02:06 +0000 (17:02 +0100)]
Improve readability

No functional change.

5 years agouse range-based for loops
Jean-Marc Lasgouttes [Mon, 7 Jan 2019 12:50:55 +0000 (13:50 +0100)]
use range-based for loops

5 years agoWhen using polyglossia (bidi), paragraph directions don't need to be swapped
Juergen Spitzmueller [Mon, 7 Jan 2019 12:54:23 +0000 (13:54 +0100)]
When using polyglossia (bidi), paragraph directions don't need to be swapped

Bidi does that.

Fixes: #11399
5 years agoEnable error-free compilation of ko splash.lyx with xetex and lautex
Kornel Benko [Mon, 7 Jan 2019 07:37:41 +0000 (08:37 +0100)]
Enable error-free compilation of ko splash.lyx with xetex and lautex

This amends somehow 9238004c. Since the system font NanumMyeongjo
and the "mj" spec as CJK latex font are related, this change
seems appropriate.

5 years agoRemove outdated comment
Stephan Witt [Sun, 6 Jan 2019 23:33:33 +0000 (00:33 +0100)]
Remove outdated comment

5 years agoRemove now unused routine.
Richard Kimberly Heck [Sun, 6 Jan 2019 22:50:14 +0000 (17:50 -0500)]
Remove now unused routine.

5 years agoUse combo box data rather than looking up info from InsetRef.
Richard Kimberly Heck [Sun, 6 Jan 2019 22:45:08 +0000 (17:45 -0500)]
Use combo box data rather than looking up info from InsetRef.

5 years agoctests: uninvert ko splash.lyx dvi, pdflatex tests
Scott Kostyshak [Sun, 6 Jan 2019 19:47:39 +0000 (14:47 -0500)]
ctests: uninvert ko splash.lyx dvi, pdflatex tests

These exports now pass thanks to the recent CJK improvement at
d193cd05 and specifying "mj" as CJK font (0cfaf406).

5 years agoko splash.lyx: specify "mj" as CJK font
Scott Kostyshak [Sun, 6 Jan 2019 19:38:54 +0000 (14:38 -0500)]
ko splash.lyx: specify "mj" as CJK font

Now (thanks to d193cd05), the Korean splash.lyx compiles
out-of-the-box with pdflatex.

Thanks to Jürgen.

5 years agoAdd comment.
Richard Kimberly Heck [Sun, 6 Jan 2019 18:02:40 +0000 (13:02 -0500)]
Add comment.

5 years agoRemove debugging code.
Richard Kimberly Heck [Sun, 6 Jan 2019 18:00:21 +0000 (13:00 -0500)]
Remove debugging code.

5 years agoFix problem caused by re-ordering of menu at 5f6332bf4.
Richard Kimberly Heck [Sun, 6 Jan 2019 17:51:02 +0000 (12:51 -0500)]
Fix problem caused by re-ordering of menu at 5f6332bf4.

This broke the activation and de-activation of plural, capitalize,
etc. I guess that tells us how much those get used....

5 years agoDon't output CJK environment with non-TeX fonts
Juergen Spitzmueller [Sun, 6 Jan 2019 15:40:36 +0000 (16:40 +0100)]
Don't output CJK environment with non-TeX fonts

This amends d193cd05a8e3b.

5 years agoAmend 348b3e5e49
Juergen Spitzmueller [Sun, 6 Jan 2019 14:19:50 +0000 (15:19 +0100)]
Amend 348b3e5e49

thinko!

5 years agoProperly implement CJKutf8
Juergen Spitzmueller [Sun, 6 Jan 2019 13:36:11 +0000 (14:36 +0100)]
Properly implement CJKutf8

If we use that, the document actually needs to be in utf8 encoding, and
the CJK environment needs to account for it.

Candidate for stable.

5 years agoAdd license info for inkscape start script
Stephan Witt [Sun, 6 Jan 2019 08:28:11 +0000 (09:28 +0100)]
Add license info for inkscape start script

5 years agoctests: ignore Bibliography.lyx PDF export tests
Scott Kostyshak [Sun, 6 Jan 2019 07:19:06 +0000 (02:19 -0500)]
ctests: ignore Bibliography.lyx PDF export tests

Bibliography.lyx is not expected to be compiled on its own. See:

  https://www.mail-archive.com/search?l=mid&q=20190104195414.opgeuggeqakxl2fo%40barna

5 years agoctests: invert ar UserGuide.lyx lyx22x and lyx23x
Scott Kostyshak [Sat, 5 Jan 2019 23:49:27 +0000 (18:49 -0500)]
ctests: invert ar UserGuide.lyx lyx22x and lyx23x

These tests are expected to fail since the default export is
expected to fail.

5 years agoCorrect converter configuration for inkscape on Mac
Stephan Witt [Sat, 5 Jan 2019 23:22:21 +0000 (00:22 +0100)]
Correct converter configuration for inkscape on Mac

On Mac the inkscape binary is started by a wrapper script. This script changes the
working directory internally and fails to process files with relative path names.
The previous attempt to solve it was to pass the file names with absolute names
by prepending them with the $$p variable (representing the directory name of the files).
This broke the on screen conversion (used for SVGZ to PNG e.g. in the users guide)
because here the $$p variable is undefined.

Now the wrapper script of LyX which is used to locate the Inkscape.app bundle converts
the relative path names into absolute names and the $$p variable is removed from the
converter definitions for inkscape again.

5 years agoctests: invert ko splash lyx22x and lyx23x tests
Scott Kostyshak [Sat, 5 Jan 2019 22:38:10 +0000 (17:38 -0500)]
ctests: invert ko splash lyx22x and lyx23x tests

The Korean splash.lyx is expected to fail with pdflatex. The lyx22x
and lyx23x tests were not failing before because they were exporting
to XeTeX with system fonts, which succeeds. After c9e62dec (which
corrects the export format to the default), the lyx22x and lyx23x
tests should be inverted.

5 years agoBibliography.lyx: remove preamble and master doc
Scott Kostyshak [Sat, 5 Jan 2019 21:45:44 +0000 (16:45 -0500)]
Bibliography.lyx: remove preamble and master doc

The preamble is not used since this document should only be compiled
from documents that include it. Similarly, setting the master
document is not useful.

5 years agoUpdate it.po
Enrico Forestieri [Sat, 5 Jan 2019 19:51:50 +0000 (20:51 +0100)]
Update it.po

5 years agoAvoid crash with gzipped file
Enrico Forestieri [Sat, 5 Jan 2019 18:17:37 +0000 (19:17 +0100)]
Avoid crash with gzipped file

In computing the length of the extension, the code does not account
for the prefix "unzipped_", which is added when the zipped filename
does not have one of the extensions "gz", "z", "Z", or "svgz", and
thus the used index is out of bounds. See also this thread:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg207360.html

5 years agoCmake lyx2lyx tests: Correct use of value for \use_non_tex_fonts
Kornel Benko [Sat, 5 Jan 2019 07:34:00 +0000 (08:34 +0100)]
Cmake lyx2lyx tests: Correct use of value for \use_non_tex_fonts

Amend eec3d1eb,7568571a
We are trying to check if the resulting file after lyx2lyx
is compilable, we have to ensure that copying the original file
to the test directory does not mangle use_non_tex_fonts-entry.

5 years agoctests: do not invert a test for 2.3.x format
Scott Kostyshak [Sat, 5 Jan 2019 02:48:25 +0000 (21:48 -0500)]
ctests: do not invert a test for 2.3.x format

The test 'export/lyx2lyx/lyx_2_3_test_lyx' is expected to fail for
formats before 2.3.x, but is expected to pass for 2.3.x.

5 years agoctests: extend a regex to cover 2.3.x export
Scott Kostyshak [Sat, 5 Jan 2019 02:45:54 +0000 (21:45 -0500)]
ctests: extend a regex to cover 2.3.x export

The tests of "attic/aastex6_sample" are ignored for previous LyX
format exports, and should also be ignored for the newly extended
2.3.x tests.

5 years agoBibliography.lyx: remove citation, add explanation
Scott Kostyshak [Fri, 4 Jan 2019 19:37:46 +0000 (14:37 -0500)]
Bibliography.lyx: remove citation, add explanation

Bibliography.lyx is not expected to be compiled on its own. This
commit reverts 3ac2dd8e and instead adds a LyX note explaining that
an error is expected if the .lyx file is compiled.

5 years agoFixup 5c1d65af: proper spacing between text and label in rtl
Jean-Marc Lasgouttes [Fri, 4 Jan 2019 16:13:10 +0000 (17:13 +0100)]
Fixup 5c1d65af: proper spacing between text and label in rtl

Fix bug #11425.

5 years agoFix drawing of labels in insets
Jean-Marc Lasgouttes [Fri, 4 Jan 2019 15:24:18 +0000 (16:24 +0100)]
Fix drawing of labels in insets

In many cases, the origin xo_ of insets was forgotten.

Fixes bug #11425.

5 years agoRevert "ctests: invert JSS-article lyx2lyx tests"
Juergen Spitzmueller [Fri, 4 Jan 2019 15:37:57 +0000 (16:37 +0100)]
Revert "ctests: invert JSS-article lyx2lyx tests"

This reverts commit 5ad0395dca5876672d959f3ac65f66ac4e18f8c5.

5 years agorewrite revert_jss reversion routine
Juergen Spitzmueller [Fri, 4 Jan 2019 15:34:33 +0000 (16:34 +0100)]
rewrite revert_jss reversion routine

Fixes: #11448
5 years agoAvoid crash when using inset-select-all in tabular
Jean-Marc Lasgouttes [Fri, 4 Jan 2019 12:57:13 +0000 (13:57 +0100)]
Avoid crash when using inset-select-all in tabular

When changing cell idx, it is important to set the pit to a reasonable
value.

5 years agoRemove unused mathod (CursorSlice::at_cell_end is the same)
Jean-Marc Lasgouttes [Fri, 4 Jan 2019 12:54:42 +0000 (13:54 +0100)]
Remove unused mathod (CursorSlice::at_cell_end is the same)

5 years agoAlways update bibfiles cache with bibliography environment before opening citation...
Juergen Spitzmueller [Fri, 4 Jan 2019 12:01:03 +0000 (13:01 +0100)]
Always update bibfiles cache with bibliography environment before opening citation dialog

We need to do this unconditionally, since there is no (trivial and non-
awkward) way to update it when the bibliography paragraphs are modified.

Fixes: #4899
5 years agolyx2lyx tests: Add conversions to lyx23
Kornel Benko [Fri, 4 Jan 2019 04:58:56 +0000 (05:58 +0100)]
lyx2lyx tests: Add conversions to lyx23

5 years agoctests: invert JSS-article lyx2lyx tests
Scott Kostyshak [Fri, 4 Jan 2019 04:29:50 +0000 (23:29 -0500)]
ctests: invert JSS-article lyx2lyx tests

The regression has been reported at #11448.

5 years agolyx2lyx tests: Use the temp-dir also for converted lyx files
Kornel Benko [Fri, 4 Jan 2019 04:21:07 +0000 (05:21 +0100)]
lyx2lyx tests: Use the temp-dir also for converted lyx files

Important if including data previously copied there.
Fixes test "export/doc/Additional_lyx22"

5 years agoBibliography.lyx: add a reference so it compiles
Scott Kostyshak [Fri, 4 Jan 2019 03:27:22 +0000 (22:27 -0500)]
Bibliography.lyx: add a reference so it compiles

5 years agoFix compilation of chess-article.lyx with TL 2018
Scott Kostyshak [Fri, 4 Jan 2019 02:06:38 +0000 (21:06 -0500)]
Fix compilation of chess-article.lyx with TL 2018

Consistent with 32b77f1a.

5 years agoAlso pay attention to OutputParams::free_spacing.
Richard Kimberly Heck [Fri, 4 Jan 2019 00:16:48 +0000 (19:16 -0500)]
Also pay attention to OutputParams::free_spacing.

5 years agoFix bug #11432.
Richard Kimberly Heck [Fri, 4 Jan 2019 00:12:58 +0000 (19:12 -0500)]
Fix bug #11432.

Take account of Layout::free_spacing.

5 years agoFix vertical offset of fonts like MinionPro
Jean-Marc Lasgouttes [Thu, 3 Jan 2019 11:14:27 +0000 (12:14 +0100)]
Fix vertical offset of fonts like MinionPro

For some reason, adding a LTR/RTL Override unicode character before a
MinionPro string increases the ascent of the line.

This creates vertical offset issues when painting if the ascent used
as reference is the one of the font. Use the QTextLine ascent instead
for better results.

This is a followup to 1bed76e2a.

Fixes (reopened) ticket #11284.

5 years agoUpdate tex2lyx tests
Juergen Spitzmueller [Thu, 3 Jan 2019 11:00:23 +0000 (12:00 +0100)]
Update tex2lyx tests

5 years agoFixed remaining glitches in tcolorbox reversion routines
Juergen Spitzmueller [Thu, 3 Jan 2019 09:12:14 +0000 (10:12 +0100)]
Fixed remaining glitches in tcolorbox reversion routines

The indexes were off at several places, which made the routines leak.

5 years agolyx2lyx tests: Copy also original lyx files to temp dir
Kornel Benko [Thu, 3 Jan 2019 07:46:26 +0000 (08:46 +0100)]
lyx2lyx tests: Copy also original lyx files to temp dir

Necessary only if the lyx-file includes some data from
a relative path, nonetheless it happens in some of our tests.

5 years agomaa-monthly.layout: declare dep maa-monthly.sty
Scott Kostyshak [Thu, 3 Jan 2019 00:56:18 +0000 (19:56 -0500)]
maa-monthly.layout: declare dep maa-monthly.sty

5 years agoctests: restore thesis.lyx lyx2lyx tests
Scott Kostyshak [Wed, 2 Jan 2019 19:04:39 +0000 (14:04 -0500)]
ctests: restore thesis.lyx lyx2lyx tests

These tests failed because of (multiple instances of) the following
warning:

  Warning: a buffer should not have two parents!

This warning is expected, because, for example, chapter-1 includes
Bibliography.lyx and chapter-2 includes Bibliography.lyx. thesis.lyx
includes both chapter-1 and chapter-2, so both are loaded (but
hidden), and Bibliography.lyx is loaded (but hidden), and LyX then
sees that more than one buffer includes Bibliography.lyx

The consequence of ignoring this warning is that we will not catch
any future regression that triggers this warning when it should not.

5 years agoFix compilation of chessgame.lyx with only TL 2018
Scott Kostyshak [Wed, 2 Jan 2019 19:02:03 +0000 (14:02 -0500)]
Fix compilation of chessgame.lyx with only TL 2018

chess-workshop-symbols.sty is no longer (on an updated TL 2018)
included in the TL package "skak". This commit replaces the loading
of chess-workshop-symbols in the custom preamble with the loading of
the package chessfss.

chessfss is in TL 2016 and TL 2018, and the example file now
compiles with both TL installations.

Before this commit, compilation of chessgame.lyx was possible if
chess-workshop-symbols.sty were installed manually (i.e., outside of
TL), but it is preferred to keep dependencies to only TL if
possible.

5 years agoAdd override statements to please clang
Jean-Marc Lasgouttes [Wed, 2 Jan 2019 17:49:23 +0000 (18:49 +0100)]
Add override statements to please clang

Eventually, all overridden virtual methods should be marked properly.
Currently, clang only warns about those in classes that already use
override in at least one place (which was the case dor GuiApplication).

5 years agoRemove premature (and bad) optimization
Jean-Marc Lasgouttes [Wed, 2 Jan 2019 17:36:02 +0000 (18:36 +0100)]
Remove premature (and bad) optimization

When blinking the caret, it looks like a cool idea to only update the
small rectangle containing the caret. Actually it is an awful idea, since
the paint event will paint some rows, and these rows will not be
properly painted outside of the small rectangle. Unfortunately, the
painter will skip those "painted" rows on next paint events.

This leads to painting errors that depend on the ordering of "real"
and "caret" paint events. This is the reason why they only appeared
with split screens.

Quote of the day: ``The real problem is that programmers have spent far
too much time worrying about efficiency in the wrong places and at the
wrong times; premature optimization is the root of all evil (or at
least most of it) in programming.''
-- Donald Knuth, The Art of Computer Programming.

Fixes bug #11354.

5 years agoAmend 12aaeb25, add Bibliography.lyx to the set of not tested subdocuments
Kornel Benko [Wed, 2 Jan 2019 15:32:24 +0000 (16:32 +0100)]
Amend 12aaeb25, add Bibliography.lyx to the set of not tested subdocuments

5 years agofix tcolorbox reversion routines
Juergen Spitzmueller [Wed, 2 Jan 2019 14:37:11 +0000 (15:37 +0100)]
fix tcolorbox reversion routines

5 years agoFix conversion of math braces to html
Enrico Forestieri [Wed, 2 Jan 2019 08:49:59 +0000 (09:49 +0100)]
Fix conversion of math braces to html

5 years agoFix Include dialog UI
Juergen Spitzmueller [Wed, 2 Jan 2019 08:19:45 +0000 (09:19 +0100)]
Fix Include dialog UI

#11443

5 years agoAmend [2dcb7300/lyxgit]
Enrico Forestieri [Wed, 2 Jan 2019 08:08:39 +0000 (09:08 +0100)]
Amend [2dcb7300/lyxgit]

Avoid a crash by checking that a cell is not empty before
accessing its content.

5 years agoFis some old box reversion routines.
Juergen Spitzmueller [Tue, 1 Jan 2019 15:34:15 +0000 (16:34 +0100)]
Fis some old box reversion routines.

5 years agoMark labels in non-outputting insets as inactive.
Juergen Spitzmueller [Mon, 31 Dec 2018 17:32:38 +0000 (18:32 +0100)]
Mark labels in non-outputting insets as inactive.

Fixes: #11437
5 years agoAdd inactive labels to the toc
Juergen Spitzmueller [Mon, 31 Dec 2018 17:30:20 +0000 (18:30 +0100)]
Add inactive labels to the toc

It makes sense to navigate to them.

They are marked as inactive with the cross.

5 years agoFix gotoLabel with inactive labels
Juergen Spitzmueller [Mon, 31 Dec 2018 17:28:44 +0000 (18:28 +0100)]
Fix gotoLabel with inactive labels

This now frist looks for the active label. Only if none is found, it
jumps to the (first) inactive label.