Commit Graph

40484 Commits

Author SHA1 Message Date
Kornel Benko
48a5b16885 Add a testcase for buffer-write-as 2019-05-27 10:21:15 +02:00
Enrico Forestieri
b3db2325ed Prefer mathmode commands over textmode ones
Translating → to \rightarrow in a \ce inset produces the right
glyph. Instead, translating it to \textrightarrow produces a
different glyph (β).
2019-05-26 13:06:44 +02:00
Enrico Forestieri
c8f056417f Use ranges 2019-05-26 12:31:02 +02:00
Enrico Forestieri
15f4fa452d Supplement the fix for bug #11586
The mhchem \ce inset is a text mode environment but allows entering
spaces and mathmode commands. However, even if it doesn't allow unicode
symbols, LyX allows entering them (by copy/paste, for example), causing
latex errors. As a unicode symbol may have a proper latex representation
from the unicodesymbols file, use it instead of the bare symbol. Here, we
don't care about the mode because both text and math mode should be allowed.
For example, the ⟶ symbol is not recognized but its latex representation
(\longrightarrow) is fine. Of course, there may be symbols that are
not recognized anyway, but this is better because they cause explicit
errors from mhchem instead of cryptic iconv errors in case they cannot
be represented in the document encoding.
2019-05-26 09:56:34 +02:00
Enrico Forestieri
bda3b799c5 Partial fix for bug #11586
Do not replace a latex command with the corresponding symbol
in the unicodesymbols file unless it can be encoded in the
document encoding.
2019-05-26 09:27:46 +02:00
Günter Milde
c83765163f CJK package is never used with non-TeX fonts.
Prepare for languages that use CJK with TeX fonts and Polyglossia
with non-TeX fonts.

Korean is already supported by Polyglossia,
LyX support will follow (file version change).
2019-05-26 01:45:35 +02:00
Günter Milde
45c5b39692 Adapt lyx2lyx to the lineno support fix in [88f471899/lyxgit]. 2019-05-25 15:32:24 +02:00
Günter Milde
2ea92342b7 Make doc/UserGuide.lyx independent of French and Spanish language LaTeX support. 2019-05-25 15:32:24 +02:00
Günter Milde
ad8a71a7b9 ctest tagging update. 2019-05-25 15:32:24 +02:00
Günter Milde
d1b89c59d4 Remove non-required ternary conditional.
In a branch only entered when not using Xe- or LuaTeX,
we don't need to care about polyglossia.
2019-05-25 15:32:24 +02:00
Jean-Marc Lasgouttes
4da19ef833 Cell in delimiter inset should not be tight
Fixes bug #11337.
2019-05-25 14:11:39 +02:00
Kornel Benko
ef6ddfc788 Amend 7f125f62d2, Introduce doc preference for line numbering
Correct expected lyx files created by tex2lyx.
2019-05-24 18:17:50 +02:00
Juergen Spitzmueller
1cafea7cf7 Read line edit label
Otherwise it is not clear what this means.
2019-05-24 17:51:42 +02:00
Juergen Spitzmueller
b6cb557c7d size tweak 2019-05-24 17:39:22 +02:00
Pavel Sanda
bea2756472 lineno: dump lineno buffer token if false/empty as well.
Oversmarted myself. Wanted to save .lyx header from overbloating but
dialog's UI depends on those tokens when disabling the option in UI.
2019-05-24 15:50:10 +02:00
Pavel Sanda
88f4718996 lineno: convert ui GB to CB per Juergen's request 2019-05-24 15:40:09 +02:00
Günter Milde
09e69f96dd Complete lyx2lyx for new "lineno" settings. 2019-05-24 13:51:46 +02:00
Günter Milde
eedd862637 Update test doc for #11584 2019-05-24 13:51:46 +02:00
Kornel Benko
c9716d5aab Update sk.po 2019-05-24 12:00:13 +02:00
Juergen Spitzmueller
38cbc44e48 de.po: update 2019-05-24 11:11:45 +02:00
Juergen Spitzmueller
03d9fe3a80 Some grammar and casing fixes and tooltip improvements 2019-05-24 10:59:00 +02:00
Juergen Spitzmueller
aefb7a1c5e Fix typo in de.po 2019-05-24 10:20:01 +02:00
Kornel Benko
4f18eacfaf Update sk.po 2019-05-23 18:15:31 +02:00
Pavel Sanda
c29f0d21cd UserGuide.lyx - few notes for lineno. 2019-05-23 16:15:38 +02:00
Pavel Sanda
7f125f62d2 Introduce doc preference for line numbering.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg208781.html
2019-05-23 15:13:27 +02:00
Pavel Sanda
e3707f1331 Resave NumberingUi.ui in qt5 designer 2019-05-23 15:11:39 +02:00
Jean-Marc Lasgouttes
621c908f85 Always paint text decoration when painting inset.
Fixes bug #11402.
2019-05-23 11:30:35 +02:00
Jean-Marc Lasgouttes
7cc4ceb89c Fixup da2696cc: do not clear useful information from row
Ensure before calling breakRow that the row is empty.

Remove Row::clear(), which has unnatural semantics.

Fixes bug #11396.
2019-05-23 10:26:08 +02:00
Richard Kimberly Heck
596b3c4522 Include all parent branches in the menu.
Previously, we only included branches from the master document. This
includes those from the parent, grandparent, etc, and does so in a way
that won't crash on recursive includes.
2019-05-22 22:00:31 -04:00
Richard Kimberly Heck
1842a11b3b Change how branches are displayed on the menus.
Show this document's branches first in the menu, and then show the
master document's branches on a sub-menu.
2019-05-22 21:41:22 -04:00
Richard Kimberly Heck
24fefaf23d Use ranges. 2019-05-22 21:41:22 -04:00
Richard Kimberly Heck
5fa493aa4a Re-organize and comment code a bit. 2019-05-22 20:58:00 -04:00
Jean-Marc Lasgouttes
da2696cc63 Initialize row preperly on clear()
It is not enough to get rid of the row elements, obviously. In
particular, changebar_ may never get reset.

Fixes bug #11396.
2019-05-22 11:56:14 +02:00
Kornel Benko
09f3c9f03d Update sk.po 2019-05-21 14:16:33 +02:00
Juergen Spitzmueller
957e8669c7 Add hint to warning. 2019-05-21 13:26:57 +02:00
Juergen Spitzmueller
3d85d344c4 de-po 2019-05-21 13:20:10 +02:00
Juergen Spitzmueller
c77be6146b Fix warning message 2019-05-21 13:06:37 +02:00
Juergen Spitzmueller
ebc2b1295a Check character encodability with pass-thru in command insets
Fixes: #11584
2019-05-21 12:59:18 +02:00
Kornel Benko
906c2ae317 Update sk.po 2019-05-21 07:26:01 +02:00
Richard Kimberly Heck
714241c313 Inform user of the new name of the emergency file. 2019-05-20 21:23:40 -04:00
Jean-Marc Lasgouttes
ee30296402 Add bg.gmo to repo 2019-05-20 12:28:36 +02:00
Jean-Marc Lasgouttes
c8407274c1 Remove files that do not exist anymore 2019-05-20 12:16:57 +02:00
Kornel Benko
5dbcf3743a Update sk.po 2019-05-19 20:04:20 +02:00
Enrico Forestieri
2424851b09 Fix compilation
This amends [b88a3747/lyxgit].
2019-05-19 16:34:57 +02:00
Enrico Forestieri
b88a37473f Remove redundant condition
The removed condition is always true.
This amends [61efbff5/lyxgit].
2019-05-19 12:33:46 +02:00
Enrico Forestieri
ff7eb0eb38 Add submenu to math context menu
The "Rows & Columns" optional submenu is more easily accessible in
the math context menu rather having to navigate to the "Edit" menu.
All possible accelerators are already taken, so use the space bar.
2019-05-19 11:45:13 +02:00
Enrico Forestieri
61efbff545 Fix bug #10498
Use the selection as the argument of a macro also when the
macro has only optional arguments.
2019-05-18 16:06:33 +02:00
Enrico Forestieri
1a286c7910 Fix bug #10499
The array environment has to be explicitly parsed in math mode.
2019-05-18 11:36:07 +02:00
Günter Milde
05877e0e60 ctests: sort dedicated test samples 2019-05-17 20:54:29 +02:00
Günter Milde
d98fc497ea Register new module. 2019-05-16 21:21:53 +02:00