[wp-trac] [WordPress Trac] #30966: Let's make word count better (master ticket)
WordPress Trac
noreply at wordpress.org
Thu Jun 11 21:55:45 UTC 2015
#30966: Let's make word count better (master ticket)
--------------------------+-------------------------
Reporter: iseulde | Owner: iseulde
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.3
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
--------------------------+-------------------------
Comment (by azaozz):
Replying to [comment:23 chriscct7]:
Yep, we can count multibyte chars (as "words") easily. The problem is
which multibyte chars to exclude (emoji, etc.) and how to make it as fast
as possible. A nested loop doesn't seem that fast, but some speed tests
would be needed anyway :)
Also, only certain multibyte char ranges should be counted as words. This
will make it possible to count "mixed" content, for example Chinese +
English in the same post.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30966#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list