Commit Graph

39652 Commits

Author SHA1 Message Date
Günter Milde
41c115aa48 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).
2019-01-09 10:35:08 +01:00
Günter Milde
f85dc3fbd4 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.
2019-01-09 09:23:16 +01:00
Günter Milde
41055bab88 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.
2019-01-09 09:23:16 +01:00
Juergen Spitzmueller
9982651fd6 CJKutf8 is only to be used with the dedicated utf8-cjk encoding 2019-01-09 08:29:41 +01:00
Scott Kostyshak
b9b9759776 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.
2019-01-08 17:07:08 -05:00
Scott Kostyshak
84bd059828 ctests: improve a regex
The "004" did not actually match anything, so there is no change in
functionality.

This commit amends c2a99965.
2019-01-07 18:19:26 -05:00
Günter Milde
81066e2894 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.
2019-01-07 23:21:04 +01:00
Scott Kostyshak
c2a9996541 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.
2019-01-07 14:49:38 -05:00
Juergen Spitzmueller
52371c969b Improve readability
No functional change.
2019-01-07 17:02:06 +01:00
Jean-Marc Lasgouttes
4bc8e90c25 use range-based for loops 2019-01-07 15:33:45 +01:00
Juergen Spitzmueller
9d20bc4e98 When using polyglossia (bidi), paragraph directions don't need to be swapped
Bidi does that.

Fixes: #11399
2019-01-07 13:54:23 +01:00
Kornel Benko
f092208c89 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.
2019-01-07 08:37:41 +01:00
Stephan Witt
b36eae4962 Remove outdated comment 2019-01-07 00:33:33 +01:00
Richard Kimberly Heck
d6b4db1a4f Remove now unused routine. 2019-01-06 17:50:14 -05:00
Richard Kimberly Heck
c4fdab6993 Use combo box data rather than looking up info from InsetRef. 2019-01-06 17:46:40 -05:00
Scott Kostyshak
9238004c25 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).
2019-01-06 14:49:07 -05:00
Scott Kostyshak
0cfaf406c5 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.
2019-01-06 14:39:12 -05:00
Richard Kimberly Heck
b35d90014e Add comment. 2019-01-06 13:02:40 -05:00
Richard Kimberly Heck
b91e2b9998 Remove debugging code. 2019-01-06 13:00:21 -05:00
Richard Kimberly Heck
9b3f9cc687 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....
2019-01-06 12:52:44 -05:00
Juergen Spitzmueller
c9dd349bee Don't output CJK environment with non-TeX fonts
This amends d193cd05a8.
2019-01-06 16:40:36 +01:00
Juergen Spitzmueller
8c219daeeb Amend 348b3e5e49
thinko!
2019-01-06 15:19:50 +01:00
Juergen Spitzmueller
d193cd05a8 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.
2019-01-06 14:36:11 +01:00
Stephan Witt
a4d409b194 Add license info for inkscape start script 2019-01-06 09:28:20 +01:00
Scott Kostyshak
372c83ebdb 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
2019-01-06 02:19:06 -05:00
Scott Kostyshak
92630971bd ctests: invert ar UserGuide.lyx lyx22x and lyx23x
These tests are expected to fail since the default export is
expected to fail.
2019-01-05 18:51:23 -05:00
Stephan Witt
caa1dd2aee 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.
2019-01-06 00:22:32 +01:00
Scott Kostyshak
bf65c9fb38 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.
2019-01-05 17:40:43 -05:00
Scott Kostyshak
6e815d3eba 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.
2019-01-05 16:47:15 -05:00
Enrico Forestieri
746d8e1a68 Update it.po 2019-01-05 20:51:50 +01:00
Enrico Forestieri
7296e0e6ba 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
2019-01-05 19:17:37 +01:00
Kornel Benko
c9e62dec53 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.
2019-01-05 08:34:00 +01:00
Scott Kostyshak
7f5e7c89b4 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.
2019-01-04 21:50:19 -05:00
Scott Kostyshak
07425a6215 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.
2019-01-04 21:50:19 -05:00
Scott Kostyshak
91d8aea8d3 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.
2019-01-04 14:50:16 -05:00
Jean-Marc Lasgouttes
5fc035f99c Fixup 5c1d65af: proper spacing between text and label in rtl
Fix bug #11425.
2019-01-04 17:13:10 +01:00
Jean-Marc Lasgouttes
5c1d65afee Fix drawing of labels in insets
In many cases, the origin xo_ of insets was forgotten.

Fixes bug #11425.
2019-01-04 17:06:49 +01:00
Juergen Spitzmueller
c65b146d86 Revert "ctests: invert JSS-article lyx2lyx tests"
This reverts commit 5ad0395dca.
2019-01-04 16:37:57 +01:00
Juergen Spitzmueller
348b3e5e49 rewrite revert_jss reversion routine
Fixes: #11448
2019-01-04 16:36:11 +01:00
Jean-Marc Lasgouttes
a69e01d0b4 Avoid crash when using inset-select-all in tabular
When changing cell idx, it is important to set the pit to a reasonable
value.
2019-01-04 13:57:13 +01:00
Jean-Marc Lasgouttes
f97c11f4e9 Remove unused mathod (CursorSlice::at_cell_end is the same) 2019-01-04 13:55:57 +01:00
Juergen Spitzmueller
35534231d4 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
2019-01-04 13:01:03 +01:00
Kornel Benko
21254cd962 lyx2lyx tests: Add conversions to lyx23 2019-01-04 05:58:56 +01:00
Scott Kostyshak
5ad0395dca ctests: invert JSS-article lyx2lyx tests
The regression has been reported at #11448.
2019-01-03 23:32:41 -05:00
Kornel Benko
7568571a24 lyx2lyx tests: Use the temp-dir also for converted lyx files
Important if including data previously copied there.
Fixes test "export/doc/Additional_lyx22"
2019-01-04 05:21:07 +01:00
Scott Kostyshak
3ac2dd8e6c Bibliography.lyx: add a reference so it compiles 2019-01-03 22:27:22 -05:00
Scott Kostyshak
67f5a5173a Fix compilation of chess-article.lyx with TL 2018
Consistent with 32b77f1a.
2019-01-03 21:10:43 -05:00
Richard Kimberly Heck
ba8cf1a50b Also pay attention to OutputParams::free_spacing. 2019-01-03 19:16:48 -05:00
Richard Kimberly Heck
6135824f40 Fix bug #11432.
Take account of Layout::free_spacing.
2019-01-03 19:13:43 -05:00
Jean-Marc Lasgouttes
d8498d4785 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.
2019-01-03 12:19:47 +01:00