Commit Graph

8879 Commits

Author SHA1 Message Date
Uwe Stöhr
b04e6eae3b port the recent fixes and update of layouttranslations to master 2018-02-20 20:42:36 +01:00
Uwe Stöhr
9457c60d52 move README.Documentation to attic
It is outdated since many years now and we have the relevant info in the Development.lyx file
2018-02-20 20:31:00 +01:00
Uwe Stöhr
973b4447ba ar.po and layouttranslations: updates from Hatim 2018-02-20 18:06:06 +01:00
Uwe Stöhr
b854df1b47 splash.lyx and ru.po: updates from Yuriy 2018-02-19 23:32:20 +01:00
Uwe Stöhr
2eb8016e78 layouttranslations and uk.po: corrections from Yuri 2018-02-19 23:16:06 +01:00
Juergen Spitzmueller
5b331b1466 Fix convert_separator routine with ancient LyX files. 2018-02-19 18:03:52 +01:00
Uwe Stöhr
599e41e237 French UserGuide.lyx: fix a typo 2018-02-18 23:42:03 +01:00
jpc
0afd533085 Partial update of fr/UserGuide.lyx 2018-02-18 22:45:27 +01:00
Scott Kostyshak
0c2f431003 Add Nomenclature to localization_test.lyx 2018-02-18 00:40:53 -05:00
Uwe Stöhr
7df53d50f2 port recent Basque translation updates 2018-02-18 02:24:22 +01:00
jpc
83485b670e Untranslated menu name in fr/EmbeddedObjects.lyx 2018-02-17 18:44:03 +01:00
jpc
c9a9f26f42 A couple of forgotten items in fr/Additional.lyx 2018-02-17 18:33:25 +01:00
jpc
99b6af52f1 Remove spurious occurrence of AGU and EGS chapters in fr/Additional.lyx 2018-02-17 18:08:25 +01:00
Uwe Stöhr
1fb1b0a3f8 UserGuide.lyx: document the removal of the pixmap cache for all languages 2018-02-14 14:51:22 +01:00
Richard Heck
5f1b32f8c5 Also fix chapter layout in tufte-book. 2018-02-12 16:29:54 -05:00
Pavel Sanda
8160ed97bf * lib/layouttranslations, sync with 2.3 2018-02-12 21:40:06 +01:00
Pavel Sanda
149f03d403 Fixing painting regression - chapter top spacing.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203685.html
2018-02-12 21:14:56 +01:00
Uwe Stöhr
5c1a121d1d Customization.lyx: distribute all tracked changes 2018-02-12 18:53:12 +01:00
Jean-Marc Lasgouttes
54e491c6fe There is actually a home for obsolete templates in Makefile
Fixup to 24fd7d2b.
2018-02-12 17:19:10 +01:00
Jean-Marc Lasgouttes
24fd7d2bac Remove template AGUTeX.lyx from Makefile 2018-02-12 17:06:19 +01:00
jpc
86e42848fe Remove sections 6.7 and 6.4 from Additional manual (obsolete classes egs and aguplus)
Edit LaTeXConfig.lyx accordingly
       Move teaplates/AGUTeX.lyx to teaplates/obsolete
2018-02-12 11:33:17 +01:00
Juergen Spitzmueller
b0ecfebad4 biblatex-natbib.citeengine: Remove erroneous blank 2018-02-11 16:43:14 +01:00
Juergen Spitzmueller
71fea63326 Disable CheckTeX while buffer is processed
Since CheckTeX itself processes the tex file, a synchronous run with
a TeX process can lead to all sorts of conflicts, including crashes.

Fixes: #7434.
2018-02-10 18:18:43 +01:00
Günter Milde
8f86b72cf4 lyx2lyx fixes and cleanup.
Don't insert empty line when translating QuoteInsets to literal
quotes.

Fix regexp pattern in re/convert_dashligatures.

Adjust logic in re/convert_dash(ligatur)es.
2018-02-09 16:49:23 +01:00
Pavel Sanda
b7caaf6196 Proper naming of LFUN_SET_GRAPHICS_GROUP. 2018-02-08 21:59:41 +01:00
Pavel Sanda
b88ed81e7f Unify graphics-groups inside marked block functionality.
Fixes #11026.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203683.html
2018-02-08 21:33:37 +01:00
Günter Milde
e4f90cdf65 lyx2lyx refactoring.
Avoid duplicate code. Fix some corner-cases.
2018-02-07 18:49:21 +01:00
Günter Milde
2ddaa0a59b New lyx2lyx parser tools find_substring() and set_bool_value(). 2018-02-07 18:49:20 +01:00
Juergen Spitzmueller
9b23b49d41 Do not show "Abstract" label in KOMA classes
This is not output by those classes (per default).
2018-02-06 18:39:00 +01:00
Günter Milde
2b451f01f5 Add newlines around \backslash in put_cmd_in_ert.
Fix for 2fce4d49ee.
2018-02-04 10:16:54 +01:00
Günter Milde
8caa9701b9 Use re.match to find regexp at begin of string/line.
Consistently use the re.match() or the match() method of a
regexp object to find a match at the begin of a line.
This is faster than re.find('^...').

Cf. https://stackoverflow.com/questions/180986/what-is-the-difference-between-re-search-and-re-match
(The subtle difference for multi-line strings is irrelevant for
configure.py, as we match line-wise.)
2018-02-04 10:08:07 +01:00
Pavel Sanda
584b83d33c Fix sideset hints, part of bug #11015. 2018-02-03 17:51:00 +01:00
Richard Heck
16a6a98182 Harden a few of the other regexes, too.
I've tested this and get no difference of output.
2018-02-01 22:14:51 -05:00
Richard Heck
50676c782a Make module and citeengine regexes a little more discerning. 2018-02-01 22:11:45 -05:00
Richard Heck
0e3d209295 Double escape binary regexes in module and citeengine searches.
See previous commit for explanation.
2018-02-01 22:11:45 -05:00
Richard Heck
6b5a7116cd Double escape binary regex in lyx2lyx and fix line-ending problem.
When we switched from r'...' to b'...', this required strings used
as input to re.compile to be double-escaped. It's not an issue with
"\s", because "\s" has no special meaning in a string.

Also, printing in binary mode did not output a line ending.
2018-02-01 22:11:45 -05:00
Uwe Stöhr
46845d8069 French docs: remove a file that was accidentally committed 2018-02-01 05:19:08 +01:00
Uwe Stöhr
5e7c44d7b6 pt_BR.po: updates from Georger
- He also reviewed layouttranslations and says it is OK
2018-02-01 05:11:17 +01:00
Günter Milde
2fce4d49ee lyx2lyx refactoring.
* use unicode.transform() instead of loop over replacements
* telling variable names
* remove trailing whitespace
* documentation update
* don't set use_ligature_dashes if both dash types are found
* remove spurious warning, normalize indentation, and use
  Python idioms in revert_baselineskip()
2018-01-31 21:13:43 +01:00
jpc
e4c0c6afdf Remove unappropriate French style command from preamble 2018-01-31 17:51:27 +01:00
Günter Milde
ed3f6801bd Remove spurious no-break space. 2018-01-31 11:01:11 +01:00
Uwe Stöhr
08ebc32123 French Additional.lyx: sync with branch 2018-01-31 05:47:41 +01:00
Günter Milde
0d9708ef04 Use LaTeX macros instead of Latin transcription for Greek characters.
Use the LaTeX internal character representation (LICR) macros
provided by lgrenc.def (since version 0.8 from 2013-05-13)
in lib/unicodesymbols. This fixes the PDF bookmarks (except for the
legacy input encoding iso-8859-7) and solves the problem of a missing
"v" character in Libertine LGR fonts (see lyx-users from 2018-01-29).

The ctest unicodesymbols/008-greek-and-coptic_iso8859-7_pdf2" now fails
(due to #9681). This is not a regression, as it is already
"unreliable" (wrong output, Latin character instead of Greek).

Drop compatibility definition of \~ as perispomeni accent
(that was required with lgrenc.def < 0.8).
2018-01-30 22:31:08 +01:00
Günter Milde
232c5b7766 Do not use "ligature dashes" with French documents.
In Spanish and French, dashes around parenthetical statements
are treated similar to brackets: line breaks are not allowed
on the inner side. Use of "breakable" dashes risks accidential
line breaks after the "opening" dash.
(Ligature dashes allow line breaks even if a no-break space follows.)
2018-01-30 21:49:12 +01:00
Juergen Spitzmueller
7e071f14b9 Once more, the libertine font package has been renamed.
Take the newest one, if present.

Candidate for 2.3.x.
2018-01-30 08:16:06 +01:00
Uwe Stöhr
59ce6dac2f French EmbeddedObjects.lyx: sync document settings with English version
- English EmbeddedObjects.lyx: correct a typo
2018-01-29 15:10:02 +01:00
Juergen Spitzmueller
fc2d8238dc Add Bibliography to the Outliner.
Fixes: #11001, #7724.
2018-01-29 09:09:51 +01:00
Uwe Stöhr
d809ced05b Additional.lyx: port recent changes 2018-01-29 01:35:23 +01:00
Juergen Spitzmueller
8a08a19122 Document B_ in cite style definitions 2018-01-27 14:53:18 +01:00
Juergen Spitzmueller
5db4d712ef Differentiate Buffer strings and GUI strings in citeengines
The former need to be translated to the buffer language, the latter to
the GUI language.

Fixes: #10946
2018-01-27 14:29:41 +01:00
Pavel Sanda
2900f93c81 * layouttranslations - update ar, ru, el 2018-01-26 19:49:40 +01:00
Scott Kostyshak
9b262fcff4 Correct \origin in the new ru examples 2018-01-24 23:43:34 -05:00
Günter Milde
a151b274bf Fix lyx2lyx dash conversion and make it faster. 2018-01-24 17:38:19 +01:00
Günter Milde
a77cfef1c6 Fix some more lyx2lyx round-trips.
Also restore corrupted seminar example.
Add default return value to parser_tools.is_in_inset().
2018-01-24 01:04:14 +01:00
Günter Milde
67eca412ff Fix some lyx2lyx round-trip tests.
Fix cases where lyx2lyx adds changes with every round cycle
uncovered by recent ctest change.

Add optional `delete` argument to parser_tools.get*value():
If True, delete the matching line.

More efficient "allowbreak" con/reversion.
2018-01-23 14:01:30 +01:00
Günter Milde
8da6cdcf23 New lyx2lyx tools.
New lyx2lyx parser tools find_complete_lines() (replaces find_slice),
del_complete_lines(), and find_across_lines(). Default value 0
for start argument in utility functions.

Rework the implementation of dash-conversion.
2018-01-23 09:10:50 +01:00
Günter Milde
8e825de4b2 Fix preamble-code removal in lyx2lyx. Do some optimizations.
Fix failure of revert_dashes() found by lyx2lyx ctests
using an efficient function to find a given sequence of lines
in a list of lines.

Some optimizations using Python idioms instead of C-like code.
2018-01-21 19:55:27 +01:00
Uwe Stöhr
1450b99ed1 UserGuide.lyx: correct an equation
thanks Yuriy for spotting
2018-01-19 01:02:25 +01:00
Uwe Stöhr
98cfc25277 ru.po: updates from Yuriy
- also some updates for Tutorial.lyx
2018-01-19 00:31:47 +01:00
Günter Milde
9ce5d8578b Prevent rows of hyphens becoming dashes when back-porting to 2.1.
Insert ligature breaks between hyphens where
they are separate in 2.2 but ligated by TeX in 2.1.

This fixes output with LyX 2.1 and prevents -- and --- becoming
en and em dash in the LyX source after a round-trip to 2.1
and back.

Solves lyx2lyx ctest failures with a warning about
possible line-break changes.
2018-01-17 21:39:03 +01:00
Uwe Stöhr
1d81e098a3 French example files: port recent changes to master 2018-01-17 15:58:07 +01:00
Kornel Benko
d794a6d60d Add testfiles-references to automake build: vcs_info_export moved to new directory, part 4 2018-01-17 15:31:57 +01:00
Kornel Benko
26eeaa1af2 vcs_info_export moved to new directory, part 2 2018-01-17 12:25:22 +01:00
Günter Milde
6fe2e45f97 Remove trailing whitespace in lyx2lyx. 2018-01-17 09:48:08 +01:00
Uwe Stöhr
58121e887a example files: distribute some changes
- French:
 - fix compilation of beamer.lyx
 - update a screenshot
2018-01-16 14:50:25 +01:00
Uwe Stöhr
5f93099b88 EmbeddedObjects.lyx: fix a typo spotted by Paul Rubin
fixes #10965
2018-01-16 04:45:44 +01:00
Uwe Stöhr
53188a5f47 doc files: correct preamble commands
thanks toe Jean-Pierre
2018-01-16 04:08:52 +01:00
Scott Kostyshak
baefa82a81 Restore 3c6fa867 and b83252b1
This restores the https URLs.
2018-01-15 16:51:35 -05:00
Scott Kostyshak
a816ef9c33 Restore math options to "load automatically" 2018-01-15 16:51:35 -05:00
Scott Kostyshak
caa6602a15 Restore \origin 2018-01-15 16:51:35 -05:00
Scott Kostyshak
ef9a05dede Big changes to ja/sweave/lyx and ja/knitr.lyx
- Use bxjsarticle + XeLaTeX instead of article + pLaTeX.
- Use LyX's "chunk" inset instead of ERT.
- Translate a couple of English strings.

Patch from Koji Yokota.
2018-01-15 16:51:35 -05:00
Pavel Sanda
3a57f9766c * layouttranslations.review
wa never used, da forgotten, en not needed.
2018-01-14 14:33:38 +01:00
Pavel Sanda
f50e980a40 * layouttranslation.review: pt reviewed by Jose.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg203376.html
2018-01-14 14:03:55 +01:00
Kornel Benko
aed458f007 Cmake tests: New test for the outliner with beamer
Test idea from Pavel Šanda
Move insets down and up, then compare with expected latex output.
2018-01-14 13:47:27 +01:00
Uwe Stöhr
058ee9ab00 UserGuide.lyx: distribute recent changes 2018-01-12 04:54:03 +01:00
Uwe Stöhr
92955116b0 Additional.lyx: re-sync with master
please use use LyX 2.3.x and keep the docs in sync unless you describe a new feature of LyX 2.4
2018-01-12 02:42:36 +01:00
Günter Milde
0fb2edacdc Use Flex Code inset instead of typewriter custom font style.
Change markup to use semantic markup instead of hard-coded
typewriter for code examples containing --.
Works around false positive warning on changed dashes
leading to lyx2lyx export ctest failures.
2018-01-12 00:35:00 +01:00
Juergen Spitzmueller
3daa447c3c Take AgainFrame to the TOC. 2018-01-11 13:14:16 +01:00
Günter Milde
73b6f42362 Do not convert dashes/hyphens in LyX-Code.
See previous commit and #10961
2018-01-10 12:07:36 +01:00
Günter Milde
cb1fda9988 Do not convert dashes/hyphens in Code insets (logical markup).
Code is by default rendered as typewriter and should be treated
similar:
In text marked up as code, -- or --- is typically part of a
command (e.g. "lyx --help" or "x--") and not a transliteration
for en dash, see #10961.
This is already handled so for text in typewriter font
(see Text.cpp:500).
2018-01-10 12:07:36 +01:00
Uwe Stöhr
bb650bf8c2 Changelog-Customization-LyX_23x.txt: dummy commit as text 2018-01-10 02:12:40 +01:00
Uwe Stöhr
4abe7d0181 Customization.lyx: distribute and accept recent changes 2018-01-09 01:28:26 +01:00
Uwe Stöhr
20df4da55f EmbeddedObjects.lyx: port updates and fixes from Jean-Pierre to master 2018-01-08 15:54:08 +01:00
Juergen Spitzmueller
7da8473c4f Start inset at new line 2018-01-06 10:43:44 +01:00
Juergen Spitzmueller
44670d4778 Customization: some color name fixes. 2018-01-06 09:31:24 +01:00
Juergen Spitzmueller
016393a0dd Minor re-ordering of the Insert menu 2018-01-05 11:09:11 +01:00
Günter Milde
0674abf4a0 Update UserGuide and de/UserGuide.
Remove warnings for issues fixed in lyx2lyx.
Update the GUI name of the ligature-dash Option.
Fix example for preventing unwanted line break in French.
2018-01-02 12:56:49 +01:00
Juergen Spitzmueller
8d8ee12e64 Update layout format 2018-01-02 11:53:01 +01:00
Günter Milde
5dc48f7ef9 Documentation fixes: revert conversion of -- to en dash in code.
lyx2lyx erroneousely merged -- to en dash in text with logical
markup "code".
Revealed by recent (but now silenced) ctest fails.

Also add space around en dash in examples.
2018-01-02 11:20:35 +01:00
Uwe Stöhr
69ef4bc146 Russian doc files: new and updated translations by Yuri 2018-01-01 16:56:31 +01:00
Uwe Stöhr
fd3b9cf6c6 French UserGuide.lyx: port Jean-Pierre's recent changes to master 2018-01-01 14:39:59 +01:00
Juergen Spitzmueller
8f86feb260 Prepend "Insert " in the context menu for environment separators. 2018-01-01 13:40:49 +01:00
Juergen Spitzmueller
ebc3fee728 mention new option 2018-01-01 12:41:00 +01:00
Juergen Spitzmueller
91008d8b21 LFUNS.lyx: update 2017-12-31 18:58:32 +01:00
Juergen Spitzmueller
fe698caeec Distribute UG changes following menu move of environment-split 2017-12-31 10:14:59 +01:00
Juergen Spitzmueller
b0801b43f4 Distribute auto-nest documentation. 2017-12-31 10:00:38 +01:00
Juergen Spitzmueller
cc8ce481f5 Distribute beamer manual changes in the wake of the environment-split mods. 2017-12-30 19:29:51 +01:00
Juergen Spitzmueller
c8abe0cf7b Move environment-split from Edit to Insert, as requested. 2017-12-30 17:54:09 +01:00
Juergen Spitzmueller
3a4b233dbd Properly implement IsTocCaption for Arguments in standard TOC
Fixes: #10631

Candidate for 2.3.x.
2017-12-29 11:51:24 +01:00
Juergen Spitzmueller
f3b89e4c72 Add IsAutoNestedBy
This is complementary to AutoNests: Styles can determine which other
style should auto-nest them. This is particularly useful for modules
that add new styles which should be auto-nested in a given context.
2017-12-29 10:36:03 +01:00