update zh_CN translations 2024-04-13

2024-04-12 Thread CD_Mking
Add some empty string.

0001-update-zh_CN-translations.patch
Description: Binary data
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: [LyX/master] gbrief-2 loads babel internally. So don't load it ourselves.

2024-04-12 Thread Jürgen Spitzmüller
Am Samstag, dem 13.04.2024 um 05:34 + schrieb Juergen Spitzmueller:
> commit c3c96a446b32ef77927b5e06436c2668d95dfd6d
> Author: Juergen Spitzmueller 
> Date:   Sat Apr 13 07:32:30 2024 +0200
> 
>     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.

Candidate for 2.4.1, Riki.

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Bug in language conversion ?

2024-04-12 Thread Jürgen Spitzmüller
Am Freitag, dem 12.04.2024 um 17:10 +0100 schrieb José Matos:
> In principle I agree with you.
> Is there a counter example where this is undesirable?

Theoretically I can think of cases where one uses, for instance, info
insets in a specific language that should not be changed. But this case
is also there on top level. For any multilingual passage one could wish
to only change one language to another one, not all.

But that's maybe rationale for a dedicated lfun.

In practice, I am more often annoyed by the fact that language changes
do not make it into insets than I would probably be by such special
cases. 

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: [LyX/2.4.x] Update Qt bug documentation (#12641)

2024-04-12 Thread Jürgen Spitzmüller
Am Samstag, dem 13.04.2024 um 03:00 +0200 schrieb Pavel Sanda:
> Isn't all this mac-specific? P

Yes, clarified.

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: [LyX/2.4.x] Update Qt bug documentation (#12641)

2024-04-12 Thread Pavel Sanda
On Fri, Apr 12, 2024 at 09:13:59AM +, Juergen Spitzmueller wrote:
> commit 8810e9418fe68ad1b608f756afd1806c69cc105c
> Author: Juergen Spitzmueller 
> Date:   Fri Apr 12 11:13:15 2024 +0200
> 
> Update Qt bug documentation (#12641)
> ---
>  lib/RELEASE-NOTES | 7 +--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/RELEASE-NOTES b/lib/RELEASE-NOTES
> index 7b103e6f93..78ba3d750d 100644
> --- a/lib/RELEASE-NOTES
> +++ b/lib/RELEASE-NOTES
> @@ -332,8 +332,11 @@
>  
>  !!Known issues in version 2.4.0
>  
> -* Compiling LyX 2.4 on MacOS with Qt6 makes currently LyX unresponsive to 
> -  Control-Command keyboard shortcuts (bug #12641).
> +* Various versions Qt6 have a problem with key events handling 
> (QTBUG-123848).
> +  This issue is documented in bug #12641 (e.g. LyX is unresponsive to
> +  Control-Command keyboard shortcuts).
> +  The fix for the Qt bug will be included in Qt 6.8.0 and 6.7.1 and might 
> also
> +  be backported to Qt 6.5.6 and 6.2.13.

Isn't all this mac-specific? P
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: 2.3.x does not compile on Windows

2024-04-12 Thread Yu Jin
Am Fr., 12. Apr. 2024 um 09:56 Uhr schrieb Kornel Benko :

> Am Thu, 11 Apr 2024 17:13:20 +0200
> schrieb Yu Jin:
>
> > Am Do., 11. Apr. 2024 um 10:17 Uhr schrieb Kornel Benko:
> >
> > > Am Wed, 10 Apr 2024 21:02:40 +0200
> > > schrieb Yu Jin:
> > >
>
> [snip]
>
> > > Please check ./development/cmake/modules/LyXMacros.cmake:471
> > >
> >
> > On the 2.3.x branch there LyXMacros.cmake file only contains  403 lines.
> >
>
>
> I completely forgot the 2.3 branch.
>
> Please check development/cmake/modules/FindCXX11Compiler.cmake:47
> and set CXX11_FLAG_CANDIDATES appropriate.
> (You may also look at
> # git log development/cmake/modules/FindCXX11Compiler.cmake
> in lyx2.4 for changes prior to 2ec243d47)


I either don't understand what I need to do or it does not help either. I
put "--std=c++11" in there but it did not help, still the same error.
-- 
  Eugene
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Workarea not updated after deleting display math, on current master

2024-04-12 Thread Scott Kostyshak
On Fri, Apr 12, 2024 at 06:57:25PM GMT, Jean-Marc Lasgouttes wrote:
> I do check the email but I am in week end out of home so nothing will be done 
> :)
> 
> JMarc 

Enjoy the weekend! :)

Scott


> Le 12 avril 2024 18:16:34 GMT+02:00, Scott Kostyshak  a 
> écrit :
> >To reproduce:
> >
> >1. Open the attached document.
> >2. Select all.
> >3. Backspace (to delete everything).
> >
> >I get the attached screenshot.
> >
> >Can anyone reproduce?
> >
> >By the way, my secret goal with this batch of bug reports on current
> >master is to ruin JMarc's Friday evening/weekend :)
> >However, I think he has healthy work habits so hopefully he doesn't
> >check his emails.
> >
> >Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Workarea not updated after deleting display math, on current master

2024-04-12 Thread Jean-Marc Lasgouttes
I do check the email but I am in week end out of home so nothing will be done :)

JMarc 

Le 12 avril 2024 18:16:34 GMT+02:00, Scott Kostyshak  a écrit 
:
>To reproduce:
>
>1. Open the attached document.
>2. Select all.
>3. Backspace (to delete everything).
>
>I get the attached screenshot.
>
>Can anyone reproduce?
>
>By the way, my secret goal with this batch of bug reports on current
>master is to ruin JMarc's Friday evening/weekend :)
>However, I think he has healthy work habits so hopefully he doesn't
>check his emails.
>
>Scott
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Workarea not updated after deleting display math, on current master

2024-04-12 Thread Scott Kostyshak
To reproduce:

1. Open the attached document.
2. Select all.
3. Backspace (to delete everything).

I get the attached screenshot.

Can anyone reproduce?

By the way, my secret goal with this batch of bug reports on current
master is to ruin JMarc's Friday evening/weekend :)
However, I think he has healthy work habits so hopefully he doesn't
check his emails.

Scott


workarea-not-updated.23.lyx
Description: application/lyx


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Bug in language conversion ?

2024-04-12 Thread José Matos
On Fri, 2024-04-12 at 13:57 +0200, Jürgen Spitzmüller wrote:
> I wouldn't rate it a bug, but I also would prefer if insets
> (generally, not only in the case here) would inherit language changes
> from selections.

In principle I agree with you.
Is there a counter example where this is undesirable?

-- 
José Abílio
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


SIGSEGV on current master when saving with cursor in subscript

2024-04-12 Thread Scott Kostyshak
To reproduce:

1. Start a new document.
2. Start a math inset, e.g., ctrl + m.
3. Type "x".
4. Press "_" to go into the subscript.
5. Type "i" (so at this step the math will be $x_i$).
6. Save the (new) file.

After saving, I get a SIGSEGV.

Note that to reproduce, after 5, do not move the cursor.

Can anyone reproduce?

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Cursor painting gets stuck if space before end of inset

2024-04-12 Thread Scott Kostyshak
On Fri, Apr 12, 2024 at 09:51:57AM GMT, José Matos wrote:
> On Fri, 2024-04-12 at 10:05 +0200, Kornel Benko wrote:
> > Am Fri, 12 Apr 2024 00:07:06 -0400
> > schrieb Scott Kostyshak :
> > 
> > > To reproduce:
> > > 
> > > 1. Open the attached file.
> > > 2. Put the cursor just after "testing" and before the space.
> > > 3. Press .
> > > 
> > > Result: it looks like the cursor is frozen for a second.
> > 
> > I do not see this.
> > 
> > > Similarly, if after (3) you do another quick  you can see
> > > two cursors painted for a split second.
> > 
> > This I could see.
> > 
> > > Can anyone reproduce?
> > > 
> > > Scott
> > 
> > Kornel
> 
> I have the same symptoms as Kornel.
> I do not see the first but I see the second artifact.
> 
> Version 2.5.0~devel
> (not released yet)
> 
> Built from git commit hash cad4da73
> Qt Version (run-time): 6.6.2 on platform wayland
> Qt Version (compile-time): 6.6.2
> OS Version (run-time): Fedora Linux 40 (KDE Plasma)
> Python detected: 3.12.3 (/usr/bin/python3)

Thanks Kornel and José for reproducing! Good to know that you can only
reproduce the second issue.

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Bug in language conversion ?

2024-04-12 Thread Jürgen Spitzmüller
Am Donnerstag, dem 11.04.2024 um 11:18 +0200 schrieb Jean-Pierre
Chrétien:
> When I select section 4.10.1.1 in the French copy of Additional.lyx
> and convert 
> it to French, I see that the optional argument of the list items
> remain 
> untranslated. This trigger compilation errors like :
> 
> Missing \endscname inserted
> 
> because of the \foreignlanguage{} encapsulating the argument of the
> optional 
> command.
> 
> This happens also at other places, where optional arguments are not
> translated. 
> I can provide a more complete record about Additional.

I wouldn't rate it a bug, but I also would prefer if insets (generally,
not only in the case here) would inherit language changes from
selections.

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.4.0~RC4 gnuplot onscreen previewing not working

2024-04-12 Thread José Matos
On Thu, 2024-04-11 at 21:38 +0200, Tobias Hilbricht wrote:
> graphics/GraphicsConverter.cpp (288): build_script ... 
> graphics/GraphicsConverter.cpp (414): ready!
> graphics/GraphicsConverter.cpp (150): Conversion script:
> --
> # -*- coding: utf-8 -*-
> import os, shutil, sys
> 
> def unlinkNoThrow(file):
>   ''' remove a file, do not throw if an error occurs '''
>   try:
>     os.unlink(file)
>   except:
>     pass
> 
> infile = "/home/tobias/Dokumente/Privat/DocCentral/LaTeX/LyX/gnuplot-
> example.gp"
> outfile = "/tmp/lyx_tmpdir.qIGrrVZsvWmq/gconvertYrusMn.gp"
> shutil.copy(infile, outfile)
> os.chdir("/tmp/lyx_tmpdir.qIGrrVZsvWmq/")
> infile = "/tmp/lyx_tmpdir.qIGrrVZsvWmq/gconvertYrusMn.gp"
> infile_base = "/tmp/lyx_tmpdir.qIGrrVZsvWmq/gconvertYrusMn"
> outfile = "/tmp/lyx_tmpdir.qIGrrVZsvWmq/gconvertYrusMn.pdf"
> outdir  = os.path.dirname(outfile)
> 
> if os.system(r'$${python} "/usr/local/share/lyx-

The problem is here $${python} is not converted when we create the
script.

For the moment a way to get around this is in

Tools->Preferences->File Handling->Converters
Gnuplot -> PDF (graphics)

Converter: $${python} $$s/scripts/gnuplot2pdf.py $$i $$o

move that to

Converter: python3 $$s/scripts/gnuplot2pdf.py $$i $$o

> 2.4.0~RC4/scripts/gnuplot2pdf.py" ' + '"' + infile + '"' + ' ' + '"'
> +
> outfile + '"' + '') != 0:
>   unlinkNoThrow(outfile)
>   sys.exit(1)
> 
> if not os.path.isfile(outfile):
>   if os.path.isfile(outfile + '.0'):
>     os.rename(outfile + '.0', outfile)
>     import glob
>     for file in glob.glob(outfile + '.?'):
>   unlinkNoThrow(file)
>   else:
>     sys.exit(1)
> 
> if infile != outfile:
>   unlinkNoThrow(infile)

The real fix is one line of code. :-)
I will do it later today.

-- 
José Abílio
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


RE: LyX 2.4.0 RC4 - bug? Abstract headline is missing

2024-04-12 Thread Bernt Lie
OK -- in 2.3.7, I did not use KOMA script article, but standard LaTeX article. 
And there the label shows up in my installation. 

The "problem" to me is that it is not just that the "label" is missing in the 
LyX editor, but the word "Abstract" does not show up in the pdf file either. 

-Original Message-
From: José Matos  
Sent: Friday, April 12, 2024 11:55 AM
To: Bernt Lie ; lyx-devel@lists.lyx.org; lyx-users 

Subject: Re: LyX 2.4.0 RC4 - bug? Abstract headline is missing

On Fri, 2024-04-12 at 09:41 +, Bernt Lie via lyx-users wrote:
> When I use KOMA script and Article style, and insert an Abstract, the 
> headline "Abstract" is not inserted. This is different from previous 
> versions, I think??
> 
> Is this a bug?

I tested in 2.3.x and it does not show there as well.
So at least the change is not specific to lyx 2.4.

If you change to the standard class then the label is there both for
2.3 and 2.4.

So the question is if the label should be there for consistency.
I am inclined to say yes but I have no strong feelings about this. :-)

--
José Abílio
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.4.0 RC4 - bug? Abstract headline is missing

2024-04-12 Thread José Matos
On Fri, 2024-04-12 at 09:41 +, Bernt Lie via lyx-users wrote:
> When I use KOMA script and Article style, and insert an Abstract, the
> headline "Abstract" is not inserted. This is different from previous
> versions, I think??
> 
> Is this a bug?

I tested in 2.3.x and it does not show there as well.
So at least the change is not specific to lyx 2.4.

If you change to the standard class then the label is there both for
2.3 and 2.4.

So the question is if the label should be there for consistency.
I am inclined to say yes but I have no strong feelings about this. :-)

-- 
José Abílio
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


LyX 2.4.0 RC4 - bug? Abstract headline is missing

2024-04-12 Thread Bernt Lie
When I use KOMA script and Article style, and insert an Abstract, the headline 
"Abstract" is not inserted. This is different from previous versions, I think??

Is this a bug?
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Cursor painting gets stuck if space before end of inset

2024-04-12 Thread José Matos
On Fri, 2024-04-12 at 10:05 +0200, Kornel Benko wrote:
> Am Fri, 12 Apr 2024 00:07:06 -0400
> schrieb Scott Kostyshak :
> 
> > To reproduce:
> > 
> > 1. Open the attached file.
> > 2. Put the cursor just after "testing" and before the space.
> > 3. Press .
> > 
> > Result: it looks like the cursor is frozen for a second.
> 
> I do not see this.
> 
> > Similarly, if after (3) you do another quick  you can see
> > two cursors painted for a split second.
> 
> This I could see.
> 
> > Can anyone reproduce?
> > 
> > Scott
> 
>   Kornel

I have the same symptoms as Kornel.
I do not see the first but I see the second artifact.

Version 2.5.0~devel
(not released yet)

Built from git commit hash cad4da73
Qt Version (run-time): 6.6.2 on platform wayland
Qt Version (compile-time): 6.6.2
OS Version (run-time): Fedora Linux 40 (KDE Plasma)
Python detected: 3.12.3 (/usr/bin/python3)
-- 
José Abílio
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Cursor painting gets stuck if space before end of inset

2024-04-12 Thread Kornel Benko
Am Fri, 12 Apr 2024 00:07:06 -0400
schrieb Scott Kostyshak :

> To reproduce:
> 
> 1. Open the attached file.
> 2. Put the cursor just after "testing" and before the space.
> 3. Press .
> 
> Result: it looks like the cursor is frozen for a second.

I do not see this.

> Similarly, if after (3) you do another quick  you can see two
> cursors painted for a split second.

This I could see.

> Can anyone reproduce?
> 
> Scott

Kornel


pgpnuh_HHdwf8.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: 2.3.x does not compile on Windows

2024-04-12 Thread Kornel Benko
Am Thu, 11 Apr 2024 17:13:20 +0200
schrieb Yu Jin :

> Am Do., 11. Apr. 2024 um 10:17 Uhr schrieb Kornel Benko :
> 
> > Am Wed, 10 Apr 2024 21:02:40 +0200
> > schrieb Yu Jin :
> >

[snip]

> > Please check ./development/cmake/modules/LyXMacros.cmake:471
> >
> 
> On the 2.3.x branch there LyXMacros.cmake file only contains  403 lines.
> 


I completely forgot the 2.3 branch.

Please check development/cmake/modules/FindCXX11Compiler.cmake:47
and set CXX11_FLAG_CANDIDATES appropriate.
(You may also look at
# git log development/cmake/modules/FindCXX11Compiler.cmake
in lyx2.4 for changes prior to 2ec243d47)


Kornel


pgpymarfqci1d.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel