gpt4 book ai didi

unicode - Unicode 中可能的组合字符序列

转载 作者:行者123 更新时间:2023-12-05 01:32:35 42 4
gpt4 key购买 nike

有些字符不包含在 Unicode 中(即带重音的西里尔字母),但可以使用组合序列创建。据我了解,可能的组合字符序列是在布局引擎和/或使用的字体中定义的。我对吗?那么,如何得到所有可能的组合序列呢?

最佳答案

您是正确的,尝试创建任意组合序列对于布局引擎和字体的组合可能会失败。这个问题的解决方案超出了 Unicode 标准的范围。

来自 Unicode 6.2 , chapter 2 :

All combining characters can be applied to any base character and can, in principle, be used with any script. As with other characters, the allocation of a combining character to one block or another identifies only its primary usage; it is not intended to define or limit the range of characters to which it may be applied. In the Unicode Standard, all sequences of character codes are permitted.

This does not create an obligation on implementations to support all possible combinations equally well. Thus, while application of an Arabic annotation mark to a Han character or a Devanagari consonant is permitted, it is unlikely to be supported well in rendering or to make much sense.

关于unicode - Unicode 中可能的组合字符序列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14438785/

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com