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
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
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
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
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
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
09e69f96dd
Complete lyx2lyx for new "lineno" settings.
2019-05-24 13:51:46 +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
Günter Milde
65ec404eb3
Format incremented to 574: Ruby inset, fixes for Japanese.
...
New auxiliary functions for lyx2lyx:
del_module(), append_local_layout(), del_local_layout()
2019-05-16 13:48:07 +02:00
Günter Milde
7d82308552
Fix conversion/reversion of parenthese order in Hebrew text.
...
The algorithm in [c9be8bff74b233/lyxgit] did not
account for layout nesting. As a result, some parentheses
were swapped in English text parts
(e.g. around "(for Linux)" in he/Intro.lyx).
2019-04-30 11:27:35 +02:00
Günter Milde
27ba6f282d
Rename legacy input encoding settings.
...
Format incremented to 573
2019-04-16 20:17:32 +02:00
Kornel Benko
e55ed79da9
Extend handling of Noto fonts
...
Added the possibility to use options Regular, Medium, Thin, Light, Extralight
2019-04-07 11:05:42 +02:00
Juergen Spitzmueller
8085fc21f8
booktabs: support for \cmidrule trimming
...
This has probably still some rough edges, so please test thoroughly.
Fixes : #3072
2019-04-03 07:59:52 +02:00
Juergen Spitzmueller
f75b081551
Add support for mixed-encoded biblatex files
...
Biblatex 3.12 allows to specifiy individual encodings per bib file
via \addbibresource[bibencoding=<encoding>].
This is now supported via GuiBibtex.
2019-03-29 15:45:55 +01:00
Juergen Spitzmueller
ecb2427f41
Add tablestyle buffer param
...
Fixes : #9901
2019-03-26 16:24:27 +01:00
Juergen Spitzmueller
aff2ee6058
Add soul module
2019-03-22 18:29:50 +01:00
Juergen Spitzmueller
abf38e1820
revert_language: fix document language assignment
2019-03-11 11:42:54 +01:00
Juergen Spitzmueller
8b2f89f8bd
thinko
2019-03-11 11:05:10 +01:00
Juergen Spitzmueller
01493e574a
Dix revert_language with multiple languages per paragraph
2019-03-11 10:56:50 +01:00
Juergen Spitzmueller
f320ccdfc6
Prevent multiple insertion of language switch at document body
2019-03-11 10:56:12 +01:00
Juergen Spitzmueller
ef9e73d7fe
Move function out of loop
2019-03-11 10:37:33 +01:00
Juergen Spitzmueller
3d08c83666
Remove misplaced comment
2019-03-10 13:40:29 +01:00
Juergen Spitzmueller
4bd065f871
use revert_language in more cases
2019-03-10 13:00:10 +01:00
Juergen Spitzmueller
6d6eda3950
Further simplification
2019-03-10 12:43:09 +01:00
Juergen Spitzmueller
27f15ac930
lyx_2_3.py: use revert_language rather than local methods.
2019-03-10 12:36:56 +01:00
Juergen Spitzmueller
c70c049417
Enhance revert_language function
...
This should now consider all cases (many of which were not handled so far)
2019-03-10 12:36:06 +01:00
Juergen Spitzmueller
ebd7a1a22a
Support for the Malayalam language
...
Patch by Joice Joseph
2019-03-10 10:21:59 +01:00
Günter Milde
8060c8e488
ctests: Dedicated test and comments for "lyx2lyx.lyx_2_4.revert_fonts".
2019-01-29 15:11:21 +01:00
Kornel Benko
c2091becd2
Amend a25b9702
, lyx2lyx: Corrected handling of system-font-specs
...
In the lines specifying the font, e.g.
\font_typewriter "DejaVuSansMono" "DejaVu Sans Mono"
the system font specs may contain words separated by spaces
2019-01-29 13:21:05 +01:00
Günter Milde
49583b7dd0
Fix encoding issue with lyx2lyx conversion of "Date" info-insets.
...
Remaining problem: the name of the day appears in English instead of the document language.
2019-01-23 11:06:04 +01:00
Günter Milde
5a1fb5b5fa
Improve readability of the lyx2lyx help output.
...
Also some small clean-up edits
2019-01-23 10:12:28 +01:00
Günter Milde
a925d25085
Improve a warning in lyx2lyx.
...
If get_containing_layout() finds a layout without name,
it will return an empty string as layoutname.
Calling functions can thus differentiate between missing
\begin_layout and missing layoutname and give a more specific
response or warning.
2019-01-18 00:20:19 +01:00
Scott Kostyshak
253b12aba1
Fix lyx2lyx export of long tables
...
For some .lyx files with long tables, this fix reduces the
differences in LaTeX export of master, compared to LaTeX export of
the lyx2lyx exported file. Further, this export fixes the lyx2lyx
roundtrip convergence for these cases. For discussion, see:
https://www.mail-archive.com/search?l=mid&q=20190102230924.7zgla5lhkwxpx5fi%40barna
2019-01-16 18:38:45 -05:00
Günter Milde
9126f06d93
lyx2lyx: Minor formatting fix.
2019-01-10 17:20:34 +01:00
Juergen Spitzmueller
8c219daeeb
Amend 348b3e5e49
...
thinko!
2019-01-06 15:19:50 +01:00
Juergen Spitzmueller
348b3e5e49
rewrite revert_jss reversion routine
...
Fixes : #11448
2019-01-04 16:36:11 +01:00
Juergen Spitzmueller
4ebb91194a
Fixed remaining glitches in tcolorbox reversion routines
...
The indexes were off at several places, which made the routines leak.
2019-01-03 10:12:14 +01:00
Juergen Spitzmueller
25451bc252
fix tcolorbox reversion routines
2019-01-02 15:37:48 +01:00
Juergen Spitzmueller
71dfcb18b9
Fis some old box reversion routines.
2019-01-01 16:34:15 +01:00
Richard Kimberly Heck
75c8e5c000
Typo
2018-12-28 23:34:51 -05:00
Richard Kimberly Heck
f11a51be35
Fix bug #11378 .
2018-12-28 23:02:47 -05:00
Juergen Spitzmueller
2927179499
lyx2lyx: fix float reversion routines
...
This jumped too wide with two subsequent floats.
2018-12-28 07:30:34 +01:00
Richard Kimberly Heck
01af66d658
Minor fixes
2018-11-03 10:00:48 -04:00
Richard Kimberly Heck
c9be8bff74
Speed up parenthesis conversion routine for Hebrew. Patch from Guy.
2018-11-03 09:58:32 -04:00
Juergen Spitzmueller
0ec295d63e
Fix parentheses with Hebrew
...
Patch by Guy Rutenberg, with some changes of mine.
Fixes : #11191
2018-10-30 12:33:35 +01:00
Kornel Benko
99174acff8
Increment version to 565 due to add of adobe source pro fonts
2018-10-02 17:24:47 +02:00
Kornel Benko
6d0f7fc98d
Added Adobe Source Pro fonts to lyx-GUI
2018-10-02 11:28:46 +02:00