Snorse
Unicode Snowman Morse Code
- Free software: MIT license
Install
$ pip install snorse
Usage
Command Line
$ snorse snowman
☃ ☃ ☃ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ☃
$ cat snowman | snorse
☃ ☃ ☃ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ☃
$ echo snowman > snowman.txt
$ snorse snowman.txt
☃ ☃ ☃ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ☃
$ snorse -f snowman.txt
☃ ☃ ☃ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ☃
Python API
>>> import snorse
>>> snorse.snorse('snowman')
u'\u2603 \u2603 \u2603 \u26c4\u26c4\u26c4 \u2603 \u26c4\u26c4\u26c4 \u26c4\u26c4\u26c4 \u26c4\u26c4\u26c4 \u2603 \u26c4\u26c4\u26c4 \u26c4\u26c4\u26c4 \u26c4\u26c4\u26c4 \u26c4\u26c4\u26c4 \u2603 \u26c4\u26c4\u26c4 \u26c4\u26c4\u26c4 \u2603'
>>> print snors.snorse('snowman')
☃ ☃ ☃ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ⛄⛄⛄ ☃ ⛄⛄⛄ ⛄⛄⛄ ☃
Profit!