问题描述
我在各种论坛上看到过类似下面这样的名为 Zalgo 的奇怪格式文本.看起来有点烦人,但它真的让我烦恼,因为它破坏了我对角色应该是什么的概念.我的理解是,角色应该水平移动穿过一条线并停留在某个容器"内.显然,Zalgo 文本是垂直移动的,似乎不受任何空间的限制.
I've seen weirdly formatted text called Zalgo like below written on various forums. It's kind of annoying to look at, but it really bothers me because it undermines my notion of what a character is supposed to be. My understanding is that a character is supposed to move horizontally across a line and stay within a certain "container". Obviously the Zalgo text is moving vertically and doesn't seem to be restricted to any space.
这是 Unicode 中的错误/缺陷/漏洞/攻击吗?这些个人角色是否具有奇怪的属性?这里发生了什么"?
Is this a bug/flaw/exploit/hack in Unicode? Are these individual characters with weird properties? "What" is happening here?
如何̸̤͓̞̫ͩͩ͑̋ͮͥͦ̊Z̆̊͊҉҉̠̦̩͕ą̟̹͈̺̹̋̅ͯĺ̡̘̹̻̩̩͋͘g̪͚͗ͬ͒o̢̢̖͇̬͍͇͓͈͙̔͋͊̓ͣ̏̿͐ͯ͠t̛͓̖̻ͤ̈ͣ͝e͋̄ͬ̽͜҉͚̭͇x͎̬̠͇̌ͤ̓̓͐͐͋͡ţ̗̹̝̮̗̩̳̄̌ͧͩ̾̕͢w͎̭̤͍͇̰̄͗ͭ͗ͮ̐o̢̯̻̰̼͕̾ͣͬ̽̔̍͟r̢̪͙͍̠ǩ̵̶̗̮̮ͪ?̙͉̥̬͙̟̮͕ͤ̌͗ͩ̕͡
H̡̫̤̤̣͉̤ͭ̓̓̇͗̎̀ơ̯̗̱̘̮͒̄̀̈ͤ̀͡w͓̲͙͖̥͉̹͋ͬ̊ͦ̂̀̚ ͎͉͖̌ͯͅͅd̳̘̿̃̔̏ͣ͂̉̕ŏ̖̙͋ͤ̊͗̓͟͜e͈͕̯̮̙̣͓͌ͭ̍̐̃͒s͙͔̺͇̗̱̿̊̇͞ ̸̤͓̞̱̫ͩͩ͑̋̀ͮͥͦ̊Z̆̊͊҉҉̠̱̦̩͕ą̟̹͈̺̹̋̅ͯĺ̡̘̹̻̩̩͋͘g̪͚͗ͬ͒o̢̖͇̬͍͇͓̔͋͊̓ ̢͈͙͂ͣ̏̿͐͂ͯ͠t̛͓̖̻̲ͤ̈ͣ͝e͋̄ͬ̽͜҉͚̭͇ͅx͎̬̠͇̌ͤ̓̂̓͐͐́͋͡ț̗̹̝̄̌̀ͧͩ̕͢ ̮̗̩̳̱̾w͎̭̤͍͇̰̄͗ͭ̃͗ͮ̐o̢̯̻̰̼͕̾ͣͬ̽̔̍͟ͅr̢̪͙͍̠̀ͅǩ̵̶̗̮̮ͪ́?̙͉̥̬͙̟̮͕ͤ̌͗ͩ̕͡
推荐答案
文本使用组合字符,也称为组合标记.请参阅在 Unicode 标准中组合字符的第 2.11 节em> (PDF).
The text uses combining characters, also known as combining marks. See section 2.11 of Combining Characters in the Unicode Standard (PDF).
在 Unicode 中,字符渲染不使用简单的字符单元模型,其中每个字形适合一个具有给定高度的框.组合标记可以呈现在基本字符的上方、下方或内部
In Unicode, character rendering does not use a simple character cell model where each glyph fits into a box with given height. Combining marks may be rendered above, below, or inside a base character
因此,假设渲染软件符合 Unicode 渲染模型,您可以轻松构建由基字符和组合上方"标记组成的任意长度的字符序列,以达到任何所需的视觉高度.这样的序列当然没有意义,即使是猴子也能产生它(例如,给定一个带有合适驱动程序的键盘).
So you can easily construct a character sequence, consisting of a base character and "combining above" marks, of any length, to reach any desired visual height, assuming that the rendering software conforms to the Unicode rendering model. Such a sequence has no meaning of course, and even a monkey could produce it (e.g., given a keyboard with suitable driver).
您可以混合使用组合上方"和组合下方"标记.
And you can mix "combining above" and "combining below" marks.
问题中的示例文本以:
- 拉丁文大写字母 H -
H
- 组合拉丁文小写字母 T -
ͭ
- 结合希腊克朗 -
̓
- 以上组合逗号 -
̓
- 以上结合点 -
̇
- LATIN CAPITAL LETTER H -
H
- COMBINING LATIN SMALL LETTER T -
ͭ
- COMBINING GREEK KORONIS -
̓
- COMBINING COMMA ABOVE -
̓
- COMBINING DOT ABOVE -
̇
这篇关于Zalgo 文本如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!