[wp-trac] Re: [WordPress Trac] #4807: Word Count
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 22 03:01:06 GMT 2008
#4807: Word Count
----------------------------+-----------------------------------------------
Reporter: mdawaffe | Owner: mdawaffe
Type: enhancement | Status: reopened
Priority: normal | Milestone: 2.5.1
Component: Administration | Version: 2.3
Severity: minor | Resolution:
Keywords: has-patch |
----------------------------+-----------------------------------------------
Comment (by azaozz):
Replying to [comment:34 michaelpark]:
> Hmmm, I think it's still counting punctuations as words.
Now it strips all characters except the letters and spaces before
counting. While typing, it still increases the count on every pressing of
the spacebar (as it did before), so the count would go higher if typing
numbers for example, but then it's corrected when pressing Enter or after
pressing Backspace.
It's not practical to re-count on every pressing of the spacebar as in
large posts with a lot of HTML tags on slower computers it would interfere
with the speed of typing.
The alternative would be to disable the increase of the count on pressing
the spacebar and to update it only on Enter and after Backspace (at the
end of each paragraph).
Also tried to make it remember the position of the last full re-count
(user pressed Enter), then count only the extra words after that on each
pressing of the spacebar (the current paragraph). That would make it more
accurate while typing, but if the user goes back and deletes some text,
then continues typing without triggering full re-count, it still would be
wrong. Can put this back in.
--
Ticket URL: <http://trac.wordpress.org/ticket/4807#comment:35>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list