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

WordPress Trac noreply at wordpress.org
Thu Jul 16 09:50:11 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 iseulde):

 To do:

 * Exclude astral unicode blocks that contain punctuation and symbols. The
 most important one is emoji.
 * Exclude shortcodes.
 * Exclude text inside certain HTML tags like `<pre><code>` (or `<code>` in
 general?) and maybe `<form>`? `<script>` can also be use by admins and
 should also be excluded.
 * Any HTML entities that should be replaced?
 * Make sure astrals are counted as one character. In JavaScript the
 `length` of an astral character is two.
 * Figure out how a mix of languages should be counted (but most likely
 wontfix).

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


More information about the wp-trac mailing list