Juergen Spitzmueller
b68bbe8c2e
0x2dd is not covered by utf8 inputenc yet (TL 2018)
2018-04-30 14:50:19 +02:00
Juergen Spitzmueller
768c9a552e
cprotect allows to place environments in fragile contexts.
...
use that possibility.
Fixes parts of #5128 .
2018-04-30 09:06:15 +02:00
Juergen Spitzmueller
0423d381e6
Localize slogan on LyX banner
...
Fixes : #11107
2018-04-29 11:26:25 +02:00
José Matos
94905f9ce3
Use insert_document_option to remove Georgian when reverting.
...
Less code for the same functionality. :-)
2018-04-28 18:47:32 +01:00
José Matos
08182ead14
Remove spurious spaces at the end of lines
2018-04-28 18:31:31 +01:00
José Matos
ea8b0df0e4
Add new semantic functions to add an remove document options.
...
The objective is to identify common operations and place them
in functions in order to improve the readability and correctness of the code.
is_document_option(document, option):
Find if _option_ is a document option (\\options in the header).
insert_document_option(document, option):
Insert _option_ as a document option.
remove_document_option(document, option):
Remove _option_ as a document option.
2018-04-28 15:10:09 +01:00
José Matos
91ded82b52
Small improvement to pre-historic file format conversion.
2018-04-28 14:57:57 +01:00
José Matos
1fe328666c
Improve the readability of lyx2lyx -l option
...
Example:
$ lyx2lyx -l
...
2.2 stable format: 508
stable versions: ['2.2.0', '2.2.1', '2.2.2', '2.2.3', '2.2.4']
development formats: 475 - 507
2.3 stable format: 544
stable versions: ['2.3.0']
development formats: 509 - 543
2.4 stable format: -- not yet --
stable versions: -- not yet --
development formats: 545 - 550
2018-04-28 14:42:31 +01:00
Juergen Spitzmueller
0b2fae66e3
unicodesymbols: add general way to require a feature only for specific encodings
...
A feature can now be required only for specific input or font encodings:
- <feature>=enc1;enc2... Require the feature <feature> only if the
character is used in one if the specified font
or input encodings.
- <feature>!=enc1;enc2... Require the feature <feature> only if the
character is used in a font or input encoding
that is not among the specified.
2018-04-28 13:31:29 +02:00
José Matos
5b160e82be
Update scripts to support simultaneously python 2 and 3
...
The fixes are simple and on line with the changes made during
the 2.3 development. It was an oversight to leave them out.
With this commit all the python scripts should be supported by
python 2 and 3.
2018-04-28 10:51:35 +01:00
Richard Kimberly Heck
9f79ab99ed
Fix bug #11127 .
2018-04-27 20:13:58 -04:00
Kornel Benko
b91bc7d602
Correct graphical reference
2018-04-27 10:54:38 +02:00
Juergen Spitzmueller
389352b3fb
Add optional flavor flag to needaux
...
Also, use latex flavor if no flag is given rather than default output
format
Fixes : #9127
2018-04-25 13:51:40 +02:00
Richard Kimberly Heck
8da025014d
Add bindings for inset-settings.
...
Fixes #7762 .
2018-04-22 23:56:17 -04:00
Juergen Spitzmueller
26ea1e1496
Align fontenc with document fonts
...
Following a request by Günter, we consider the document fonts (only rm
for now) when selecting an appropriate font encoding.
See #9741
The new default font encoding setting "auto" does
* consider the font encoding needed by the language(s), which can now
have fallback alternatives
* Consider which font encoding is provided by the document font
Thus, cm now will result in OT1 fontenc, if the language can deal with
that.
The font_enc pref is ditched: it is no longer needed.
The automatism is still very basic and is subject to extension.
File format and prefs format change.
2018-04-22 19:06:46 +02:00
Kornel Benko
17dc24419a
Adapt test outline-beamer' to the synchronous batch export
...
Also add the 'export'- label to this test
2018-04-22 11:59:19 +02:00
Juergen Spitzmueller
2ed1012ead
Document Provides in languages
2018-04-22 09:07:31 +02:00
Juergen Spitzmueller
02d37932d0
\textcyr -> \textcyrillic
...
Use the command as defined by Babel. This allows us to use the (more
advanced) Babel command if provided instead of rolling our own.
I add a dummy file format change in case it turns out we need to
do something here for old documents (e.g. with user preamble definitions)
2018-04-21 16:28:15 +02:00
Juergen Spitzmueller
71f0dd3a7f
Add Provides tag to languages
...
This allows to specify macros that are provided by specific (Babel)
languages (such as \textgreek)
2018-04-21 15:47:39 +02:00
Scott Kostyshak
6d5e179985
cprotect listings when needed (e.g. in a footnote)
...
This allows to put a non-inline listing in commands, such as a box,
footnote, and margin note.
Fixes #6177 and #9321 .
2018-04-21 00:49:53 -04:00
Scott Kostyshak
88b1c8d521
cprotect Note:Greyedout insets
...
This is consistent with what we do for Note:Comment, and fixes
compilation of documents with a Greyedout inset inside a float
caption, which was reported here:
https://www.mail-archive.com/search?l=mid&q=20180418192851.GH6006%40atrey.karlin.mff.cuni.cz
2018-04-18 21:34:33 -04:00
Juergen Spitzmueller
2822d91224
Typo
...
Thanks, Pavel!
2018-04-18 16:51:24 +02:00
Juergen Spitzmueller
97e1806c4a
Add a floating landscape inset
2018-04-18 16:20:19 +02:00
Juergen Spitzmueller
2551614ff1
Add Landscape module
...
Support for the (pdf)lscape package.
Fixes : #10801
2018-04-18 14:36:49 +02:00
Juergen Spitzmueller
feab528fd1
Add support for rotated longtabulars (via [pdf]lscape)
...
Fixes : #9194
See #9194 for why we use an earlier file format change here.
2018-04-18 13:22:29 +02:00
Juergen Spitzmueller
69596c9278
cprotect knitr chunks
2018-04-15 18:17:35 +02:00
Juergen Spitzmueller
b03c826f27
Whitespace
2018-04-15 12:31:56 +02:00
Juergen Spitzmueller
ef359f58b5
Add cprotection support for paragraph layouts.
2018-04-14 12:57:23 +02:00
Juergen Spitzmueller
e11bda2cea
Layout format update after 2ba584957c
2018-04-14 10:28:22 +02:00
Juergen Spitzmueller
2ba584957c
Add basic support for cprotect
...
This allows (some) verbatim contents in macros, such as \url's with
specific chars (#, % etc.) in section headings or footnotes (#449 )
or comments in captions (#9313 ).
The mentioned two bugs are fixed by this commit.
Note that the implementation is still rather basic and might need
extension for other cases.
2018-04-13 17:46:37 +02:00
Juergen Spitzmueller
33bfbf89c4
Load hyperref with a suitable driver
...
This is mandatory for some features (such as bookmarks,pdfusetitle)
to work, and only a handful of drivers can be auto-detected by hyperref.
Fixes : #6418
2018-04-08 19:02:01 +02:00
jpc
1cbe568d61
Force babel as language package to avoid errors with non-TeX fonts
2018-03-28 11:12:51 +02:00
Pavel Sanda
20ab606975
wasy10 font: fix glyphs codepoints 9,10,12,13.
...
92680495b
follow-up.
pointer: 9 -> 170
bell: 10 -> 171
quarternote: 12 -> 172
halfnote: 13 -> 174
This should be the final one.
2018-03-26 21:54:46 +02:00
Richard Kimberly Heck
aabd3514dc
Update version number in lyx2lyx.
2018-03-26 10:41:49 -04:00
Pavel Sanda
022bc036ca
* stmary10.lyx
2018-03-23 11:11:21 +01:00
Pavel Sanda
0da254c811
stmary10 font: fix glyphs codepoints 10,12,13.
...
92680495b
follow-up.
minuso: 10 -> 171
sslash: 12 -> 172
bbslash:13 -> 174
varcurlywedge: 9 -> 254 -> 170 (first move by Georg)
2018-03-23 10:18:02 +01:00
Pavel Sanda
92680495bb
esint10: attempt on to fix empty symbol glyphs.
...
With advent of qt5 glyphs on codepoints 10, 12, 13 can't be shown anymore.
In this patch we copy the glyph pairs to new codepoints:
dotsint: 19->41 (this one was already moved by Goerg, now moving to the same block)
oint: 11->43
oiint:13->45
I couldn't find fix where both qt4 & qt5 would show correct results,
so this patch fixes qt5 situation, but breaks qt4, which hopefully
won't be needed for master.
Testing and debuging is somewhat tricky, becuse qt sometimes prefer to
load global fonts in /usr/share while ignoring the local git tree.
To be continued in other fonts.
Related reports:
https://www.lyx.org/trac/ticket/8493
https://bugreports.qt.io/browse/QTBUG-66266
2018-03-22 02:26:46 +01:00
Kornel Benko
867867859b
Add Reame to lib/fonts/test
2018-03-20 13:41:29 +01:00
Uwe Stöhr
e8678bc606
Arabic UserGuide.lyx: update from Hatim
2018-03-20 03:32:13 +01:00
Richard Kimberly Heck
5912f25f46
Fix problem with conversion of stmary10.lyx.
2018-03-19 18:46:48 -04:00
Richard Heck
a5c859f863
Update contributor.
2018-03-18 11:34:50 -04:00
Juergen Spitzmueller
cf9f077100
lyx2lyx fixes for the recent font additions.
2018-03-16 09:02:29 +01:00
Juergen Spitzmueller
6a0f0d28a5
Add support for xcharter font.
...
File format change.
Patch by Yuriy Skalko.
2018-03-15 15:44:49 +01:00
Uwe Stöhr
d3c51876a9
add support for the PT fonts
...
- fileformat change
- I also started https://wiki.lyx.org/LyX/NewInLyX24 for new features
2018-03-10 19:59:48 +01:00
Juergen Spitzmueller
3d0ce01ff1
syntax.default: some additions.
2018-03-09 15:17:23 +01:00
Juergen Spitzmueller
23766fdd59
syntax.default: add missing *
...
Fixes : #10501
2018-03-09 14:47:04 +01:00
Uwe Stöhr
7b3a04b07f
Arabic UserGuide.lyx
...
- new file
- it is just a start and put into git to assure that we keep a compilable version
- Hatim will bit by bit translate it
- can be removed if it should not be ready before the next major release
2018-03-09 05:53:39 +01:00
Uwe Stöhr
1174279967
tex2lyx: parse \xymatrix
...
LyX's \xymatrix support relies on math therefore put it into math and parse its content
fixes bug #10638
2018-03-09 04:53:33 +01:00
Juergen Spitzmueller
822aef947b
Amend 4ec133e1ae
...
Didn't see this test is already there.
(cherry picked from commit 83c7e818f8
)
2018-03-06 19:56:24 +01:00
Uwe Stöhr
6fde01e70e
Arabic doc files: corrections by Hatim
2018-03-05 22:34:10 +01:00
Richard Heck
5531b40c9b
Simplify code a bit.
...
(cherry picked from commit 490506c45f
)
2018-03-02 23:12:35 -05:00
Richard Heck
cec9edd34b
Use pythonic syntax, as suggested by José.
2018-03-02 23:02:46 -05:00
Uwe Stöhr
64d1751f2f
configure.py: fix bug #11053
...
- add quotes around the path to the python executable
2018-03-02 20:14:58 +01:00
Juergen Spitzmueller
905516fd70
Fix the implementation of new libertine package
...
Needs to go to 2.3.1-staging
2018-03-02 12:17:33 +01:00
Pavel Sanda
a32573a16f
sv.po reviewed by Jim
2018-02-24 14:11:04 +01:00
Juergen Spitzmueller
dee1994451
Add LyX 2.3 format
2018-02-23 08:59:20 +01:00
Juergen Spitzmueller
e0a5babde7
Add literal param to InsetInclude
...
This is used by lstinput
File format change.
Fixes : #10544 .
2018-02-23 08:58:16 +01:00
Uwe Stöhr
713970001a
Arabic Shortcuts.lyx: fixes by Hatim
2018-02-22 15:35:50 +01:00
Uwe Stöhr
652ca5f578
Arabic Shortcuts.lyx: translation update from Hatim
2018-02-21 19:58:25 +01:00
jpc
2224258ddb
More French translations of the UserGuide
2018-02-21 16:47:55 +01:00
Juergen Spitzmueller
8a703573ea
Implement IsTocCaption for normal layouts.
...
But use default "true" to maintain current behavior if not explicitly
stated otherwise.
Fixes : #11045
2018-02-21 16:37:07 +01:00
Jean-Marc Lasgouttes
6d582e5e50
whitespace
2018-02-21 12:09:18 +01:00
Jean-Marc Lasgouttes
4447fb349c
Add Alex Dunlap to our contributors
2018-02-21 12:05:40 +01:00
jpc
110a5e2a15
More translations for fr/UserGuire.lyx
2018-02-21 11:51:56 +01:00
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