Commit Graph

9259 Commits

Author SHA1 Message Date
Günter Milde
f0b326a9f4 Comprehensive language test document and some more fixes.
Work around or document language clashes and limitations.
2019-03-27 17:49:08 +01:00
Günter Milde
32b47e975e Fix settings for Hebrew with 8-bit TeX fonts. 2019-03-27 17:09:12 +01:00
Günter Milde
1361f1a45f "AsBabelOptions" no longer required. Part1.
With the re-orgianization and opening of the Babel package by Javier Bezos
(version 3.9 released March 2013), "contributed" language definitions are
also recognized if the language is given as global option.

If there is no objection or regression in tests,
Part 2 will remove the hard-coded part of AsBabelOptions.
2019-03-27 16:53:23 +01:00
Günter Milde
4a2f4fb1d6 Use LaTeX input encoding "utf8", part 1/many.
See #11115.
Start with simple cases.
2019-03-27 16:24:14 +01:00
Günter Milde
f7fbd8c1ab Hebrew shindot and shindot but work fine as postfix. 2019-03-27 14:39:08 +01:00
Juergen Spitzmueller
ba867587f4 RELEASE-NOTES: update 2019-03-26 18:05:25 +01:00
Juergen Spitzmueller
7071995a21 Update layout formats 2019-03-26 17:46:21 +01:00
Juergen Spitzmueller
4b3aacd13b Add TableStyle layout tag
Fixes: #8360
2019-03-26 17:42:56 +01:00
Juergen Spitzmueller
ecb2427f41 Add tablestyle buffer param
Fixes: #9901
2019-03-26 16:24:27 +01:00
Juergen Spitzmueller
4bd4bfb34c centralize attic 2019-03-26 15:41:32 +01:00
Juergen Spitzmueller
bc02061596 move lib/templates/Attic to lib/attic/templates
This should restore make distcheck
2019-03-26 15:23:36 +01:00
Kornel Benko
0752a263a0 Cmake export tests: some testnames corrected
Also don't use tex gyre fonts, use dejavu instead
2019-03-26 15:11:10 +01:00
Juergen Spitzmueller
683b3a05e2 Introducing table templates
The idea is simple: we insert a pre-formatted table (with a given border
style currently, but other attributes are possible as well) via file-insert
and scale it then to the requested size.

We need three sizes (1x1, 1x2 and 1x3) to generate all sizes properly (due
to border specifications).

Currently, these styles can only be accessed via lfun tabular-style-insert
and the Tabular Create dialog.

My plan is to add a buffer param to set a default style (#9901) which then
also is respected by the toolbar button and probably a layout tag to let
classes specify a default style (#8360).
2019-03-26 13:43:33 +01:00
Juergen Spitzmueller
2ed3b22a06 Add ignorelang option to file-insert
This is useful for inserted files with no real text content
2019-03-26 10:13:33 +01:00
Juergen Spitzmueller
fd28958db0 Add new file to Makefile.am 2019-03-26 09:00:33 +01:00
Pavel Sanda
1c05f4e727 Another from distcheck problems 2019-03-26 01:20:09 +01:00
Kornel Benko
78059a49af Cmake export tests:
Added missing file to make Europass_CV-files compilable
lyxStatus.pm: Added handling for inserted files with used extension
2019-03-25 20:50:58 +01:00
Kornel Benko
226e0bb2b7 Some more tests which are not failin anymore
About 100 less, still remaining about 200
2019-03-25 19:32:59 +01:00
Juergen Spitzmueller
2860266e30 remove buildlyxdir again
per request
2019-03-25 16:46:04 +01:00
Juergen Spitzmueller
285e72a377 sigh 2019-03-25 11:07:10 +01:00
Juergen Spitzmueller
48792d0c67 Move misplaced file 2019-03-25 11:05:21 +01:00
Pavel Sanda
42b643e6fe Toward again working make distcheck.
Not there yet.
Introducing examples/templates into the Rules-lyx hall of fame
make those dirs more sensitive to build stuff.

Something still broken in examples/Articles, not sure what,
maybe filename length, running out of time now.
2019-03-25 10:44:29 +01:00
Juergen Spitzmueller
676570cda9 Add some notes. 2019-03-25 08:28:54 +01:00
Juergen Spitzmueller
90f2ab2b5e Re-fix \origin 2019-03-25 08:07:25 +01:00
Günter Milde
082629d973 Fix included file paths and ctest tag rules after renaming examples 2019-03-24 23:12:02 +01:00
Günter Milde
2bb5b99db4 Fix moderncv.layout
The "photo" style content is a path name (don't escape underscores etc.).
2019-03-24 23:12:01 +01:00
Kornel Benko
b7a3068df0 Cmake export tests: Fix some tests using Curricula_Vitae
Still the German versions are not compilable due to missing file 'REPLACEphoto.jpg'
2019-03-24 22:20:09 +01:00
Juergen Spitzmueller
aed6755f59 Update \origin specifications 2019-03-24 17:34:29 +01:00
Juergen Spitzmueller
a0240c8d65 Move Thesis and Springer templates back to templates
Thanks to \origin, #8643 is fixed (also in stable). Included paths are
thus correctly updated and point to the systemdir.

This only works if LyX is installed, though, since \origin is only set
on install.
2019-03-24 11:21:55 +01:00
Kornel Benko
4d3284ee2c Fixed origin in Game_2.lyx 2019-03-24 07:43:24 +01:00
Kornel Benko
5c0b9529f5 Corrected tests for Variable-width_Minipages, Posters, Presentations
Either correct the path or add the requested image
2019-03-23 17:10:07 +01:00
Juergen Spitzmueller
bc591de662 Add some release notes 2019-03-23 17:02:38 +01:00
Juergen Spitzmueller
8edd7c375e Tutorial, UserGuide: Adapt wrt new templates/examples UI 2019-03-23 16:25:14 +01:00
Juergen Spitzmueller
e8e97b988d typo 2019-03-23 11:30:53 +01:00
Kornel Benko
8d40f6c691 Correctedt tests for PhD_Theses
Adapt to the changed master document
2019-03-23 11:06:10 +01:00
Kornel Benko
c5b086cf81 Use correct path to included figure 2019-03-23 10:56:12 +01:00
Kornel Benko
1f29d4a32f Correctedt tests for Springer_Contributed_Books export tests
Adapt to the changed master document
2019-03-23 10:40:39 +01:00
Juergen Spitzmueller
ebc4092649 Add LFUN_BUFFER_WRITE_AS_TEMPLATE
Convenience function to easier save a file as template in the appropriate
templates folder.
2019-03-23 10:17:33 +01:00
Kornel Benko
75d42f72d9 Corrected tests for chess exports 2019-03-23 10:05:18 +01:00
Pavel Sanda
f6d69e6980 missing example 2019-03-23 09:21:57 +01:00
Juergen Spitzmueller
c44110fada Clarify soul module description 2019-03-23 08:04:57 +01:00
Günter Milde
80b6a0038a Add lib/unicodesymbols support for Hebrew.
Hebrew language must be set (otherwise character macros are not defined)
but this is normally no problem because it is also neede for RTL support.
2019-03-22 23:55:00 +01:00
Juergen Spitzmueller
aff2ee6058 Add soul module 2019-03-22 18:29:50 +01:00
Juergen Spitzmueller
ca024383e0 Fix problematic characters in example/template file names
For (, ) and & we use URL encoding now.
2019-03-22 11:10:49 +01:00
Juergen Spitzmueller
a84103a8d4 Replace unnecessary ampersand in folder name 2019-03-22 09:38:05 +01:00
Günter Milde
4130ab15c6 Fix inputencoding for documentation, examples, and templates.
* "platex" fails with "inputencoding default", if there is text in other languages.
  "jis-platex" works fine, "jis-utf8" fails with German Umlauts (maybe more).

* The expert setting "inputencoding default" switches the inpute encoding
  with language switches without marking this in the LaTeX source.
  It is rarely required (if ever) and makes documents easy to break.

  It is not required for AMS Books, Simple CV, ... (probabely a tex2lyx issue).
  "utf8" and "auto" work fine.
2019-03-22 08:41:55 +01:00
Günter Milde
0b7e51033c Kluwer example fails with Polyglossia. 2019-03-21 17:39:51 +01:00
Uwe Stöhr
01c5d528fe convertDefault.py: remove ancient restriction
there is no longer the need to restrict the image depth (on Windows since years the 16 bit depth version of ImageMagick is bundled)
2019-03-21 02:35:51 +01:00
Juergen Spitzmueller
ca67b8aa2c GuiLyXFiles: add icons that indicate whether a file is from user or system 2019-03-20 18:38:07 +01:00
Scott Kostyshak
7f73e01dde Development.lyx: s/splash.lyx/Welcome.lyx/g
This follows d3ec77c6.
2019-03-19 23:01:42 -04:00
Günter Milde
d6d98ffbe4 Fix remainder of #9681 (textcyrillic and textgreek handling).
* Fix macro termination if \textcyrillic or \textgreek is not required
  for Greek or Cyrillic letter.

* Replace "writeScriptChars" with conditionals in the character-output loop in
  "Paragraph::latex" (solves "FIXME: modifying i here is not very nice...").

The font changing commands \textcyrillic and \textgreek are no longer
part of the textcommand in "lib/unicodesymbols" but added when required
in Paragraph::Private::latexSpecialChar.
2019-03-19 22:46:33 +01:00
Günter Milde
1933102593 ctest update and small documentation fixes. 2019-03-19 22:17:52 +01:00
Kornel Benko
caaa317a95 Amend d3ec77c6: Reorganize templates and example folders
Fixed cmake tests
2019-03-19 10:56:06 +01:00
Juergen Spitzmueller
264481c0b3 Fix redundancy 2019-03-19 08:08:30 +01:00
Juergen Spitzmueller
441b17ec76 Fix redundant naming 2019-03-19 07:13:51 +01:00
Juergen Spitzmueller
d3ec77c633 Reorganize templates and example folders
Re-structure and rename files in a transparent way. Most template/example
names now correspond to the (verbose GUI) name of their layouts.

Note that this, most prominently, also changes [LANG/]splash.lyx to
something less insiderish, namely "Welcome.lyx".
2019-03-19 07:13:18 +01:00
Juergen Spitzmueller
9faae1284b Add new dialog for templates and examples
This lists all respective files from user, build and system directory
in a structured way and thus allows for easier access to them.

Fixes: #2396, #6861
2019-03-19 06:59:24 +01:00
Günter Milde
7f86f93810 unicodesymbols: Add force flags for Arabic and Hebrew input encodings. 2019-03-17 11:31:07 +01:00
Juergen Spitzmueller
569841f292 Update layout versions 2019-03-12 14:14:43 +01:00
Juergen Spitzmueller
8b92a2a689 Add NeedMBoxProtect [inset]layout option
This accesses the inulemcmd output param which protects specific commands
(\cite, \ref) in an \mbox.

This is needed in ulem and soul commands, since their complex
detokenization makes such commands (who produce multiple words via local
assignment) fail.

So now it is possible to properly support ulem and soul via
[inset]layout

Fixes a case reported in #9404
2019-03-12 14:08:05 +01:00
Juergen Spitzmueller
ae8cb7bc6a Add Jürgen Womser-Schütz to the credits 2019-03-11 16:14:13 +01:00
Juergen Spitzmueller
abf38e1820 revert_language: fix document language assignment 2019-03-11 11:42:54 +01:00
Juergen Spitzmueller
8b2f89f8bd thinko 2019-03-11 11:05:10 +01:00
Juergen Spitzmueller
01493e574a Dix revert_language with multiple languages per paragraph 2019-03-11 10:56:50 +01:00
Juergen Spitzmueller
f320ccdfc6 Prevent multiple insertion of language switch at document body 2019-03-11 10:56:12 +01:00
Juergen Spitzmueller
ef9e73d7fe Move function out of loop 2019-03-11 10:37:33 +01:00
Juergen Spitzmueller
3d08c83666 Remove misplaced comment 2019-03-10 13:40:29 +01:00
Juergen Spitzmueller
4bd065f871 use revert_language in more cases 2019-03-10 13:00:10 +01:00
Juergen Spitzmueller
6d6eda3950 Further simplification 2019-03-10 12:43:09 +01:00
Juergen Spitzmueller
27f15ac930 lyx_2_3.py: use revert_language rather than local methods. 2019-03-10 12:36:56 +01:00
Juergen Spitzmueller
c70c049417 Enhance revert_language function
This should now consider all cases (many of which were not handled so far)
2019-03-10 12:36:06 +01:00
Juergen Spitzmueller
bde57076ed Correct message reference 2019-03-10 10:31:39 +01:00
Juergen Spitzmueller
43bec1619c Add Joice to the credits 2019-03-10 10:26:20 +01:00
Juergen Spitzmueller
ebd7a1a22a Support for the Malayalam language
Patch by Joice Joseph
2019-03-10 10:21:59 +01:00
Günter Milde
cc84fa6173 unicodesymbols: Use \r{A} instead of \AA for "Latin letter A with ring" and "Ångström sign".
Xe/LuaTeX convert \AA to the deprecated character u212B (which is missing
in the default LatinModern font) instead of the recommended u00C5.

Also fix some of the "missing character" errors in Math.lyx if compiled with
Xe/LuaTeX which were caused by the replacement of \AA with literal u212B characters
in math-insets due to the old definitions in unicodesymbols.

Update the minimal example for failures of Math.lyx with system fonts.
2019-03-08 18:36:56 +01:00
Günter Milde
ff8cec5ea5 ctests: Problem with auto-date for Ukrainian with Xe/LuaTeX and TeX fonts.
New bug in TeXLive 18.
Missing characters with XeTeX and wrong characters with LuaTeX.

Also:
* Remove spurious (Latin) characters from uk/Intro.lyx
* "wrong-output" tag for Cyrillic documents with XeTeX and TeX fonts.
2019-03-04 16:22:00 +01:00
Günter Milde
fd106637be ctest and documentation update
The special test "arabic_simple.lyx" is no longer required,
"examples/ar/splash.lyx" works with 8-bit fonts now.

Update tagging patterns and comments.
2019-03-04 00:04:04 +01:00
Kornel Benko
d50923d48a Typo 2019-03-02 21:59:29 +01:00
Günter Milde
9ad8c25d7b unicodesymbols: Add force flags for arabic codepage. 2019-03-01 18:52:12 +01:00
Günter Milde
1c57fc31aa Minor documentation fix. 2019-02-28 23:01:14 +01:00
Günter Milde
9abd46b4d5 Fix AttributeError with Python 3.
At least since Python 3.5, `output` is already a
(unicode) string and does not have a "decode" method.
2019-02-28 22:59:30 +01:00
Günter Milde
4de4263f93 ctest update.
* set required non-TeX fonts in the documents
* update comments for inverted tests
* update some tags
2019-02-25 01:19:14 +01:00
Pavel Sanda
b1132a3438 Add few hints for varwidth module. 2019-02-22 16:51:14 +01:00
Pavel Sanda
852896da33 rebuild credits 2019-02-22 16:43:51 +01:00
Jean-Marc Lasgouttes
6293bdbb5a DEPM: document that Freespacing implies KeepEmpty. 2019-02-18 15:36:21 +01:00
Juergen Spitzmueller
71737b87f9 Basic support for biblatex-chicago
This uses a specific wrapper package that must be loaded instead of
biblatex.

Via "Requires biblatex-chicago", this is now possible.

For proper support, a citeengine file needs to be written

This commit here could also be backported to stable.
2019-02-18 13:14:53 +01:00
Scott Kostyshak
1cc6c5055a Intro.lyx: remove a "short title"
This short title removed a spaced, and when taking a look we decided
that the advantages of removing it (simplicity and consistency)
outweigh the benefits of having a shorter entry in the table of
contents and PDF bookmarks.
2019-02-15 12:20:50 -05:00
Günter Milde
251161db89 ctests: "Uninvert" IEEE tests with non-TeX fonts. Fix missing characters.
Documents used deprecated or lookalike characters missing in
Latin Modern system fonts:

Customization.lyx: "figure dash" instead of "emdash".
revtex4-1: "Angstrom sign" instead of "latin letter A with ring".
2019-02-14 01:06:57 +01:00
Günter Milde
1879fbedfb ctest update: Set non-TeX fonts in documents, update comments and tags. 2019-02-13 10:34:18 +01:00
Günter Milde
b0d42b73f1 unicodesymbols: even more "force" flags. 2019-02-11 18:34:08 +01:00
Günter Milde
624b32616c unicodesymbols: one more missing "force" flag. 2019-02-10 16:54:34 +01:00
Günter Milde
ec86638d23 Amend 1e3e30da15 (unicodesymbols) and uninvert tests that now compile. 2019-02-09 20:44:29 +01:00
Günter Milde
1e3e30da15 Force "unicodesymbols" conversions for Hebrew and Arabic encodings.
Fixes wrong output with these encodings for Latin Unicode blocks.
Other Unicode blocks still need verification for correct output.
2019-02-06 16:50:49 +01:00
Günter Milde
321fbb8610 Amend 1c9d3da938 again: some more forced "unicodesymbols" conversions. 2019-02-05 20:29:10 +01:00
Günter Milde
fc0ab1283c Check for CJK instead of CJKutf8.
The specific test was introduced in ef6be5f4 because
CJKutf8 was relatively new (cf. lyx.org/trac/ticket/5386).

10 years on, CJKutf8 is an established part of the CJK bundle
and we can skip the special test for CJKutf8 to make the logic
considerabely simpler to read, maintain and debug.
2019-02-05 11:31:27 +01:00
Günter Milde
f8d42aed39 ctests: update Korean tests, add "language default" test including Chinese.
Set suitable non-TeX fonts in the test document.
Use "kotex" language package.
2019-02-05 11:24:53 +01:00
Günter Milde
9bca147d8b Amend 1c9d3da938: some more forced "unicodesymbols" conversions. 2019-02-05 10:22:53 +01:00
Günter Milde
1c9d3da938 Force "unicodesymbols" conversion for legacy CJK encodings where required. 2019-01-31 18:29:04 +01:00
Günter Milde
319a986fc0 Do not use \inputencoding when the buffer input encoding is one of the "legacy" CJK encodings.
If Document>Settings>Language>Encoding is set to any value except "auto" or "default", we
expect the whole document to use this encoding. Wiht encodings from the CJK package, this means
one big "CJK" environment and no encoding switches.

Characters that are not handled by the CJK package need to be "forced" in lib/unicodesymbols.
This is completed for "euc-cn", the others will follow.
2019-01-30 15:14:45 +01:00
Günter Milde
fa344b9a36 Use "ctex" default fonts (FandongSol) with Xe/LuaTeX.
The default fonts provide a good match to LatinModern and
closer similarity to the look with 8-bit TeX fonts.

Also replace a box-drawing character in a heading with an em-dash.
2019-01-29 22:44:11 +01:00