Commit Graph

42513 Commits

Author SHA1 Message Date
Juergen Spitzmueller
532765c03a Enable AutoInsert with post arguments 2019-06-02 09:25:56 +02:00
Günter Milde
7bb3028607 fixes to lyx2lyx's revert_language tool. 2019-06-02 00:04:34 +02:00
Günter Milde
fc99ef2ab3 ctest test documents for lyx2lyx.
Currently failing due to an error in revert_language().
2019-06-02 00:04:34 +02:00
Günter Milde
d8c913fe59 lyx2lyx refactoring
Reduce code duplication in revert_language, no change to output.
2019-06-02 00:04:34 +02:00
Juergen Spitzmueller
ec4fddb72f de.po 2019-06-01 09:28:21 +02:00
Kornel Benko
bfd58bb6b6 Update sk.po 2019-05-31 20:15:06 +02:00
Juergen Spitzmueller
47eb0452e3 Fix grammar 2019-05-31 18:29:30 +02:00
José Matos
050f0cbc91 Add further debug information fow windows (#11457) 2019-05-31 16:07:13 +01:00
Juergen Spitzmueller
71fe328207 de-po 2019-05-31 16:08:38 +02:00
Juergen Spitzmueller
a3780f8939 Rename List/TOC menu item 2019-05-31 15:46:58 +02:00
Kornel Benko
58804aa399 Omit floating point exception 2019-05-31 12:55:12 +02:00
José Matos
28f17333ff Temporary hack to try to solve #11457 on windows
Redirect the standard output and standard error of the script to a file called debug.txt in the temporary directory.
2019-05-31 10:43:02 +01:00
Juergen Spitzmueller
f162b040b5 Fix spacing 2019-05-31 11:26:40 +02:00
Juergen Spitzmueller
4d4f03c857 Resolve shortcut conflict
Since all used letters are taken, we use the slash
2019-05-31 11:24:08 +02:00
Juergen Spitzmueller
ad78b02b80 Remove superfluous "Insert"
This is in the "Insert" menu.
2019-05-31 10:58:03 +02:00
Juergen Spitzmueller
fe589d5622 Fix toprule with booktabs/longtable and captions 2019-05-31 10:48:00 +02:00
Richard Kimberly Heck
91383e1fec Forgot this part 2019-05-30 20:39:43 -04:00
Richard Kimberly Heck
2e433654c7 Fix bug #11588.
Check for the local file before calling kpsewhich.
2019-05-30 20:32:35 -04:00
Juergen Spitzmueller
f11d4a3cc6 de.po 2019-05-30 11:52:33 +02:00
Juergen Spitzmueller
80aa29d53e Correct German localization
List in the context of TOC, LOF, LOT etc. is not "Liste", but
"Verzeichnis"
2019-05-30 11:47:54 +02:00
Kornel Benko
9ed65d0d66 Update sk.po 2019-05-29 10:58:13 +02:00
Enrico Forestieri
e9b99a3396 Update it.po 2019-05-29 09:25:39 +02:00
Richard Kimberly Heck
762fc05dd9 Add remark about edit menu to release notes. 2019-05-28 16:47:11 -04:00
Richard Kimberly Heck
29d80772fc Re-order and re-shortcut the edit menu. 2019-05-28 16:40:50 -04:00
José Matos
8dd31803b1 Attempt to fix #11457
In python 3 the colors need to be strings and not bytes:

This was the equivalent of

>> print("%s" % b"1")
"b'1'"

since the colors were bytes the call to dvipng was something like

dvipng -Ttight -depth -height -D 115 -fg "b'rgb 0.937255 0.941176 0.945098'" -bg "b'rgb 0.137255 0.149020 0.160784'"  "lyxpreviewxBJEqm.dvi"

Note the "b'rgb after both -fg and -bg that wrecked havoc and thus dvipng failed. That was the difference between python2 and python3 calls.
2019-05-28 16:22:32 +01:00
Richard Kimberly Heck
959ba4a6a0 Add a separator. 2019-05-28 00:23:32 -04:00
Richard Kimberly Heck
8965d5eb8c Put "cancel" option in visible position at top of menu when it is
active.
2019-05-27 23:34:49 -04:00
Richard Kimberly Heck
0d54d3b762 Allow click on the 'spinner' to cancel export. 2019-05-27 23:21:07 -04:00
Richard Kimberly Heck
c4658f046f Fix crash reported by Kornel.
See https://marc.info/?l=lyx-devel&m=155879185229073&w=2.

The problem is that, after saving the document and reloading, the
TOC is corrupted, more or less, when we run through updateBuffer.
So we reset it first.
2019-05-27 22:35:02 -04:00
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