在 iOS 中重新创建类似 Siri 的弯引号
我不确定他们是否使用图像或是否是某种文本转换,但苹果如何实现 Siri 响应中的卷曲引号样式?当我尝试用常规引号重新创建它时,我得到的是常规引号。
I'm not sure if they use an image or if it's some kind of text transformation, but how does apple achieve the curly quote style found in Siri responses? When I attempt to recreate it with regular quotes I get just that, regular quotes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

看起来他们正在使用 UNICODE“左双引号”和“右双引号”标记 - 代码点 U+201C (“) 和 U+201D (”)。您可以将它们直接嵌入到源代码中(有关如何输入它们的信息,请参阅 wikipedia)。
您也可以使用十六进制转义将它们嵌入为 UTF-8 序列:
It looks like they are using the UNICODE "Left Double Quotation" and "Right Double Quotation" marks -- code point U+201C (“) and U+201D (”). You can embed them directly into your source (see wikipedia for how to type them).
You can embed them as UTF-8 sequences using hex escapes as well: