1 unstable release

0.1.0 Aug 19, 2023

#1029 in Text processing

Download history 13/week @ 2024-02-24 1/week @ 2024-03-02 15/week @ 2024-03-30 1/week @ 2024-04-06 85/week @ 2024-04-27

86 downloads per month

MIT license

9KB
163 lines

zalgo-text

A command-line tool that help convert input string to glitched text, which also known as zalgo text.

Usage

I believe this tool can be used to generate zalgo-text test cases for any application with text rendering support. For example, terminal emulator, browser or other GUI application.

> zalgo-text "hello,world"
> h͖̫̍̂ͫe̶̞ͩ̈̎l͇͚ͯ̐ͫl̫̘̘̓͊o͉̐ͭ́͛,͓̓͏̥͝w̱̭ͨ͊̂o̠̬ͣ͡ͅŗͬͮ̇͡l̵̦̼̫ͣd̨̜̥͆͗
Usage: zalgo-text [OPTIONS] <TEXT>

Arguments:
  <TEXT>

Options:
  -n, --num <NUM>   mark num [default: 6]
      --extend      use extend marks
      --supplement  use supplement marks
      --symbol      use symbol marks
      --half        use half marks
  -h, --help        Print help
  -V, --version     Print version

Motiviation

I was inspired by this tweet post https://twitter.com/geekbb/status/1691815679618367752.

How it works

Use Unicode combining characters.

Dependencies

~1.4–2MB
~38K SLoC