Commit Graph

177 Commits

Author SHA1 Message Date
José Matos
f9ec4186d7 Update lyx2lyx folder to Python 3+
Remove support for Python 2
Take advantage of new features (euphemism) not possible before due to
python 2 compatibility
2024-06-10 10:55:40 +01:00
Jürgen Spitzmüller
de04f3270e Fix lyx2lyx bug with nested inset arguments 2024-03-05 15:41:21 +01:00
Juergen Spitzmueller
b00ea51166 fixup convert_lineno (#13036)
This routine assumed \linenumbers to be preceded by \usepackage{lineno}
and that by a lyx2lyx comment.

Of course, this is not the case if users loaded lineno manually.
2024-01-26 10:30:31 +01:00
Udi-Fogiel
ca2c9d8b46 don't convert hebrew parentheses in passthru insets
Fix 12966. A few notes:

* we need to consider both regular insets and argument insets.
* in passthru layouts (such as verbatim) parentheses still need
  to be reversed.
* all arguments of type 'listpreamble' are passthru (this isn't a rule,
  this is just what happen in practice).
* custom layout and insets from the local layout, or a custom module
  are not considered.

Signed-off-by: Udi-Fogiel <udifoglle@gmail.com>
2024-01-01 12:40:00 +02:00
Juergen Spitzmueller
412d202fc3 Do not reverse parentheses in pass thru insets (#12966) 2023-11-08 15:14:37 +01:00
Juergen Spitzmueller
9b8183b877 Fix escape string (reported by José) 2023-09-30 13:07:00 +02:00
Juergen Spitzmueller
087f6bce71 Introduce default box frame color (#12921)
This better aligns with dark mode
2023-09-30 09:56:27 +02:00
Richard Kimberly Heck
2ad57dcb6b Preview formatted references in the work area.
Patch from Daniel Ramoeller <d.lyx@web.de>, fixed up by RKH.
2023-08-24 21:24:31 -04:00
Pavel Sanda
9e8901f997 Adding hebrew quotation marks (bug #12849).
Patch from Udi Fogiel.
2023-08-06 16:50:07 +02:00
Juergen Spitzmueller
dfab2898de Fix lyx2lyx reversion problem for covington examples
Do not take arguments of nested insets/layouts as your own
2023-07-21 09:46:47 +02:00
Juergen Spitzmueller
a91d1ebe82 Forgot these 2023-07-20 16:26:17 +02:00
Juergen Spitzmueller
2841a1c063 Update covington support in linguistics module (file format change) 2023-07-20 15:09:47 +02:00
Juergen Spitzmueller
86069c9e9a lyx2lyx: skip mathed in convert_hebrew_parentheses (#12824)
Those have not been swapped in Hebrew.
2023-07-04 07:37:06 +02:00
Richard Kimberly Heck
67178df979 Fix lyx2lyx bug reported by Herbert Voss.
For some reason, files converted from really old versions have fewer
lines in reference insets than in more recent versions.
2023-06-16 01:22:52 -04:00
Richard Kimberly Heck
c3f98d1fa4 The lyx2lyx for the previous commit. 2023-06-11 12:55:51 -04:00
Juergen Spitzmueller
6e5b3a1e31 Properly fix acknowledgment issue part 2/2
Remove acknowledgment theorem types

As we have learned, these shouldn't have been added from the get go.

Documents having it get a local layout definition.
2023-02-05 12:07:37 +01:00
Juergen Spitzmueller
0ab6a5c6d6 Add forgotten case 2023-02-05 09:34:04 +01:00
Juergen Spitzmueller
ac6314b834 Properly fix acknowledgment issue part 1/2
Bump file format and convert/revert styles to unique spelling
2023-02-04 17:47:52 +01:00
Juergen Spitzmueller
1b42d800a3 fix glitch in index reversion 2023-01-28 17:06:35 +01:00
Juergen Spitzmueller
b66a6dba43 lyx2lyx: fix convert_totalheight method
This didn't account for float values
2023-01-28 10:16:54 +01:00
Juergen Spitzmueller
0c56f60535 Associate "run:" link types with "Other" 2022-12-26 13:19:52 +01:00
Richard Kimberly Heck
144cf4bb9a Allow an 'other' type for hyperlinks. Format change.
Also, perform the URL fixing magic for DocBook and XHTML.

As it was, it was impossible to enter e.g. "tel:" type links. Now
choosing the "Other" type just outputs the URL as given.

Also, the addition of "http" or "file" was not being done for
DocBook and XHTML. Now it is.
2022-12-25 12:45:48 -05:00
Juergen Spitzmueller
ceffadfbab lyx2lyx: fix glitch in revert_starred_refs 2022-12-21 08:52:44 +01:00
Juergen Spitzmueller
a066b81380 Fix comment 2022-12-11 15:12:06 +01:00
Juergen Spitzmueller
163844a6d0 Allow defaultfamily change with non_TeX fonts (#12608) 2022-12-11 14:47:13 +01:00
Juergen Spitzmueller
c90e656d9d Fix cut and paste error 2022-12-09 09:12:23 +01:00
Richard Kimberly Heck
4e7f6949bf One more unused variable 2022-12-08 15:19:16 -05:00
Richard Kimberly Heck
b0fa3efd57 Remove more unused variables.
These flags are only relevant to reference-types that we are not
reverting. That's why they were unused.
2022-12-08 15:19:16 -05:00
Richard Kimberly Heck
8e3f99ddc9 Remove some unused variables 2022-12-08 15:19:16 -05:00
Scott Kostyshak
f0a2114268 lyx2lyx: remove unused variable
Amend 7bbaead5.
2022-12-08 13:32:00 -05:00
Richard Kimberly Heck
7bbaead588 Amend last commit 2022-12-08 12:42:03 -05:00
Richard Kimberly Heck
fa449e9769 Simplify conversion routine, and remove warning 2022-12-08 11:09:48 -05:00
Richard Kimberly Heck
8567e09dbf Fix infinite loop. Thinko! 2022-12-05 23:37:40 -05:00
Richard Kimberly Heck
bbfff0e60f Amend 4966da68 2022-12-05 14:48:48 -05:00
Richard Kimberly Heck
4966da6864 Add conversion routine for format 612.
I forgot that this is needed, because the new parameter is written to
the file no matter its value.

Also, fix two typos in the reversion routine.
2022-12-05 14:45:40 -05:00
Richard Kimberly Heck
d4f2460ac4 Fix bug #11410.
Main part of patch from Daniel, adapted by me.
I also added the lyx2lyx code.
2022-12-04 18:33:58 -05:00
Yuriy Skalko
7b23c76b71 Add "semantic linefeeds" after punctuation marks.
We already had such breaks for dot.

File format change.
2022-11-28 11:58:53 +02:00
Juergen Spitzmueller
069122feba Revert "Try to be more pedantic wrt blank lines in lyx2lyx output"
This reverts commit 9ce0ff50c1.
2022-11-06 17:17:33 +01:00
Juergen Spitzmueller
9ce0ff50c1 Try to be more pedantic wrt blank lines in lyx2lyx output
Hopefully to the tests' please
2022-11-06 16:40:12 +01:00
Juergen Spitzmueller
e316e21aa1 Amend b8502a3ea2 2022-11-03 07:14:14 +01:00
Juergen Spitzmueller
b8502a3ea2 Fix glitch in index reversion routine 2022-11-03 05:54:50 +01:00
Juergen Spitzmueller
886d881ba3 lyx2lyx: fix index reversion
This was only a warning, but it made the tests fail
2022-11-02 09:33:09 +01:00
Juergen Spitzmueller
077ccf905d Rename subindex to subentry
Makes more sense, and distinguishes it better from printsubindex
2022-10-31 06:51:38 +01:00
Juergen Spitzmueller
5a7c6aaeee Add some comments 2022-10-29 15:40:06 +02:00
Juergen Spitzmueller
874f559bc7 Add last missing bit to insetindexmacros: file format change and lyx2lyx
The feature is now ready for primetime!
2022-10-29 15:11:11 +02:00
Juergen Spitzmueller
b3b22b0c70 Sync with master 2022-10-26 10:52:21 +02:00
Juergen Spitzmueller
1da80d4d8f Add basic support for \DeclareMetadata
File format change
2022-02-12 17:10:34 +01:00
Thibaut Cuvelier
7a1e048f44 Amend 0f782b0d: add the required changes to lyx2lyx. 2021-03-23 21:12:45 +01:00
Juergen Spitzmueller
07396ab244 Meet per-document spelling dictionaries (fixes #86 [sic!])
Now who can beat that? ;-)
2021-03-06 16:53:33 +01:00
Juergen Spitzmueller
b42c5dd7d6 Add frontispiece layout to KOMA classes 2021-01-28 10:24:28 +01:00