Bug 123083 - Improve word count workflow
Summary: Improve word count workflow
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Hardware: All All
: medium enhancement
Assignee: Not Assigned
Keywords: difficultyInteresting, easyHack, needsDevEval, skillCpp, topicUI
: 123333 (view as bug list)
Depends on:
Blocks: Word-Count
  Show dependency treegraph
Reported: 2019-01-31 10:07 UTC by Heiko Tietze
Modified: 2020-03-17 09:47 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Tietze 2019-01-31 10:07:43 UTC
The request was raised on Twitter (https://twitter.com/sfmnemonic/status/1083379610035896323) to improve the word count in Writer. We have <n> words, <m> characters currently either for all text or the selection. On click the dialog shows some more info. 

Sounds sufficient to me, in particular with the selection forward/backward the current position, and I would resolve the request as WFM. However the code is simple and enhancements would be possible as easy hacks.
Comment 1 Heiko Tietze 2019-02-02 12:35:07 UTC
In the first step we should count the words/characters before and after the cursor and show this information at the dialog. The second step with be to provide an option to switch between the different variants, perhaps per radio button in the dialog.

Bjoern offered mentoring...
Comment 2 Heiko Tietze 2019-03-13 09:09:13 UTC
Bjoern, could you please add a few code pointers to allow Izabella to start? I jump in with pleasure when in comes to the UI.
Comment 3 Heiko Tietze 2019-06-19 12:54:10 UTC
No code pointers, no easy hack. Please reassign if you want, Izabella.
Comment 4 Heiko Tietze 2019-09-05 08:24:44 UTC
The dialog is implemented in sw/source/ui/dialog/wordcountdialog.cxx. Values are taken from SwDocStat (sw/source/core/doc/docstat.cxx) updated probably per SwDoc::CountWords() but since CountWords has several implementations I'm not sure here. Expert knowledge needed, Bjoern.
Comment 5 Heiko Tietze 2020-02-03 11:02:15 UTC
*** Bug 123333 has been marked as a duplicate of this bug. ***