Issue 10356 - there should be a character counting option without counting spaces.
Summary: there should be a character counting option without counting spaces.
Status: ACCEPTED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOo 1.0.1
Hardware: All All
: P4 Trivial with 28 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa, rfe_eval_ok
: 5117 11818 15681 23136 26850 86452 (view as issue list)
Depends on:
Blocks: 4568
  Show dependency tree
 
Reported: 2002-12-30 14:35 UTC by Unknown
Modified: 2013-08-07 14:38 UTC (History)
7 users (show)

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


Attachments
Sample Word and Writer word count dialogs, w/ explanation. (29.95 KB, application/vnd.sun.xml.writer)
2004-01-30 05:16 UTC, erikanderson3
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-12-30 14:35:33 UTC
Right now, 
in File->properties->statistics, it shows number of characters including white
spaces. But, there must be another information as number of characters without
spaces. 
This is very useful for people who is in translation job. they usually decide
the cost of the translation with the caracter count, in Open Office, it gives
wrong information because it counts caracters with spaces.
Comment 1 h.ilter 2003-01-07 16:36:42 UTC
Reassigned to BH
Comment 2 eric.savary 2003-04-16 15:31:51 UTC
Set to "NEW"
Comment 3 lohmaier 2003-07-01 22:09:29 UTC
*** Issue 15681 has been marked as a duplicate of this issue. ***
Comment 4 lohmaier 2003-07-01 22:11:49 UTC
setting target-milestone, adjusting priority
Comment 5 lohmaier 2003-07-01 22:19:56 UTC
*** Issue 5117 has been marked as a duplicate of this issue. ***
Comment 6 lohmaier 2003-07-01 22:21:11 UTC
platform, os -> ALL
Comment 7 lohmaier 2003-07-01 22:50:16 UTC
*** Issue 11818 has been marked as a duplicate of this issue. ***
Comment 8 lohmaier 2003-10-02 01:18:58 UTC
cross-linking word-count issues
Comment 9 bettina.haberer 2003-10-23 12:14:42 UTC
I think this should be configurable so that one can decide between
both count-methods. 
Comment 10 lohmaier 2003-12-08 16:39:27 UTC
*** Issue 23136 has been marked as a duplicate of this issue. ***
Comment 11 erikanderson3 2004-01-30 05:08:15 UTC
As another translator (J->E), i say, hear hear!  :)

In all seriousness, what Word does that is very helpful is two-fold (from Office
2000 on):

1) Counts can be run on a selection.  OOo only shows a count for the whole
document.  If a client only wants a translation of Pages 3-5, there's no easy
way to run a count in OOo.  It's a major roadblock to me using OOo in my own
business.

2) Counts show a breakdown by Western word and Asian character.  Many texts I
receive have some English already in them.

I'll attach an .sxw with samples.  The second issue above may need moving to a
different issue, but I think there is some overlap here.
Comment 12 erikanderson3 2004-01-30 05:16:58 UTC
Created attachment 12804 [details]
Sample Word and Writer word count dialogs, w/ explanation.
Comment 13 erikanderson3 2004-01-30 05:18:32 UTC
Whoops, in my previous post I meant that Word 2000 and on take care of item # 2.
 Earlier versions do fine with item # 1.
Comment 14 lohmaier 2004-03-23 18:19:02 UTC
*** Issue 26850 has been marked as a duplicate of this issue. ***
Comment 15 erikanderson3 2005-09-16 19:12:15 UTC
I am saddened to find (in 2.0 Beta 1) that the target milestone of "OOo Later"
did not mean 2.0, as apparently nothing has been done about this issue, and
we're going on three years here.  

Any news?  Anything at all?

For those interested, I attached a comparison of screenshots showing Word's and
2.0 Beta 1 OOo's word counts to Issue 17964.  Please have a look.  
Comment 16 mcdragon 2006-11-01 10:07:05 UTC
This feature of counting characters with/without spaces is present in MS Office.
It is actually a crucial tool of calculating the fee of some translators. Not
having this is a big minus.

As MS Office is more widely used you should have at least the functionality it
has but also expand on them - counting the words/characters for highlighted text
is just such an example.
Comment 17 kpalagin 2007-04-08 20:50:37 UTC
Dear developers,
please consider this enhancement for some near release.
Thanks for your attention.
Comment 18 vilnl 2007-07-06 19:06:35 UTC
Dear development team!
Word count WITHOUT SPACES is extremely important for translators in the EU. I
hope you can implement it in the near future.
Comment 19 chuckers 2007-10-30 16:21:38 UTC
I agree with previous comments: THIS IS EXTREMELY IMPORTANT FOR TRANSLATORS!
Please implement this.
Comment 20 andreythinking 2007-11-03 04:38:45 UTC
I see, 4 years passes since 1st report, but trouble not resolved by now (Oo-
v2.3).

Developers! You underrate gravity of this feature!

I faced the problem, when task to count symbols w/o spaces rises in my 
commercial work. Now I emergency to use M$ Word for this feature.
Sure, many peoples suffer wothout this feature!

To fully compete with M$ text processor, your MUST resolve this  problem.
Comment 21 aehrlich 2008-01-30 15:24:06 UTC
Well, here is a workaround - use macro to do the thing. Maybe somebody will even
be so kind to transform it into an extension.
This macro had been written in 2004 or before and worked OK in OOo 1.x.
<code>
REM  *****  BASIC  *****

Sub CountNonBlankChars
  Dim xDoc, xFound as Object
  Dim nAllChars as Long
  xDoc = thiscomponent
  
  If not HasUnoInterfaces (xDoc, "com.sun.star.text.XTextDocument") Then
    msgbox("This macro can be run on text documents only!", 16, "Non-Blanks count")
    exit sub
  end if
  
  nAllChars = xDoc.CharacterCount
  dim i as integer
  dim j as long
  dim oSearch
  Dim sRes  
  Dim sBlanks$
  j = 0
  'sBlanks = Chr$(9) & " " & Chr$(13) & Chr$(10) & " ,;."
  sBlanks = Chr$(9) & " "
  'sBlanks = " "
  For i = 1 To Len(sBlanks)
    oSearch = xDoc.createSearchDescriptor
    oSearch.SearchAll = true
    oSearch.SearchCaseSensitive = true
    oSearch.SearchString = mid(sBlanks, i, 1)
    xFound = xDoc.findAll(oSearch)
    j = j + xFound.Count
  Next
  j = nAllChars - j
  sRes = "Document contains " + str(nAllChars) + " characters and " + str(j) + _
    " non-blank characters."
  msgbox(sRes, 64, "Non-Blanks count")
end sub

</code>
Comment 22 dma2002 2008-02-18 16:10:54 UTC
Hi all,
this issue exists more than five years, since OOo 1.0.1. It seems not very hard
to fix it.

Counting characters without spacings is useful for translators: they can count
characters and decide, how much the translation costs. It's also useful for the
students, who study foreign language(s) and/or translation subjects (e.g.
technical translation). One of the tasks is to translate articles, which total
length is e.g. 20000 characters (without spacings).

We see five duplications and 10 votes, aehrlich wrote a workaround macro. Dear
developers, please consider to resolve this RFE ASAP. My opinion: in OOo 3.0
this RFE should be implemented.
Comment 23 tourelle 2009-06-10 16:56:16 UTC
It's a pity that I can't give all my votes for this issue. It is a single
obstacle for me to use OpenOffice.org in my everyday work. This feature is
essential for writers, journalists, teachers, students, translators, editors...
Maybe it is important for everyone who can use Writer but has to use MS Word
because of the lack of this feature. It's strange that this issue remains
unfixed and has very low priority.
Comment 24 bettina.haberer 2010-05-21 15:02:24 UTC
To grep the issues easier via "requirements" I put the issues currently lying on
my owner to the owner "requirements". 
Comment 25 gang65 2010-10-29 11:21:34 UTC
The additional variable (nCharWoSpace) should be added to SwDocStat
 struct: 
http://svn.services.openoffice.org/opengrok/xref/Current%20%28trunk%29/sw/inc/docstat.hxx

The layout must be updated:
http://svn.services.openoffice.org/opengrok/xref/Current%20%28trunk%29/sw/uiconfig/layout/wordcount.xml
Comment 26 vilnl 2010-10-29 11:37:47 UTC
The guys at LibreOffice already started implementing that feature and it seems that they are progressing 
well:

https://bugs.freedesktop.org/show_bug.cgi?id=30550
Comment 27 Raphael Bircher 2011-10-05 19:54:35 UTC
*** Issue 86452 has been marked as a duplicate of this issue. ***