tonesandtones / UnicodeHover

Hover over a Unicode escape in VS Code to see the glyph of the character, its description and a link to its webpage!
MIT License
0 stars 0 forks source link

UnicodeHover

Demo of UnicodeHover

CircleCI

UnicodeHover lets you see a glyph of the character represented by a Unicode escape. Let's say you have a regex to remove all non-printable characters, such as DEL.

unprintables = re.compile(r"[\u0000-\u001f]")

Or perhaps your coworkers don't have the necessary fonts to display glyphs and have used escapes so that their editors don't show them mojibake or � (U+FFFD).

Maybe your favourite language doesn't even support Unicode literals in source files after a certain version (looking at you, Haskell) so you have to represent them with an escape.

In any case, it would be handy to immediately have information on the characters being processed instead of, e.g., going to an external website and searching for the codepoint.

Usage/Features

Simply place your cursor over the escape sequence and a panel will hover over it, showing you the glyph in question.

Requirements

Known Issues

Pull requests (in particular for new languages) are welcome.

Release Notes

See the changelog.

Data sources

The data for this project were taken from the Unicode Consortium's Unicode Data collection. The data follows their licensing (cf.: terms of use).

The pronunciations for Tangut are from Tangut database v4.0 and are the work of Marc Miyake, used here with his permission.

License

This extension is intended to be used by any- and everyone. It uses the MIT License.

About the icon

The character in the icon is U+1234 ETHIOPIC SYLLABLE SEE, which is part of the Geʽez script used for several Ethiopic languages, in particular Amharic. Although SEE is most likely pronounced seː, it represents the idea that you can "see" glyphs as easily as 1, 2, 3(, 4). It also just looks pretty!

Thanks to Misato Inoue for design help with the icon!