Page 1 of 1

What does "Count Words" count?

Posted: Fri Apr 24, 2015 12:53 pm
by ckabstein
Hi,
I'm currently evaluating Oxygen XML Editor 16.1 and was wondering what the "Count Words" feature actually counts. I was hoping that it counts only the text, but it seems that it counts everything in the XML. I did a test run with a text that has 23 words, and "Count Words" output 87 words. That can't be. :?

Is there also a way to count all words in a DITAMAP? We would need this for localization purposes.

Thanks,
Christina

Re: What does "Count Words" count?

Posted: Fri Apr 24, 2015 1:50 pm
by Radu
Hi Christina,

Could you possibly paste the content of the sample DITA topic you tested with?
I tested on a small topic and it worked for me.
If you want this statistics on a DITA Map, if you open the DITA Map in the DITA Maps Manager view, then use the "Configure transformation scenario" button and you will find a scenario called DITA Map Metrics Report in the list. After you run it, it should report various map-wide statistics.

Regards,
Radu

Re: What does "Count Words" count?

Posted: Fri Apr 24, 2015 4:39 pm
by ckabstein
Hi Radu,

it made me wonder that it worked on your side, so I rechecked my file.

I found that the document contains processing instructions from FrameMaker that were added to the sum of counted words. When I deleted them from the file, I got the correct result. It seems that we must take out all of the processing instructions before we switch programs.

Thank you very much for pointing me to the DITA MAP Metrics Report. This is awesome.

Best regards,
Christina

Re: What does "Count Words" count?

Posted: Mon Apr 27, 2015 9:26 am
by Radu
Hi Christina,
I found that the document contains processing instructions from FrameMaker that were added to the sum of counted words. When I deleted them from the file, I got the correct result.
I will add an improvement request to avoiding counting words which are inside comments and processing instructions.
Thank you very much for pointing me to the DITA MAP Metrics Report.
Yes, it's a feature which we need to promote more. If you use it and have feedback about various improvements which could be made to it, please tell us.

Regards,
Radu

Re: What does "Count Words" count?

Posted: Wed May 04, 2016 3:18 pm
by Radu
Hi,

Just to update this thread, this issue should be fixed in Oxygen 18.0.

Regards,
Radu