summaryrefslogtreecommitdiff
path: root/Doc/library/unicodedata.rst
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-17 00:24:54 +0000
committerGuido van Rossum <guido@python.org>2007-08-17 00:24:54 +0000
commitbffc872828a4bf2e38d3fc81f05dabc81841ca50 (patch)
tree942647135af77a4b0d5414d2367d54f6af1f3599 /Doc/library/unicodedata.rst
parentea306fc2c9cbba7c290f0ddd9bc4ca29546b2de1 (diff)
downloadcpython-bffc872828a4bf2e38d3fc81f05dabc81841ca50.tar.gz
Manually patched a few things that didn't get merged in, but should.
Diffstat (limited to 'Doc/library/unicodedata.rst')
-rw-r--r--Doc/library/unicodedata.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/unicodedata.rst b/Doc/library/unicodedata.rst
index 017d4ee785..ec788c5f06 100644
--- a/Doc/library/unicodedata.rst
+++ b/Doc/library/unicodedata.rst
@@ -107,7 +107,7 @@ the following functions:
based on the definition of canonical equivalence and compatibility equivalence.
In Unicode, several characters can be expressed in various way. For example, the
character U+00C7 (LATIN CAPITAL LETTER C WITH CEDILLA) can also be expressed as
- the sequence U+0043 (LATIN CAPITAL LETTER C) U+0327 (COMBINING CEDILLA).
+ the sequence U+0327 (COMBINING CEDILLA) U+0043 (LATIN CAPITAL LETTER C).
For each character, there are two normal forms: normal form C and normal form D.
Normal form D (NFD) is also known as canonical decomposition, and translates
@@ -126,6 +126,10 @@ the following functions:
(NFKC) first applies the compatibility decomposition, followed by the canonical
composition.
+ Even if two unicode strings are normalized and look the same to
+ a human reader, if one has combining characters and the other
+ doesn't, they may not compare equal.
+
.. versionadded:: 2.3
In addition, the module exposes the following constant: