Document, that the second part of a decompose() wouldn't decompose()

This is not directly documented in Unicode, or I couldn't find it,
but the test I just added confirms that it is currently the case.
This commit is contained in:
Behdad Esfahbod
2011-07-14 16:26:58 -04:00
parent f4cf6c3db0
commit 89a5d17d58
2 changed files with 23 additions and 0 deletions

View File

@@ -625,6 +625,13 @@ compose_hangul_step (gunichar a,
* If @ch is not decomposable, *@a is set to @ch and *@b
* is set to zero.
*
* Note that the way Unicode decomposition pairs are
* defined, it is guaranteed that @b would not decompose
* further, but @a may itself decompose. To get the full
* canonical decomposition for @ch, one would need to
* recursively call this function on @a. Or use
* g_unicode_canonical_decomposition().
*
* See <ulink url="http://unicode.org/reports/tr15/">UAX#15</ulink>
* for details.
*