Fri Sep 25, 2020 6:26 am
Hello,
Thank you for your further clarification.
I did notice that using "paragraph.getWordCount()" doesn't get the correct word count when the text in the paragraph is in Japanese. This issue has been logged in our bug tracking system with the ticket SPIREDOC-5001. If there is any update, we will let you know. Also, to ensure that the fix of the issue can work perfectly for your file in the future, please share your file with us if possible.
Moreover, for Japanese, a character is a word, so if the text in a paragraph is all in Japanese, you can refer to the code I provided earlier to get the word count.
Sincerely,
Rachel
E-iceblue support team