Commit Graph

8910 Commits

Author SHA1 Message Date
Enrico Forestieri
dc0b21525b New icons for dynamic inset and charstyle menus.
These icons are more in line with the default theme, IMHO.
2018-05-07 11:55:47 +02:00
Juergen Spitzmueller
de8302523b Document nospellcheck 2018-05-07 09:28:55 +02:00
Juergen Spitzmueller
653bbd27fe UserGuide: Reset > Default 2018-05-07 09:14:55 +02:00
Juergen Spitzmueller
57dc817581 Add \nospellcheck font property
This revives a ten year old idea (and patch) by Dov.

You can now mark in the character dialog text and exclude it from spell
checking.

Fixes: #1042

File format change

Remaining issue: The instant spell checking marks are not immediately
removed, but only after some editing.
2018-05-06 19:48:21 +02:00
Richard Kimberly Heck
40a61357af Try some new icons for new dynamic inset and charstyle menus.
Suggestions by Pavel. Also move menus on toolbars per his suggestions.
2018-05-06 13:39:17 -04:00
Juergen Spitzmueller
4c8883b0e1 UserGuide: Adapt to new character dialog.
Also differentiate more between (semantic) Character Styles and (formal)
Text Properties.
2018-05-06 14:17:28 +02:00
Juergen Spitzmueller
09b2e337f7 Make textcommabelow feature conditional on encoding 2018-05-05 15:43:54 +02:00
Günter Milde
94c97feb76 Use combining accents instead of ERT for accented cyrillic letters.
Combining accent charactrs were not supported at the time the Russian
documentation was written. Eventual display problems with some GUI
fonts are still less distracting  than ERT.
2018-05-04 15:29:56 +02:00
Günter Milde
fa35f552cd Drop "force" from replacements for letters with comma-below accent. 2018-05-04 15:29:12 +02:00
Richard Heck
cc4bfc7f04 Add toolbar menus for custom insets and character styles.
I'm open to putting this elsewhere on the toolbar, or even on a
different toolbar. Also, we need decent icons. These ones are not
intended seriously but were just borrowed for testing purposes.
Anyone have good ideas about icons?
2018-05-02 20:31:24 -04:00
Scott Kostyshak
065e37e96f Do not use needauth when only exporting code
We have a couple of converters (using Sweave and knitr to "tangle"
an intermediate file) that are used for exporting code chunks
contained in a .lyx file. Since the code is just exported to a text
file and is not executed, needauth is not necessary.
2018-05-02 11:08:51 -04:00
Scott Kostyshak
0d1b981b2b MergedManuals.lyx: remove example files in Note
A Note inset contained two example files. The linguistics example
file caused terminal messages like

  step: Counter does not exist: examplei

An alternative to removing the example file would be to add the
module, but it is not clear we want example files in the merged
file anyway.
2018-05-02 11:08:51 -04:00
Juergen Spitzmueller
efd29cc200 Fix link 2018-05-01 13:30:26 +02:00
Juergen Spitzmueller
0013389864 aa_sample: cosmetics. 2018-05-01 08:16:43 +02:00
Juergen Spitzmueller
0a68c7cb3c de/EmbeddedObjects: make compilable with utf8 encoding 2018-05-01 07:04:15 +02:00
Richard Heck
35afcfb6dd Fix bug 11070.
Allows plural, caps, no prefix to be set via context menu.
2018-04-30 21:29:21 -04:00
Juergen Spitzmueller
444461e294 When using ERT for accent in Russian docs, embrace base character
Otherwise utf8 inputenc chokes.

It is also possible to enter those accented chars directly, but this
results in display problems in the workarea (the line is shifted downwards).
2018-04-30 18:33:27 +02:00
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