Expand description
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.
An example to create a modified string with Zalgo text only above the string with a high amount of Zalgo text is:
use zalgo::{Generator, GeneratorArgs, ZalgoSize};
let mut generator = Generator::new();
let mut out = String::new();
let args = GeneratorArgs::new(true, false, false, ZalgoSize::Maxi);
let result = generator.gen("my string", &mut out, &args);
Structs§
- A generator to perform zalgo operations.
- Arguments to provide to
Generator::gen
andGenerator::simple_gen
.
Enums§
- A definition of the character type to be used for retrieval.
- The size of the Zalgo text within the string to produce.
Statics§
- Denotes characters to be used in the “bottom” part of text.
- Denotes characters to be used in the “middle” part of text.
- Denotes characters to be used in the “upper” part of text.
Functions§
- Produces a
Vec
of the combined kinds of Zalgochar
s. This is all of thechar
s used to create a generated ZalgoString
. - Determines whether a given
char
is aZalgo
char
. This is checked by checking if a combination of the defined Zalgochar
s contains the givenchar
.