Commit Graph

9493 Commits

Author SHA1 Message Date
Pavel Sanda
a6634f5bb3 git VCS: add support for short hashes in inset info ("Abbreviated revision").
Fixes bug #11620.

Patch from Joel Kulesza.
2019-07-28 22:01:17 +02:00
Richard Kimberly Heck
4597622ce5 Fix typo 2019-07-25 00:05:21 -04:00
Juergen Spitzmueller
6c2a0c6b37 Correct visual/logic cursor description 2019-07-23 07:36:53 +02:00
Jean-Marc Lasgouttes
bcd998c1eb forgot this 2019-07-22 15:48:28 +02:00
Jean-Marc Lasgouttes
2898c335be Add mechanism to change icons in RTL mode
When the cursor in RTL text, icons for "depth-increment" or
"layout-toggle Enumerate" look wrong.

To fix this, the lfun "bidi" is introduced. "bidi ltr func" behaves
like "func" in LTR text, but is unknown in RTL text. "bidi rtl" does
the opposite. This allows to add two icons, but only have one icon
available. When no document is available, only LTR is assumed.

To make this work, the handling of unknown functions in toolbar has
been changed so this these functions can change dynamically their
existence.

The icon themes `default', `oxygen' and `classic' have been updated
accordingly.

Fixes bug #4451.
2019-07-22 15:20:38 +02:00
Juergen Spitzmueller
55465142ff UserGuide: decimal separator updates. 2019-07-22 08:13:45 +02:00
Juergen Spitzmueller
2b41bf22a9 de/UserGuide: correction 2019-07-21 17:59:53 +02:00
Juergen Spitzmueller
f47e5ea24b UserGuide: update prefs language documentation 2019-07-21 14:37:41 +02:00
Uwe Stöhr
ebf42d9b10 Fancy_Colored_Boxes.lyx: add section about references
is a user request
2019-07-21 01:27:43 +02:00
Jean-Marc Lasgouttes
c293be56bd Rename frontend qt4 to qt
In particular, the directory frontends/qt4 is renamed to frontends/qt.

Many configurations file have to be updated. All mentions of qt4 in
the source have been audited, and changed to qt if necessary.

The only part that has not been updated is the CMake build system.
2019-07-20 23:39:40 +02:00
Jean-Marc Lasgouttes
c476c3766c Add a pref to disable OS keyboard language support
By default, the behavior is the same as before, except that the
language of new document is not unconditionally en_US anymore.

The new checkbox "Respect OS keyboard language" (off by default)
governs this behavior.

Update prefs format to 30.
2019-07-20 12:57:16 +02:00
Juergen Spitzmueller
a7d9982bfc Add missing GuiName 2019-07-20 06:58:30 +02:00
Juergen Spitzmueller
433de6f461 More latexfonts fixes
Adobe is not part of the font name
2019-07-18 18:53:27 +02:00
Juergen Spitzmueller
9108c75fa5 latexfonts: more minor fixes 2019-07-18 18:49:42 +02:00
Juergen Spitzmueller
850c5a3d55 Support for CrimsonPro 2019-07-18 10:50:46 +02:00
Juergen Spitzmueller
d6ce4abd40 Amend 212314ada7 2019-07-18 09:08:24 +02:00
Juergen Spitzmueller
212314ada7 Merge the two noto regular fonts
These are actually the same font and shape, so no need for two entries
2019-07-18 08:41:00 +02:00
Juergen Spitzmueller
2e07502c8b Regular series is default 2019-07-18 08:26:59 +02:00
Juergen Spitzmueller
777a2a9baa Remove Plex Semibolds
These are not font shapes proper. The semibold is to be combined with
font shapes and thus needs to go to extra options.
2019-07-18 08:14:09 +02:00
Juergen Spitzmueller
fad3378864 Missing renames 2019-07-18 07:10:31 +02:00
Kornel Benko
91ff5c4198 Rename packageoption->packageoptions
This reflects the description in latexfonts
2019-07-17 18:52:58 +02:00
Kornel Benko
7515648774 AmendI2) e9c0d48d. Remove unneded entries,
Thanks Jürgen
2019-07-17 18:27:06 +02:00
Kornel Benko
a45759cdb4 Amend e9c0d48d
Forgotten to commit lyx_2_4.py
2019-07-17 18:03:31 +02:00
Kornel Benko
e9c0d48d58 Add sans serif font series "Chivo" 2019-07-17 18:02:22 +02:00
Jean-Marc Lasgouttes
10379aba7a Remove layout_xxx icons
These have been superceded by lyx-toggle_xxx icons.

Part of bug #9864.
2019-07-15 23:48:15 +02:00
Jean-Marc Lasgouttes
f1c5587add Improve description of smallmatrix
I did not notice there was already something about it.
2019-07-15 23:36:04 +02:00
Günter Milde
b9cc642856 Fix encoding issues with configuration under Python 3.
The part of the configure.py script that runs only when
there is no user ~.lyx/ directory failed under Python 3.
2019-07-15 18:10:01 +02:00
Jean-Marc Lasgouttes
25fce652fb Document smallmatrix (with change tracking) 2019-07-15 14:17:22 +02:00
Juergen Spitzmueller
3c716cc300 Add support for the Fira family of fonts
This is a beautiful and feature rich sans and monospaced font family
designed by Erik Spiekermann and reminiscent to his famous (and
commercial) FF Meta.
2019-07-15 13:32:31 +02:00
Juergen Spitzmueller
b1bdc75a10 Remove another unneeded AltFont 2019-07-15 12:51:09 +02:00
Juergen Spitzmueller
b6dc8c8a4a Put font series in parentheses
This is how we've done it until these new fonts have been added
2019-07-15 12:49:29 +02:00
Kornel Benko
1faef77458 Add support for cantarell font 2019-07-15 12:43:32 +02:00
Juergen Spitzmueller
989b5b9c9b lyx2lyx: Support conversion of fonts from preamble with extra opts 2019-07-15 10:34:19 +02:00
Juergen Spitzmueller
f404b57de2 Remove unneeded AltFont
Also Remove "Sans Serif" specifier from font name, as this s obvious
from the GUI (and there is no other Cantarell type anyway).
2019-07-15 08:02:11 +02:00
Juergen Spitzmueller
6e88579c56 Fix cantarell conversion 2019-07-15 07:11:43 +02:00
Juergen Spitzmueller
fada053c72 Fix copy/paste error 2019-07-15 07:11:27 +02:00
Juergen Spitzmueller
70167007e4 Fix cantarell reversion
conversion still needs work
2019-07-15 06:34:28 +02:00
Pavel Sanda
1d56ea325a layouttranslation: this part slipped in without intention 2019-07-15 00:36:02 +02:00
Pavel Sanda
321923444a nl reviewed by Niko. 2019-07-14 23:22:38 +02:00
Pavel Sanda
b8c5aabc0f layouttranslation reviewed for nl by Niko 2019-07-14 23:21:02 +02:00
Kornel Benko
97a099b137 Add sans serif font "cantarell" 2019-07-14 21:44:58 +02:00
Juergen Spitzmueller
2ceeb9e0b3 Handle remaining TeX fonts wrt MoreOptions
Closes #11615
2019-07-14 15:08:01 +02:00
Juergen Spitzmueller
ef39cde0ad latexfonts: add comment. 2019-07-14 12:08:53 +02:00
Juergen Spitzmueller
dcf06fdb22 Split osf options to families
Nowadays we support sf and tt fonts with osf options, so this needs to
be selectable separately.

File format change.
2019-07-14 11:41:36 +02:00
Juergen Spitzmueller
996079de49 Remove cantarellMS font
This seems to have slipped in by accident at [6ca8238cb8a/lyxgit]

The necessary file format change etc. was not done.
2019-07-14 11:31:43 +02:00
Juergen Spitzmueller
509551cae0 More osf (texfont) fixes 2019-07-14 09:09:46 +02:00
Juergen Spitzmueller
655cb7073d Bring back accidentally removed option 2019-07-13 18:24:07 +02:00
Juergen Spitzmueller
89f9bab0f0 Properly handle osf in noto and adobe source fonts 2019-07-13 17:34:55 +02:00
Juergen Spitzmueller
04c2594c82 Support MoreOptions for IBM Plex, Noto, and Adobe Source fonts 2019-07-13 14:55:59 +02:00
Juergen Spitzmueller
e8d8716735 recode file in utf8 2019-07-13 12:08:41 +02:00
Juergen Spitzmueller
9e3e09d786 Russian doc updates by Yuriy 2019-07-13 09:50:48 +02:00
Juergen Spitzmueller
2d26def78a Remove broken information about loaded hyphenation patterns and add FIXME 2019-07-13 09:42:04 +02:00
Juergen Spitzmueller
88460b2398 Minor doc updates. 2019-07-13 08:51:14 +02:00
Juergen Spitzmueller
003d675c2f Use \babelfonts only if babel >= 3.15 is available. 2019-07-13 08:42:42 +02:00
Günter Milde
c09a693d24 Update release notes, correct comment. 2019-07-12 20:30:22 +02:00
Pavel Sanda
2e6163f075 Update lib/layouttranslation after nl update 2019-07-12 11:48:17 +02:00
Juergen Spitzmueller
c3c2815092 Implement support for font options
This revives a patch by Uwe and extends it. Additional options to font
packages/fontspec can now be entered in Document Settings.
This is principally also true for TeX fonts, if the new TeXFont tag
MoreOptions is set. For the time being, I have only done this for
MinionPro, as a model and prove of concept.

Note that adding more TeXFonts requires a file format change,
respectively, and changes to tex2lyx (in the same way as I've done for
MinionPro).

This addresses #8226
2019-07-11 20:28:34 +02:00
Juergen Spitzmueller
cb5bd87e9c Add support for \babelfont
This is a higher-level (non-TeX) font interface of babel that draws on,
but is supposed to be used rather than, fontspec with babel and XeTeX/
LuaTeX.

File format change.

Addresses: #11614
2019-07-11 13:21:32 +02:00
Juergen Spitzmueller
0922aa0072 Update Russian Tutorial
by Yuriy
2019-07-09 16:16:29 +02:00
Juergen Spitzmueller
88c1aaf444 Bump layout formats 2019-07-08 16:21:31 +02:00
Juergen Spitzmueller
13b6632228 Add TextClass option BibInToc
Fixes #1889
2019-07-08 15:40:17 +02:00
Günter Milde
110247f0b7 lyx2lyx refactoring 2019-07-07 23:33:27 +02:00
Günter Milde
e829c97f91 Fix lyx2lyx.
Wrong number in the "revert" list,
Missing integer in "Provides" tag of local layout.
2019-07-07 21:24:34 +02:00
Günter Milde
8556cb1c66 fix layout2layout with stdin/out for Py3.
sys.stdin and sys.stdout expect a Unicode string,
with bytes we must use sys.std(in|out).buffer.
2019-07-07 20:37:12 +02:00
Günter Milde
0d49918c0c Refactor lyx2lyx for speed and simplicity. 2019-07-07 19:32:41 +02:00
Günter Milde
a483fff07d Add missing backslash escapes. 2019-07-07 19:32:41 +02:00
Juergen Spitzmueller
bbdee57e81 Dutch doc updates by Niko 2019-07-06 15:49:16 +02:00
Kornel Benko
6ca8238cb8 Enable old style figures for noto fonts 2019-07-05 13:55:01 +02:00
Juergen Spitzmueller
0a8294d426 Improve encoding GUI string 2019-06-26 08:57:05 +02:00
Jean-Marc Lasgouttes
642b4acca1 Let TeXFiles.py handle symbolic links.
Nix (https://nixos.org) is a Unix package manager, which can be used to
install LaTeX on macOS. A peculiarity of Nix is that all packages are
installed into separate directories and the actual directory tree is
then constructed via symlinks.

This interacts badly with the way LyX currently detects files in the
TeX setup, because TeXFiles.py does not follow symlinks. Therefore,
almost nothing is found when using LyX together with Nix’ LaTeX.

Patch from Michael Roitzsch.
2019-06-25 15:52:46 +02:00
Jean-Marc Lasgouttes
dd4ca3ad4c Update e-mail address for Isaac Oscar 2019-06-25 12:21:38 +02:00
Juergen Spitzmueller
219fa22cea de/Linguistics: another typo 2019-06-24 13:49:30 +02:00
Juergen Spitzmueller
7951a9819c de/Linguistics: Fix typo (thanks, Kornel!) 2019-06-24 13:37:38 +02:00
Juergen Spitzmueller
3b4ff0b43c de/Linguistics: minor fix 2019-06-24 11:16:15 +02:00
Juergen Spitzmueller
8c5668ca59 Linguistics: mini fix 2019-06-23 16:42:07 +02:00
Juergen Spitzmueller
29f39f93b4 de/Linguistics.lyx: update 2019-06-23 13:43:31 +02:00
Juergen Spitzmueller
94654b3586 Linguistics: add support for Discourse Representation Structures
File format change
2019-06-23 12:59:56 +02:00
Juergen Spitzmueller
07cbca1d9d linguistics.module: some comments and minor re-shuffling 2019-06-23 09:30:03 +02:00
Juergen Spitzmueller
74b8266d73 Linguistics: doc update 2019-06-23 08:26:01 +02:00
Juergen Spitzmueller
d13c582e5d linguistics.module: use covington's semantic markups rather than self-baked ones 2019-06-23 08:25:50 +02:00
Juergen Spitzmueller
15d9b89add Linguistics: doc updates 2019-06-22 14:13:00 +02:00
Juergen Spitzmueller
c6c70649af Linguistics: Support for subexamples optional arg 2019-06-22 13:56:12 +02:00
Günter Milde
672102fc7c Example/documentation for Korean with the "cjk-ko" package. 2019-06-21 12:40:41 +02:00
Juergen Spitzmueller
722ae1556d Add Niko Strijbol to the credits 2019-06-21 12:16:20 +02:00
Stephan Witt
d05a8c805e correct typo in help message 2019-06-17 16:46:59 +02:00
Jean-Marc Lasgouttes
e1f2dc6a41 Remove old compatibility code from 2002
At the time, there were two competing packages for French language:
frenchle (aka french.sty), the historical one, and frenchb.ldf, the
new kid on the block. I was difficult to know which one was loaded by
babel, and frenchle did not define \og and \fg. Thus the need for our
own definition.

These were the good old days, but this time is gone for good.
2019-06-12 16:46:19 +02:00
Jean-Marc Lasgouttes
9bf3e7b045 Document the new autocorrect behavior 2019-06-12 13:54:03 +02:00
Günter Milde
c627507b3f Revert 051de65db and implement alternative fix for remainder of #11115. 2019-06-12 11:48:47 +02:00
Jean-Marc Lasgouttes
bf88ad495c Make Word Wrap property confiurable by language
It is now possible to specify in the lib/language file whether screen
rows can be broken anywhere (CJK languages) or only at work boundary.

Set WordWrap to false for the CJK languages (notice that japanese-cjk
had been forgotten before).

Moreover, remove a test for separators in row element that was not
really helpful.

Fixes part of ticket #10299.
2019-06-05 15:50:53 +02:00
José Matos
58734edff6 Make the lyx2lyx code compatible between python2 and python3.
FWIW this code is important for very old versions of lyx, older than 1.1.5 (released 19 years ago - 2000/06/06).

Funny fact of the day, byte strings do not behave as regular strings in python3 when taking and index.
To get a sub-string we need to pass a range, a integer index will not work as it happens in a regular string:

$ ipython3
...
In [30]: line
Out[30]: b'#This file was created by <mike> Tue Jan 25 10:36:51 2000'

In [31]: line[0]
Out[31]: 35

In [32]: line[0:1]
Out[32]: b'#'

The range notations works for both byte and regular strings in python 3, and it also works in python 2.
Thus the change is simple and effective. In any case I should confess that I was quite surprised by this. :-)
2019-06-05 14:06:09 +01:00
Günter Milde
051de65db9 Fix remainder of #11115.
Implement GUI suggestions from
https://www.lyx.org/trac/ticket/11115#comment:26
2019-06-05 11:18:36 +02:00
José Matos
4268a9e812 Remove code that is redudant.
Both for python2 and python3 output is always a string.
2019-06-04 18:26:13 +01:00
Juergen Spitzmueller
2519666166 Use a somewhat more realistic trigloss example 2019-06-04 14:01:06 +02:00
Juergen Spitzmueller
24814759a1 de/Linguistics: minor corrections 2019-06-04 13:40:02 +02:00
Juergen Spitzmueller
9f0dd70ed3 de/Linguistics: update 2019-06-04 11:51:18 +02:00
Juergen Spitzmueller
e2f81b3a84 Rework linguistic gloss support
This now uses the new and enhanced \digloss ad \trigloss macros of
convington 2.0 rather than the deficient self-baked ones.

File format change.
2019-06-04 11:01:19 +02:00
Juergen Spitzmueller
550f46a188 Remove covington backwards compatibility code
The new environments are out now long enough, and we are going to require
covington 2.0 for the glosses in 2.4 anyway.
2019-06-04 08:20:02 +02:00
José Matos
639b5da1af Fix the remaing issues with comparisons with objects of different types.
In python it is possible to compare tuples with a lexicographic order.

Take advantage of that since there is no need to resort to the C-trick of converting a version in hex format.

We need to set a dummy version in case we are using ImageMagick to ensure that version is always an integer 3-tuple.
2019-06-03 19:07:20 +01:00
José Matos
a8937b53ec Fix bug in python comparison.
It worked in python2 but not the way the authors imagined. Because hex always returns a string.

From python2:
>>> 1 > "2"
False
>>> "2" > 1
True
>>> "1" > 2
True

The rational is that an integer is always smaller than a string.

In python 3 this because it does not make sense to compare objects of different types.
2019-06-03 17:15:09 +01:00
Günter Milde
bab2316092 ctests Arabic: mark non-Arabic text parts as English, fix inversion pattern. 2019-06-03 16:58:10 +02:00