Verbose Characters

Verbose characters allow you to enter any character by using its Unicode name. Rant will convert all verbose literals to their corresponding characters when the pattern is compiled.

All Unicode 9.0 characters are supported.

Syntax[link]

A verbose character can be entered using the following structure:

\@CHAR NAME@

The name is not case-sensitive, and spaces may be substituted for underscores or hyphens without consequence.

Usage[link]

A common usage of these literals is to type accented characters. For example, the ä character can be entered using the following:

\@LATIN SMALL LETTER A WITH DIAERESIS@

It can also be used with emoji:

\@THUMBS UP SIGN@
\@FACE WITH TEARS OF JOY@
\@OK HAND SIGN@

Procedural characters[link]

To enter characters procedurally, use the char function.

Character names[link]

There are many online resources for looking up Unicode character names. Here are a few you can use:

Comments