Expand description

Text processing utilities

This module contains some utilities to enrich text with emojis. The basis of this module is the parse_alias function which takes emoji names (e.g. :crab:) and tries to look up the appropriate emoji (e.g. 🦀).

Based on the parse_alias function, the parse_text function takes an entire text and looks for such colon-fenced emoji names, which will then be translated into the Unicode equivalent, and the entire text, with the emojis replaced is returned.

Structs

Finds and replaces gemojis (:[a-z0-9_+-]+:) in text.

Functions

Parses the given Emoji name into a unicode Emoji.
Replaces all gemojis (:[a-z0-9_+-]+:) found in text with their Unicode equivalent.