代码点后面组合变音符号的顺序重要吗?
我想知道在代码点之后组合变音符号的顺序是否会改变变音符号在字符上方或下方的堆叠方式;或者是否存在其他语义差异。
规范化是否指定某种方法来重新排序变音符号,例如加速字符串比较?
I wonder if the order in which combining diacritic marks appear after a codepoint changes the way how the diacritics should be stacked above or below the character; or if there is another semantic difference.
Does normalization specify some way to reorder diacritics, e. g. to speed up String comparison?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据这篇维基百科文章,组合字符的顺序在某些情况下是相关的,并且应该按照其他情况下指定的方式进行规范化。
具体而言,必须保留具有相同组合类的字符的组合顺序(即相关的),而字符组必须按其组合类排序。
According to this Wikipedia article the order of combining characters is relevant in some cases and should be normalized as specified in other cases.
Concretely the order of combining characters with the same combining class must be preserved (i.e. it is relevant), while the groups of characters must be sorted by their combining class.
是的,这很重要,而且必须如此才能使某些情况明确:
正常形式 D:
U
, U+0308, U+0304 ->范式 C U+01D6 带分音符号和长符号的拉丁文小写字母 Uǖ
范式 D:
U
, U+0304, U+0308 ->正常形式 C U+1E7B 带长符号和分音符号的拉丁文小写字母 Uṻ
一般来说,在组合类中,您从靠近字母开始,然后远离它。
Yes, it's important, and it has to be in order to make some cases unambiguous:
Normal form D:
U
, U+0308, U+0304 -> Normal form C U+01D6 Latin Small Letter U With Diaeresis And Macronǖ
Normal form D:
U
, U+0304, U+0308 -> Normal form C U+1E7B Latin Small Letter U With Macron And Diaeresisṻ
In general within a combining class you start closer to the letter and work away from it.