Re: windows preview bug fix

2024-02-24 Thread Enrico Forestieri
On Sat, Feb 24, 2024 at 01:17:56PM +0200, Idan Pazi wrote: I have sys.flags.utf8_mode = 0. I assume everything is utf8, but I don't think the problem is about finding the right encoding. On the contrary, it is necessary to know the initial encoding of a bytes object for converting it to

Re: windows preview bug fix

2024-02-17 Thread Enrico Forestieri
On Fri, Feb 16, 2024 at 03:28:25PM +, José Matos wrote: On Fri, 2024-02-16 at 15:23 +0200, Idan Pazi wrote: Apparently, the returned value from win32file.ReadFile should be converted to a string.  Fix patch attached. Thank you, Idan What is the encoding of the bytes? Is it UTF8? If

Re: LYX 2.4 RC1 ??? Unable to export a Lyx archive (zip)

2024-02-09 Thread Enrico Forestieri
On Thu, Feb 08, 2024 at 10:35:42AM +0100, Pavel Sanda wrote: On Wed, Jan 31, 2024 at 01:27:04PM +0100, Enrico Forestieri wrote: It is a mess and while adjusting a thing some other thing was breaking. I don't plan to look further into it if simply shipping a patched getopt.py on windows solves

Re: LYX 2.4 RC1 ??? Unable to export a Lyx archive (zip)

2024-01-31 Thread Enrico Forestieri
On Tue, Jan 30, 2024 at 11:15:13PM +0100, Jean-Marc Lasgouttes wrote: Le 30/01/2024 à 21:15, Enrico Forestieri a écrit : No, the patched version works only on Windows. It will not be used on Linux. However, it has to go with the patched lyxpak.py and thus it has to be shipped with the other

Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-31 Thread Enrico Forestieri
On Wed, Jan 31, 2024 at 12:57:21AM +0100, Thibaut Cuvelier wrote: It's going to be a bit hard to test the patch for getopt.py, as the default LyX installer ships the Python libraries in a .zip file ("C:\Program Files\LyX 2.4\Python\python311.zip") containing only .pyc files (like getopt.pyc).

Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-31 Thread Enrico Forestieri
On Wed, Jan 31, 2024 at 09:38:44AM +, José Matos wrote: The culprit, from your analysis, seems to be that on windows some variables are bytes instead of strings (unicode text on Python 3). I think it is the other way around. Some variables are bytes on linux and strings on windows. But I

Re: LYX 2.4 RC1 ??? Unable to export a Lyx archive (zip)

2024-01-30 Thread Enrico Forestieri
On Tue, Jan 30, 2024 at 09:04:53PM +0100, Pavel Sanda wrote: On Tue, Jan 30, 2024 at 07:26:35PM +0100, Enrico Forestieri wrote: For making it work with Python 3 on Windows I had to patch both our lyxpak.py script and getopt.py from Python. Attached you will find the patch to be applied

Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-30 Thread Enrico Forestieri
On Sun, Jan 28, 2024 at 12:59:12AM +0100, Enrico Forestieri wrote: On Sat, Jan 27, 2024 at 10:09:05PM +, José Matos wrote: On Sat, 2024-01-27 at 20:49 +0100, didiergab...@free.fr wrote: 20:37:37.977: Exportation en cours... 20:37:37.993: (buffer-export lyxzip) 20:37:38.150: python -tt &q

Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-27 Thread Enrico Forestieri
On Sat, Jan 27, 2024 at 10:09:05PM +, José Matos wrote: On Sat, 2024-01-27 at 20:49 +0100, didiergab...@free.fr wrote: 20:37:37.977: Exportation en cours... 20:37:37.993: (buffer-export lyxzip) 20:37:38.150: python -tt "C:/Users/Didier/AppData/Local/Programs/LyX

Re: RC1: Unable to read files with accents in names on Windows

2024-01-25 Thread Enrico Forestieri
On Thu, Jan 25, 2024 at 12:40:07PM -0500, Richard Kimberly Heck wrote: That does make me wonder whether there are other versions of this problem. Are there other cases where we generate files in this way? I think we will discover that very quickly ;) -- Enrico -- lyx-devel mailing list

Re: Deleted citations in CT mode

2024-01-25 Thread Enrico Forestieri
On Thu, Jan 25, 2024 at 02:00:46AM +0200, Udicoudco wrote: On Wed, Jan 24, 2024 at 11:20 PM Pavel Sanda wrote: Do you see any other trick than manually breaking the citation inset into several ones? No, unfortunately. You can use lua-ul (requires LuaTeX) instead of ulem, as suggested in

Re: RC1: Unable to read files with accents in names on Windows

2024-01-25 Thread Enrico Forestieri
On Thu, Jan 25, 2024 at 09:31:00AM +0100, Enrico Forestieri wrote: Converting the file to utf-8 encoding everything works fine. Fixed at 48a065e8 -- Enrico -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: RC1: Unable to read files with accents in names on Windows

2024-01-25 Thread Enrico Forestieri
On Tue, Jan 23, 2024 at 09:15:30PM +0100, Enrico Forestieri wrote: On Tue, Jan 23, 2024 at 02:58:37PM -0500, Richard Kimberly Heck wrote: On 1/23/24 14:51, Enrico Forestieri wrote: On Mon, Jan 22, 2024 at 06:21:42PM -0500, Richard Kimberly Heck wrote: The conversion script has: infile

Re: Deleted citations in CT mode

2024-01-24 Thread Enrico Forestieri
On Wed, Jan 24, 2024 at 05:20:42PM +0100, Pavel Sanda wrote: Hi, we typeset deleted citations in CT mode as \lyxdeleted{author1}{date}{text text \mbox{\citep{paper1,...,paper9}} text text} The \mbox makes the whole chunk paper1,...,paper9 unbreakable and the output is generally very awful

Re: RC1: Unable to read files with accents in names on Windows

2024-01-23 Thread Enrico Forestieri
On Tue, Jan 23, 2024 at 02:58:37PM -0500, Richard Kimberly Heck wrote: On 1/23/24 14:51, Enrico Forestieri wrote: On Mon, Jan 22, 2024 at 06:21:42PM -0500, Richard Kimberly Heck wrote: The conversion script has: infile = "C:/Users/Thibaut/Desktop/p k .pdf" when the

Re: RC1: Unable to read files with accents in names on Windows

2024-01-23 Thread Enrico Forestieri
On Mon, Jan 22, 2024 at 06:21:42PM -0500, Richard Kimberly Heck wrote: The conversion script has: infile = "C:/Users/Thibaut/Desktop/p k .pdf" when the input file was: ~\Desktop\píkà.pdf. The accented characters have been stripped. This is not a surprise, though, since toFilesystemEncoding

Re: RC1: Unable to read files with accents in names on Windows

2024-01-23 Thread Enrico Forestieri
On Mon, Jan 22, 2024 at 06:21:42PM -0500, Richard Kimberly Heck wrote: On 1/22/24 17:53, Thibaut Cuvelier wrote: On Mon, 22 Jan 2024 at 23:00, Richard Kimberly Heck wrote: On 1/22/24 16:53, didiergab...@free.fr wrote: I also realize that I can no longer load images whose names

Display name

2023-12-22 Thread Enrico Forestieri
In order to distinguish files with same name but located in different directories LyX displays the complete path. However, some window managers truncate such paths so that different files cannot be distinguished if they are in the same directory and their path is long. The attached patch

Re: ctests failing for Shortcuts document

2023-11-08 Thread Enrico Forestieri
On Wed, Nov 08, 2023 at 11:07:00AM -0500, Scott Kostyshak wrote: I get the following error on master: ! Undefined control sequence. \lyxmathsym l.276 $\lyxmathsym {\underbar{a}}$ & Should be fixed at 039de52a. -- Enrico -- lyx-devel mailing list

Re: [LyX/master] Allow using the text properties dialog in mathed

2023-11-07 Thread Enrico Forestieri
On Tue, Nov 07, 2023 at 04:33:49PM +0100, Pavel Sanda wrote: On Mon, Nov 06, 2023 at 04:55:31PM +0100, Enrico Forestieri wrote: commit 58103cf214cc5e9e5d0f4aaa03f4250ee011e55a Author: Enrico Forestieri Date: Mon Nov 6 18:04:44 2023 +0100 Allow using the text properties dialog in mathed

Re: Mangled file names in temp dir

2023-10-23 Thread Enrico Forestieri
On Mon, Oct 23, 2023 at 05:25:53PM +0200, Pavel Sanda wrote: On Mon, Oct 16, 2023 at 07:58:00PM +0200, Enrico Forestieri wrote: On Mon, Oct 16, 2023 at 03:41:59PM +0200, Pavel Sanda wrote: > >On Sun, Oct 15, 2023 at 09:07:24PM +0200, Enrico Forestieri wrote: >>Pavel, in commit eef0

Re: String Freeze Update

2023-10-22 Thread Enrico Forestieri
On Sun, Oct 22, 2023 at 01:22:05PM +0200, Jürgen Spitzmüller wrote: Am Sonntag, dem 22.10.2023 um 12:33 +0200 schrieb Dan: Just for the record and out of curiosity, what was the problem with that string? I see you just added a line break HTML element to it, and suddenly it appears in the POT

Re: [PATCH] Always use \newcommandx instead of \def

2023-10-19 Thread Enrico Forestieri
On Wed, Oct 18, 2023 at 02:05:51AM +, Isaac Oscar Gariano wrote: So sorry about that, I should really have looked at the issue tracker. But yes, it will probably break lots of pre-existing documents. So I've uploaded a new version of my patch that is backwards compatible. I've added a

Re: [PATCH] Always use \newcommandx instead of \def

2023-10-17 Thread Enrico Forestieri
On Tue, Oct 17, 2023 at 08:29:12PM +0200, Enrico Forestieri wrote: On Tue, Oct 17, 2023 at 01:10:23PM -0400, Richard Kimberly Heck wrote: On 10/16/23 21:22, Isaac Oscar Gariano wrote: Currently \def is used for all math macros that have no option arguments. This has caused me hard to debug

Re: [PATCH] Always use \newcommandx instead of \def

2023-10-17 Thread Enrico Forestieri
On Tue, Oct 17, 2023 at 01:10:23PM -0400, Richard Kimberly Heck wrote: On 10/16/23 21:22, Isaac Oscar Gariano wrote: Currently \def is used for all math macros that have no option arguments. This has caused me hard to debug errors because it silently clobbers pre-existing LaTeX commands. On

Re: Mangled file names in temp dir

2023-10-16 Thread Enrico Forestieri
On Mon, Oct 16, 2023 at 03:41:59PM +0200, Pavel Sanda wrote: On Sun, Oct 15, 2023 at 09:07:24PM +0200, Enrico Forestieri wrote: Pavel, in commit eef0c8e8 you say: >xHTML export: change filenames of exported images. > >This patch aims at: >1. replacing absolute paths by thei

Mangled file names in temp dir

2023-10-15 Thread Enrico Forestieri
Pavel, in commit eef0c8e8 you say: xHTML export: change filenames of exported images. This patch aims at: 1. replacing absolute paths by their hashes (do not leak directory structures) 2. not using counters anymore so that changing figures order in the document does not lead to large number

Re: LyX can no longer be compiled under macOS Sonoma 14.0 and Qt 6.5

2023-10-04 Thread Enrico Forestieri
On Wed, Oct 04, 2023 at 06:18:27PM +0200, Christoph Schmitz wrote: Enrico, got it! Many thanks! I have downloaded the updated toolchain.prf file from the link you provided and I replaced the corresponding file in the following folder: /usr/local/Cellar/qt/6.5.1_3/share/qt/mkspecs/features

Re: LyX can no longer be compiled under macOS Sonoma 14.0 and Qt 6.5

2023-10-04 Thread Enrico Forestieri
On Wed, Oct 04, 2023 at 05:13:10PM +0200, Christoph Schmitz wrote: Enrico, I don't understand what to change. This is the current contents of toolchain.prf: ``` # Ensure that we process sdk.prf first, as it will update QMAKE_CXX, # which the default path determination uses. sdk: load(sdk)

Re: LyX can no longer be compiled under macOS Sonoma 14.0 and Qt 6.5

2023-10-04 Thread Enrico Forestieri
On Wed, Oct 04, 2023 at 03:36:46PM +0200, Christoph Schmitz wrote: Enrico, This is great news! Let's hope that homebrew soon updates to v6.5.3, which was officially released last week. As noted in the Qt bug report, the patch is simple and could also be manually applied by editing the file

Re: LyX can no longer be compiled under macOS Sonoma 14.0 and Qt 6.5

2023-10-04 Thread Enrico Forestieri
On Wed, Oct 04, 2023 at 02:32:53PM +0200, Christoph Schmitz wrote: Enrico, The -d switch made the difference. With "qmake6 -d test.pro > qmake6.log 2>&1" I got the attached (pretty long) output. The weird thing is that it worked for me for more than 2 years. I compiled LyX almost daily and

Re: LyX can no longer be compiled under macOS Sonoma 14.0 and Qt 6.5

2023-10-04 Thread Enrico Forestieri
On Wed, Oct 04, 2023 at 08:34:52AM +0200, Christoph Schmitz wrote: Enrico, I deleted my local repository yesterday and downloaded the GitHub repository again. The last commit is 65cb9fa4df563becbb69e4e95715dd121b64aca3 from 2023-10-03T09:38:40Z. When I run qmake6 test.pro from an empty

Re: 2.4.0 with qt6

2023-10-03 Thread Enrico Forestieri
On Tue, Oct 03, 2023 at 09:17:39AM +0100, José Matos wrote: My setup: Version 2.4.0~RC1.devel (not released yet) Built from git commit hash 73e588bd Qt Version (run-time): 6.5.2 on platform wayland Qt Version (compile-time): 6.5.2 OS Version (run-time): Fedora Linux 39 (KDE Plasma Prerelease)

Re: LyX can no longer be compiled under macOS Sonoma 14.0 and Qt 6.5

2023-10-03 Thread Enrico Forestieri
On Tue, Oct 03, 2023 at 01:00:55PM +0200, Jean-Marc Lasgouttes wrote: Le 29/09/2023 à 13:55, Christoph Schmitz a écrit : Hi all, I have been compiling LyX for a while now. A few weeks ago, I encountered a problem where LyX could no longer be compiled. I didn't report this issue at the time

Re: SIGSEGV with QT6 on command line export if shell-escape

2023-09-23 Thread Enrico Forestieri
On Fri, Sep 22, 2023 at 10:50:25PM -0400, Scott Kostyshak wrote: On Thu, Sep 21, 2023 at 11:20:04PM +0200, Enrico Forestieri wrote: On Wed, Sep 20, 2023 at 09:19:31PM -0400, Scott Kostyshak wrote: > > For the ctests, we put the following into preferences: > > \converter &quo

Re: SIGSEGV with QT6 on command line export if shell-escape

2023-09-21 Thread Enrico Forestieri
On Wed, Sep 20, 2023 at 09:19:31PM -0400, Scott Kostyshak wrote: For the ctests, we put the following into preferences: \converter "pdflatex" "pdf2" "pdflatex -shell-escape $$i" "latex=pdflatex,hyperref-driver=pdftex" If I export on the GUI, I get a reasonable warning. But if I export on

Re: Fwd: qt6, autoconf and lyx: help wanted

2023-08-28 Thread Enrico Forestieri
On Sat, Aug 26, 2023 at 02:11:59PM +0200, Cor Blom wrote: > > Hi, > > Below the answer on my request for help. > > osc build is what I have used throughout and what is used to build the > packages for openSUSE. Adding qt6-gui-private-devel does solve the error and > the package now builds fine.

Re: Error with Qt 6 and autotools

2023-08-25 Thread Enrico Forestieri
On Fri, Aug 25, 2023 at 10:08:44PM +0200, Cor Blom wrote: Op 25-08-2023 om 21:53 schreef Enrico Forestieri: On Fri, Aug 25, 2023 at 08:45:41PM +0200, Cor Blom wrote: Op 25-08-2023 om 17:58 schreef Enrico Forestieri: On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote: Op 25-08-2023 om

Re: Error with Qt 6 and autotools

2023-08-25 Thread Enrico Forestieri
On Fri, Aug 25, 2023 at 08:45:41PM +0200, Cor Blom wrote: Op 25-08-2023 om 17:58 schreef Enrico Forestieri: On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote: Op 25-08-2023 om 13:01 schreef Enrico Forestieri: After that, please report the output of the following commands: $ make -s

Re: Error with Qt 6 and autotools

2023-08-25 Thread Enrico Forestieri
On Fri, Aug 25, 2023 at 06:53:42PM +0200, Cor Blom wrote: Op 25-08-2023 om 17:58 schreef Enrico Forestieri: On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote: Op 25-08-2023 om 13:01 schreef Enrico Forestieri: After that, please report the output of the following commands: $ make -s

Re: Error with Qt 6 and autotools

2023-08-25 Thread Enrico Forestieri
On Fri, Aug 25, 2023 at 06:46:18PM +0200, Cor Blom wrote: Op 25-08-2023 om 17:58 schreef Enrico Forestieri: On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote: Op 25-08-2023 om 13:01 schreef Enrico Forestieri: After that, please report the output of the following commands: $ make -s

Re: Error with Qt 6 and autotools

2023-08-25 Thread Enrico Forestieri
On Fri, Aug 25, 2023 at 03:32:50PM +0200, Cor Blom wrote: Op 25-08-2023 om 13:01 schreef Enrico Forestieri: After that, please report the output of the following commands: $ make -s INCPATH $ make -s LIBS $ make -s EXPORT_MISSING For all I get: make: *** No rule to make target etc. What

Re: Error with Qt 6 and autotools

2023-08-25 Thread Enrico Forestieri
On Thu, Aug 24, 2023 at 01:53:48PM +0200, Cor Blom wrote: Op 24-08-2023 om 13:49 schreef Jean-Marc Lasgouttes: Le 24/08/2023 à 13:27, Cor Blom a écrit : Can I see src/frontends/qt/Makefile too? See attached. I use a recent git checkout, so it should be the same as the one in the git

Re: \S

2023-07-27 Thread Enrico Forestieri
On Thu, Jul 27, 2023 at 01:27:09AM -0400, Richard Kimberly Heck wrote: This is really a special case, so I'm inclined just to handle it as one via the attached hack-ish patch. But maybe someone else knows how to fix Encodings::fromLaTeXCommand? It has been a long time and I don't remember

Re: Breakdown of remaining 2.4 bugs

2023-07-27 Thread Enrico Forestieri
On Thu, Jul 27, 2023 at 04:13:37PM +0200, Pavel Sanda wrote: Juergen/Enrico? #12831 - Udi proposes changing order how we output LaTeX font options. Has a patch which looks legit to me, but I would like someone to look over and give +1 I am leaving this to Jürgen. #12842 - UTF-8 in math

Re: [LyX/master] Add missing FORMAT entries

2023-07-20 Thread Enrico Forestieri
On Thu, Jul 20, 2023 at 10:35:29AM -0400, Scott Kostyshak wrote: On Thu, Jul 20, 2023 at 04:27:13PM +0200, Jürgen Spitzmüller wrote: Am Donnerstag, dem 20.07.2023 um 10:13 -0400 schrieb Scott Kostyshak: > I justed added a bit more detail at 573b4be7bc. Let me know if you > want more. Thanks.

Re: ./configure goes through, build fails with no library

2023-07-18 Thread Enrico Forestieri
On Mon, Jul 17, 2023 at 09:34:40PM +0200, Jean-Marc Lasgouttes wrote: Moreover, I think that the Qt4 version would need a different approach, even if the info can be obtained by qmake. I recall that André even put up a build system based on qmake ;) The good thing about Qt4 is that we

Re: ./configure goes through, build fails with no library

2023-07-17 Thread Enrico Forestieri
On Mon, Jul 17, 2023 at 08:59:13PM +0200, Jean-Marc Lasgouttes wrote: Le 17/07/2023 à 20:56, Enrico Forestieri a écrit : I expect it to work with Qt5, at least. But why should we do that? Remember: don't fix it if it ain't broken. Because the rest is a mess and we have now 3 different paths

Re: ./configure goes through, build fails with no library

2023-07-17 Thread Enrico Forestieri
On Mon, Jul 17, 2023 at 03:56:40PM +0200, Jean-Marc Lasgouttes wrote: This is great. Concerning replacing most of the qt.m4 code with the qmake-based solution, would you expect it to work? This is post-2.4, of course. I expect it to work with Qt5, at least. But why should we do that?

Re: ./configure goes through, build fails with no library

2023-07-15 Thread Enrico Forestieri
On Sat, Jul 15, 2023 at 01:47:56PM +0200, Jean-Marc Lasgouttes wrote: Le 15/07/2023 à 13:44, Enrico Forestieri a écrit : It suffices replacing LYX_WARNING with AC_MSG_ERROR. However, in this case configure stops there. This is whaty we do now if Qt cannot beconfigure properly. Warnings

Re: ./configure goes through, build fails with no library

2023-07-15 Thread Enrico Forestieri
On Sat, Jul 15, 2023 at 01:18:36AM +0200, Jean-Marc Lasgouttes wrote: Le 15/07/2023 à 00:50, Enrico Forestieri a écrit : We want to fail in some way when there is no svg, not build without it, don't we? Yep. What about the attached? This looks good (I did not try it yet). The warning

Re: ./configure goes through, build fails with no library

2023-07-14 Thread Enrico Forestieri
On Fri, Jul 14, 2023 at 11:12:33PM +0200, Jean-Marc Lasgouttes wrote: Le 14/07/2023 à 21:42, Enrico Forestieri a écrit : I see (or maybe not). Next question is: why is fake custom target names %? Because that defines a dynamic target in a makefile: https://stackoverflow.com/questions/740

Re: ./configure goes through, build fails with no library

2023-07-14 Thread Enrico Forestieri
On Fri, Jul 14, 2023 at 08:48:07PM +0200, Jean-Marc Lasgouttes wrote: Le 14/07/2023 à 20:32, Enrico Forestieri a écrit : There is nothing special about naming percent a variable and that is simply done because the fake custom target is named "%". See here: https://doc.qt.io/

Re: ./configure goes through, build fails with no library

2023-07-14 Thread Enrico Forestieri
On Wed, Jul 12, 2023 at 10:06:15PM +0200, Jean-Marc Lasgouttes wrote: Le 12/07/2023 à 21:39, Enrico Forestieri a écrit : I think that the qmake code could be adapted to issue such warnings. I will have a look if nobody beats me to it. To be frank, I'd love to be able to dispose of most

Re: ./configure goes through, build fails with no library

2023-07-12 Thread Enrico Forestieri
On Tue, Jul 11, 2023 at 11:20:30PM +0200, Jean-Marc Lasgouttes wrote: Le 24/05/2023 à 15:48, lorenzobertin...@gmail.com a écrit : Dear list, today I run ./configure to start a Qt6 build and it went through without problems. The build then failed with: In file included from Dialog.cpp:15:

Re: Windows Dark Mode and "fusion" style

2023-07-05 Thread Enrico Forestieri
On Wed, Jul 05, 2023 at 08:42:21PM +0200, Pavel Sanda wrote: I think your patch should go for windows port only as it would probably interfere with ppl choosing windows style under linux (yes, apparently there are users choosing this as I read users list). I don't think this is a good idea

Re: Small difference in math spacing, e.g., around parentheses, in master wrt 2.3.x

2023-06-30 Thread Enrico Forestieri
On Fri, Jun 30, 2023 at 11:09:37AM -0400, Scott Kostyshak wrote: Attached is a screenshot. There is more space around the parentheses in master. Does anyone know if this is expected? I tried to extract a minimal example but could not reproduce after I extracted just the small portion. So I

Re: [LyX/master] Use \ifthenelse instead of relying on TeX primitives

2023-06-19 Thread Enrico Forestieri
On Mon, Jun 19, 2023 at 05:07:54PM +0200, Enrico Forestieri wrote: commit b135c965f6f33150f648a35607c12daeac1c360e Author: Enrico Forestieri Date: Mon Jun 19 18:17:31 2023 +0200 Use \ifthenelse instead of relying on TeX primitives This fixes the issue reported here: https

Re: Possible to only get LyX display of macro, but no LaTeX def?

2023-06-11 Thread Enrico Forestieri
On Sun, Jun 11, 2023 at 04:30:34AM -0400, Scott Kostyshak wrote: Thanks, Enrico, I like it! I see two options, one nice and one not nice: 1. Do lyx2lyx. I think we would just need to copy the LyX box to the LaTeX box when the LaTeX box is empty. I don't think this is a good idea. The LyX

Re: Possible to only get LyX display of macro, but no LaTeX def?

2023-06-10 Thread Enrico Forestieri
On Sat, Jun 10, 2023 at 11:12:23PM +0200, Enrico Forestieri wrote: On Sat, Jun 10, 2023 at 02:18:09PM -0400, Richard Kimberly Heck wrote: On 6/10/23 04:30, Scott Kostyshak wrote: On Fri, Jun 09, 2023 at 07:46:28PM -0400, Richard Kimberly Heck wrote: On 6/9/23 19:39, Richard Kimberly Heck

Re: Possible to only get LyX display of macro, but no LaTeX def?

2023-06-10 Thread Enrico Forestieri
On Sat, Jun 10, 2023 at 02:18:09PM -0400, Richard Kimberly Heck wrote: On 6/10/23 04:30, Scott Kostyshak wrote: On Fri, Jun 09, 2023 at 07:46:28PM -0400, Richard Kimberly Heck wrote: On 6/9/23 19:39, Richard Kimberly Heck wrote: On 6/9/23 04:24, Scott Kostyshak wrote: I often find myself of

Re: [LyX/master] Do not return copies of string members

2023-05-12 Thread Enrico Forestieri
On Fri, May 12, 2023 at 09:22:03AM +0200, Jean-Marc Lasgouttes wrote: Le 11/05/2023 à 23:04, Enrico Forestieri a écrit : Anyway, I don't think the autoconf test is broken because: From what I read here: https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html this define is merely

Re: [LyX/master] Do not return copies of string members

2023-05-11 Thread Enrico Forestieri
On Thu, May 11, 2023 at 08:51:13PM +0200, Enrico Forestieri wrote: On Thu, May 11, 2023 at 07:59:48PM +0200, Enrico Forestieri wrote: On Thu, May 11, 2023 at 04:32:45PM +0200, Jean-Marc Lasgouttes wrote: Is this somthing special about cygwin or is our autoconf test broken? The former, I

Re: [LyX/master] Do not return copies of string members

2023-05-11 Thread Enrico Forestieri
On Thu, May 11, 2023 at 07:59:48PM +0200, Enrico Forestieri wrote: On Thu, May 11, 2023 at 04:32:45PM +0200, Jean-Marc Lasgouttes wrote: Is this somthing special about cygwin or is our autoconf test broken? The former, I think. Or not, maybe, see below. This is what I get when comparing

Re: [LyX/master] Do not return copies of string members

2023-05-11 Thread Enrico Forestieri
On Thu, May 11, 2023 at 04:32:45PM +0200, Jean-Marc Lasgouttes wrote: Le 11/05/2023 à 15:26, Jean-Marc Lasgouttes a écrit : In file included from ../../../../src/frontends/qt/Toolbars.cpp:15: ../../../../src/Converter.h: In member function ‘const string& lyx::Converter::from() const’:

Re: [LyX/master] Do not return copies of string members

2023-05-10 Thread Enrico Forestieri
On Wed, May 10, 2023 at 11:21:04AM +0200, Jean-Marc Lasgouttes wrote: Le 09/05/2023 à 22:08, Enrico Forestieri a écrit : On Fri, May 05, 2023 at 07:28:59PM +0200, Jean-Marc Lasgouttes wrote: commit 3ae5d6bdec1df23cc0d848b2d8bf6b09323b Author: Jean-Marc Lasgouttes Date:   Fri May 5 20:35

Re: [LyX/master] Do not return copies of string members

2023-05-09 Thread Enrico Forestieri
On Fri, May 05, 2023 at 07:28:59PM +0200, Jean-Marc Lasgouttes wrote: commit 3ae5d6bdec1df23cc0d848b2d8bf6b09323b Author: Jean-Marc Lasgouttes Date: Fri May 5 20:35:23 2023 +0200 Do not return copies of string members This fixes the g++ 12 warnings below. After this commit my

Re: Unicode characters in mathed

2023-04-02 Thread Enrico Forestieri
On Sat, Apr 01, 2023 at 03:09:58PM +0200, Jean-Marc Lasgouttes wrote: Hello, A relative has been using LyX recently, and it is interesting to see how the use is different from what I would do. In particular, instead of typing \neq in mathed, why not copy and paste a ≠ from some PDF or HTML

Re: [LyX/master] Cycle through arrows with autocorrect

2023-03-19 Thread Enrico Forestieri
On Sun, Mar 19, 2023 at 02:28:41PM -0400, Richard Kimberly Heck wrote: Somehow, I had completely missed that this exists. It's super useful! Is it ok to add things, like: EE    f    \forall EE    x    \exists that I'd find useful? Or is there some scheme here such that I should ask about

Re: QRegExp is deprecated in qt6

2023-03-06 Thread Enrico Forestieri
On Sun, Mar 05, 2023 at 10:03:15PM +0100, Jean-Marc Lasgouttes wrote: Le 03/03/2023 à 19:56, Enrico Forestieri a écrit : Any reason for not doing it? Go for it. I have a doubt about this one. Are you sure that we do not care about fw? #if QT_VERSION < 0x06 const int fw = st

Re: QRegExp is deprecated in qt6

2023-03-03 Thread Enrico Forestieri
On Fri, Mar 03, 2023 at 01:49:26PM +0100, Jean-Marc Lasgouttes wrote: Other special Qt6 code I would like to remove is: 1/ this one seems to exist in Qt5 #if QT_VERSION < 0x06 QRect rec = QApplication::desktop()->screenGeometry(); #else

Re: QRegExp is deprecated in qt6

2023-03-02 Thread Enrico Forestieri
On Thu, Mar 02, 2023 at 03:57:38PM +0100, Jean-Marc Lasgouttes wrote: Le 20/02/2023 à 17:47, Jean-Marc Lasgouttes a écrit : What I do not know is whether we can get rid of QtCore5Compat library. Is it useful for anything beyond QRegExp? Enrico, Stephan Kornel, do you know something about

Re: lyx2lyx error not as informative when opening newer file

2022-12-11 Thread Enrico Forestieri
On Sun, Dec 11, 2022 at 12:06:34AM +0100, Yuriy Skalko wrote: And opening such file with non-existing version in LyX (master, Win10) gives that old message: is from a newer version of LyX and the lyx2lyx script failed to convert it. Yes, this is true for the Windows version. The problem

Re: Propose pdflatex as default for preview

2022-10-11 Thread Enrico Forestieri
On Tue, Oct 11, 2022 at 03:08:20PM +0200, Kornel Benko wrote: As it is now, we have 'latex' as default for our previews. But at least opening UserGuide.lyx fails because 1.) call to dvipdf coredumpts 2.) calls to epstopdf fail (because underlined 'gs' coredumpts) The reason is probably that

Re: Increase max range of zoom slider?

2022-09-16 Thread Enrico Forestieri
On Thu, Sep 15, 2022 at 09:45:01PM -0400, Scott Kostyshak wrote: > > On Thu, Sep 15, 2022 at 05:46:23PM +0200, Jean-Marc Lasgouttes wrote: > > Le 14/09/2022 à 17:44, Scott Kostyshak a écrit : > > > I tested the zoom slider today out of curiosity and it works very > > > smoothly. One thing I

Re: [RFC][PATCH] Improved synctex support

2022-09-14 Thread Enrico Forestieri
On Sun, Aug 14, 2022 at 11:44:52PM +0200, Enrico Forestieri wrote: > > Only a suggestion: I would simply check for "-synctex=" rather than > "--synctex=1" because the double dash is optional and any value > different from 0 would do (I don't think s

Re: [RFC][PATCH] Improved synctex support

2022-08-14 Thread Enrico Forestieri
On Sun, Aug 14, 2022 at 11:43:51AM +0200, Stephan Witt wrote: > > Am 13.08.2022 um 17:34 schrieb Pavel Sanda : > > > > On Sat, Aug 13, 2022 at 02:41:30AM +0200, Enrico Forestieri wrote: > >>> 2) > >>> The LFUN_FORWARD_SEARCH implementation reli

Re: [RFC][PATCH] Improved synctex support

2022-08-12 Thread Enrico Forestieri
On Mon, Aug 08, 2022 at 04:46:54PM +0200, Stephan Witt wrote: > > Hi all, > > I recently had a discussion on lyx-users regarding synctex (Subject: > Syncing skim with LyX) which lead me to the attached patch to improve > the usability of the document setting in GuiDocument::outputModule. > > I

Re: Master uncompilable on cygwin

2022-03-06 Thread Enrico Forestieri
On Sat, Mar 05, 2022 at 04:30:09AM +0100, Thibaut Cuvelier wrote: > > On Sat, 5 Mar 2022 at 03:40, Enrico Forestieri wrote: > > > On Sat, Mar 05, 2022 at 03:00:08AM +0100, Thibaut Cuvelier wrote: > > > > > > What I don't get is why casting one value is easy,

Re: Master uncompilable on cygwin

2022-03-04 Thread Enrico Forestieri
On Sat, Mar 05, 2022 at 03:00:08AM +0100, Thibaut Cuvelier wrote: > > What I don't get is why casting one value is easy, but a vector is not... > What about adding a manual cast around this line? > > std::vector mathCommands() const { return math_commands_; } The attached patch works for me.

Re: Master uncompilable on cygwin

2022-03-04 Thread Enrico Forestieri
On Sat, Mar 05, 2022 at 03:00:08AM +0100, Thibaut Cuvelier wrote: > > On Sat, 5 Mar 2022 at 02:54, Enrico Forestieri wrote: > > > On Sat, Mar 05, 2022 at 02:47:16AM +0100, Thibaut Cuvelier wrote: > > > > > > What's strange is that strfwd.h typeders trivd

Re: Master uncompilable on cygwin

2022-03-04 Thread Enrico Forestieri
On Sat, Mar 05, 2022 at 02:47:16AM +0100, Thibaut Cuvelier wrote: > > On Sat, 5 Mar 2022 at 02:24, Enrico Forestieri wrote: > > > This is the error: > > > > In file included from ../../../../src/frontends/qt/GuiBibtex.cpp:21: > > ../../../../src/Encoding.h: In

Master uncompilable on cygwin

2022-03-04 Thread Enrico Forestieri
This is the error: In file included from ../../../../src/frontends/qt/GuiBibtex.cpp:21: ../../../../src/Encoding.h: In member function ‘std::vector, std::allocator > > lyx::CharInfo::textCommands() const’: ../../../../src/Encoding.h:82:62: error: could not convert ‘((const

Re: unicodesymbols: have several commands for a single symbol?

2022-02-20 Thread Enrico Forestieri
On Sun, Feb 20, 2022 at 01:29:28AM +0100, Thibaut Cuvelier wrote: > > On Sat, 19 Feb 2022 at 12:28, Enrico Forestieri wrote: > > > On Sat, Feb 19, 2022 at 08:47:17AM +0100, Jürgen Spitzmüller wrote: > > > > > > Am Samstag, dem 19.02.2022 um 02:43 +0100 schri

Re: unicodesymbols: have several commands for a single symbol?

2022-02-19 Thread Enrico Forestieri
On Sat, Feb 19, 2022 at 08:47:17AM +0100, Jürgen Spitzmüller wrote: > > Am Samstag, dem 19.02.2022 um 02:43 +0100 schrieb Thibaut Cuvelier: > > Does it look alright to you? If so, I will push these patches. > > So if an entry has "", this will be set empty, and if it has nothing, > it will

Re: LyX 2.3 and 2.4 have troubles displaying EPS images

2022-02-19 Thread Enrico Forestieri
On Sat, Feb 19, 2022 at 03:16:04AM +0100, Thibaut Cuvelier wrote: > > I've been back on this issue. I think that slightly changing the call to > ImageMagick is the best solution, as it will not break things that used to > work and has the potential of enabling preview of images that did not have.

Re: [LyX/master] Fix bug #12466

2022-02-13 Thread Enrico Forestieri
On Sun, Feb 13, 2022 at 09:43:59AM +, José Abílio Matos wrote: > > On Sunday, 13 February 2022 03.30.57 WET Enrico Forestieri wrote: > > commit 777ccce5617aea9b15f27902b9133146eff4e87b > > Author: Enrico Forestieri > > Date: Sun Feb 13 04:57:27 2022 +0100 >

Re: LyX 2.3 and 2.4 have troubles displaying EPS images

2022-02-09 Thread Enrico Forestieri
On Wed, Feb 09, 2022 at 06:46:39PM +0100, Thibaut Cuvelier wrote: > > The main reason I'm taking this to the dev mailing list is that pdflatex > doesn't have any problem with this file, while LyX does without any useful > information for the user. I believe some tool fails when loading the image,

Re: [RFC] Python related system prompt "Lyx must be updated" on macOS

2022-01-05 Thread Enrico Forestieri
On Wed, Jan 05, 2022 at 12:27:25PM +, José Abílio Matos wrote: > > On Tuesday, 4 January 2022 08.53.46 WET Enrico Forestieri wrote: > > I disagree. It should return the first usable version found first in > > PATH. The user has to be in control of what ver

Re: [RFC] Python related system prompt "Lyx must be updated" on macOS

2022-01-04 Thread Enrico Forestieri
On Tue, Jan 04, 2022 at 08:27:10AM +, José Abílio Matos wrote: > > The code can be made more complete. > E.g. previously we searched for python3* and python2* eventually I think that > we can go back to something related. Instead of returning the first python > that satisfies the

Re: Status of Master?

2022-01-03 Thread Enrico Forestieri
On Mon, Jan 03, 2022 at 08:48:09PM +, José Abílio Matos wrote: > > On Sunday, 2 January 2022 21.36.22 WET Richard Kimberly Heck wrote: > > OK, let me cc José on that. > > > > Riki > > I have a patch that it is mostly complete but I have one doubt. > In src/support/ForkedCalls.cpp there is a

Re: Qt6 crash

2021-11-03 Thread Enrico Forestieri
On Wed, Nov 03, 2021 at 06:03:16PM +0100, Jürgen Spitzmüller wrote: > Am Mittwoch, dem 03.11.2021 um 17:44 +0100 schrieb Jürgen Spitzmüller: > > Am Mittwoch, dem 03.11.2021 um 03:30 +0100 schrieb Stephan Witt: > > > I’ve built master with Qt 6.2.0 on Mac and it doesn’t crash. I’m > > > compiling

Re: [LyX/master] Enable QWindowsMimeMetafile with Qt6

2021-10-17 Thread Enrico Forestieri
On Sun, Oct 17, 2021 at 04:16:22PM +0200, Kornel Benko wrote: > Am Sun, 17 Oct 2021 15:29:09 +0200 > schrieb Enrico Forestieri : > > > On Sun, Oct 17, 2021 at 02:48:31PM +0200, Enrico Forestieri wrote: > > > commit 771f30e9463d8d7bf7acd4dfc564f462b28eae16 > &g

Re: Error when compiling LyX under macOS

2021-10-17 Thread Enrico Forestieri
On Sat, Oct 16, 2021 at 02:58:19PM +0200, Kornel Benko wrote: > Am Sat, 16 Oct 2021 14:50:54 +0200 > schrieb pdv : > > > A similar modification is needed when building with CMake on MacOS. > > > > I've included module SvgWidgets with qt6 and MacExtras with previous > > versions (I have checked

Re: [LyX/master] Enable QWindowsMimeMetafile with Qt6

2021-10-17 Thread Enrico Forestieri
On Sun, Oct 17, 2021 at 02:48:31PM +0200, Enrico Forestieri wrote: > commit 771f30e9463d8d7bf7acd4dfc564f462b28eae16 > Author: Enrico Forestieri > Date: Sun Oct 17 15:06:05 2021 +0200 > > Enable QWindowsMimeMetafile with Qt6 > > The QWinMime class ha

Re: Error when compiling LyX under macOS

2021-10-12 Thread Enrico Forestieri
On Tue, Oct 12, 2021 at 01:15:52PM +0200, Christoph Schmitz wrote: > macOS Monterey Version 12.0 Beta (21A5543b) and Qt 6.2.0 > > The problem, which first appeared about two weeks ago, still exists. I > compile LyX once a day to see if it is fixed, but it is not. I still can't > compile LyX

Re: Qt 6.1 (macOS) broke compiler configuration

2021-05-11 Thread Enrico Forestieri
On Tue, May 11, 2021 at 10:48:19PM +0200, Jean-Marc Lasgouttes wrote: > Le 11/05/2021 à 22:33, Enrico Forestieri a écrit : > > I've seen them do stupid things in the past, but this is the stupidest. > > Apparently they moved away moc, rcc, and uic from the bin dir: > > https

Re: Qt 6.1 (macOS) broke compiler configuration

2021-05-11 Thread Enrico Forestieri
On Tue, May 11, 2021 at 11:46:59AM +0200, Christoph Schmitz wrote: > After updating to Qt 6.1 the .\configure script fails (on both x86 and ARM64 > platforms): > > These are the last messages: > > checking for pkg-config... /usr/local/bin/pkg-config > checking pkg-config is at least version

Re: [PATCH] Only enable forward search if synctex is enabled

2021-04-18 Thread Enrico Forestieri
On Fri, Apr 16, 2021 at 11:28:55PM -0400, Scott Kostyshak wrote: > I haven't used synctex much, although I might start to get in the habit. > > Is the attached patch reasonable? It only enables forward search if > Document > Settings > Format > Synchronize with output is checked. No, it is not.

Re: [LyX/master] The foot inset does not inherit fonts

2021-04-12 Thread Enrico Forestieri
On Mon, Apr 12, 2021 at 10:55:13PM +0200, Jean-Marc Lasgouttes wrote: > Le 12/04/2021 à 20:56, Jean-Marc Lasgouttes a écrit : > > Le 10/04/2021 à 10:46, Enrico Forestieri a écrit : > > > I think you reintroduced https://www.lyx.org/trac/ticket/10263 > > > > This

  1   2   3   4   5   6   7   8   9   10   >