Created
December 13, 2012 17:44
-
-
Save rummelonp/4278205 to your computer and use it in GitHub Desktop.
zsɥ で ɟʃıp する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 参考 http://fliptitle.com/ | |
function flip() { | |
echo $* | xargs ruby -e 'puts ARGV.join(" ").each_char.map { |c| {"a" => "\u0250", "b" => "q", "c" => "\u0254", "d" => "p", "e" => "\u01DD", "f" => "\u025F", "g" => "\u0183", "h" => "\u0265", "i" => "\u0131", "j" => "\u027E", "k" => "\u029E", "l" => "\u0283", "m" => "\u026F", "n" => "u", "r" => "\u0279", "t" => "\u0287", "v" => "\u028C", "w" => "\u028D", "y" => "\u028E", "." => "\u02D9", "[" => "]", "(" => ")", "{" => "}", "?" => "\u00BF", "!" => "\u00A1", "\"" => ",", "<" => ">", "_" => "\u203E", ";" => "\u061B", "\u203F" => "\u2040", "\u2045" => "\u2046", "\u2234" => "\u2235"}[c] || c }.join' | |
} | |
# $ flip zsh で flip する | |
# => zsɥ で ɟʃıp する |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment