Issue 88509 - Numbering/bullets without text not included in word count
Summary: Numbering/bullets without text not included in word count
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: DEV300m9
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2008-04-20 23:24 UTC by troodon
Modified: 2013-08-07 14:44 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Testcase (8.20 KB, application/vnd.oasis.opendocument.text)
2008-04-20 23:28 UTC, troodon
no flags Details
Same testcase for Word (19.00 KB, application/msword)
2008-04-22 13:54 UTC, troodon
no flags Details
Screenshot showing OOo DEV300m9 and Word 200 side by side (28.59 KB, image/png)
2008-04-22 13:55 UTC, troodon
no flags Details
new test document (26.50 KB, application/msword)
2008-04-22 21:45 UTC, frank.meies
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description troodon 2008-04-20 23:24:11 UTC
According to the changes made for resolving issue 80815 the bullet and numbering
characters should be counted as words, but if they have no text after them, they
aren't counted as words. See the attached testcase.
Comment 1 troodon 2008-04-20 23:28:05 UTC
Created attachment 53059 [details]
Comment 2 eric.savary 2008-04-21 16:25:43 UTC
Reassigned to SBA
Comment 3 frank.meies 2008-04-22 13:07:55 UTC
fme->troodon: Please check agains MS Word. There, numbering characters are only
counted if there's some text following the numbering.
Comment 4 troodon 2008-04-22 13:52:08 UTC

I've checked before reporting this :-). With a tescase like the one I attached,
both Word 97 and 2000 say there are 12 words (5 numberings, 5 bullets and 2
letters). AFAIK the way Word does the word count hasn't changed in later releases.
Comment 5 troodon 2008-04-22 13:54:10 UTC
Created attachment 53113 [details]
Same testcase for Word
Comment 6 troodon 2008-04-22 13:55:19 UTC
Created attachment 53114 [details]
Screenshot showing OOo DEV300m9 and Word 200 side by side
Comment 7 frank.meies 2008-04-22 21:43:22 UTC
fme->troodon: This is too weird. Have a look at the new attachment. One empty,
numbered paragraph - word count is 0. khong also made this observation as
mentioned in issue 80815: "[...] To reproduce, in MS Word, click on bullet, the
word count is 0, type a word, word count is 2. [...]". That's the way I
implemented it in OOo Writer: The bullet/numbering string is not counted if the
paragraph is empty. Looks like this needs some more investigation.
Comment 8 frank.meies 2008-04-22 21:45:27 UTC
Created attachment 53122 [details]
new test document
Comment 9 troodon 2008-04-25 00:48:02 UTC

It's weird because someone agreed to implement a the same word count method as
in Word, and Word has a very weird method :-).

*Only* the new bullets/numbers inserted at the end of a list are (not) counted
as you described in desc8.

Try it yourself :-). In a list with n items, delete the text of any item, but
not the item itself. That item won't have any text but the number/bullet will be
counted as a word.

Now try another thing. Insert a new item after any position < n (any except the
last one) but don't enter any text. That item will be a new empty item but the
number/bullet will be counted as a word.
Comment 10 troodon 2008-05-01 15:35:06 UTC

CC'ing you to attract your attention over desc 10 :-)
Comment 11 frank.meies 2008-05-05 08:21:03 UTC
I'll try to adjust the word count algorithm regarding numbering/bullets for OOo 3.0.
Comment 12 troodon 2008-05-05 11:21:06 UTC

In case it helps, I've tried with Word 2007 and it exhibits the same behaviour
as I described in desc 10 for previous versions.
Comment 13 frank.meies 2008-05-09 15:45:10 UTC
fme->troodon/foobard: Right, I suggest to fix this the easy way: Count
numbering/bullets no matter if  the paragraph contains text or not. If you
agree, I'll fix this for 3.0, otherwise I'll have to shift this to 3.x. What do
you think?
Comment 14 foobard 2008-05-09 16:16:49 UTC

Getting it right is more important than getting it done. If I understand your
suggestion, you want to cut some corners in a way that won't exactly duplicate
how MS Word does it. I think this would be a mistake. If we can't hit 3.0,
that's a shame, but it would be a bigger shame to close this issue without an
adequate fix.

my $0.02.
Comment 15 frank.meies 2008-05-13 07:43:59 UTC
fme->foobard: [...] If we can't hit 3.0, that's a shame [...]

Please choose your words more carefully. You should adjust your expectations a
bit. This is not the only issue I have to fix and this definitely is not the
most important one. From my point of view, a step in the right direction is
better than no step at all. Just my 2 cents.
Comment 16 foobard 2008-05-14 17:23:01 UTC

You asked me what I thought. I'm sorry you didn't like the answer. It was not my
intention to be rude.

Do what you can with what you have. If you feel a halfway solution is the only
thing doable by 3.0, given available resources and priorities, I won't complain.
However, please don't close this bug, as the issue will only be partially solved.