Try it here: gogos.me/editor
editor
is a static html page which uses codemirror
and javascript to help you with greek text.
editor
was created for some friends who were working on some old Microsoft Word files which had issues regarding Greek (wrong symbols for punctuation, greek words with latin characters inside etc...) and this text had to be fixed before being added to a database.
The idea was to copy-paste a piece of text and "visually" be able to check if there are problems. Green color for Greek
/ yellow for Greek-extended
meant that you were probably OK, red color meant that you might had to correct some characters.
The big number of badly-used characters also led us to the creation of functions that do batch replacements/fixes, so there you have it!
In 2025, I bumped into the term "confusables", which describes part of the problem that we were trying to solve. Unicode.org provides a relative utility here: Unicode Utilities: Confusables
Confusable characters are those that may be confused with others (in some common UI fonts), such as the Latin letter "o" and the Greek letter omicron "ฮฟ". Fonts make a difference: for example, the Hebrew character "ืก" looks confusingly similar to "o" in some fonts (such as Arial Hebrew), but not in others. See also unaccented Latin Characters.. The data for confusables and restrictions is from UTS39.
Go check what's inside this js file. All the "magic" is there!