gpt4 book ai didi

unicode - Unicode 标准中的颜色?

转载 作者:行者123 更新时间:2023-12-03 08:48:35 30 4
gpt4 key购买 nike

Unicode 6.0 添加了几个带有描述的字符,表明这些字符应该以特定颜色呈现:

  • 红苹果 U+1F34E
  • 青苹果 U+1F34F
  • 蓝心U+1F499
  • 绿心U+1F49A
  • 黄心U+1F49B
  • 紫心U+1F49C
  • 绿皮书U+1F4D7
  • 蓝皮书 U+1F4D8
  • 橙皮书 U+1F4D9
  • 大红圈 U+1F534
  • 大蓝圈 U+1F535
  • 大号橙色钻石 U+1F536
  • 大号蓝钻 U+1F537
  • 小橙钻 U+1F538
  • 小蓝钻 U+1F539
  • 上指红色三角形 U+1F53A
  • 下指红色三角形 U+1F53B
  • 上指小红三角U+1F53C
  • 下置小红三角U+1F53D

  • 我原以为字体符号总是灰度的。

    unicode 作者是否预见到这些可能会以不同的颜色呈现?
    在 unicode.org 官方 PDF ( http://www.unicode.org/charts/PDF/U1F300.pdf ) 中,这些仅被描述为具有不同类型的剖面线。

    当前是否有任何机制允许特定字符以特定颜色呈现,仅基于其代码点,而不是任何其他富文本格式? (例如,TrueType 或 OpenType 字体文件中的颜色属性)

    最佳答案

    来自 Unicode FAQ: Emoji and Dingbats ,加粗我的:

    Q: What about characters whose name specifies a color?

    A: Some of the characters from the core emoji sets have names that include a color term, for example, BLUE HEART or ORANGE BOOK. These color terms in the names do not imply any requirement about how a character must be presented; they are intended only to help identify the corresponding character in the core emoji sets. Even names of symbols such as BLACK MEDIUM SQUARE or WHITE MEDIUM SQUARE are not meant to indicate that the corresponding character must be presented in black or white, respectively; rather, the use of black and white is generally just to contrast filled versus outline shapes, or a darker color fill versus a lighter color fill. [PE]



    关于 mailing lists 的争论颇多。当时关于这些是否应该用颜色命名,或者不引用颜色的通用名称,以及这是否开创了一个不好的先例。 Emoji Symbols: Background Data包括“旧名称”,例如 APPLE-1 而不是 RED APPLE 和 BOOK-3 而不是 ORANGE BOOK。

    最终的名字使用这个原则:

    Symbols with an inherent color shall bear this color in their name unless the entity denoted by the name has identifies the color anyway (e.g., a BANANA is uniquely yellow and therefore does not need to be called YELLOW BANANA, while a RED APPLE must be named so as there are also green apples).

    关于unicode - Unicode 标准中的颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9626115/

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