View on GitHub

check-spelling-docs

Documentation for check-spelling

Flag homoglyphs in words

Background

People often replace c with с (especially because of a certain keyboard layout where they're on the same key but using a different shift-state).

One problem with this is that homoglyphs result in search failures.

Goals

Ideally users should be able to configure a set of homoglyphs, e.g. based on codebox/homoglyph: chars.txt and when check-spelling encounters the homoglyph, it could check to see if the word would be in the dictionary if it were the "proper" character and only flag in that case, thus allowing a purely Cyrillic word собака (if there's Cyrillic dictionary + Cyrillic recognized characters) and not flagging some Cyrillic if it isn't a substitution, but flagging сypher as a homoglyph-substitution for cypher.

Configuration

As of v0.0.26, you should be able to use this feature and control it using check-homoglyphs.

A file homoglyph.list can be used to configure characters and known homoglyphs.

Note that if two characters list the same homoglyph, check-spelling will not be able to reason through it. A future version may handle this case better. No warnings will be provided.


FAQ | Showcase | Event descriptions | Configuration information | Known Issues | Possible features | Deprecations | Release notes | Helpful scripts