What does "Count Words" count?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
ckabstein
Posts: 152
Joined: Fri Apr 24, 2015 12:28 pm

What does "Count Words" count?

Post 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
Radu
Posts: 9449
Joined: Fri Jul 09, 2004 5:18 pm

Re: What does "Count Words" count?

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ckabstein
Posts: 152
Joined: Fri Apr 24, 2015 12:28 pm

Re: What does "Count Words" count?

Post 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
Radu
Posts: 9449
Joined: Fri Jul 09, 2004 5:18 pm

Re: What does "Count Words" count?

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9449
Joined: Fri Jul 09, 2004 5:18 pm

Re: What does "Count Words" count?

Post by Radu »

Hi,

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply