Bug 56975 - EDITING: Word Count: Interpunction is counted
Summary: EDITING: Word Count: Interpunction is counted
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.1.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA target:6.2.0
Keywords:
Depends on:
Blocks: Word-Count
  Show dependency treegraph
 
Reported: 2012-11-11 10:43 UTC by srao.hugo
Modified: 2018-10-22 13:32 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
I don't know, it's a bug --' (171.32 KB, image/jpeg)
2012-11-11 10:43 UTC, srao.hugo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description srao.hugo 2012-11-11 10:43:53 UTC
Created attachment 69895 [details]
I don't know, it's a bug --'

Problem description: 

Steps to reproduce:
When you write a text : 
Current behavior: the count number of words is fasle when you put "!" "?"... and other signs.


Expected behavior:give the true number of words in the text

Platform (if different from the browser): Windows Ultimate 7 64bits
              
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
Comment 1 Stefan Knorr (astron) 2012-12-18 23:14:23 UTC
(I hope I am not hijacking this bug with another problem here. That said, I've changed the name of it from "EDITING: Bug in Count number")

So, the problem seems to be that interpunction, when standing separated from words by line breaks and (unprotected!) spaces, is counted as words.
For example, the text

! . –

is counted as three words.

I can reproduce this behaviour on LibreOffice 4.0 beta 1, Windows 8
Comment 2 retired 2014-08-11 07:46:39 UTC
WORKSFORME
OSX 10.9.4, LO 4.3.0.4

Open writer, enter "Testing one two! Test?"
-> LO says: 4 words. SUCCESS! :)

Should this persist for you with LO 4.3.0.4 or above please reopen with more info.

Also works under Win8.1.
Comment 3 Commit Notification 2018-06-13 14:25:00 UTC
Zdeněk Crhonek committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=5db29ca06b56bb235b0e8dfd0956715730f9cf0d

uitest-Word Count;tdf#68347 tdf#91100 tdf#58050 tdf#56975 tdf#56975

It will be available in 6.2.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2018-06-13 14:25:04 UTC Comment hidden (obsolete)
Comment 5 BogdanB 2018-10-22 13:31:13 UTC
I tested this expression:
"! . –"  -> 2 words

I tested with:
"Testing one two! Test?" ---> 4 words

It is ok like that?

Version: 6.2.0.0.alpha0+
Build ID: 3846561f79cf9065abd9ca83c9fbfbe7e52e28e2
CPU threads: 4; OS: Linux 4.15; UI render: GL; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2018-10-21_02:45:54
Locale: en-US (ro_RO.UTF-8); Calc: threaded
Comment 6 BogdanB 2018-10-22 13:32:09 UTC
I tested this expression:
"! . –"  -> 2 words

I tested with:
"Testing one two! Test?" ---> 4 words

Version: 6.2.0.0.alpha0+
Build ID: 3846561f79cf9065abd9ca83c9fbfbe7e52e28e2
CPU threads: 4; OS: Linux 4.15; UI render: GL; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2018-10-21_02:45:54
Locale: en-US (ro_RO.UTF-8); Calc: threaded