On Thu, Aug 18, 2022 at 09:55:50AM +0200, Jürgen Spitzmüller wrote:
> showMessage() is triggered on any cursor action. That's way too often.
> E.g., it would fire down statistics unnecessarily if you move with the
> arrow keys through your document.
I'll add just few observational notes collected
Am Freitag, dem 19.08.2022 um 07:06 +0200 schrieb Jürgen Spitzmüller:
> The crash is fixed in the attached patch, which works well for me.
I have still crashes (when pasting). I don't have time to work on it
further for the time being, so I put it on hold.
--
Jürgen
signature.asc
Description:
Am Fri, 19 Aug 2022 10:47:06 +0200
schrieb Kornel Benko :
> Am Fri, 19 Aug 2022 10:44:23 +0200
> schrieb Kornel Benko :
>
> > Am Fri, 19 Aug 2022 10:16:43 +0200
> > schrieb "Jürgen Spitzmüller" :
> >
> > > Am Freitag, dem 19.08.2022 um 10:07 +0200 schrieb Kornel Benko:
> > > > Both.
Am Fri, 19 Aug 2022 10:44:23 +0200
schrieb Kornel Benko :
> Am Fri, 19 Aug 2022 10:16:43 +0200
> schrieb "Jürgen Spitzmüller" :
>
> > Am Freitag, dem 19.08.2022 um 10:07 +0200 schrieb Kornel Benko:
> > > Both.
> >
> > Interesting. I'd need a recipe for the latter.
> >
>
> Nothing speci
Am Fri, 19 Aug 2022 10:16:43 +0200
schrieb "Jürgen Spitzmüller" :
> Am Freitag, dem 19.08.2022 um 10:07 +0200 schrieb Kornel Benko:
> > Both.
>
> Interesting. I'd need a recipe for the latter.
>
Nothing specific. Does not matter what or how I select some parts,
the number of spaces is wrong (
Am Freitag, dem 19.08.2022 um 10:07 +0200 schrieb Kornel Benko:
> Both.
Interesting. I'd need a recipe for the latter.
--
Jürgen
signature.asc
Description: This is a digitally signed message part
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel
Am Fri, 19 Aug 2022 09:59:45 +0200
schrieb "Jürgen Spitzmüller" :
> Am Freitag, dem 19.08.2022 um 09:54 +0200 schrieb Kornel Benko:
> > I seen it in the status bar. Dialog shows OK.
>
> And only of you select whole words (e.g. via double click)? Or also if
> you select manually?
>
Both.
Am Freitag, dem 19.08.2022 um 09:54 +0200 schrieb Kornel Benko:
> I seen it in the status bar. Dialog shows OK.
And only of you select whole words (e.g. via double click)? Or also if
you select manually?
--
Jürgen
signature.asc
Description: This is a digitally signed message part
--
lyx-devel
Am Fri, 19 Aug 2022 09:34:29 +0200
schrieb "Jürgen Spitzmüller" :
> Am Freitag, dem 19.08.2022 um 08:42 +0200 schrieb Kornel Benko:
> > There is something not correct with showing number of spaces in
> > Chinese docs.
> >
> > 1.) Open zh_CN/Tutorial.lyx
> > 2.) Select a single word e.g. 参考文献和交叉引用
Am Freitag, dem 19.08.2022 um 08:42 +0200 schrieb Kornel Benko:
> There is something not correct with showing number of spaces in
> Chinese docs.
>
> 1.) Open zh_CN/Tutorial.lyx
> 2.) Select a single word e.g. 参考文献和交叉引用有点像
> => you get
> number of words1
> number of char
Am Fri, 19 Aug 2022 08:42:20 +0200
schrieb Kornel Benko :
> Am Fri, 19 Aug 2022 07:06:57 +0200
> schrieb "Jürgen Spitzmüller" :
>
> > Am Donnerstag, dem 18.08.2022 um 18:43 +0200 schrieb Jean-Marc
> > Lasgouttes:
> > > Indeed, threads create lots of interesting bugs... It would be better
> > >
Am Fri, 19 Aug 2022 07:06:57 +0200
schrieb "Jürgen Spitzmüller" :
> Am Donnerstag, dem 18.08.2022 um 18:43 +0200 schrieb Jean-Marc
> Lasgouttes:
> > Indeed, threads create lots of interesting bugs... It would be better
> > if we could avoid them
>
> The UX difference to the timer approach is h
Am Donnerstag, dem 18.08.2022 um 18:43 +0200 schrieb Jean-Marc
Lasgouttes:
> Indeed, threads create lots of interesting bugs... It would be better
> if we could avoid them
The UX difference to the timer approach is huge. The threaded
calculation feels smooth and is almost instant.
The crash is f
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
Am Donnerstag, dem 18.08.2022 um 11:42 +0200 schrieb Jürgen
Spitzmüller:
> The attached seems to work basically. But I haven't check for all
> cases (I am dure there are cases I missed) and didn't push hard for
> performance (currently the timer is commented out; if this is too
> expensive, process
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
On 18/08/2022 14:25, Jürgen Spitzmüller wrote:
Am Donnerstag, dem 18.08.2022 um 14:08 +0200 schrieb Daniel:
No function exits early on that approach. The function does not get
called in the first place. I think it is really better.
Currently: statistics update continuously and, hence, can inter
Am Donnerstag, dem 18.08.2022 um 14:08 +0200 schrieb Daniel:
> No function exits early on that approach. The function does not get
> called in the first place. I think it is really better.
>
> Currently: statistics update continuously and, hence, can interfere
> with continuous typing.
Which is
On 18/08/2022 11:44, Jürgen Spitzmüller wrote:
Am Donnerstag, dem 18.08.2022 um 11:31 +0200 schrieb Daniel:
This shouldn't be an issue. The idea is that statistics are only
generated after some time has passed without interruption. They are
not
shown immediately. Hence, continuous arrow key move
On Thu, Aug 18, 2022 at 11:44:49AM +0200, Jürgen Spitzmüller wrote:
> Am Donnerstag, dem 18.08.2022 um 11:31 +0200 schrieb Daniel:
> > This shouldn't be an issue. The idea is that statistics are only
> > generated after some time has passed without interruption. They are
> > not
> > shown immedia
Am Donnerstag, dem 18.08.2022 um 11:31 +0200 schrieb Daniel:
> This shouldn't be an issue. The idea is that statistics are only
> generated after some time has passed without interruption. They are
> not
> shown immediately. Hence, continuous arrow key movement would not
> trigger statistics at
Am Donnerstag, dem 18.08.2022 um 09:55 +0200 schrieb Jürgen
Spitzmüller:
> You need a more suitable signal that only emits when text is edited
> or loaded.
The attached seems to work basically. But I haven't check for all cases
(I am dure there are cases I missed) and didn't push hard for
performa
On 18/08/2022 09:55, Jürgen Spitzmüller wrote:
Am Mittwoch, dem 17.08.2022 um 19:40 +0200 schrieb Daniel:
What I did in
https://www.lyx.org/trac/attachment/ticket/12422/0001-Show-word-count-in-status-bar.patch
was just to hook it on GuiView::showMessage() because this would be
updated in all c
Am Mittwoch, dem 17.08.2022 um 19:40 +0200 schrieb Daniel:
> What I did in
>
> https://www.lyx.org/trac/attachment/ticket/12422/0001-Show-word-count-in-status-bar.patch
>
> was just to hook it on GuiView::showMessage() because this would be
> updated in all cases where text stuff changes.
show
On 2022-08-17 18:41, Jürgen Spitzmüller wrote:
Am Mittwoch, dem 10.08.2022 um 08:01 +0200 schrieb Daniel:
1. The delay timer seems not to be working as expected. Normally,
i.e.
in other word processors, the idea is this:
While typing, no updating takes place, only once the typing stops,
the
upd
Am Mittwoch, dem 10.08.2022 um 08:01 +0200 schrieb Daniel:
> 1. The delay timer seems not to be working as expected. Normally,
> i.e.
> in other word processors, the idea is this:
>
> While typing, no updating takes place, only once the typing stops,
> the
> update timer starts. Once typing is c
On 11/08/2022 08:54, Pavel Sanda wrote:
On Wed, Aug 10, 2022 at 08:01:47AM +0200, Daniel wrote:
I just tested the new feature. Here are a couple of things that came to my
mind:
1. The delay timer seems not to be working as expected. Normally, i.e. in
other word processors, the idea is this:
Wh
Am Mittwoch, dem 17.08.2022 um 14:21 +0200 schrieb Pavel Sanda:
> I am travelling now, so please do as you see fit, I trust your UI
> eye.
Thanks, done. Have a good trip.
--
Jürgen
signature.asc
Description: This is a digitally signed message part
--
lyx-devel mailing list
lyx-devel@lists.lyx
On Wed, Aug 17, 2022 at 11:00:39AM +0200, Jürgen Spitzmüller wrote:
> Am Dienstag, dem 16.08.2022 um 12:44 +0200 schrieb Jürgen Spitzmüller:
> > I've seen now that you flagged it for localization. But this is still
> > to anglocentric. Use bformat to construct the string. BTW there is
> > also
> >
Am Wed, 17 Aug 2022 12:39:01 +0200
schrieb "Jürgen Spitzmüller" :
> Am Mittwoch, dem 17.08.2022 um 12:35 +0200 schrieb Daniel:
> > 1 slovo
> > Počet slov: 2... (Wordcount: 2... if I understood correctly)
>
> This could be done on po-level if desired. No code change needed.
It is that way in my
Am Wed, 17 Aug 2022 12:35:05 +0200
schrieb Daniel :
> On 17/08/2022 12:01, Jürgen Spitzmüller wrote:
> > Am Mittwoch, dem 17.08.2022 um 11:56 +0200 schrieb Jürgen Spitzmüller:
> >> If the number of inter-language variations is limited, this can be
> >> supported as well.
> >
> > OTOH the prob
Am Mittwoch, dem 17.08.2022 um 12:35 +0200 schrieb Daniel:
> 1 slovo
> Počet slov: 2... (Wordcount: 2... if I understood correctly)
This could be done on po-level if desired. No code change needed.
--
Jürgen
signature.asc
Description: This is a digitally signed message part
--
lyx-devel maili
On 17/08/2022 12:01, Jürgen Spitzmüller wrote:
Am Mittwoch, dem 17.08.2022 um 11:56 +0200 schrieb Jürgen Spitzmüller:
If the number of inter-language variations is limited, this can be
supported as well.
OTOH the problem is also unsolved in the existing statistics dialog.
Word uses
1 slovo
On 17/08/2022 11:57, Jürgen Spitzmüller wrote:
Am Mittwoch, dem 17.08.2022 um 11:28 +0200 schrieb Daniel:
If the usage of QStringList is fine, it can also be written a bit
more concise as.
Sure. Though it doesn't buy much.
I guess one should choose (even slightly) less complex code whenever
Am Mittwoch, dem 17.08.2022 um 11:56 +0200 schrieb Jürgen Spitzmüller:
> If the number of inter-language variations is limited, this can be
> supported as well.
OTOH the problem is also unsolved in the existing statistics dialog.
--
Jürgen
signature.asc
Description: This is a digitally signed
Am Mittwoch, dem 17.08.2022 um 11:28 +0200 schrieb Daniel:
> If the usage of QStringList is fine, it can also be written a bit
> more concise as.
Sure. Though it doesn't buy much.
> Also, chars_with_blanks should probably be inside the
> second "if statement"
No, this is re-used further below.
Am Mittwoch, dem 17.08.2022 um 11:41 +0200 schrieb Kornel Benko:
> What about languages with different plurals.
>
> In Slovak for example it would be
> 1 slovo
> 2..4 slová
> 5..\infty slov
If the number of inter-language variations is limited, this can be
supported as well.
--
Jürgen
signatu
Am Wed, 17 Aug 2022 11:28:53 +0200
schrieb Daniel :
> On 17/08/2022 11:13, Jürgen Spitzmüller wrote:
> > Am Mittwoch, dem 17.08.2022 um 11:00 +0200 schrieb Jürgen Spitzmüller:
> >> Attached the way I'd recommend to do it:
> >>
> >> * do not use abbreviations
> >> * allow to enable the stats meas
On 17/08/2022 11:13, Jürgen Spitzmüller wrote:
Am Mittwoch, dem 17.08.2022 um 11:00 +0200 schrieb Jürgen Spitzmüller:
Attached the way I'd recommend to do it:
* do not use abbreviations
* allow to enable the stats measures individually
* left click on stats in status bar opens stats dialog (as
Am Mittwoch, dem 17.08.2022 um 11:00 +0200 schrieb Jürgen Spitzmüller:
> Attached the way I'd recommend to do it:
>
> * do not use abbreviations
> * allow to enable the stats measures individually
> * left click on stats in status bar opens stats dialog (as in LO and
> Word)
>
> The rationale bes
Am Dienstag, dem 16.08.2022 um 12:44 +0200 schrieb Jürgen Spitzmüller:
> I've seen now that you flagged it for localization. But this is still
> to anglocentric. Use bformat to construct the string. BTW there is
> also
> a qt_() function, no need for toqstr(_()).
>
> My point that one-letter abbre
Am Dienstag, dem 16.08.2022 um 12:12 +0200 schrieb Jürgen Spitzmüller:
> It's horrible, really. You need not only to spell it out, but also
> localize it.
I've seen now that you flagged it for localization. But this is still
to anglocentric. Use bformat to construct the string. BTW there is also
a
Am Donnerstag, dem 11.08.2022 um 08:54 +0200 schrieb Pavel Sanda:
> > 2. The display is quite cryptic since it is not immediately clear
> > what "w",
> > "c" and "cb" is. Minimally, I suggest to add a tooltip explaining
> > this.
> > Ideally, I would write at least "3 words, 23 characters" out, as
On Wed, Aug 10, 2022 at 08:01:47AM +0200, Daniel wrote:
> I just tested the new feature. Here are a couple of things that came to my
> mind:
>
> 1. The delay timer seems not to be working as expected. Normally, i.e. in
> other word processors, the idea is this:
>
> While typing, no updating takes
On 2022-08-09 23:53, Pavel Sanda wrote:
On Sat, Aug 06, 2022 at 12:23:25PM -0400, Scott Kostyshak wrote:
I suggest we put this into master and let ppl test on their machines
if any noticeable changes are visible when editing documents. At worst
we can disable this feature by default.
Sounds go
On Tue, Aug 09, 2022 at 11:53:05PM +0200, Pavel Sanda wrote:
> On Sat, Aug 06, 2022 at 12:23:25PM -0400, Scott Kostyshak wrote:
> > > I suggest we put this into master and let ppl test on their machines
> > > if any noticeable changes are visible when editing documents. At worst
> > > we can disabl
On Sat, Aug 06, 2022 at 12:23:25PM -0400, Scott Kostyshak wrote:
> > I suggest we put this into master and let ppl test on their machines
> > if any noticeable changes are visible when editing documents. At worst
> > we can disable this feature by default.
>
> Sounds good to me. Thanks for the pat
On Thu, Aug 04, 2022 at 11:35:31PM +0200, Pavel Sanda wrote:
> On Sun, Jul 31, 2022 at 07:29:35AM -0400, Scott Kostyshak wrote:
> > On Sun, Jul 31, 2022 at 11:34:25AM +0200, Pavel Sanda wrote:
> > > On Sun, Jul 31, 2022 at 05:16:17AM -0400, Scott Kostyshak wrote:
> > > > I'm on vacation and won't b
On Sun, Jul 31, 2022 at 07:29:35AM -0400, Scott Kostyshak wrote:
> On Sun, Jul 31, 2022 at 11:34:25AM +0200, Pavel Sanda wrote:
> > On Sun, Jul 31, 2022 at 05:16:17AM -0400, Scott Kostyshak wrote:
> > > I'm on vacation and won't be able to test for a few weeks. Can you do
> > > the test I described
On Sun, Jul 31, 2022 at 11:34:25AM +0200, Pavel Sanda wrote:
> On Sun, Jul 31, 2022 at 05:16:17AM -0400, Scott Kostyshak wrote:
> > I'm on vacation and won't be able to test for a few weeks. Can you do
> > the test I described before? Just select a big document, and then hold
> > Shift + to decrea
On Sun, Jul 31, 2022 at 05:16:17AM -0400, Scott Kostyshak wrote:
> I'm on vacation and won't be able to test for a few weeks. Can you do
> the test I described before? Just select a big document, and then hold
> Shift + to decrease the selection towards the beginning of the
> document. I just coun
On Sun, Jul 31, 2022 at 12:35:30AM +0200, Pavel Sanda wrote:
> On Fri, Jul 15, 2022 at 12:05:25AM +0200, Pavel Sanda wrote:
> > On Thu, Jul 14, 2022 at 09:31:06AM +0200, Daniel wrote:
> > > >The drawback is that's it's difficult to understand the interaction
> > > >between
> > > >the two timers no
On Fri, Jul 15, 2022 at 12:05:25AM +0200, Pavel Sanda wrote:
> On Thu, Jul 14, 2022 at 09:31:06AM +0200, Daniel wrote:
> > >The drawback is that's it's difficult to understand the interaction between
> > >the two timers now. I stared on the code for couple minutes and it was
> > >not clear to me wh
On Thu, Jul 14, 2022 at 09:31:06AM +0200, Daniel wrote:
> >The drawback is that's it's difficult to understand the interaction between
> >the two timers now. I stared on the code for couple minutes and it was
> >not clear to me what is the idea behind your stop/start changes.
>
> Some comments wou
On 2022-07-14 00:13, Pavel Sanda wrote:
On Wed, Jul 13, 2022 at 08:54:28AM +0200, Daniel wrote:
Hi,
There is also a patch for instant counts at
https://www.lyx.org/trac/ticket/12422. It works with delayed calculations. I
have no idea how this does performance wise, but it might be worth checkin
On Wed, Jul 13, 2022 at 08:54:28AM +0200, Daniel wrote:
> Hi,
>
> There is also a patch for instant counts at
> https://www.lyx.org/trac/ticket/12422. It works with delayed calculations. I
> have no idea how this does performance wise, but it might be worth checking
> out.
Yes, that's lazy man ap
On 2022-07-13 00:50, Pavel Sanda wrote:
On Tue, Jul 12, 2022 at 04:31:20PM -0400, Scott Kostyshak wrote:
However, it seems to have a pretty big hit on performance. The way I
checked was starting with select-all on a document, and then doing shift
+ up and seeing how long it took to get to the to
On Tue, Jul 12, 2022 at 04:31:20PM -0400, Scott Kostyshak wrote:
> However, it seems to have a pretty big hit on performance. The way I
> checked was starting with select-all on a document, and then doing shift
> + up and seeing how long it took to get to the top. It took 16 seconds
> without the p
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
On Tue, Jul 12, 2022 at 09:12:56PM +0200, Pavel Sanda wrote:
> 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 object
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
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?
(If no objection raised I'll add string trans
62 matches
Mail list logo