source-foundry/Hack

Viewing invisible special purpose characters while coding

Open

#196 aberto em 21 de abr. de 2016

Ver no GitHub
 (7 comments) (0 reactions) (0 assignees)Shell (656 forks)batch import
Character SetContribute!enhancementhelp wanted

Métricas do repositório

Stars
 (17.238 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Providing a distinct symbol for each invisible character (BOM, Combining Grapheme Joiner, Left-to-right mark / Right-to-left mark, Soft hyphen Word joiner, Zero-width joiner, Zero-width non-joiner, Zero-width space) is really useful while creating UI and processing text. (https://en.wikipedia.org/wiki/Universal_Character_Set_characters#Special-purpose_characters)

https://www.microsoft.com/typography/otfntdev/glyphs.htm https://commons.wikimedia.org/wiki/Category:IEC_60417_symbols

When you are coding you want to see such characters. They are needed to be invisible only for the end-users. Similar to clicking on ¶ when you are authoring a document in MS word or other text-editors.

For example, copy and run this in js console: ‍‍"OK"=="O‌K". It returns false. Do you know why? The advantages of being able to see theses invisible characters are specially clear for me and whose their writing system use such characters frequently (Persian, German, Hebrew, …).

There are not many invisible special purpose characters. these should be enough to be included: bgh2t 1

Guia do colaborador