How can users perform a map word count?
You can create an index to perform a word count.
Description
You can add an index to display the Word Count column in the Search Results view, then run a search on all topics in the map and export the results to Excel.
Solution
In the TEXTML Administration perspective, perform the
following:
- Edit the Index Definition file.CAUTION: Be careful when editing the Index Definition document. Changes can significantly affect the indexing process, and any errors in the document can lead to data corruption or other errors.
- Add the following index if it does not already exist:
<index NAME="wordCount" SYNC="True"> <numericindex KEEPEXTRACTEDVALUES="True"> <integerindexproperties/> <elements> <element DEPTH="0" XPATH="string-length(normalize-space(string(/))) - string-length(replace(normalize-space(string(/)), ' ', ''))" /> </elements> </numericindex> </index>
- In the
summaries
section, add the following to the<fieldlist>
:<field NAME="wordCount" TYPE="Index" VALUE="All"/>
- To add the index to the Search Results view, edit the system/conf/display.xml file and add the
following:
<key halign="LEFT" label="Word Count" name="wordCount" sortOrder="ASC" sortType="NUMERIC" type="Index" visibility="255" width="30"/>
- When the indexing is complete, restart your IXIA CCMS Desktop.
- Open the map in DITA Map view.
- Perform a search for all topics in the map using the Limit To Dependencies of DITA Map view option.
- Export the results.
- In Excel, use the SUM function to add the word counts of each topic.