Welcome to Geeklog, Anonymous Thursday, December 26 2024 @ 02:55 pm EST
Geeklog Forums
Word Count error in Chinese
Status: offline
samstone
Forum User
Full Member
Registered: 09/29/02
Posts: 820
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
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
12
13
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The word count is rather primitive:
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
Text Formatted Code
$numwords = sizeof( explode( ' ', $A['bodytext'] ));I have no idea what the convention for Chinese would be ...
bye, Dirk
14
12
Quote
All times are EST. The time is now 02:55 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content