commit 61a9f04754921abb28d9189c4449ae170d0b994f
Author: José Matos
Date: Mon Aug 1 11:04:39 2016 +0100
Fix bug #10273
The export of compressed files to previous lyx versions failed on windows.
The change in this case is to explicitly pass the output file since we know
it
commit 41666164f7b9d6036660e8a1c3ada269e3d138fd
Author: José Matos
Date: Mon Aug 1 10:53:10 2016 +0100
White space change only (remove spaces at the end of lines)
---
lib/configure.py | 28 ++--
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/lib
commit ef6ff7fb53b0888f4f33f75814a0ba331fffcac1
Author: José Matos
Date: Wed Mar 15 10:06:30 2017 +
lyx2lyx: Remove UTF-8 BOM if present in the lyx file
---
lib/lyx2lyx/LyX.py |9 +
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/lib/lyx2lyx/LyX.py b/lib
commit 37901e2e25da922fe7eab8736a3824188f2ec06c
Author: José Matos
Date: Mon Mar 27 10:16:31 2017 +0100
lyx2lyx: Cosmetic clean up of the lyx_2_?.py files.
Remove the duplicated \# -*- coding: utf-8 -*-
lines that show in the third line.
As far as I know they are not used
commit 463e12827ce4466bd679d3f8c3fe3c6f5aff39e2
Author: José Matos
Date: Mon Mar 27 10:36:30 2017 +0100
lyx2lyx: more descriptive member name (document.start ->
document.initial_format)
---
lib/lyx2lyx/LyX.py |4 ++--
lib/lyx2lyx/lyx_2_0.py |2 +-
lib/lyx2lyx/lyx_2_3
commit 1269860b45646dac3a3425307dbdd56c99005732
Author: José Matos
Date: Mon Mar 27 11:26:58 2017 +0100
lyx2lyx: remove trailing whitespaces from lyx_1_6.py
---
lib/lyx2lyx/lyx_1_6.py |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib
commit bcf715f398ead2e2c43af65bedcfecad27e48880
Author: José Matos
Date: Mon Mar 27 11:35:29 2017 +0100
lyx2lyx: fix #9006 (python3 with non-utf8 encoding as the system default)
This patch fixes lyx2lyx running on python 3 for those systems
where the default encoding is not
commit 67bf174b1016ee46fc2651d1a43ca2f20982fccf
Author: José Matos
Date: Wed Mar 29 12:34:53 2017 +0100
lyx2lyx: convert iteritems -> items to be compatible with python 2 and 3
---
lib/lyx2lyx/lyx_2_3.py |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/lyx2
commit dc7ac99d18c59234ab5e9b12d290e3959e761e11
Author: José Matos
Date: Wed Mar 29 14:24:34 2017 +0100
Get the file system encoding from sys instead of the locale
---
lib/configure.py |5 +
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/lib/configure.py b/lib
commit cc75da1c3e109e4fd6b1305a707c70929000ddd6
Author: José Matos
Date: Sun Apr 14 21:30:02 2024 +0100
Convert $${python} placeholder for graphic conversions
(cherry picked from commit cdcaf0e7b6cc45bc74175667c390c3148c4730e9)
---
src/graphics/GraphicsConverter.cpp | 2 ++
1
commit cc75da1c3e109e4fd6b1305a707c70929000ddd6
Author: José Matos
Date: Sun Apr 14 21:30:02 2024 +0100
Convert $${python} placeholder for graphic conversions
(cherry picked from commit cdcaf0e7b6cc45bc74175667c390c3148c4730e9)
---
src/graphics/GraphicsConverter.cpp | 2 ++
1
commit 1c458dc1212865e9c9e2fd0207f15a72f4988e63
Author: José Matos
Date: Mon Jun 10 10:04:26 2024 +0100
Python runtime detection requirement upgraded to 3.8
Remove -tt option that is a no-op in Python 3.
Remove search for Python 2
---
config/lyxpython.m4 | 62
commit 1d2f8b94cbc5c753e7dd6d54631bf9a53ecb3cf7
Author: José Matos
Date: Mon Jun 10 10:10:39 2024 +0100
Update Python build time requirement to 3.8
---
configure.ac | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 442a8a05d9
commit b86059ee6d0f72a43826104c19d42d48c0575f2f
Author: José Matos
Date: Mon Jun 10 10:33:33 2024 +0100
Update build time Python requirement to 2.8 (cmake edition)
---
CMakeLists.txt | 19 +--
src/tex2lyx/test/runtests.cmake | 6 ++
2 files changed, 7
commit df0e337684f2363ab3b2313549d397fa798b9b56
Author: José Matos
Date: Mon Jun 10 10:38:28 2024 +0100
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
commit f9ec4186d7e241a8db26f7bc67a0b38f0e402cfe
Author: José Matos
Date: Mon Jun 10 10:55:40 2024 +0100
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
lib/lyx2lyx
commit 04ecabef6005640450cb20e813eeb2bb284b9487
Author: José Matos
Date: Mon Jun 10 11:29:56 2024 +0100
Update Python scripts to Python 3+
Remove support for Python 2
Use formatted strings where appropriated
---
lib/scripts/TeXFiles.py | 3 ---
lib/scripts
commit aeee6b373ea454a5d570c87f851de055db020a94
Author: José Matos
Date: Mon Jun 10 11:43:04 2024 +0100
Update generate contributions to Python 3+
lib/generate_contributions.py | -
1 file changed, 545 insertions(+), 566 deletions(-)
--
lyx
commit c92b481a448f0ebb1bc6725ce766aeb8364a747c
Author: José Matos
Date: Mon Jun 10 12:05:03 2024 +0100
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
commit ef5f142b9aca927a56f092dae99ef60a56ca8797
Author: José Matos
Date: Thu Jun 13 10:44:56 2024 +0100
Update python requirements notice in INSTALL
---
INSTALL | 12
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/INSTALL b/INSTALL
index 9496fc16c7..4f36c7ff54
commit aaef6d269319e079c24fea186c2dc0063bc2a6f3
Author: José Matos
Date: Sat Jun 15 10:04:31 2024 +0100
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
commit b4db3ea13710afc38054005a4d88cb4e36659d88
Author: José Matos
Date: Sat Jun 15 10:06:06 2024 +0100
Reformat lyx2lyx code using ruff
lib/lyx2lyx/LyX.py| 498 ++--
lib/lyx2lyx/generate_encoding_info.py | 26 +-
lib/lyx2lyx/lyx2lyx_lang.py | 185
commit a0a5892ae8ed282a06c8c56427b3de119e829729
Author: José Matos
Date: Sat Jun 15 11:26:28 2024 +0100
Fix code
Run "ruff check --fix"
Remove unneeded imports;
Reword code to make clear the "not in" operator;
Put imports in its own line (re
commit b80ccaa417f4f9b460bfdc9a9896873027b03ac1
Author: José Matos
Date: Sun Jun 16 07:34:34 2024 +0100
Add common pattern in linter exclusion list
# ambiguous-variable-name (E741)
Derived from the **pycodestyle** linter.
## What it does
Checks for the use of
commit 160ac7242eec1a29e37310f336ee2c7ef8240b23
Author: José Matos
Date: Sun Jun 16 07:45:43 2024 +0100
Remove undisclosed imports (from xxx import *)
This was the last example in this directory.
---
lib/lyx2lyx/test_lyx2lyx_tools.py | 3 +--
lib/lyx2lyx/test_parser_tools.py
commit 4534a20f1a247c85236da8b3271534765e4b4025
Author: José Matos
Date: Mon Jun 17 11:31:10 2024 +0100
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
commit 44e0940d7575d59de728e7b4c30f06374711fcba
Author: José Matos
Date: Tue Jun 18 10:25:52 2024 +0100
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.
---
lib
commit 5abe42f6d365522ce242c6f71fc30f222f8f5693
Author: José Matos
Date: Tue Jun 18 10:24:09 2024 +0100
Tweak ruff configuration
Add I - isort rules (order of imports);
Ignore line too long warnings.
---
lib/pyproject.toml | 8 +---
1 file changed, 5 insertions(+), 3
commit 95a7440b0eae096a591a1a61fa31a0143898a97d
Author: José Matos
Date: Tue Jun 18 10:52:05 2024 +0100
Sort and format comments
The last code change shuffled the comments out of place
---
lib/lyx2lyx/lyx_2_5.py | 29 -
1 file changed, 12 insertions
commit 7a79a416b8ab501ec8158afeb4171b5d92094b5e
Author: José Matos
Date: Thu Jun 27 21:20:49 2024 +0100
Remove profiling.py
The hotshot module used there only works for Python 2.
BTW the profiling turned out not be necessary.
As a case in point Python 3.13 is
commit 52295693d6bee47f0d8615d3981e5bcb11e7d4c8
Author: José Matos
Date: Sun Jul 28 09:56:29 2024 +0100
Clean python code (lyx2lyx)
Please linter where it makes sense:
* Avoid bare exceptions;
* Use formatted strings instead of string interpolation
---
lib/lyx2lyx
commit 34a616bd9187937106977fd64ded620f2aeb8f45
Author: José Matos
Date: Fri Aug 16 17:33:14 2024 +0100
Add another option to get python by using the unversioned name
---
src/support/os.cpp | 4
1 file changed, 4 insertions(+)
diff --git a/src/support/os.cpp b/src/support/os.cpp
commit d06a034578da4b20fb26e53ff983a77ca90bd07c
Author: José Matos
Date: Sun Aug 25 10:14:18 2024 +0100
Python 3.13 removed the pipes module from the standard library
That module was a wrapper over the popen module and it was scheduled to
be removed in Python 3.11
commit f95e238ccd5aad76cfcbd5aeed50105998133d97
Author: José Matos
Date: Sun Aug 25 10:14:18 2024 +0100
Python 3.13 removed the pipes module from the standard library
That module was a wrapper over the popen module and it was scheduled to
be removed in Python 3.11
On Thursday 26 May 2011 15:16:53 rgh...@lyx.org wrote:
> Fix bug reported on user list. Children included more than once in
> the same document could not be rendered.
>
> Problem was that we were using children_positions to deal with the
> included documents. That structure only includes each chil
[425, []],
> + [425, []]
>]
>
> revert = [
The comma in the last line is not necessary but it helps the difference
between different versions because then it only changes one line instead
of two. Sure it is a style issue but then it allows for nicer diffs.
--
José Matos
commit 5b160e82be3797ae57632174f2510a132a7558a1
Author: José Matos
Date: Sat Apr 28 10:51:35 2018 +0100
Update scripts to support simultaneously python 2 and 3
The fixes are simple and on line with the changes made during
the 2.3 development. It was an oversight to leave them
commit 1084e30f10fa4b4c78ef10a04adb5497a3341376
Author: José Matos
Date: Sat Apr 28 10:51:35 2018 +0100
Update scripts to support simultaneously python 2 and 3
The fixes are simple and on line with the changes made during
the 2.3 development. It was an oversight to leave them
commit 0a43aac52474e5b316df9b3679b771fa4c98839c
Merge: f7b9d57 1084e30
Author: José Matos
Date: Sat Apr 28 11:26:16 2018 +0100
Merge branch '2.3.x' of git.lyx.org:lyx into 2.3.x
commit f7b9d57a454fb3f6275ccfecbe842edd41e9ed49
Author: José Matos
Date: Sat Apr 28 10:51:35 2018 +0100
Update scripts to support simultaneously python 2 and 3
The fixes are simple and on line with the changes made during
the 2.3 development. It was an oversight to leave them
commit 1fe328666ceed320cc9ec1b145d3d6d17017790b
Author: José Matos
Date: Sat Apr 28 14:42:31 2018 +0100
Improve the readability of lyx2lyx -l option
Example:
$ lyx2lyx -l
...
2.2 stable format: 508
stable versions: ['2.2.0', '
commit 91ded82b52723e6f3967cc57a155bd9c04c8d728
Author: José Matos
Date: Sat Apr 28 14:57:57 2018 +0100
Small improvement to pre-historic file format conversion.
---
lib/lyx2lyx/lyx_0_10.py | 54 --
1 files changed, 28 insertions(+), 26
commit ea8b0df0e4d1d6f8d08be2ac2a87f1d43959a53d
Author: José Matos
Date: Sat Apr 28 15:10:09 2018 +0100
Add new semantic functions to add an remove document options.
The objective is to identify common operations and place them
in functions in order to improve the readability
commit 08182ead14d4aebde112c10fc5a8ca25e2bf80cc
Author: José Matos
Date: Sat Apr 28 18:31:31 2018 +0100
Remove spurious spaces at the end of lines
---
lib/lyx2lyx/lyx_2_2.py |4 ++--
lib/lyx2lyx/lyx_2_3.py |2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib
commit 94905f9ce3390c1baee137f7063fabf34ce6ea6b
Author: José Matos
Date: Sat Apr 28 18:47:32 2018 +0100
Use insert_document_option to remove Georgian when reverting.
Less code for the same functionality. :-)
---
lib/lyx2lyx/lyx_2_2.py | 16 ++--
1 files changed, 2
commit 37c94806566fdd13bef1fe5bfeda64ceb839f6a3
Author: José Matos
Date: Wed May 9 08:53:28 2018 +0100
Simplify the backup names when using an older file format.
Currently if we have a 2.3 file and we open it with a more recent version
we get:
original file: file.lyx
commit cac27076ead10684270520670adc6bd004793361
Author: José Matos
Date: Wed Aug 29 17:26:21 2018 +0100
Replace /usr/bin/env python -> /usr/bin/python3
---
lib/configure.py |2 +-
lib/generate_contributions.py |2 +-
lib/lyx2lyx/lyx2lyx |2 +-
commit 8663a371f31dc7bb888071c15a0b2cd4c3669c60
Merge: 3f03f0a 69726b8
Author: José Matos
Date: Sat Dec 29 19:24:59 2018 +
Merge branch 'master' of git.lyx.org:lyx
src/support/filetools.cpp |6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
commit 3f03f0a447e0f672025d78881d8a2790133ff47b
Author: José Matos
Date: Sat Dec 29 19:14:41 2018 +
Move all python shebangs from /usr/bin/env to python3.
The change is only relevant to development as all the call to python
scripts is done
calling C++ os::python that
commit d0a27e3afc3444d10694df10dc4cb8d604287765
Author: José Matos
Date: Fri Sep 18 01:07:39 2020 +0100
Whitespace cleanup
---
lib/lyx2lyx/lyx_2_4.py | 26 +-
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx
commit 5154400b641a46b27a35e90d97aca725e541a14a
Author: José Matos
Date: Fri Sep 18 01:09:36 2020 +0100
Avoid crash when string only has one char
---
lib/lyx2lyx/lyx_2_4.py |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx
commit 4419f6e0591bdaed0f6cebfd6b5d108363628f88
Author: José Matos
Date: Mon Sep 21 14:36:52 2020 +0100
Simplify reversion code (keeping the same output)
---
lib/lyx2lyx/lyx_2_4.py |7 ++-
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib
commit 0bda5e5b8dcae121893f50af8759ee501224b510
Author: José Matos
Date: Mon Sep 28 11:13:47 2020 +0100
Make script compliant with python 3
---
lib/scripts/listerrors | 18 +-
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/lib/scripts/listerrors b/lib
commit c539b57a0e6d21a5b2757d4c8ad522948eb52366
Author: José Matos
Date: Fri Oct 30 18:46:13 2020 +
Make all exectuable python scripts use python3
This is only relevant on linux/unix if running the scripts from a shell.
These two were the last where the call still used an
commit 940d3ceeb9e6d8ce216afedf18c898ec075cc27d
Author: José Matos
Date: Mon Jan 3 19:59:42 2022 +
Make layout2layout compatible with Python 2 and 3
---
lib/scripts/layout2layout.py | 14 +++---
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/lib/scripts
commit 109ea2be4a21ca93d22ab25703b3352a50fbbe3b
Author: José Matos
Date: Tue Jan 4 00:21:34 2022 +
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
commit b73ab0256d113571174fed4b2a3405fe8c44d297
Author: José Matos
Date: Thu Jan 27 15:37:45 2022 +
Fix compilation with gcc-12
---
src/insets/InsetListings.cpp |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetListings.cpp b/src/insets
commit 79a2ac575cd40291e8cc7e8c4a3f4072670367b7
Author: José Matos
Date: Thu Jan 27 18:32:57 2022 +
Replace $${python} directly in the converter constructor
---
src/Converter.cpp |6 ++
src/Converter.h |4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git
commit 82ee9794f916d956f29c5efcb3ae4ae99756186b
Author: José Matos
Date: Thu May 16 09:27:12 2019 +0100
Fix configure.py to work with python3 again (it continues to work with
python2(.7))
---
lib/configure.py |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib
commit 8dd31803b16d1fb6b30772955188c3595437f64a
Author: José Matos
Date: Tue May 28 16:22:32 2019 +0100
Attempt to fix #11457
In python 3 the colors need to be strings and not bytes:
This was the equivalent of
>> print("%s" % b"1")
commit 28f17333ffe73bd22b83ba2267ff1f3c57248b68
Author: José Matos
Date: Fri May 31 10:43:02 2019 +0100
Temporary hack to try to solve #11457 on windows
Redirect the standard output and standard error of the script to a file
called debug.txt in the temporary directory.
---
lib
commit 050f0cbc91863ae608bba00c858b357f20198bcc
Author: José Matos
Date: Fri May 31 16:07:13 2019 +0100
Add further debug information fow windows (#11457)
---
lib/scripts/lyxpreview2bitmap.py |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/scripts
commit a810d779d78f2bc4f952321ca05692f9534e0fba
Author: José Matos
Date: Sun Jun 2 17:24:40 2019 +0100
Import lyxpreview_tools directly and not only inside *if* conditions.
This is related to the bug #11457 saga and it was my fault.
The debug files should be written only
commit f9bf53f35abf88aa6dd25c7413e73db105464e17
Author: José Matos
Date: Mon Jun 3 07:31:05 2019 +0100
Make verbose switch consistent.
Someday we should probably unify these two switches. Because the debug
switch is verbose
and the verbose switch is mostly used for debuging
commit a8937b53ecb054e140036b742e0c529bf8c9937a
Author: José Matos
Date: Mon Jun 3 17:15:09 2019 +0100
Fix bug in python comparison.
It worked in python2 but not the way the authors imagined. Because hex
always returns a string.
From python2:
>>> 1 > &
commit 639b5da1afe87ffe2fa4df3f738b838d6637f11a
Author: José Matos
Date: Mon Jun 3 19:07:20 2019 +0100
Fix the remaing issues with comparisons with objects of different types.
In python it is possible to compare tuples with a lexicographic order.
Take advantage of that
commit 4268a9e8121b08f06706d733e8488e163286eab8
Author: José Matos
Date: Tue Jun 4 18:26:13 2019 +0100
Remove code that is redudant.
Both for python2 and python3 output is always a string.
---
lib/scripts/convertDefault.py |7 ---
1 files changed, 0 insertions(+), 7
commit 58734edff688ae81461fffbc1f3de146d4883833
Author: José Matos
Date: Wed Jun 5 14:06:09 2019 +0100
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
commit adb779a692f29f391cf5c7db418a442320e203ca
Author: José Matos
Date: Fri Jun 7 15:27:25 2019 +0100
Change python run time detection to privilege python 3 over python 2.
This should work as before but now we also control the python version and
ignore it if it is not in the
commit 35c299f86d35385b5bf3729682eeb8d2eb1c78a4
Author: José Matos
Date: Sat Jun 8 09:15:03 2019 +0100
Remove alternative operator representations (and,or) and improve comments
for python binary detection.
---
src/support/os.cpp | 26 --
1 files changed, 16
commit 02ee471d9d686499ba9d5d24609394388d0754bf
Author: José Matos
Date: Sat Jun 8 12:22:26 2019 +0100
Move python related functions together to make it easy to read the code.
---
src/support/os.cpp | 12 ++--
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src
commit ad96fd835b9719a5af8f742a17156c718320e852
Author: José Matos
Date: Sat Jun 8 12:49:30 2019 +0100
Divide the python detection in three functions, with a clear delegation of
responsibilities
python23_call: determines if the binary given is appropriate and adds the
necessary
commit 668aa17ad7567b5969796b9a7a8f57f57a646e92
Author: José Matos
Date: Mon Nov 4 12:12:23 2019 +
Fix typo (thanks to Salvatore Falco for the fix).
---
lib/lyx2lyx/lyx_2_1.py |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib
commit 78db6194c6f717cf4f72072d232f8aef5df13528
Author: José Matos
Date: Sat Dec 28 14:39:49 2019 +
Fix typo in lyx2lyx conversion to 2.1 (taken from master)
---
lib/lyx2lyx/lyx_2_1.py |2 +-
status.23x |3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff
commit 5a212823d7bf103b59be0c79f72448a718186494
Author: José Matos
Date: Sat Aug 15 16:36:34 2020 +0100
Trim endline whitespace
---
lib/configure.py |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/configure.py b/lib/configure.py
index cea9bdc..b638f93
commit a8094051c1ae9c546c76bb0d3300d83e6cdbadef
Author: José Matos
Date: Sat Aug 15 17:49:23 2020 +0100
Consider file encoding for modules in reconfigure
If the modules are not in utf8 then we warn and skip that file
like it happens for layout files.
It would be nice
commit f5489036305eae3e63e721e2714746bd48bac1dc
Author: José Matos
Date: Sat Aug 15 21:02:38 2020 +0100
Consider file encoding for modules in reconfigure
If the modules are not in utf8 then we warn and skip that file
like it happens for layout files.
This a port of
On Tuesday 15 June 2010 09:30:13 sp...@lyx.org wrote:
> Author: spitz
> Date: Tue Jun 15 10:30:12 2010
> New Revision: 34669
> URL: http://www.lyx.org/trac/changeset/34669
>
> Modified: lyx-devel/branches/BRANCH_1_6_X/status.16x
> ===
On Tuesday 15 June 2010 14:41:45 RGH wrote:
> This already exists, as "InPreamble".
>
> Richard
Thanks.
I saw it later but by then I had no time to reply. My bad. :-)
--
José Abílio
commit 11f2a59ce90b406537ff3379276d5e0bb1bf6c37
Author: José Matos
Date: Tue May 9 11:20:34 2017 +0100
python3: fix the preview framework to work with both python 2 and 3
---
lib/scripts/legacy_lyxpreview2ppm.py | 16
lib/scripts/lyxpreview2bitmap.py | 28
commit 6495cd135f15c3775613c79b008ad62f6726573e
Author: José Matos
Date: Tue May 9 16:53:32 2017 +0100
make python string compliant with python 2 and 3
python 2 does not allow to declare a string as raw byte so we double
the backslashes and remove the r preffix
python
commit c546977c6eb7d780a2995b57c468f1e935fc9fe3
Author: José Matos
Date: Thu May 11 15:50:08 2017 +0100
python3: fix the preview framework to work with both python 2 and 3 (part 2)
---
lib/scripts/legacy_lyxpreview2ppm.py | 32
lib/scripts
commit 1f5241f7474b99699a8d1d6a9d60bcdc599790d7
Author: José Matos
Date: Thu May 11 20:56:56 2017 +0100
python3: fix the preview framework to work with both python 2 and 3 (part 3)
trivial fix: xrange -> range
---
lib/scripts/lyxpreview2bitmap.py |2 +-
1 files changed
commit 376cb6763fe1ea047fc3cfaad80969c3a5ebdd7e
Author: José Matos
Date: Fri May 12 10:01:48 2017 +0100
python3: fix the preview framework to work with both python 2 and 3 (part 4)
Remove support for python 1.x (really)
This code has not been used for a long time
commit 430869a1bdf66392ac79740ab84822534430de6e
Author: José Matos
Date: Fri May 12 15:29:29 2017 +0100
prefs2prefs.py: whitespace changes
Bring this file in line with the other python scripts:
* use four spaces for indentation instead of a tab
Remove empty
commit 6138880c0845a9eb6e5b9bfee107e4ee4210cd95
Author: José Matos
Date: Sat May 13 13:38:01 2017 +0100
cleanup: remove unneeded whitespaces
---
lib/scripts/layout2layout.py | 18 +-
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/lib/scripts
commit 99cf71f8ebdaaaf1001963b8f52df91fa6733199
Author: José Matos
Date: Sat May 13 13:39:02 2017 +0100
Fix call os lyx2lyx as a module.
If we call parser.parse_args(), thus with no arguments, the parser uses
sys.argv (because that is the default). We should pass argv since
commit cc7ca138dabec6090edc9b4e8d18d0239f04aa99
Author: José Matos
Date: Sat May 13 15:25:44 2017 +0100
Fix call of layout2layout as a module.
If we call parser.parse_args(), thus with no arguments, the parser uses
sys.argv (because that is the default). We should pass argv
commit 6b092c8400b21ed3a38d04428c1755b4ecea2ce0
Author: José Matos
Date: Tue Aug 8 15:23:03 2017 +0100
scripts/ext_copy.py: add option to copy directly to the document directory
When this option is not given, as it happened before, the copier will
create/use
a subdirectory in
On Wednesday 24 July 2013 15:56:21 Richard Heck wrote:
> def convert_IEEEtran(document):
> @@ -1656,13 +1654,11 @@ def revert_AASTeX(document):
>if document.textclass == "aastex":
> i = 0
> while True:
> - if i != -1:
> -i = find_token(document.body, "\\begin_layout Alta
commit 9a0d70a45fde2d2a5d7af84f39f91e3c2ea91dff
Author: José Matos
Date: Wed Mar 11 12:04:46 2015 +
First step to make lyx2lyx code support both python 2 and python 3 (3.3+)
Most of the changes are related with dictionaries returning views instead of
lists.
xrange
commit 0a035283765d3d5d476430cb635694336c442c87
Author: José Matos
Date: Wed Mar 11 13:41:10 2015 +
First step to make po python files to support both python 2 and python 3
(3.3+)
Most of the changes are related with dictionaries returning iterators
instead of
lists
commit 908e93df5060b29678cc51ad9a83c82fba1997cc
Author: José Matos
Date: Tue Mar 31 15:03:48 2015 +0100
Fix bug #9279
Make lyx2lyx parser a bit more robust.
Ignore if the first line of a lyx file does not start with a #
Add such a line if it is missing..
diff --git a
commit 5ed74b4446636e785aec380651f3c901c5fb53d2
Author: José Matos
Date: Tue Mar 31 15:29:41 2015 +0100
Make lyx2lyx parser a bit more robust.
Ignore if the first line of a lyx file does not start with a #
Add such a line if it is missing..
Fixes bug #9279
diff --git
On Thursday 30 September 2010 15:09:54 sa...@lyx.org wrote:
> + if the environment variable QTDIR is not set (for exmaple,
s/exmaple/example/;
--
José Abílio
commit 7848bdd4fe17a0e0ec33d39d77ceee26a09dea4c
Author: José Matos
Date: Fri Jul 8 16:06:03 2016 +0100
Fix bug #10273
Although this a problem that only manifests itself on windows the change is
general
and it works anywhere.
The major change is to change the file
commit b41300d81984a6b7f4e4784c6dbc763bac49d5ee
Author: José Matos
Date: Wed Jul 13 16:46:52 2016 +0100
Fix typo
---
src/BufferParams.h |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/BufferParams.h b/src/BufferParams.h
index 7314b42..aecf76b 100644
--- a/src
commit cca93dacae12aeb50ce5ea63bd4ee8b7c3e01db0
Author: José Matos
Date: Wed Jul 13 15:01:17 2016 +0100
Improve the file format upgrade and downgrade for microtype
Add get_bool_value to parser_tools to be used in other places.
Make the upgrade convertion seamless from lyx
commit 08a747a75027ed09fb62e6d30983aa3b563156b9
Author: José Matos
Date: Sun Jan 5 12:16:58 2025 +
Fix typo that make the conversion not working
The reason to change was that format is a builtin function in Python.
By redefining it we are simply overriding it and so
commit 527d3d669cf60d306f6c6a08a880fa4609df2262
Author: José Matos
Date: Fri Jan 17 07:39:51 2025 +
Fix compilation on gcc-15
Suggested by gcc itself. :-)
---
src/mathed/MathParser.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mathed/MathParser.cpp b/src/mathed
1 - 100 of 106 matches
Mail list logo