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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: paul dot crovella at gmail dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Mon Apr 15 03:01:28 2024 UTC