Commit Graph

648 Commits

Author SHA1 Message Date
Kornel Benko
f2f49674be Cmake tests: Adapted BATCH tests to ignore the stored LyX-version 2023-03-12 20:19:21 +01:00
Pavel Sanda
bf4ba774c6 Update csv2lyx.py to work with Python 3.
Patch from Jose.
2023-03-08 22:26:04 +01:00
Pavel Sanda
52d51fe433 lyxpaperview - fix redirection
Any time pdfviewer process write anything to stderr it's killed,
most probably due to not existing pipe to proper stderr file descriptor.
/dev/null redirection fixes the issue.
2023-02-24 20:44:37 +01:00
Pavel Sanda
17829ee513 lyxpaperview - don't wait for the process to finish 2023-02-24 20:26:35 +01:00
Pavel Sanda
307498894c * lyxpaperview.py - allow arguments for viewers 2023-02-20 23:07:09 +01:00
Thibaut Cuvelier
7f5c917c71 layout2layout: remove unused regex. 2022-12-27 15:52:42 +01:00
Thibaut Cuvelier
16a1aa9901 DocBook: add support for DocBookGenerateTitle.
The new parameter allows more flexibility when encoding some elements that have a poor mapping in DocBook, like theorems. The major use is to wrap the environment in a generic container, figure, which requires a title (but none is available).
2022-12-27 15:52:26 +01:00
Thibaut Cuvelier
55ccae72d4 layout2layout: improve coding style.
Useless parentheses (not helping with readability either) and semicolon. Redo indentation to be consistent throughout the file. Also, fix typos along the way.
2022-12-26 21:22:13 +01:00
Enrico Forestieri
ae961f004b Partial fix for #12605
The equation number is now correctly generated when using
\ref in \tag, but if equations are numbered within sections,
the \tag'ed equations in the first sections are numbered wrongly.

However, I think this is a preview.sty bug not a lyx one.
2022-12-10 11:31:51 +01:00
Richard Kimberly Heck
c50f0b125d Add HTMLClass for InsetLayout as well. Layout format change. 2022-12-05 23:42:50 -05:00
Jean-Marc Lasgouttes
ff1ddf6251 Fixup 71623b88: change semantics of "delete" LFUNs again
Instead of specifying "force" to disable the deletion protection
mechanism, invert the default so that "confirm" is needed to activate
it. The idea is to keep the lfun reasonable for scripting and add a
special argument for interactive use.

Document in release notes.

Update LFUN.lyx documentation

Update bind files.

Add conversion step to prefs2prefs_lfun.py.
2022-12-04 21:13:51 +01:00
Richard Kimberly Heck
69a6c41b94 Introduce HTMLClass tag, to make it easier to give these. 2022-12-04 13:36:34 -05:00
Richard Kimberly Heck
75b111aca7 Actually do the layout update 2022-12-04 00:35:33 -05:00
Richard Kimberly Heck
3eb3608138 Fix bug #11418.
Add new HTMLInToc layout tag: When false, the thing will not be output
to the TOC. It's now set to false for starred sections.
2022-12-04 00:33:14 -05:00
chillenb
22e5903bf3 adjust text display width in windowed mode 2022-10-27 17:49:43 +02:00
Jean-Marc Lasgouttes
a20477993b Preview: do not overwrite fg/bg color names that beamer uses
Rename them to lyxfg/lyxbg

Fixes bug #12563.
2022-10-08 16:42:55 +02:00
Pavel Sanda
79f321d0f5 pyupgrade related fixes to python scripts #2.
Patch from Jose.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg217790.html
2022-07-31 20:08:44 +02:00
Kornel Benko
a379c5d5ea Amend 9d8dfe934b: Check _all_ visited dirs 2022-06-02 12:16:07 +02:00
Pavel Sanda
d1f8c48d1b * bash_completion from Hernan Solari 2022-04-01 22:56:57 +02:00
Pavel Sanda
b1db663d99 * bash_completion - outdated syntax
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008257
2022-03-26 11:16:38 +01:00
José Matos
109ea2be4a Add new placeholder $${python} to configure
This ensures that we use a consistent Python interpreter in LyX.

$${python} is replaced by the Python version found.

Users can apply this in preferences and use the same version defined by
LyX.
2022-01-04 00:21:34 +00:00
José Matos
940d3ceeb9 Make layout2layout compatible with Python 2 and 3 2022-01-03 19:59:42 +00:00
Thibaut Cuvelier
4643048583 DocBook LilyPond: add a comment to indicate that an issue cannot be worked around. 2021-11-02 00:55:24 +01:00
Thibaut Cuvelier
e93e50bf56 DocBook: add the DocBookRenderAsImage tag. 2021-10-13 19:26:48 +02:00
Thibaut Cuvelier
73a63822c2 DocBook: update links to LilyPond bugs.
Also updates the test so that it matches the next version of LilyPond.
2021-10-13 02:36:39 +02:00
Thibaut Cuvelier
32bd5877e7 DocBook: make copier compatible with Python 2. 2021-10-13 02:36:39 +02:00
Thibaut Cuvelier
e9db9d3644 DocBook copy: add links to bug reports. 2021-09-27 01:46:01 +02:00
Thibaut Cuvelier
6d3be39587 DocBook copy: don't error if the file was already copied. 2021-09-27 01:15:16 +02:00
Thibaut Cuvelier
a464915f58 DocBook copy: large refactoring to improve readability. 2021-09-27 01:10:49 +02:00
Thibaut Cuvelier
e22f52e731 DocBook: make LilyPond work more reliably. 2021-09-27 00:39:10 +02:00
Thibaut Cuvelier
508badc78a DocBook: redirect LilyPond output to main LyX output to ease debugging. 2021-09-26 21:13:17 +02:00
Thibaut Cuvelier
e983676f6c DocBook: work around bug in LilyPond.
https://lists.gnu.org/archive/html/bug-lilypond/2021-09/msg00039.html
2021-09-26 21:00:59 +02:00
Thibaut Cuvelier
57e0b860cb DocBook: add the new script as DocBook copier. 2021-09-26 19:10:13 +02:00
Thibaut Cuvelier
f0537d72ee DocBook: add script to start LilyPond on the generated file.
Not yet used anywhere in the code for now (see next commit).
2021-09-26 18:15:09 +02:00
Thibaut Cuvelier
661fcb2628 Unused code. 2021-09-26 17:27:41 +02:00
Thibaut Cuvelier
b2c0604ad1 Typo. 2021-09-26 17:25:28 +02:00
Thibaut Cuvelier
8b6e3d3749 DocBook: add more flexibility for floats.
Intended to fix #12371.
2021-09-20 00:06:20 +02:00
Kornel Benko
bc01f50955 Cmake export tests: Select "-dALLOWPSTRANSPARENCY" flag for ps2pdf converter
Add parameter "-dALLOWPSTRANSPARENCY" for call to ps2pdf.
Used only in test environment.
The fix is proposed by Scott.

Here his comment:
        "Interestingly, the flag fixes the English Powerdot tests but not the
        French ones."
2021-05-30 20:26:41 +02:00
Kornel Benko
5158b54eb9 Cmake export tests: Enable unsafe dvipdfmx
Add parameter "-i dvipdfmx-unsafe.cfg" for call to dvipdfmx.
Used only in test environment.
This is needed because of regression for ja LilyPond found by Scott.
Coment by Jürgen:
  "dvipdfmx-unsafe.cfg makes dvipdfmx call gs (rungs) with -dNOSAFER
  rather than with -DSAFER (as in the default dvipdfmx.cfg of TL21).

  However, this change should definitely only be applied to trustworthy
  files, so changing the converter generally is certainly not such a good
  idea."
2021-05-23 10:05:13 +02:00
Thibaut Cuvelier
b9f355fdb1 ePub: try harder to find image files. 2021-02-19 20:59:20 +01:00
Richard Kimberly Heck
516a25cbb5 Use tabs in prefs2prefs.py, as in the other such files 2021-02-15 11:06:55 -05:00
Richard Kimberly Heck
01dc665a25 Make continuous spellcheck the default.
Convert old preferences to preserve previous setting, as well.
2021-02-15 11:03:43 -05:00
Thibaut Cuvelier
d18dff22b5 DocBook: add the DocBookNoFontInside layout configuration. 2021-02-13 05:09:59 +01:00
Pavel Sanda
223e23bca4 * docbook2epub.py syntax 2021-02-12 23:01:45 +01:00
Thibaut Cuvelier
b1febf112d ePub: improve compatibility with Python 2. 2021-02-12 05:26:32 +01:00
Thibaut Cuvelier
7622292027 ePub: share a bit of code for parsing arguments. 2021-02-07 23:19:07 +01:00
Thibaut Cuvelier
f7beed1ee2 ePub: allow a user-specified Saxon. 2021-02-07 23:19:07 +01:00
Thibaut Cuvelier
bf976cb0ae ePub: use None instead of an empty string. 2021-02-07 20:52:50 +01:00
Thibaut Cuvelier
e95513c823 ePub: add argument for external DocBook XSLT. 2021-02-07 20:51:25 +01:00
Thibaut Cuvelier
d7d31ab512 ePub: restructure the script as a class.
This allows to share a little bit more code and to avoid functions with many arguments.
2021-02-07 20:47:24 +01:00