Commit Graph

11037 Commits

Author SHA1 Message Date
Pavel Sanda
935781ceab Document python changes 2024-06-24 22:45:15 +02:00
Pavel Sanda
cfc9675d0e Prepare notes for 2.5 2024-06-24 22:44:49 +02:00
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
Juergen Spitzmueller
aa7ff14933 Allow for multiple accelerator alternatives
This needs some testing before it could go to 2.4.x eventually
2024-04-04 17:12:48 +02:00
Juergen Spitzmueller
728175f9ac Dissolve some shortcut conflicts in the wake of f3a4602c4c 2024-04-03 08:28:00 +02:00
Juergen Spitzmueller
a55ede6a74 Update German User Guide 2024-04-03 07:35:59 +02:00
Richard Kimberly Heck
b8a988fa13 Docs for menu change
(cherry picked from commit c8534081c9)
2024-04-02 22:05:01 -04:00
Juergen Spitzmueller
f3a4602c4c Smarter menu length calculation
It is possible I have missed some shortcut conflicts, so please report
if you find any.
2024-04-02 14:41:54 +02:00
jpc
8850b68792 Translation of French Additional.lyx: chapter 3 completed 2024-04-02 11:52:40 +02:00
Juergen Spitzmueller
0b8e8eb174 de/UserGuide: update 2024-04-02 09:53:58 +02:00
Richard Kimberly Heck
1198bbf01a Fix duplicate accelerator 2024-04-01 21:55:25 -04:00
Richard Kimberly Heck
e51cca2ef0 Add shortcut for plain single quote.
(cherry picked from commit d3101e6d6f)
2024-04-01 17:28:22 -04:00
Richard Kimberly Heck
b0c4681cd8 Clarify quote-insert LFUN.
And add remark about multiple optional arguments.

(cherry picked from commit 29be057a07)
2024-04-01 17:28:19 -04:00
Richard Kimberly Heck
dff3a0c53f Fix bug #13025.
Add plain single quote to menu.

(cherry picked from commit 9e5a98e8f9)
2024-04-01 17:28:16 -04:00
jpc
55330a7844 Restore Chapter 11 2024-03-30 17:39:00 +01:00
jpc
571babff5e Further translations of the French Additional manual 2024-03-29 18:58:25 +01:00
jpc
a9a328c85d Further translations of French Additional manual + typo and ref. to Hebrew Letter in sec 3.5 of Additional.lyx 2024-03-28 19:11:55 +01:00
jpc
20c79dd472 Further translations of French Additional manual 2024-03-28 10:13:22 +01:00
jpc
cdb4cf5fa4 Further translation of French Additional manual + typo in English version 2024-03-27 18:39:25 +01:00
Jean-Marc Lasgouttes
43b1234a98 Typo in doc
Thanks to Peter J. Puchyr for noticing it.
2024-03-25 22:32:17 +01:00
Juergen Spitzmueller
1f4238c9fb Add Idan Pazi to contributors list 2024-03-12 12:53:34 +01:00
Idan Pazi
0fb7650786 Fix returned value of win32file.ReadFile
returns an PyOVERLAPPEDReadBuffer that needs to be converted to str.
2024-03-12 12:46:04 +01:00
Thibaut Cuvelier
04beccca4c DocBook: add missing mapping for AASTeX 6.3.
The result is far from perfect, see the TODOs. The corresponding tests are still inverted.
2024-03-09 15:09:45 +01:00
Juergen Spitzmueller
5e5612698f de/Additional: small adaptations 2024-03-08 09:06:26 +01:00
Juergen Spitzmueller
5e1dd61819 Additional: Minor fix 2024-03-08 09:05:57 +01:00
jpc
beeb43fe08 AMS classes naming 2024-03-06 10:51:24 +01:00
Scott Kostyshak
8a0daee999 Restore origin tag 2024-03-05 11:34:59 -05:00
Juergen Spitzmueller
7250f15b83 grmpf 2024-03-05 15:55:53 +01:00
Juergen Spitzmueller
503bc42d7e Fix file name
This way, we still have a string freeze break, but it is at least only
one string :-(

(and no, it does not matter whether the translation of this string is
identical to the English string)
2024-03-05 15:52:22 +01:00
Jürgen Spitzmüller
de04f3270e Fix lyx2lyx bug with nested inset arguments 2024-03-05 15:41:21 +01:00
Jürgen Spitzmüller
a48e32fbe6 Amend e530f71f8f
I suppose the template file should not have been deleted, but moved.
2024-03-05 15:30:17 +01:00
jpc
c0f6631f59 layout fot aastex v631 2024-03-05 12:29:27 +01:00
jpc
fa04bf4b3f aastex v 631 2024-03-05 12:24:17 +01:00
jpc
a8bb10fe09 Typo in file name 2024-03-05 10:32:23 +01:00
jpc
e530f71f8f Additional.lyx : a number of typos and update aastex to version 631 2024-03-05 10:18:55 +01:00
jpc
cd83473d08 Transcription of Additional restructuration in the French version
Translations remain to be done
2024-03-05 10:04:14 +01:00
Pavel Sanda
56ab845ca5 * generate_contributions.py - another php 8 choking points 2024-03-03 00:26:26 +01:00
Pavel Sanda
0bd6fe0fc4 * generate_contributions.py - php 8 chokes on those
@anyone: please do not commit changes generated by generate_contributions.py
until we switch to the new web server. Not sure what will this output do
with older php.
2024-03-03 00:09:32 +01:00
Juergen Spitzmueller
be209506d5 Linguistics: resolve tracked changes 2024-02-28 16:16:43 +01:00
jpc
026bd67568 French example Linguistics.lyx: upadate before 2.4.0 2024-02-28 11:37:24 +01:00
Juergen Spitzmueller
8742f77f3a Update of de/Math 2024-02-27 07:17:47 +01:00
Juergen Spitzmueller
d0a4b80256 Math.lyx: some formatting fixes 2024-02-27 07:17:31 +01:00
Juergen Spitzmueller
ead6eb8944 Consider bookauthor in preview
Hence, also support the inbook type
2024-02-27 05:40:57 +01:00
jpc
9ca00ddc69 French Math manual: last update before 2.4.0 2024-02-26 10:03:04 +01:00
jpc
5bccb45968 French EmbeddedObjects manual: final upadte before 2.4.0 2024-02-24 16:11:53 +01:00
Juergen Spitzmueller
337f953426 Consider biblatex subtitles in bibliography preview 2024-02-24 16:09:47 +01:00
Juergen Spitzmueller
f72d68cd9f fix column default of IEEEtran layout 2024-02-24 08:57:14 +01:00
jpc
cb0ef98a1e French UserGuide : final update before 2.4.0 2024-02-21 16:52:25 +01:00
jpc
37f8d0412e Document accerss to LyX repo in Intro.lyx 2024-02-13 16:44:33 +01:00
jpc
b1cc184a19 Update web reference to lyxgit 2024-02-13 16:44:33 +01:00
jpc
81416e5a0e Document 2.4.0 review 2024-02-12 11:17:28 +01:00
jpc
085fe133db Restore alphabetical order in commands 2024-02-12 10:54:18 +01:00
jpc
040f8ba2a1 Update of Customization for 2.4.0 2024-02-11 11:21:36 +01:00
José Matos
db78555e29 Minor cleanup: one import per line 2024-02-10 22:02:13 +00:00
José Matos
a46b5f2de9 Remove extra whitespace at the end of line 2024-02-10 22:01:01 +00:00
Richard Kimberly Heck
91bd457a67 Fix display of counters for included listings. 2024-02-09 19:54:56 -05:00
Enrico Forestieri
fe99f7b01e Adapt lyxpak.py to work with Python 3 on Windows
Seemingly, the elements of argv on Windows are a different type
with respect to Linux. A patched version of getopt.py has to be
used on Windows in order to match variable types.
2024-02-09 22:46:05 +01:00
jpc
23c861d44c Update French Customization (step 1) and Customization (typo) 2024-02-01 22:17:56 +01:00
Stephan Witt
3be3183eea Avoid call of lilypond-book as python script if not on Windows 2024-01-29 07:59:48 +01:00
Pavel Sanda
7eb5003a81 * configure - pdftoppm is broken on windows.
From now we will use it only in case IM coders are really
banned (so for windows we are back at 2.3 conversion chain).

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg221022.html
2024-01-27 18:35:08 +01:00
Yuriy Skalko
7b218e1199 ru/UserGuide: adjust for alphadin to alpha change 2024-01-27 10:52:20 +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
Pavel Sanda
40c9068876 * layouttranslations - he update 2024-01-23 20:58:47 +01:00
Juergen Spitzmueller
db9f6903e4 Amend c2fc40ec0 2024-01-21 15:44:24 +01:00
Juergen Spitzmueller
c2fc40ec04 LyXDocs.bib: a couple of fixes 2024-01-21 15:22:19 +01:00
Juergen Spitzmueller
c7f6846bbe Ditch alphadin from the distribution 2024-01-20 15:47:56 +01:00
Pavel Sanda
7584d3a203 * RELEASE-NOTES 2024-01-18 21:29:41 +01:00
Richard Kimberly Heck
28b5f1d5e0 Fix reference format for propositions.
Reported by Andrew Parsloe.
2024-01-17 17:22:11 -05:00
Pavel Sanda
930ff2b95d nl layouttranslation reviewed by Kees. 2024-01-14 14:19:22 +01:00
Pavel Sanda
3174e175d1 Fix missing names in contrib 2024-01-12 23:53:52 +01:00
jpc
082031ac8f Update fr/Intro.lyx for 2.4.0 2024-01-11 18:48:42 +01:00
Richard Kimberly Heck
e8bf672eba Update bind format 2024-01-11 11:07:41 -05:00
Richard Kimberly Heck
d302d6b20f Update docs 2024-01-11 11:06:40 -05:00
Pavel Sanda
e3c18b1124 * cs/Tutorial update format 2024-01-06 17:01:47 +01:00
Pavel Sanda
4a3a08671a * LFUNS - update format 2024-01-06 16:04:05 +01:00
Pavel Sanda
465ba4af4b * es/Intro.lyx: Accept all changes and disable CT 2024-01-06 15:59:55 +01:00
Pavel Sanda
8e1ec69aa3 * es/Shortcuts - Accept all changes and disable CT 2024-01-06 15:57:39 +01:00
Pavel Sanda
62311072ff * LaTeXConfig: Accept all changes and disable CT 2024-01-06 15:46:29 +01:00
Pavel Sanda
6a6830eb08 *Shortcuts: Accept all changes and disable CT 2024-01-06 15:44:26 +01:00
Pavel Sanda
2cf58dc155 * Customization: Accept all changes and disable CT 2024-01-06 15:42:43 +01:00
Pavel Sanda
f86f7bb52b * Math: Accept all changes and disable CT 2024-01-06 15:39:35 +01:00
Pavel Sanda
5d117bc989 * Embedded Objects: Accept all changes and disable CT 2024-01-06 15:37:40 +01:00
Pavel Sanda
7b447915c2 * Additional: Accept all changes and disable CT 2024-01-06 15:32:32 +01:00
Pavel Sanda
1ff7255150 UserGuide: Accept all changes and disable CT 2024-01-06 15:21:48 +01:00
Pavel Sanda
7e21ce4203 * Tutorial: Accept all changes and disable CT 2024-01-06 15:07:54 +01:00
Pavel Sanda
f247cc306d * Intro.lyx: Accept all changes and disable CT 2024-01-06 15:03:07 +01:00
Juergen Spitzmueller
7e302947d1 Add Kees to credits 2024-01-06 11:46:25 +01:00
Udi-Fogiel
9fec26477c Update UserGuide.lyx
Respect OS keyboard language
was removed from 2.4.0, see #6450
2024-01-03 20:23:29 +02:00
Udi-Fogiel
f9fbeedec9 Ammend 750a954f
fix wrong message titles
2024-01-03 16:33:13 +02:00
Udi-Fogiel
750a954f8b add Omer and Yitzhak to generate_contributions 2024-01-03 15:56:47 +02: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
Udi-Fogiel
41214d8f8f Ammend 9e8901f997
Fix a typo in UserGuide.lyx
2024-01-01 12:33:25 +02:00
Scott Kostyshak
fcb3e0cea0 ja docs: restore \font_typewriter to IPAGothic
This fixes, for example, the following ctests:

  export/doc/ja/Customization_pdf4_systemF
  export/doc/ja/Customization_pdf5_systemF

Consistent with ffe5d61b.
2023-12-25 12:20:33 -05:00
Scott Kostyshak
2aee182d9d ja docs: restore \origin
Amends afcd501f.
2023-12-25 12:09:31 -05:00
Richard Kimberly Heck
afcd501fe8 Japanese translations and docs from Koji 2023-12-25 11:41:49 -05:00
Scott Kostyshak
9143878e5d Python fixes for export to LyX Archive
Patch by Kees and José Matos.

For discussion, please see this [1] ML thread. José additionally
notes [2] the following:

  I took the change and I changed some minor annoyances:
  * test comparison with None;
  * fixed a region where the indentation was different from all the
  others (2 spaces instead of 4);
  * replaced xrange with range.

[1] https://www.mail-archive.com/search?l=mid&q=007b01da285a%241b8e28c0%2452aa7a40%24%40gmail.com
[2] https://www.mail-archive.com/search?l=mid&q=0cd9fe5fd161c0ad8950258867255a3bfae8dbc1.camel%40gmail.com
2023-12-06 14:18:11 -05:00
Juergen Spitzmueller
4723f8e754 Amend ddc5fed0ad
*facepalm*
2023-12-05 18:37:26 +01:00
Juergen Spitzmueller
ddc5fed0ad Omit character activation with hanging package
We do not use this feature anyway, and it breaks with other packages/
languages that activate characters
2023-12-05 17:07:10 +01:00
Pavel Sanda
731c2e2c35 * Additional.lyx - typo reported by Daniel (#12985). 2023-11-27 20:07:35 +01:00
Juergen Spitzmueller
341dd6364c de/Customization: update 2023-11-24 16:49:35 +01:00
Enrico Forestieri
dc8d2d554f Document 58103cf2 2023-11-17 19:30:10 +01:00