Re: [charmod-norm] Normalisation for Case-Insensitive Comparison (#172)

Chapter 5 Implementation Guidelines, section 18 Case Mappings, page #240:
> Normalization also interacts with case folding. For any string X, let Q(X) = NFC(toCasefold(NFD(X))). In other words, Q(X) is the result of normalizing X, then case folding the result, then putting the result into Normalization Form NFC format. Because of the way normalization and case folding are defined, Q(Q(X)) = Q(X). Repeatedly applying Q does not change the result; case folding is closed under canonical normalization for either Normalization Form NFC or NFD.
>
> Case folding is not, however, closed under compatibility normalization for either Normalization Form NFKD or NFKC. That is, given R(X) = NFKC(toCasefold(NFD(X))), there are some strings such that R(R(X)) ≠ R(X).

So you are fine.

-- 
GitHub Notification of comment by indolering
Please view or discuss this issue at https://github.com/w3c/charmod-norm/issues/172#issuecomment-727498180 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 15 November 2020 04:40:31 UTC