Re: Patches for Python scripts

2021-01-29 Thread Thibaut Cuvelier
On Sat, 30 Jan 2021 at 02:31, Enrico Forestieri wrote: > On Fri, Jan 29, 2021 at 11:40:29PM +0100, Thibaut Cuvelier wrote: > > Hi Thibaut, > > > - This way to find Java is quite common on Windows platforms (actually, > > it's a lot like a port of JavaCall.jl's relevant portion of code: > >

Re: DocBook to ePub

2021-01-29 Thread Thibaut Cuvelier
On Sat, 30 Jan 2021 at 01:30, Stephan Witt wrote: > Am 29.01.2021 um 18:38 schrieb Thibaut Cuvelier : > > > > Dear list, > > > > As promised, I started working on ePub output, building upon the new > DocBook output. > > > > Here is a script that performs the complete process of taking a DocBook

Re: Patches for Python scripts

2021-01-29 Thread Joel Kulesza
On Fri, Jan 29, 2021 at 3:40 PM Thibaut Cuvelier wrote: > - The cosmetic changes are based on PEP8, which is the only style guide > for Python. Highly similar patches already went into the code base less > than a year ago ( > http://lists.lyx.org/pipermail/lyx-devel/2020-May/001464.html). Other

Re: Patches for Python scripts

2021-01-29 Thread Enrico Forestieri
On Fri, Jan 29, 2021 at 11:40:29PM +0100, Thibaut Cuvelier wrote: Hi Thibaut, > - This way to find Java is quite common on Windows platforms (actually, > it's a lot like a port of JavaCall.jl's relevant portion of code: > https://github.com/JuliaInterop/JavaCall.jl). It looks like Oracle's JVM >

Re: Patches for Python scripts

2021-01-29 Thread Richard Kimberly Heck
On 1/29/21 7:39 AM, Pavel Sanda wrote: > On Fri, Jan 29, 2021 at 11:07:43AM +, José Abílio Matos wrote: >> With the extent of the patches I fear that there could be bugs (unintended >> changes) lurking specially in relation to python 2. > Riki's call, but I don't think this is the best time

Re: Issue in LyX 2.3.6.1 with \maketitle and \uppertitleback

2021-01-29 Thread Richard Kimberly Heck
On 1/29/21 9:47 AM, Jürgen Spitzmüller wrote: > Am Freitag, dem 29.01.2021 um 14:15 +0100 schrieb Michael Ruder: >> Hi, >> >> I just upgraded to LyX 2.3.6.1 and have an issue with \uppertitleback >> and >> multiple \maketitle. This issue did not exist in LyX 2.3.5 and >> before. >> >> Attached is

Re: DocBook to ePub

2021-01-29 Thread Stephan Witt
Am 29.01.2021 um 18:38 schrieb Thibaut Cuvelier : > > Dear list, > > As promised, I started working on ePub output, building upon the new DocBook > output. > > Here is a script that performs the complete process of taking a DocBook file > and generating the ePub. It has several

Re: Patches for Python scripts

2021-01-29 Thread Thibaut Cuvelier
I will be answering most concerns here, in no particular order. I think it will simplify the next messages. - This is far from an overhaul of the script. The logic did not really change, neither the code structure. I have ideas on how to do it, and I could do it if you are OK with it, but I

Re: Issue in LyX 2.3.6.1 with \maketitle and \uppertitleback

2021-01-29 Thread Michael Ruder
Hi, thanks for the ultra-fast resolution of this issue! And thanks again for the great work all of you are doing! On 29.01.21 15:47, Jürgen Spitzmüller wrote regarding "Re: Issue in LyX...": <> Am Freitag, dem 29.01.2021 um 14:15 +0100 schrieb Michael Ruder: <> > Hi, <> > <> > I just upgraded

Re: Issue in LyX 2.3.6.1 with \maketitle and \uppertitleback

2021-01-29 Thread Jürgen Spitzmüller
Am Freitag, dem 29.01.2021 um 14:15 +0100 schrieb Michael Ruder: > Hi, > > I just upgraded to LyX 2.3.6.1 and have an issue with \uppertitleback > and > multiple \maketitle. This issue did not exist in LyX 2.3.5 and > before. > > Attached is a small sample file. I could reproduce with scrartcl

Re: Issue in LyX 2.3.6.1 with \maketitle and \uppertitleback

2021-01-29 Thread Jürgen Spitzmüller
Am Freitag, dem 29.01.2021 um 14:15 +0100 schrieb Michael Ruder: > I just upgraded to LyX 2.3.6.1 and have an issue with \uppertitleback > and > multiple \maketitle. This issue did not exist in LyX 2.3.5 and > before. > > Attached is a small sample file. I could reproduce with scrartcl with >

Re: Patches for Python scripts

2021-01-29 Thread Kornel Benko
Am Fri, 29 Jan 2021 13:39:19 +0100 schrieb Pavel Sanda : > On Fri, Jan 29, 2021 at 11:07:43AM +, José Abílio Matos wrote: > > With the extent of the patches I fear that there could be bugs (unintended > > changes) lurking specially in relation to python 2. > > Riki's call, but I don't

Re: [LyX/master] Run updateBuffer when adding/merging changes

2021-01-29 Thread Jean-Marc Lasgouttes
Le 28/01/2021 à 15:54, Richard Kimberly Heck a écrit : -    if (cur.needBufferUpdate()) { +    if (cur.needBufferUpdate() || buffer().needUpdate()) {   cur.clearBufferUpdate(); Shouldn't the Buffer::updateBuffer_ member also be reset here? Good catch. Thanks. JMarc -- lyx-devel

Issue in LyX 2.3.6.1 with \maketitle and \uppertitleback

2021-01-29 Thread Michael Ruder
Hi, I just upgraded to LyX 2.3.6.1 and have an issue with \uppertitleback and multiple \maketitle. This issue did not exist in LyX 2.3.5 and before. Attached is a small sample file. I could reproduce with scrartcl with titlepage=true and two side document or scrreprt (I did not test other

Re: Patches for Python scripts

2021-01-29 Thread Pavel Sanda
On Fri, Jan 29, 2021 at 11:07:43AM +, José Abílio Matos wrote: > With the extent of the patches I fear that there could be bugs (unintended > changes) lurking specially in relation to python 2. Riki's call, but I don't think this is the best time for python scripts overhaul. Except the

Re: Patches for Python scripts

2021-01-29 Thread José Abílio Matos
On Friday, January 29, 2021 11:48:40 AM WET Kornel Benko wrote: > Right, the last one should be escaped. > Given the line > # \DeclareLaTeXClass[revtex,revtex.sty]{REVTeX (Obsolete Version)} > and the original regex > >

Re: Patches for Python scripts

2021-01-29 Thread Kornel Benko
Am Fri, 29 Jan 2021 11:07:43 + schrieb José Abílio Matos : > On Friday, January 29, 2021 5:05:19 AM WET Richard Kimberly Heck wrote: > > José, can you look at these please? > > > > Riki > > I think that Thibaut wants to impose black[1] on us. :-D > > Most of the changes are cosmetic, e.g.

Re: Patches for Python scripts

2021-01-29 Thread José Abílio Matos
On Friday, January 29, 2021 3:51:12 AM WET Thibaut Cuvelier wrote: > Dear list, > > While working on the ePub output, I ran through many Python scripts. I > corrected a few bgs and a lot of formatting, plus one feature (find Java in > the Windows registry in configure.py), here are the patches.

Re: Patches for Python scripts

2021-01-29 Thread José Abílio Matos
On Friday, January 29, 2021 5:05:19 AM WET Richard Kimberly Heck wrote: > José, can you look at these please? > > Riki I think that Thibaut wants to impose black[1] on us. :-D Most of the changes are cosmetic, e.g. one import per line, or to use the same indentation for documentation. The

Re: Patches for Python scripts

2021-01-29 Thread Richard Kimberly Heck
On 1/29/21 4:41 AM, Enrico Forestieri wrote: > On Fri, Jan 29, 2021 at 04:51:12AM +0100, Thibaut Cuvelier wrote: >> While working on the ePub output, I ran through many Python scripts. I >> corrected a few bgs and a lot of formatting, plus one feature (find Java in >> the Windows registry in

Re: Patches for Python scripts

2021-01-29 Thread Enrico Forestieri
On Fri, Jan 29, 2021 at 04:51:12AM +0100, Thibaut Cuvelier wrote: > > While working on the ePub output, I ran through many Python scripts. I > corrected a few bgs and a lot of formatting, plus one feature (find Java in > the Windows registry in configure.py), here are the patches. May I push >