SimpleMobileTools / Simple-Notes

A simple textfield for adding quick notes without ads.
https://www.simplemobiletools.com
GNU General Public License v3.0
825 stars 271 forks source link

"Show word count" is not quite useful for Chinese and Japanese #700

Open Explorer09 opened 10 months ago

Explorer09 commented 10 months ago

The "Show word count" is not quite useful is not quite useful in languages such as Chinese and Japanese, where ASCII spaces (U+0020) are seldom used in delimiting words. It might be useful for Korean, but I can't say that for sure as I don't use Korean regularly in my life (I'm from Taiwan, by the way).

In Chinese the words are not delimited in spaces. In most Chinese writing, we are more interested in character counts rather than word counts.

Japanese seldom delimits words in spaces, but when it does, certain characters might be used in place of spaces. The most common are U+3000 (Ideographic Space) and U+30FB (Katakana Middle Dot).

The above are the overall usability issues with the word count feature. The technical issues are as follows:


Test text:

ブレス・オフ・ザ・ワイルド(U+30FB_KatakanaMiddleDot)
ブレス オフ ザ ワイルド(U+3000_IdeographicSpace)
브레스 오브 더 와일드

Actual result: 6 Expected result: I don't know, maybe 9

20231029_161246 (Screenshot taken with Simple Notes 6.17.0)

Aga-C commented 10 months ago

It's a duplicate of https://github.com/SimpleMobileTools/Simple-Notes/issues/357.

Explorer09 commented 10 months ago

@Aga-C Not quite a duplicate. There are multiple issues in my report. Besides, mine focuses on the usability of the whole feature.