Am 06.10.2011 um 15:09 schrieb Richard Heck:

> On 10/05/2011 06:02 PM, Stephan Witt wrote:
>> Am 04.10.2011 um 23:04 schrieb Richard Heck:
>> 
>>> On 10/04/2011 04:22 PM, Stephan Witt wrote:
>>>> Am 30.09.2011 um 13:13 schrieb LyX Ticket Tracker:
>>>> 
>>>>> #7789: Word count will count words in deleted notes (with change tracking)
>>>>> ---------------------+------------------------------------------------------
>>>>> Reporter:  bhelm    |       Owner:  rgheck  
>>>>>   Type:  defect   |      Status:  new     
>>>>> Priority:  normal   |   Milestone:          
>>>>> Component:  changes  |     Version:  2.0.Xsvn
>>>>> Severity:  normal   |    Keywords:  patch   
>>>>> ---------------------+------------------------------------------------------
>>>>> Changes (by stwitt):
>>>>> 
>>>>> * cc: stwitt (added)
>>>>> * keywords:  => patch
>>>>> -- 
>>>>> Ticket URL: <http://www.lyx.org/trac/ticket/7789#comment:1>
>>>> Does anyone has any objection? I'd like to apply the patch.
>>>> 
>>> None here.
>>> 
>>> That said, if possible, I'd prefer if you could separate this patch into
>>> two parts:
>>> (i) Whatever is actually needed to fix the bug
>>> (ii) The unification and code moving stuff
>>> That would make it easier for me to see what's happening here.
>> The patch to fix the reported bug is attached.
>> 
>> There is one problem: it is incomplete (the word count is fixed,
>> the char counts remain wrong). One may fix the char count like I
>> did it for word count. Or one may unify the count process and have
>> both fixed. This is my final patch.
>> 
> OK, well, the previous one is fine, then, as it seems there are two
> bugs, really.

Yes, and there is a FIXME in countWords: "merge with countChars..."
There was a discussion about that on lyx-devel after r37940...

After this fix is commited one may extend the statistics:
* add more details as Tommaso suggested
* add statistics for child documents, when in parent

Stephan

Reply via email to