How does Zalgo text work?

前端 未结 2 1686
野的像风
野的像风 2020-11-22 10:52

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 not

2条回答
  •  不思量自难忘°
    2020-11-22 11:17

    The text uses combining characters, also known as combining marks. See section 2.11 of Combining Characters in the Unicode Standard (PDF).

    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

    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.

    The sample text in the question starts with:

    • LATIN CAPITAL LETTER H - H
    • COMBINING LATIN SMALL LETTER T - ͭ
    • COMBINING GREEK KORONIS - ̓
    • COMBINING COMMA ABOVE - ̓
    • COMBINING DOT ABOVE - ̇

提交回复
热议问题