Map ASCII to unicode homoglyphs
Perl6
Latest commit 2e6843d Oct 27, 2015 @MattOates Initial commit
Permalink
Failed to load latest commit information.
lib/Text Initial commit Oct 26, 2015
t Initial commit Oct 26, 2015
LICENSE Initial commit Oct 26, 2015
META.info Initial commit Oct 26, 2015
README.md Initial commit Oct 26, 2015

README.md

Text::Homoglyph

Perl6 package for mapping ASCII characters to unicode homoglyphs (similar looking characters)

Data

The data was pinched and modified from the super evil https://github.com/reinderien/mimic Several gaps were filled in with http://shapecatcher.com please feel free to extend and improve the character mapping. Some obvious improvements can be made by completing full ranges like the maths letters. More work needs to be done on curating the "best" looking unicode homoglyph as the first in the list.

N.b. the very first character returned is the ASCII character

Example Use

#!/usr/bin/env perl6
use v6;

use Text::Homoglyph;

say "Woohoo this is some nice text".comb.map({(rand > 0.8)?? $_ !! homoglyphs($_)[1] }).join;

Ꮃοοһοo 𝗍һiѕ іs ѕοⅿе niϲе 𝗍eх𝗍