Commit Graph

9375 Commits

Author SHA1 Message Date
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
Günter Milde
f1e7f5267d lyx2lyx refactoring and minor fixes. 2019-06-03 16:58:10 +02:00
Günter Milde
b2cee3dcc5 Support more languages (file format change).
Format incremented to 576:
Support for the document languages azerbaijani, bengali,
churchslavonic, and oldrussian.
2019-06-03 16:58:10 +02:00
Günter Milde
8e06c2ffa9 Fix some problems with lyx2lyx_tools.revert_languages().
Amends 7bb30286.

Tested cases are now handled fine.

(There are still many cases where the language support emulation
is too complex for lyx2lyx and manual fixes are required after
lyx2lyx conversion.)
2019-06-03 16:58:10 +02:00
Enrico Forestieri
1df3151b6a Math autocorret: cycle through dots
Also remove the unknown symbols \hdots and \udots.
2019-06-03 16:55:55 +02:00
Enrico Forestieri
16d87a615b Some more tweaks to math autocorrect
In particular, make the '>' and '<' symbols followed by '*' cycle
through some sensible group of symbols.
2019-06-03 12:32:13 +02:00
Enrico Forestieri
3b1ee92167 Close cycle and correct typo
I think that the autocorrect file needs an overhaul.
2019-06-03 11:37:15 +02:00
Jean-Marc Lasgouttes
af0c6abd21 Add Isaac Oscar to credits 2019-06-03 10:53:49 +02:00
Enrico Forestieri
9bf8c87315 Use the new autocorrect feature
Correct or activate some already present shortcuts, and add new ones
for easily obtaining the most common fixed size delimiters.
Pressing '*' after a delimiter will cycle through all sizes.
2019-06-03 10:21:40 +02:00
José Matos
f9bf53f35a Make verbose switch consistent.
Someday we should probably unify these two switches. Because the debug switch is verbose
and the verbose switch is mostly used for debuging.
2019-06-03 07:31:05 +01:00
Juergen Spitzmueller
d2b6232ce7 Fix lineno options param
This has been written even if empty -- and thus caused reading errors.
2019-06-02 19:07:01 +02:00
José Matos
a810d779d7 Import lyxpreview_tools directly and not only inside *if* conditions.
This is related to the bug #11457 saga and it was my fault.

The debug files should be written only be on if the argument --debug is passed and not --verbose as it was done by mistake.
2019-06-02 17:24:40 +01:00
Juergen Spitzmueller
c7efb677f8 New InsetLayout tag ParbreakIgnored
This effectively allow paragraph breaks in insets only for cosmetic
reasons (e.g., to align contents on different lines).

This is the last change necessary for an enhanced covington gloss support
(which uses the new covington gloss ui)
2019-06-02 18:16:30 +02:00
Juergen Spitzmueller
9e6d22ea9c Add InsertOnNewline argument tag
This adds a paragraph break before auto-inserting arguments in flex
insets.

Useful for specific arguments (particularly ling glosses)
2019-06-02 18:07:10 +02:00
Juergen Spitzmueller
9f04eeae03 Support FreeSpacing in InsetArgument 2019-06-02 16:33:06 +02:00
Günter Milde
7bb3028607 fixes to lyx2lyx's revert_language tool. 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
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