[wp-trac] [WordPress Trac] #30966: Let's make word count better (master ticket)

WordPress Trac noreply at wordpress.org
Sat Jul 11 21:28:57 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 tenpura):

 Replying to [comment:27 iseulde]:
 > @helen, @Nao, so would certain characters be excluded from this count?
 Or would it just count every character? What about spaces? If it should
 work just like Twitter, it would include all that.

 For Japanese, every character matches to `[\S \u00A0\u3000]` shoud
 basically be counted. Please check out the
 [https://plugins.trac.wordpress.org/browser/wp-multibyte-
 patch/tags/2.3.1/js/word-count.js WP Multibyte Patch's word-count.js] for
 more details. There are some exceptions.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30966#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list