Posted on: 04/04/04 12:57am
By: samstone
Someone asked me to setup a Chinese site and the word counts are wrong. It seems that the whole sentence is counted as one, so it shows only 3 words, while there were actually a whole page more.
One option is for me to remove the word count function after the Read More link in lib-common.php. But I just want to post it here to find out if there is any way to fix it to count it right?
Sam
Word Count error in Chinese
Posted on: 04/04/04 04:10am
By: Dirk
The word count is rather primitive:
$numwords = sizeof( explode( ' ', $A['bodytext'] ));
i.e. it considers everything that's separated by a space to be a word.
I have no idea what the convention for Chinese would be ...
bye, Dirk