Page 1 of 1
Word counts including draft-comment
Posted: Wed Jan 23, 2019 12:38 am
by bburns
We have significant constraints on content length. One of our authors noticed that the word-count utility includes all words in a topic, including draft-comments. Is there any way to control this? It seems that draft-comments should be excluded from word counts.
Thanks,
Re: Word counts including draft-comment
Posted: Wed Jan 23, 2019 1:27 pm
by sorin_carbunaru
Hello,
You can go to the
Styles toolbar button, open the drop down menu, and select
+ Hide draft comments. Then the action will only count the words of the remaining text. And, as a general rule, you can always add some alternate styles to hide every element that bothers you. You can read more about this at
https://www.oxygenxml.com/doc/versions/ ... tyles.html.
All the best wishes,
Sorin Carbunaru
oXygen XML
Re: Word counts including draft-comment
Posted: Wed Jan 23, 2019 11:02 pm
by bburns
That seems to work with Oxygen 20.1 but not with 17.1.
Re: Word counts including draft-comment
Posted: Thu Jan 24, 2019 10:05 am
by sorin_carbunaru
Oh, yes, I can confirm this improvement has been made starting with oXygen 18.
If writing code sounds like an acceptable idea, you could develop your own custom Author operation (
https://www.oxygenxml.com/doc/versions/ ... HowTo.html) or maybe create an Author action based on JSOperation (
https://www.oxygenxml.com/doc/versions/ ... tions.html).
Sorin C.
Re: Word counts including draft-comment
Posted: Thu Jan 24, 2019 8:38 pm
by bburns
That's okay. I'm no developer, and we won't need to have the fix in place for 17.1. That's just the version our content developers are currently testing.