Text¶
This module provides utilities to deal with text.
- brownie.text.transliterate(string, length='long')[source]¶
Returns a transliterated version of the given unicode string.
By specifying length you can specify how many characters are used for a replacement:
- long
- Use as many characters as needed to make a natural replacement.
- short
- Use as few characters as possible to make a replacement.
- one
- Use only one character to make a replacement. If a character cannot be transliterated with a single character replace it with ‘?’.
If available translitcodec is used, which provides more natural results.