[wp-trac] [WordPress Trac] #8759: Word count function doesn't work in several languages
WordPress Trac
wp-trac at lists.automattic.com
Thu May 3 15:54:36 UTC 2012
#8759: Word count function doesn't work in several languages
-------------------------------------+-----------------------
Reporter: jim912 | Owner: nacin
Type: task (blessed) | Status: accepted
Priority: low | Milestone: 3.4
Component: I18N | Version: 2.7
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+-----------------------
Comment (by tenpura):
Replying to [comment:39 nacin]:
> Replying to [comment:35 tenpura]:
> > In [attachment:8759.2.diff], I added space character counting
capability to word-count.dev.js because it seems necessary.
>
> Could you explain that?
What we (Japanese) need is simple mb_strlen() like character counting
(with the functionality to remove spaces that web browsers ignore when
rendering HTML). Thus [attachment:8759.2.diff] counts "a b c " as 5
characters. In contrast, [attachment:8759.diff] counts "a b c " as 3
characters which is far different from what we expected and useless.
I noticed that sirzooro's needs seem exactly the same as ours (his
language is not East Asian's, is it?). For that reason,
[attachment:8759.2.diff]'s character counting method should be called
something like "general character counting" rather than "East Asian's" to
avoid confusion.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8759#comment:44>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list