José Matos
95a7440b0e
Sort and format comments
...
The last code change shuffled the comments out of place
2024-06-18 10:52:05 +01:00
José Matos
44e0940d75
Order imports
...
This is similar to what we have in C++ code where we order the standard
includes to be easier to read.
This is a readability change only.
2024-06-18 10:25:52 +01:00
José Matos
5abe42f6d3
Tweak ruff configuration
...
Add I - isort rules (order of imports);
Ignore line too long warnings.
2024-06-18 10:24:09 +01:00
José Matos
4534a20f1a
Fix functions that used functions but did not defined it
...
The functions were selected from the parser files where document is
always defined.
The only case was this code was used was on document.warning.
Since our documents are well formed this code was never active and thus
the reason why we did not saw this before.
One possible solution to assure that these type of errors do not occur
is to make the convention that all the functions in lyx2lyx_tools have
as the first argument document.
2024-06-17 11:31:10 +01:00
José Matos
160ac7242e
Remove undisclosed imports (from xxx import *)
...
This was the last example in this directory.
2024-06-16 07:45:43 +01:00
José Matos
b80ccaa417
Add common pattern in linter exclusion list
...
# ambiguous-variable-name (E741)
Derived from the **pycodestyle** linter.
## What it does
Checks for the use of the characters 'l', 'O', or 'I' as variable names.
## Why is this bad?
In some fonts, these characters are indistinguishable from the
numerals one and zero. When tempted to use 'l', use 'L' instead.
## Reason to ignore in LyX?
With appropriated fonts that is not an issue. In our case we just use
the 'l', in particular in the context of iterators: 'i', 'j', 'k', 'l'.
2024-06-16 07:34:34 +01:00
Juergen Spitzmueller
9fff7bdd5a
de/UserGuide: updates
2024-06-15 14:29:26 +02:00
José Matos
a0a5892ae8
Fix code
...
Run "ruff check --fix"
Remove unneeded imports;
Reword code to make clear the "not in" operator;
Put imports in its own line (readability);
2024-06-15 11:26:28 +01:00
José Matos
b4db3ea137
Reformat lyx2lyx code using ruff
2024-06-15 10:06:06 +01:00
José Matos
aaef6d2693
Add pyproject.toml file to manage some options for tools
...
This file is only relevant for tools that use it, in development, and so
it is not supposed to be installed. It does not harm but there is no
purpose.
2024-06-15 10:04:31 +01:00
Pavel Sanda
e5b027759c
* UG - note about gnuplot from Tobias Hilbricht
2024-06-14 21:18:29 +02:00
Udi Fogiel
3854086e59
Remove hebrew letter document class
...
The only difference from regular letter is the alignment of
"Send To Address" layout, but it no longer reflect the output
corrctly, probably because LyX revert the alignment of layouts
in RTL context now.
2024-06-11 21:14:27 +03:00
José Matos
c92b481a44
Reformat imports for easier reading
...
This is in line with the current hints for better readability:
* one import per line;
* order the imports alphabetically to be easier to search;
Take the chance to remove unused imports.
2024-06-10 12:05:03 +01:00
José Matos
aeee6b373e
Update generate contributions to Python 3+
2024-06-10 11:43:04 +01:00
José Matos
04ecabef60
Update Python scripts to Python 3+
...
Remove support for Python 2
Use formatted strings where appropriated
2024-06-10 11:29:56 +01:00
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
José Matos
df0e337684
Update configure.py to Python3+
...
Remove Python 2 support
This simplifies the code and allows to use other more modern features,
like formatted strings, that were not possible while keeping Python 2
compatibility.
2024-06-10 10:38:28 +01:00
Richard Kimberly Heck
8655c83a90
Fix bug #13028 .
...
Bindings for 'join lines.
2024-06-09 14:13:12 -04:00
Udi-Fogiel
64aad586f4
missing background in xetex and fix RTL stuff in preview
...
* previwes with xetex did not produce any background (\pagecolor does not work for some reason), adding the direct command for that, \special{background <color>} inside the preview box solved it.
* similar to #12923 we should push the color node in horizontal mode
* there is a bug in preview with LuaTeX with main RTL language, this commit fix this bug, but it should be removed when it is fixed upstream (the code related to \pr@set@pagerightoffset)
2024-06-09 13:36:35 +03:00
Pavel Sanda
de781a7cff
Some comments into bind file
2024-06-05 20:42:10 +02:00
Scott Kostyshak
adefdf8eeb
Revert "Update layouts"
...
This reverts commit 7c041af642
.
We will hold this back until we fix the issue discussed here:
https://marc.info/?l=lyx-devel&m=171733833610242&w=2
2024-06-03 10:37:02 -04:00
Richard Kimberly Heck
0c70f340c0
Fix bug #13066
...
Patch from Lorenzo
2024-06-02 23:07:34 -04:00
Scott Kostyshak
7c041af642
Update layouts
2024-06-02 22:52:37 -04:00
Juergen Spitzmueller
2a7ec054be
Support half und full line parskip class options ( #12946 )
...
Currently only employed by the KOMA classes.
Layout format change.
2024-06-02 11:41:54 +02:00
Juergen Spitzmueller
d2db74f9ee
Add support for glue length in parskip ( #12867 )
2024-06-01 13:47:39 +02:00
Juergen Spitzmueller
d3d8b3d748
Update aastex63.layout according to https://journals.aas.org/aastexguide/#acknowledgments
2024-05-20 16:10:23 +02:00
Juergen Spitzmueller
6ef18c3583
Limit the nopassthurchars case in beamer to URL
...
and also generally extend to classes that provide hyperref
2024-05-20 08:26:03 +02:00
Juergen Spitzmueller
c23f731fae
mumble
2024-05-15 18:36:47 +02:00
Juergen Spitzmueller
9d43fd2ae1
# and % need to be escaped in hyperref URL as well
...
Also fix some lyx2lyx glitches
This hopefully fixes the test issues.
2024-05-15 13:15:08 +02:00
Juergen Spitzmueller
227ce773bf
Document a716fb96b5
2024-05-14 13:38:16 +02:00
Juergen Spitzmueller
a716fb96b5
NeedCProtect -1 also for InsetLayouts
2024-05-14 13:37:29 +02:00
Juergen Spitzmueller
1512216909
Fix comment
2024-05-13 10:26:45 +02:00
Juergen Spitzmueller
52d31155c1
Properly escape backslash in URLs with hyperref ( #13012 )
2024-05-13 09:17:30 +02:00
Juergen Spitzmueller
ed62816eb6
Handle URL escaping in beamer frames
...
File format change -- this introduces the first LyX 2.5 format and
hence sets up the lyx2lyx machinery
2024-05-13 07:26:41 +02:00
Juergen Spitzmueller
eeb3f9e719
Amend 207eaeee90
...
FragileFrame, as opposed to normal frame, supports cprotect (and needs
it in the usual circumstances)
2024-05-12 08:52:09 +02:00
Juergen Spitzmueller
a2fb7b3566
Document 207eaeee90
2024-05-12 07:54:04 +02:00
Juergen Spitzmueller
207eaeee90
Introduce NeedCProtect -1 layout option
...
It turns out beamer frame does not allow \cprotect and errors if it is
used. Hence we need to prevent it in this context entirely.
2024-05-12 07:52:16 +02:00
Pavel Sanda
358efd120a
* metainfo.xml - homepage missing
2024-04-21 03:49:12 +02:00
Pavel Sanda
c8b32ebe72
*UG - Add hint from users list
2024-04-20 00:24:44 +02:00
Juergen Spitzmueller
2f6b24297f
g-brief loads babel internally. So don't load it ourselves.
...
This makes the class fully functional with non-TeX fonts (it uses
\babelfont for the purpose). Before, docs were compiling but the
output was wrong.
2024-04-16 18:25:38 +02:00
Juergen Spitzmueller
c3c96a446b
gbrief-2 loads babel internally. So don't load it ourselves.
...
This makes the class fully functional with non-TeX fonts (it uses
\babelfont for the purpose). Before, docs were compiling but the
output was wrong.
2024-04-13 07:32:30 +02:00
Stephan Witt
cad4da738d
#12641 document the Qt fix in release notes
2024-04-11 23:26:26 +02:00
Stephan Witt
2883cd4215
Add LyX-2.4 user directory to the list of candidates for copying on first run of LyX-2.5.
2024-04-11 18:32:03 +02:00
Stephan Witt
945a02e2e1
Improved copy operation for user directory contents of previous major releases
...
- avoid copying of configure.log
- avoid copying of chkconfig.ltx
There is a report of a hang on first start of LyX with new major release.
The removal of the chkconfig.ltx (leftover from early LyX versions) fixed the issue.
2024-04-11 18:32:03 +02:00
Pavel Sanda
511f895c98
Update credits
2024-04-11 09:42:29 +02:00
Pavel Sanda
c1650cdffa
Docs - update URL for dictionaries after recent infra movements
2024-04-10 21:12:36 +02:00
Pavel Sanda
ec71aac5c6
* layouttranslations.review, ack from Yitzhak.
2024-04-07 22:03:37 +02:00
Juergen Spitzmueller
012c739668
Document 0d3d91c055
2024-04-06 09:58:31 +02:00
Pavel Sanda
7976cc2dac
Allow relative statistics values in statusbar.
...
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg221311.html
2024-04-05 19:36:23 +02:00
Jean-Marc Lasgouttes
b28655e91e
fix typo in fr/Intro.lyx
2024-04-04 17:16:19 +02:00