Crate zalgo [] [src]

A library for easily creating modifications of text with Zalgo characters.

What is Zalgo?

Zalgo is an Internet legend about an ominous entity believed to cause insanity, death and destruction of the world, similar to the creature Cthulhu created by H.P. Lovecraft in the 1920s. Zalgo is often associated with scrambled text on webpages and photos of people whose eyes and mouth have been covered in black.

-- knowyourmeme

An example to create a modified string with Zalgo text only above the string with a high amount of Zalgo text is:

use zalgo::ZalgoSize;

let result = zalgo::gen("my string", true, false, false, ZalgoSize::Maxi);

Enums

ZalgoKind

A definition of the character type to be used for retrieval.

ZalgoSize

The size of the Zalgo text within the string to produce.

Functions

all

Produces a Vec of the combined kinds of Zalgo chars. This is all of the chars used to create a generated Zalgo String.

chars

Returns a Vec of Zalgo chars depending on the value of the given ZalgoKind. Each type has its own set of chars to be used.

gen

Generates a String containing Zalgo text. This is customizable via defining whether to include Zalgo text above the given string, in the middle of it, and below it.

is_zalgo

Determines whether a given char is a Zalgo char. This is checked by checking if a combination of the defined Zalgo chars contains the given char.