【发布时间】:2021-06-04 09:03:50
【问题描述】:
Unicode 是否定义了与任何/某些表情符号(例如“Emoji Space”)具有相同宽度的空白字符(例如“Em Space”或“En Space”)?如果有,是哪一个?
我希望能够格式化包含表情符号的固定宽度字体纯文本表(CI 报告电子邮件)。它们似乎无法与常规空间或我尝试过的任何其他空间对齐(比较“x86_64”、“arm”和“mips”行):
Status
❌ 13 / 733 builds FAILED
Architectures
x86_64 ✅ 82 ❓ 4
aarch64 ✅ 6
ppc64le ✅ 5
s390x ✅ 5
mips ❌ 9 ✅ 77
arm64 ✅ 73
arm ❌ 4 ✅ 282 ❓ 4
i386 ✅ 30
sparc ✅ 9
riscv ✅ 33
arc ✅ 10
s390 ✅ 21
powerpc ✅ 52
sh ✅ 18
parisc ✅ 9
将 VS16 应用于空格/字母,或将 VS15 应用于表情符号,在很大程度上不起作用(在 Firefox、Chrome 和 Thunderbird 中):
| |
|❌︎✅︎❓︎|
| ️ ️ ️|
|❌✅❓|
【问题讨论】:
-
这是一个方便的“Zs”类别代码点列表:compart.com/en/unicode/category/Zs 但我不确定表情符号的宽度是如何或是否相对于其中任何一个定义的。