Created
March 29, 2012 02:16
-
-
Save emasaka/2232549 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(defvar marusuji-ary ["⓪" "①" "②" "③" "④" "⑤" "⑥" "⑦" "⑧" "⑨" | |
"⑩" "⑪" "⑫" "⑬" "⑭" "⑮" "⑯" "⑰" "⑱" "⑲" | |
"⑳" "㉑" "㉒" "㉓" "㉔" "㉕" "㉖" "㉗" "㉘" "㉙" | |
"㉚" "㉛" "㉜" "㉝" "㉞" "㉟" "㊱" "㊲" "㊳" "㊴" | |
"㊵" "㊶" "㊷" "㊸" "㊹" "㊺" "㊻" "㊼" "㊽" "㊾" "㊿" ]) | |
(defun region-to-marusuji (beg end) | |
(interactive "r") | |
(let ((n (string-to-int (buffer-substring beg end)))) | |
(when (and (<= 0 n) (<= n 50)) | |
(delete-region beg end) | |
(insert (aref marusuji-ary n)) ))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment