Re: RFC: concurrent forks of graphics conversions

2022-09-25 Thread Jean-Marc Lasgouttes
Le 25/09/2022 à 22:26, Pavel Sanda a écrit : On Sat, Sep 24, 2022 at 05:07:33PM -0400, Scott Kostyshak wrote: That sounds right. I think it probably makes sense to change the design. Yep, looks like that. First I want to read about 'nod', which apparently is a library that we include and use

Re: Linebreaking Problem

2022-09-23 Thread Jean-Marc Lasgouttes
Le 19/09/2022 à 23:51, Richard Kimberly Heck a écrit : I'm seeing a weird line breaking problem involving words that are partially emphasized, e.g., /syn/crhonic. LyX will break the word after "syn", splitting it over two lines. Hi Riki, I am not sure about this particular case, but I have pu

Re: Feature request (Grammarly support for LYX)

2022-09-21 Thread Jean-Marc Lasgouttes
Le 21/09/2022 à 23:26, Thibaut Cuvelier a écrit : For the same purpose, I have looked into Antidote, providing language services for French and English, but their desktop API is a mess to use (COM on Windows, D-BUS for Linux, and services for macOS — or JavaScript for Web browsers): https://ww

Re: Can not use lyx on macOS

2022-09-21 Thread Jean-Marc Lasgouttes
Le 16/09/2022 à 07:34, 王晨东 a écrit : Hi Lyx developers, I have just installed mactex 2022. When I open the lyx, it turns “LyX will only have minimal functionality because no text classes have been found……” I failed to reconfigure it. I clicked Tool — Tex Information, then it tells "The script

Re: Can not use lyx on macOS

2022-09-21 Thread Jean-Marc Lasgouttes
Le 16/09/2022 à 07:34, 王晨东 a écrit : Hi Lyx developers, I have just installed mactex 2022. When I open the lyx, it turns “LyX will only have minimal functionality because no text classes have been found……” I failed to reconfigure it. I clicked Tool — Tex Information, then it tells "The script

Re: Differences Between Theorems Modules (AMS and non AMS)

2022-09-21 Thread Jean-Marc Lasgouttes
Le 21/09/2022 à 11:27, Udicoudco a écrit : Hi, I've tried to make a patch with all mentioned changes, and a new theorem module that defines theorems via thmtools (so that we could use \listoftheorems). The patch has been sent there

Re: outline pane issues and huge note slowness

2022-09-19 Thread Jean-Marc Lasgouttes
Le 05/12/2021 à 05:40, sovhist a écrit : I opended Lyx, hugenote document, scrolled one huge inset up and down, cliced to other tab and scrolled usual document, after returned to hugenote and scrolled a bit, if I remember properly. flame_1 is TextMetrics selected from first hugenote scrolling an

Re: Lyx 2.4.Dev Crashed after copying a section

2022-09-19 Thread Jean-Marc Lasgouttes
Le 16/09/2022 à 15:35, Wolfgang Engelmann a écrit : Using lyx 2.4.dev it crashed after copying a section in a book document (A) from another version of the book (B). The book A contained already identical labels and the crashed occurred after quite a number of them was shown in the terminal (s

Re: Linebreaking Problem

2022-09-19 Thread Jean-Marc Lasgouttes
Le 20/09/2022 à 00:04, Jean-Marc Lasgouttes a écrit : Le 19/09/2022 à 23:51, Richard Kimberly Heck a écrit : I'm seeing a weird line breaking problem involving words that are partially emphasized, e.g., /syn/crhonic. LyX will break the word after "syn", splitting it over two

Re: Linebreaking Problem

2022-09-19 Thread Jean-Marc Lasgouttes
Le 19/09/2022 à 23:51, Richard Kimberly Heck a écrit : I'm seeing a weird line breaking problem involving words that are partially emphasized, e.g., /syn/crhonic. LyX will break the word after "syn", splitting it over two lines. Indeed, I see how this could happen. I'll have a look. On a dif

Re: word-select surprise

2022-09-19 Thread Jean-Marc Lasgouttes
Le 19/09/2022 à 02:22, Andrew Parsloe a écrit : For a pre-existing selection spanning a blank between words I think your more difficult solution is the intuitive behaviour: expand back to the beginning of the first word and forward to the end of the second word. Currently, it does just the seco

Re: Font size representation on macOS is off

2022-09-18 Thread Jean-Marc Lasgouttes
Le 01/09/2022 à 21:29, Daniel a écrit : I think we should calculate the right size ourselves for macOS as Writer does. Otherwise, it is all really confusing. See also https://apple.stackexchange.com/a/445862/377509 Either we do that, or we do as other real macOS apps do and add this "actual

Re: Increase max range of zoom slider?

2022-09-18 Thread Jean-Marc Lasgouttes
Le 16/09/2022 à 19:54, Scott Kostyshak a écrit : I have an xps 13 9300, and I see the same. The issue is that the X11 (and Wayland?) think that the screen is 50cm wide (ask xpdyinfo about it), so that the dpi is supposed to be 96 instead of the actual 168. This does not happen with all monitors

Re: word-select surprise

2022-09-18 Thread Jean-Marc Lasgouttes
Le 17/09/2022 à 01:09, Andrew Parsloe a écrit : I have a command-sequence that uses word-select prior to using cut. Recently I was surprised to find the content of the *previous* item saved to the clipboard being pasted rather than the expected one. After experimenting, I think an unintuitive c

Re: Increase max range of zoom slider?

2022-09-16 Thread Jean-Marc Lasgouttes
Le 16/09/2022 à 19:54, Scott Kostyshak a écrit : Ah that is good to know. In that case, seems to make sense to leave things as is until the root (non-LyX) issues get addressed. I do not know whether it is an issue or a design choice. If the dpi was correct, you would get approximately what yo

Re: Increase max range of zoom slider?

2022-09-16 Thread Jean-Marc Lasgouttes
Le 16/09/2022 à 19:56, Kornel Benko a écrit : Are we able to set the screen-dpi to qt? If yes, we could add screen-dpi to preferences, overriding the monitor value. We already have \screen_dpi in lyxrc, but this is not exposed in the GUI. JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.or

Re: Increase max range of zoom slider?

2022-09-16 Thread Jean-Marc Lasgouttes
Le 16/09/2022 à 03:45, Scott Kostyshak a écrit : OS is Ubuntu 21.04. This is on a laptop, a Dell XPS 9343. Although I'm using Ubuntu I've found the Arch Wiki helpful for specifications: https://wiki.archlinux.org/title/Dell_XPS_13_(9343) Apparently mine has a "13.3-inch FHD (1920 x 1080) infinity

Re: Differences Between Theorems Modules (AMS and non AMS)

2022-09-15 Thread Jean-Marc Lasgouttes
Le 15/09/2022 à 14:17, Udicoudco a écrit : Hello again, I took a look at the Named Theorems Module today, and the LaTeX code there seems to be a bit strange. In the preamble of the layout Named Theorem there is the following code: \newcommand\thmsname{\protect\theoremname} \newcommand

Re: Increase max range of zoom slider?

2022-09-15 Thread Jean-Marc Lasgouttes
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 noticed is that the maximum of the range is too small for my computer/eyes. The maximum is 290. Could you tell us more about your setting? OS, monitor, maybe

Re: [LyX/master] Unify wording for statistics

2022-09-15 Thread Jean-Marc Lasgouttes
Le 15/09/2022 à 17:06, Jürgen Spitzmüller a écrit : One character (no blanks) Or 'One character (not a blank)' No, it means: We do not count blanks here. Note that this special case for One is bogus, since for en empty document, we show 0 characters (no blank) For some reason, only "1" i

Re: Differences Between Theorems Modules (AMS and non AMS)

2022-09-15 Thread Jean-Marc Lasgouttes
Le 14/09/2022 à 02:28, Udicoudco a écrit : Hello Lyx Developers, Recently I've been trying to understand more thoroughly how theorems modules are implemented in LyX, and I think I've come across some bugs, and some redundant modules (but I might have misunderstood a few things). Hello Udi,

Re: Indentation and (un)commenting in local layout and preamble

2022-09-13 Thread Jean-Marc Lasgouttes
Le 13/09/2022 à 16:12, Daniel a écrit : And I guess more importantly in license.rtf it says: "LyX. You can redistribute LyX and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any

Re: Indentation and (un)commenting in local layout and preamble

2022-09-13 Thread Jean-Marc Lasgouttes
Le 10/08/2022 à 04:15, Daniel a écrit : In the attached Qt project, I implemented those features. It probably needs some more cleaning up. But it seems to work and you could already try it out if you like. The (un)commenting feature leans heavily on code from QtCreator. (I tried to improve a bi

Re: More questions about statusbar menu

2022-09-13 Thread Jean-Marc Lasgouttes
Le 05/09/2022 à 15:33, Jürgen Spitzmüller a écrit : Am Montag, dem 05.09.2022 um 14:58 +0200 schrieb Jean-Marc Lasgouttes: I think I went with the statusbar variant for space reasons. Would you advise using this everywhere? Yes. Done. Comments welcome. JMarc -- lyx-devel mailing list lyx

Re: More questions about statusbar menu

2022-09-13 Thread Jean-Marc Lasgouttes
Le 08/09/2022 à 07:45, Daniel a écrit : Further zoom options are available in both Word and Writer by pressing the zoom value. I suggest we just use the same (standard) mechanism. Stopping short of creating a dialog, I suggest to just show a menu as in the attached patch. I like it. I pushed

Re: More questions about statusbar menu

2022-09-05 Thread Jean-Marc Lasgouttes
Le 05/09/2022 à 14:54, Jürgen Spitzmüller a écrit : Am Montag, dem 05.09.2022 um 12:26 +0200 schrieb Jean-Marc Lasgouttes: 1/ the word/char checkboxes, would "Count Words" be clearer than "Word Count" ? (I think about themes where checkbox is not visible when off) To me

Re: More questions about statusbar menu

2022-09-05 Thread Jean-Marc Lasgouttes
Le 05/09/2022 à 12:26, Jean-Marc Lasgouttes a écrit : Do as you see fit. I did, but I have more questions now. PS: I realize that I should have read tickets #12182 and #12187 before posting point 3/. I do not want to initiate an endless discussion about these things :) It is just that I

More questions about statusbar menu

2022-09-05 Thread Jean-Marc Lasgouttes
Le 01/09/2022 à 18:38, Jürgen Spitzmüller a écrit : Am Donnerstag, dem 01.09.2022 um 18:26 +0200 schrieb Jean-Marc Lasgouttes: A question concerning this menu: do we really have to keep the "Show" prefix for the different entries? In French, it becomes a bit long. In the View menu, t

Re: [LyX/master] Small fixes to fr.po related to status bar menu

2022-09-01 Thread Jean-Marc Lasgouttes
Le 01/09/2022 à 16:48, Jean-Marc Lasgouttes a écrit : commit 9de6768e9c2443d678d7c091e58850a19ba80356 Author: Jean-Marc Lasgouttes Date: Thu Sep 1 17:35:55 2022 +0200 Small fixes to fr.po related to status bar menu #: lib/ui/stdcontext.inc:736 msgid "Show Character Count

Re: Font size representation on macOS is off

2022-09-01 Thread Jean-Marc Lasgouttes
Le 28/08/2022 à 21:33, Daniel a écrit : On 2022-08-27 16:39, Daniel wrote: When using a 10pt font-size at 100% zoom in the work area, this is way smaller on screen than 10pt in reality. Something seems to be off. However, I noticed that both Apple's own Pages and Word are having the same probl

Re: Trac: Invalid username or password

2022-09-01 Thread Jean-Marc Lasgouttes
Le 29/08/2022 à 09:14, Jürgen Spitzmüller a écrit : Has anyone found a solution? We'll have to wait until somebody with access to the database (Riki, JMarc) is back. I reverted to the passwords from August 12, and everything seems OK now. JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.

Re: Setting things up for using parallel STL C++17

2022-08-31 Thread Jean-Marc Lasgouttes
Le 31/08/2022 à 17:46, Pavel Sanda a écrit : Seems like too little music for a new tab. But I wouldn't be against preference checkbox for loading all images when document loads (by default false). If the loading is done in background, I am not sure that it would hurt. I also think that we have

Re: Making Paragraph::latex() thread safe?

2022-08-30 Thread Jean-Marc Lasgouttes
Le 30/08/2022 à 12:02, Pavel Sanda a écrit : The bottlenecks I typically experience are of two kinds: 1) pictures conversion (having parallel code would be great even for document load when ton of pics gets converted!) Yes, the speed of this is questionable right now. 2) final pdflatex compi

Re: [patch] Selection stats in statusbar

2022-08-18 Thread Jean-Marc Lasgouttes
Indeed, threads create lots of interesting bugs... It would be better if we could avoid them JMarc Le 18 août 2022 18:13:38 GMT+02:00, "Jürgen Spitzmüller" a écrit  >Performance is an issue in larger documents (e.g., UserGuide). > >This one, using threads, is snappy and seems to update relia

Re: [patch] Selection stats in statusbar

2022-08-18 Thread Jean-Marc Lasgouttes
Le 18 août 2022 14:25:28 GMT+02:00, "Jürgen Spitzmüller" a écrit : >> My method: statistics update only when idle for a long enough time >> and only once, hence, cannot interfere with continuous typing and are >> very unlikely to interfere at all. > >And it updated after that timing whether it

Re: Trac: Invalid username or password

2022-08-16 Thread Jean-Marc Lasgouttes
Hi Daniel, I see your messages, but I do not have a way to connect to the server here. JMarc Le 16 août 2022 12:59:53 GMT+02:00, Daniel a écrit : >By the way, resetting the password does not help either. -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo

Re: Missing icons

2022-08-08 Thread Jean-Marc Lasgouttes
Good catch Jürgen. Jmarc Le 8 août 2022 10:17:25 GMT+02:00, jspi...@gmail.com a écrit : >Am Montag, dem 08.08.2022 um 10:14 +0200 schrieb jspi...@gmail.com: >> I corrected this for autotools. Something similar probably needs to >> be >> done for cmake. > -- lyx-devel mailing list lyx-devel@lists

Re: [LyX/master] Do not override (Back)Tab in Adv F&R when it is useful

2022-07-31 Thread Jean-Marc Lasgouttes
Thanks for the offer José, but I took a different way, which does not change the syntax. I have not documented it yet though. JMarc Le 31 juillet 2022 12:50:34 GMT+02:00, "José Matos" a écrit : >I can do the python part if you want to. :-) > -- lyx-devel mailing list lyx-devel@lists.lyx.or

Re: LYXERR0 / lyxerr Output Discrepancies

2022-07-31 Thread Jean-Marc Lasgouttes
Hi Joel, LYXERR0 and LYXERR are wrappers around lyxerr. They are normally the preferred form. JMarc Le 31 juillet 2022 03:50:50 GMT+02:00, Joel Kulesza a écrit : >Is there a reason that these diagnostic messages have different approaches >and forms (maybe to avoid constructing a string to s

Re: [LyX/master] Do not override (Back)Tab in Adv F&R when it is useful

2022-07-27 Thread Jean-Marc Lasgouttes
Le 27/07/2022 à 12:37, Kornel Benko a écrit : I could not resist. Try this one, please. That is what I suspected/hoped :) The result is perfect! please commit. Done. You are devilish. It is not nice to profit from others' weaknesses ;) Anyway, my summer coding spree stops tomorrow, so this

Re: [LyX/master] Remove unneeded code

2022-07-27 Thread Jean-Marc Lasgouttes
Le 27/07/2022 à 13:38, Scott Kostyshak a écrit : JMarc, can you double-check it is intended (after a65e12d6) that this code is no longer needed? It is a nice auxiliary effect that your commit got rid of a "FIXME". Only 885 FIXMEs left (in the src directory). Thanks for the fixup. It was suppos

Re: [LyX/master] Do not override (Back)Tab in Adv F&R when it is useful

2022-07-27 Thread Jean-Marc Lasgouttes
Le 25/07/2022 à 12:59, Kornel Benko a écrit : We could stay with the current patch. It is good enough for what you want to do, isn't it? Yes, it is. I could not resist. Try this one, please. JMarc From f0d8efec3ec11a3a1d8ab61b864720122f7f1c17 Mon Sep 17 00:00:00 2001 From: Jean

Re: [RFC][PATCH] WIP: Reimplement support for numbering of equation previews

2022-07-27 Thread Jean-Marc Lasgouttes
Le 22/07/2022 à 20:08, Jean-Marc Lasgouttes a écrit : Le 21/07/2022 à 08:31, Kornel Benko a écrit : Ouch! Now I see it too. FWIW, there has been progress going on at #11535. The patches have been applied now. JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org

Re: Previews and \jobname, was it a good idea?

2022-07-27 Thread Jean-Marc Lasgouttes
Le 27/07/2022 à 09:25, Andrew Parsloe a écrit : As the person who nagged Enrico to make \jobname easily accessible in preview files, I am 7 years older now, have more experience with expl3 (the programming language of LaTeX3) and have superseded the calculyx package which was available on the L

Previews and \jobname, was it a good idea?

2022-07-26 Thread Jean-Marc Lasgouttes
Dear all, I ticket https://www.lyx.org/trac/ticket/9627, it was decided to define \jobname in preview file with the original file name. However, run_command in lyxpreview_tools.py tries to read the aux file to determine whether it is necessary to run bibtex. It would be useful too to try to

Re: Toggled text inside a bold inset is output differently on master than 2.3.x

2022-07-26 Thread Jean-Marc Lasgouttes
Le 26/07/2022 à 16:25, Scott Kostyshak a écrit : See the attached example. The text "text part 2" is output as bold in 2.3.x, but is not output as bold in master (although it is displayed as bold in the LyX display). I can bisect if it would be worth the time. Note that it works if a charact

Re: [LyX/master] Do not override (Back)Tab in Adv F&R when it is useful

2022-07-25 Thread Jean-Marc Lasgouttes
Le 25/07/2022 à 10:39, Kornel Benko a écrit : Am Sun, 24 Jul 2022 22:57:01 +0200 schrieb Jean-Marc Lasgouttes : Le 24/07/2022 à 19:52, Kornel Benko a écrit : /usr2/src/lyx/lyx-git/src/KeyMap.cpp: In member function ‘lyx::KeyMap::ReturnValues lyx::KeyMap::readWithoutConv(const lyx::support

Re: [LyX/master] Do not override (Back)Tab in Adv F&R when it is useful

2022-07-24 Thread Jean-Marc Lasgouttes
Le 24/07/2022 à 19:52, Kornel Benko a écrit : /usr2/src/lyx/lyx-git/src/KeyMap.cpp: In member function ‘lyx::KeyMap::ReturnValues lyx::KeyMap::readWithoutConv(const lyx::support::FileName&, lyx::KeyMap*)’: /usr2/src/lyx/lyx-git/src/KeyMap.cpp:337:16: error: ‘FunRequest’ has not been declared if

Re: [LyX/master] Do not override (Back)Tab in Adv F&R when it is useful

2022-07-24 Thread Jean-Marc Lasgouttes
Le 24/07/2022 à 19:35, Jean-Marc Lasgouttes a écrit : Le 24/07/2022 à 13:00, Kornel Benko a écrit : Use this in user.bind \unbind "Tab" "message *" (for the proposed '\unbind "Tab" "*"' is more to do) This seems to work. But the shortc

Re: [LyX/master] Do not override (Back)Tab in Adv F&R when it is useful

2022-07-24 Thread Jean-Marc Lasgouttes
Le 24/07/2022 à 13:00, Kornel Benko a écrit : Use this in user.bind \unbind "Tab" "message *" (for the proposed '\unbind "Tab" "*"' is more to do) This seems to work. But the shortcut-dialog still shows the original setting. With this patch, your can unbind "*" directly. This seems cle

Re: Change of behavior on master: is this a bug?

2022-07-23 Thread Jean-Marc Lasgouttes
Le 23/07/2022 à 14:04, Scott Kostyshak a écrit : To reproduce: 1. ctrl + m to enter math mode. 2. ctrl + m (again) to enter text-within-math mode. 3. Type "\mathbf " (note the space at the end) In 2.3.0, the cursor is placed inside the mathbf inset. In current master, the cursor is placed after

Re: [RFC][PATCH] WIP: Reimplement support for numbering of equation previews

2022-07-22 Thread Jean-Marc Lasgouttes
Le 21/07/2022 à 08:31, Kornel Benko a écrit : Ouch! Now I see it too. FWIW, there has been progress going on at #11535. JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: [RFC][PATCH] WIP: Reimplement support for numbering of equation previews

2022-07-20 Thread Jean-Marc Lasgouttes
Le 20/07/2022 à 21:46, Kornel Benko a écrit : Am Wed, 20 Jul 2022 21:36:54 +0200 schrieb Jean-Marc Lasgouttes : Le 20/07/2022 à 21:17, Kornel Benko a écrit : Try mwe_11535.lyx instead. I tried, but this looked OK (with && without the patch). The look identical and with correct n

Re: [RFC][PATCH] WIP: Reimplement support for numbering of equation previews

2022-07-20 Thread Jean-Marc Lasgouttes
Le 20/07/2022 à 21:17, Kornel Benko a écrit : Try mwe_11535.lyx instead. I tried, but this looked OK (with && without the patch). The look identical and with correct numbering. And with 2.3? JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-dev

Re: [RFC][PATCH] WIP: Reimplement support for numbering of equation previews

2022-07-20 Thread Jean-Marc Lasgouttes
Le 20/07/2022 à 17:14, Kornel Benko a écrit : Am Wed, 20 Jul 2022 00:52:34 +0200 schrieb Jean-Marc Lasgouttes : Hello, This patch implements an idea I had about previews and numbering of equations. It seems to me that it solves issues and is simpler than what we had (which had some bad

[RFC][PATCH] WIP: Reimplement support for numbering of equation previews

2022-07-19 Thread Jean-Marc Lasgouttes
: Jean-Marc Lasgouttes Date: Wed, 20 Jul 2022 00:32:03 +0200 Subject: [PATCH] WIP: Reimplement support for numbering of equation previews WARNING: this is experimental code that will obviously have flaws! This is an experiment for simplifying and fixing the generation of previews with numbering. The

Re: [LyX/master] Do not override (Back)Tab in Adv F&R when it is useful

2022-07-19 Thread Jean-Marc Lasgouttes
Le 19/07/2022 à 11:11, Kornel Benko a écrit : The only drawback I see is when there are more than one binding to a key. Ahh. Good point. Then we can add special handling for function "*", which means all bindings to this sequence. JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org htt

Re: [LyX/master] Do not override (Back)Tab in Adv F&R when it is useful

2022-07-19 Thread Jean-Marc Lasgouttes
Le 19/07/2022 à 10:36, Kornel Benko a écrit : Why not simply ignore the second part, so that \unbind "xyzzy" "some (non) emty string" would still work. Yes, I thought about that. It is not really clean, though :) I can do it right now, but I would not want this to stay like that. JMa

Re: [LyX/master] Do not override (Back)Tab in Adv F&R when it is useful

2022-07-19 Thread Jean-Marc Lasgouttes
Le 18/07/2022 à 14:44, Kornel Benko a écrit : history. I think it is a design error. Looks good (if used manually). I never unbound a key in tests. Have to prepare the scripts. Also I have to know the binding, like \unbind "Tab""command-alternatives completion-accept;cell-forward;tab-ins

Re: [LyX/master] Do not override (Back)Tab in Adv F&R when it is useful

2022-07-18 Thread Jean-Marc Lasgouttes
Le 18/07/2022 à 12:43, Kornel Benko a écrit : And makes some findadv tests fail. What is the key-combination now to switch the focus? Or is there a lyx-command to do it? I guess you run the tests with controlled preferences. This means that you can unbind Tab and BackTab. Would that work?

Re: [LyX features/nakedrows] Add support for naked rows

2022-07-16 Thread Jean-Marc Lasgouttes
Le 16/07/2022 à 16:58, Jean-Marc Lasgouttes a écrit : The branch, nakedrows, has been created. at 8eb835181126c2c9a573ca52a90db533930dd5db (commit) - Log - commit 8eb835181126c2c9a573ca52a90db533930dd5db Author: Jean

Re: [PATCH] Support \\*

2022-07-16 Thread Jean-Marc Lasgouttes
Le 16/07/2022 à 12:54, Kornel Benko a écrit : We would not need to convert _all_ ERT's, only '\\*'. But OK, You mean, only when there is no ERT with sole contents "\" just before? :-p JMarc PS: tipa does define \*. -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailma

Re: [PATCH] Support \\*

2022-07-15 Thread Jean-Marc Lasgouttes
Le 15/07/2022 à 19:32, Pavel Sanda a écrit : Dear Chris, welcome here and sorry for the late reply. Hello Chris, I can only agree with Pavel that we should have answered faster. My specific use case for this is for short stanzas in a verse environment: \\* will prevent a page break in the m

Do we need Qt4 for LyX 2.4.0?

2022-07-14 Thread Jean-Marc Lasgouttes
[this is a reboot of a discussion oat developp...@lyx.org. Sorry for the repetition] Hi there, I am currently fighting with Qt4 for getting correct line-breaking [*]. I had to create a Ubuntu 18.04 virtual machine to have a working Qt4, and I do not know how this will work in 2026 when we wil

Re: Remove duplicate history entries in command buffer

2022-07-13 Thread Jean-Marc Lasgouttes
Le 13/07/2022 à 17:49, Kornel Benko a écrit : Works nice. As expected, only the newly entered command is made uniq. IMHO this should go in. Thanks. This is in now. JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: Remove duplicate history entries in command buffer

2022-07-13 Thread Jean-Marc Lasgouttes
Le 13/07/2022 à 11:24, Kornel Benko a écrit : Am Wed, 13 Jul 2022 11:14:53 +0200 schrieb Jean-Marc Lasgouttes : Le 13/07/2022 à 09:43, Kornel Benko a écrit : I suspect that the two command lists should be unified. Maybe in 2.5? I'll have a look. Thanks. Here is a patch, which n

Re: [LyX/master] Check for icon aliases

2022-07-13 Thread Jean-Marc Lasgouttes
Le 13/07/2022 à 00:56, Pavel Sanda a écrit : On Tue, Jul 12, 2022 at 10:52:18PM +0200, Jean-Marc Lasgouttes wrote: +QString getAlias(QString name) { Could we get the comment in the code, what is this function supposed to do? Right, done now. JMarc -- lyx-devel mailing list lyx-devel

Re: Remove duplicate history entries in command buffer

2022-07-13 Thread Jean-Marc Lasgouttes
Le 13/07/2022 à 09:43, Kornel Benko a écrit : I suspect that the two command lists should be unified. Maybe in 2.5? I'll have a look. I just discovered that the sexy and fast way of removing a string from a vector of strings is the erase-remove idiom: https://en.wikipedia.org/wiki/Erase%E2%

Re: Remove duplicate history entries in command buffer

2022-07-12 Thread Jean-Marc Lasgouttes
Le 12/07/2022 à 22:19, Jean-Marc Lasgouttes a écrit : I won't complain more about removing from the whole history, but the original patch will need to be updated. I suspect that the two command lists should be unified. I just discovered that the sexy and fast way of removing a string f

Re: [patch] Selection stats in statusbar

2022-07-12 Thread Jean-Marc Lasgouttes
Le 12/07/2022 à 22:31, Scott Kostyshak a écrit : Part of it is that I just like to bother JMarc, I am glad to humor you. As for how to solve the performance issue, is there any smart caching that can be done? The first thing to do would be to scrap the current method and create a new ver

Re: Remove duplicate history entries in command buffer

2022-07-12 Thread Jean-Marc Lasgouttes
Le 12/07/2022 à 22:15, Pavel Sanda a écrit : On Mon, Jul 11, 2022 at 02:25:49PM +0200, Kornel Benko wrote: Am Mon, 11 Jul 2022 13:37:31 +0200 schrieb Pavel Sanda : On Mon, Jul 11, 2022 at 10:53:23AM +0200, Kornel Benko wrote: So the outcome may be a new preference? Please no. Pavel What

Re: [patch] Selection stats in statusbar

2022-07-12 Thread Jean-Marc Lasgouttes
Le 12/07/2022 à 21:12, Pavel Sanda a écrit : Hi, I need to adhere precise word/character counts in sections of a document. For this I need to have instantaneous visual feedback of stats when selecting blocks of text. The attached patch does this. Is there some objection to push this into master

Re: Remove duplicate history entries in command buffer

2022-07-10 Thread Jean-Marc Lasgouttes
Le 10/07/2022 à 22:05, Kornel Benko a écrit : So I was not clear enough. With 'duplicated' I meant anywhere in the history. The (my) argument was seeing the session file full of the same commands spread all over the file, essentially shortening the maximum (different) commands possible. I was

Re: Remove duplicate history entries in command buffer

2022-07-10 Thread Jean-Marc Lasgouttes
Le 10/07/2022 à 18:38, Kornel Benko a écrit : I don't get it. 1.) I like the rim(), was about to use it too ... but was unsure if sometimes one needs spaces at end. In this case, I can remove it from both cases. It is not right to maintain two lists and have one which is different from t

Re: Remove duplicate history entries in command buffer

2022-07-10 Thread Jean-Marc Lasgouttes
you think? It does not remove duplicates in the whole list, but I believe that this is how it should work. JMarc From e9682fa5834ac3196cb7f109737ce1b6cc2e40db Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 10 Jul 2022 18:03:52 +0200 Subject: [PATCH] Avoid duplicate commands in

Re: Remove duplicate history entries in command buffer

2022-07-10 Thread Jean-Marc Lasgouttes
Le 10/07/2022 à 11:46, Kornel Benko a écrit : While testing, using history in command buffer for some often repeated lyx-functions is often made difficult when the previous (but not now desired) command was repeated. Objections? I like it, but I would make it simpler, like if (not already th

Re: [LyX/master] Fix ToC action when cursor is in adv. F&R pane

2022-07-02 Thread Jean-Marc Lasgouttes
Le 02/07/2022 à 13:47, Kornel Benko a écrit : Not slow, 16 cores, 32GB fast memory, nvidia geforce gtx 750 Ti. Qt 5.9.5. I do not see any rebuilding if using QT 4.8. Compiling now for QT5.15.0 ... ready Again, no rebuilds ==> so it is showing under QT5.9.5 only. How do you see it? Does it fli

Re: [LyX/master] Fix ToC action when cursor is in adv. F&R pane

2022-07-02 Thread Jean-Marc Lasgouttes
Le 02/07/2022 à 09:45, Kornel Benko a écrit : That makes sense. Good work, thanks. Thanks for testning, I pushed it. Another issue with TOC. Each keystroke or moue-click causes TOC to be rebuild twice. This is better as it was before your changes (the rebuild was trice then) The rebuild is

Re: [LyX/master] Fix ToC action when cursor is in adv. F&R pane

2022-06-30 Thread Jean-Marc Lasgouttes
Le 30/06/2022 à 18:01, Kornel Benko a écrit : It works, but still _many_ calls to FindAndReplaceWidget::eventFilter. (The simple start of findadv causes here 37 calls) I am not sure that this is an issue. For example, I suspect that one redraw will trigger eventFilter for each element (checkbo

Re: [LyX/master] Fix ToC action when cursor is in adv. F&R pane

2022-06-30 Thread Jean-Marc Lasgouttes
0ef82a0b02af895698dc4c3b92f728a438f0f347 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 30 Jun 2022 14:13:57 +0200 Subject: [PATCH] Fixup c30b0aac: protect against bad recursion Adding this particular line created bad redraw interactions. See thread on lyx-devel here: https://marc.info/?l=lyx-devel&m=16564836580

Re: [LyX/master] Fix ToC action when cursor is in adv. F&R pane

2022-06-30 Thread Jean-Marc Lasgouttes
Le 30/06/2022 à 11:57, Kornel Benko a écrit : For your info. Make a breakpoint at FindAndReplaceWidget::eventFilter Starting the findadv-dialog causes 128 calls to that routine with totally different stack counts. (using 'bt -3') Several points here: 1/ it is not really a problem that eventFi

Re: [LyX/master] Fix ToC action when cursor is in adv. F&R pane

2022-06-30 Thread Jean-Marc Lasgouttes
Le 30/06/2022 à 07:47, Jean-Marc Lasgouttes a écrit : I pushed the thing by mistake but, yes, I am aware of it and will propose something soon. What about this? JMarc From 2ec868cf87e57bc6158d97d1f2bd7cf9c8845cb5 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 30 Jun 2022 11

Re: [LyX/master] Fix ToC action when cursor is in adv. F&R pane

2022-06-29 Thread Jean-Marc Lasgouttes
I pushed the thing by mistake but, yes, I am aware of it and will propose something soon. JMarc Le 30 juin 2022 06:50:56 GMT+02:00, Kornel Benko a écrit : >You are aware that I still get crash if not taking care of the recurse? > > Kornel -- lyx-devel mailing list lyx-devel@lists.lyx.or

Re: unable to navigate

2022-06-29 Thread Jean-Marc Lasgouttes
Le 29/06/2022 à 09:59, Kornel Benko a écrit : I thin the recursion break is just a way to hide the issue. OK, my try was only to show that omiting the recursion helped. Fair enough. I was not able to reproduce this issue. However, does the following patch help? JMarc diff --git a/src/fr

Re: unable to navigate

2022-06-29 Thread Jean-Marc Lasgouttes
Le 29/06/2022 à 08:22, Kornel Benko a écrit : Since there seems to be no one using it so extensively as me, this is a good approach :) Anyway, this should only apply if findadv dialog has the cursor, so a mouse-click seems inevitable anyhow. No it is not required. Assume I am searching someth

Re: unable to navigate

2022-06-29 Thread Jean-Marc Lasgouttes
Le 29/06/2022 à 09:41, Kornel Benko a écrit : I tried to omit recursion in indAndReplaceWidget::eventFilter() No crash after this. There may be better places though. I would try to avoid the creation of a new document class in copy_params. I am not sure why thei is needed. Or at least tell m

Re: TeX import problem

2022-06-28 Thread Jean-Marc Lasgouttes
Le 13/06/2022 à 21:00, john kennan a écrit : Version 2.4.0-alpha3 (February 14, 2021) I get the following error message  \selectlanguage                    {english} Selecting a language requires a package supporting it Hello John, 2.4.0-alpha3 is definitely an old version. I cannot repr

Re: unable to navigate

2022-06-28 Thread Jean-Marc Lasgouttes
bcd6b5094d0ff1e198cb4a374b2622a83d1379e1 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 28 Jun 2022 23:17:05 +0200 Subject: [PATCH] Fix ToC action when cursor is in adv. F&R pane This important part is the last point, the rest is what is needed to make it happen. * implement (FindAndRep

Re: unable to navigate

2022-06-28 Thread Jean-Marc Lasgouttes
Le 28/06/2022 à 08:55, Kornel Benko a écrit : Yes, except if the saving of actual cursor would also be done. Starts to be more complicated. Is that even possible? (I mean display document area with the cursor not inside) We could have a new paragraph-show lfun that does that (except if cursor

Re: unable to navigate

2022-06-27 Thread Jean-Marc Lasgouttes
Le 25/06/2022 à 22:15, Kornel Benko a écrit : But works fine if not changing the view. One comment though: I'd prefer to not only change focus, but restore the old focus after the dispatch (if possible of course). Inserting any text after clicking TOC, inserts in the work area and not in the in

Re: unable to navigate

2022-06-27 Thread Jean-Marc Lasgouttes
Le 25/06/2022 à 21:29, Kornel Benko a écrit : Does immediately crash here open lyx with 2 files open findadv dialog, without any other action click on the panel with the non-active workarea ==> crash (does not seem to depend on the patch) But works fine if not changing the view. One comment th

Re: unable to navigate

2022-06-25 Thread Jean-Marc Lasgouttes
Le 25/06/2022 à 21:29, Kornel Benko a écrit : Does immediately crash here open lyx with 2 files That is 2 file in two tabs in the same window? open findadv dialog, without any other action click on the panel with the non-active workarea ==> crash (does not seem to depend on the patch) I'

Re: unable to navigate

2022-06-25 Thread Jean-Marc Lasgouttes
Le 21/06/2022 à 22:40, Jean-Marc Lasgouttes a écrit : Here is another possibility. It makes sense, but this is beginning to be too complicated for 2.4.0 IMO. It does not work yet for some very fundamental reasons. When the solution to a problem is too difficult to obtain, the best is to

Re: #12560: fig2pdftex.py lacks a shebang

2022-06-25 Thread Jean-Marc Lasgouttes
Le 25/06/2022 à 19:25, Dr Eberhard W Lisse a écrit : Just a thought from a non-developer: why not make this happen at Tools -> Reconfigure ? Probably because the user cannot write in the LyX system library directory (on linux and macOS, at least). JMarc PS: please keep the discussion in th

Re: unable to navigate

2022-06-21 Thread Jean-Marc Lasgouttes
Le 21/06/2022 à 12:55, Kornel Benko a écrit : Am Tue, 21 Jun 2022 10:59:40 +0200 schrieb Jean-Marc Lasgouttes : Le 21/06/2022 à 10:36, Kornel Benko a écrit : But the point (from my POV) is: TOC refers to the document work area, but does not react accordingly. Here is another

Re: unable to navigate

2022-06-21 Thread Jean-Marc Lasgouttes
Le 21/06/2022 à 10:36, Kornel Benko a écrit : But the point (from my POV) is: TOC refers to the document work area, but does not react accordingly. I totally agree, but I have not found at this point where this happens. We could try to have TocWidget dispatch to the document bufferview

Re: unable to navigate

2022-06-20 Thread Jean-Marc Lasgouttes
Le 18/06/2022 à 11:12, Kornel Benko a écrit : To reproduce: 1.) Open some big lyx-file 2.) Open TOC 3.) Open advanced search dialog 4.) Search for some existing string --> The page containing the string is now visible 5.) try to use TOC to navigate --> The view does not change. 6

Re: Tango icons

2022-06-16 Thread Jean-Marc Lasgouttes
Le 01/06/2022 à 09:31, Daniel a écrit : https://wiki.lyx.org/LyX/FeaturePoll2#toc14 asks for: "Prettier Icons: The current icons should be replaced with ones from the Tango Project." Isn't Tango dead (ie wontfix for LyX?). I think we do use tango icons: commit c6db18e21f0f352492c421edffb

Re: Toolbars should have a right-click menu item to add more toolbars

2022-06-16 Thread Jean-Marc Lasgouttes
Le 01/06/2022 à 09:45, Daniel a écrit : https://wiki.lyx.org/LyX/FeaturePoll2#toc16 asks for: "Toolbars should have a right-click menu item to add more toolbars." That has been implemented some time ago, right? (Note that this is not "Add/remove toolbar icons, like OpenOffice.org " which is a

Re: Line Breaking Problem

2022-06-09 Thread Jean-Marc Lasgouttes
Le 06/06/2022 à 18:11, Richard Kimberly Heck a écrit : I'm still seeing a bug where quotes cause line-breaking problems. E.g., I can see things like this: This is an interesting quote: "I am not sure what you mean" . The period ends up on the following line. The quotes there would be LyX quote

<    2   3   4   5   6   7   8   9   10   11   >