[wp-trac] [WordPress Trac] #16079: Automatic extracts don't work well with Chinese txt (word counting)
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 2 20:17:43 UTC 2011
#16079: Automatic extracts don't work well with Chinese txt (word counting)
--------------------------+-----------------------------
Reporter: houshuang | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: 3.0.4
Severity: normal | Keywords:
--------------------------+-----------------------------
I use the twentyten template on my Chinese blog
(http://reganmian.net/boke). For search and category pages, it lists
unpredictable amounts of texts for the automated extracts, it seems to me
that this is due to the way it counts "words". For example, setting the
number of words to 3 (adding a filter in the functions.php of the
template), cause two different posts to display widely varying lengths of
extracts. I believe this is because the way the_extract function counts
words does not work well with Chinese, which is written without spaces.
Perhaps offer an option to revert to counting (unicode) characters in this
case.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16079>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list