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.
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...
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.
No code pointers, no easy hack. Please reassign if you want, Izabella.
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.
*** Bug 123333 has been marked as a duplicate of this bug. ***