Map ASCII to unicode homoglyphs
Switch branches/tags
Nothing to show
Latest commit b6f2c2c Apr 20, 2017 @MattOates committed on GitHub Update META6.json
Change to accept any future version of 6.*
Failed to load latest commit information.
lib/Text Initial commit Oct 26, 2015
t Update `done` to `done-testing` Nov 13, 2016
.travis.yml Add Travis-CI configuration Nov 13, 2016
LICENSE Initial commit Oct 26, 2015
META6.json Update META6.json Apr 20, 2017 Initial commit Oct 26, 2015


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


The data was pinched and modified from the super evil Several gaps were filled in with 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"{(rand > 0.8)?? $_ !! homoglyphs($_)[1] }).join;

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