[wp-trac] [WordPress Trac] #30130: Normalize characters with combining marks to precomposed characters
WordPress Trac
noreply at wordpress.org
Mon Dec 7 17:02:24 UTC 2015
#30130: Normalize characters with combining marks to precomposed characters
--------------------------------------+-----------------------------
Reporter: zodiac1978 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: dev-feedback needs-patch | Focuses:
--------------------------------------+-----------------------------
Changes (by swissspidy):
* keywords: has-patch dev-feedback => dev-feedback needs-patch
Comment:
As discussed during contributor day, it totally makes sense to normalize
such strings on post save (and the patch does that well).
However, from a UX perspective we definitely need to do this in JavaScript
as well. Otherwise you'll paste the messed up text and correct it by hand
without knowing that WordPress will fix it for you. See comment
[comment:18].
Luckily, there's a new `normalize()` method in the ECMAScript 2016 (ES6)
standard we can leverage. It's supported by Chrome, Firefox, Opera and IE
(11+). See https://developer.mozilla.org/en-
US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize for
details.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30130#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list