php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #76111 Provide a way to retrieve a code point's Decomposition_Mapping property
Submitted: 2018-03-18 21:17 UTC Modified: 2018-03-22 23:56 UTC
From: paul dot crovella at gmail dot com Assigned: cmb (profile)
Status: Closed Package: intl (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2018-03-18 21:17 UTC] paul dot crovella at gmail dot com
Description:
------------
The difference between the Decomposition_Mapping property and decomposition via methods like NFKC normalization is that the latter decomposes characters recursively. It's useful in some situations to access the property directly (e.g. when implementing some PRECIS profiles[1].)

ICU exposes the Decomposition_Mapping property via unorm2_getRawDecomposition() when given a NFKC Normalizer2 instance.[2][3]

For example, given U+FFDA[4] it should return U+3161[5] rather than the full (recursive) decomposition to U+1173[6]


[1] https://tools.ietf.org/html/rfc8265#section-3.3.1
[2] http://userguide.icu-project.org/strings/properties
[3] http://icu-project.org/apiref/icu4c/unorm2_8h.html#a0551019637648af4638435d79f24be17
[4] http://www.fileformat.info/info/unicode/char/FFDA/index.htm
[5] http://www.fileformat.info/info/unicode/char/3161/index.htm
[6] http://www.fileformat.info/info/unicode/char/1173/index.htm


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-21 00:50 UTC] paul dot crovella at gmail dot com
PR for this is at https://github.com/php/php-src/pull/3189

(I tried adding it to the bug but the UI failed me.)
 [2018-03-22 23:56 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-03-22 23:56 UTC] cmb@php.net
> (I tried adding it to the bug but the UI failed me.)

See <https://bugs.php.net/76079>.

Since PR 3189 has been merged, this ticket can be closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC