Convert bytes to braille and back again.
Have you ever looked at a bunch of bytes and thought, "Man, I really wish I could view these as braille cells"? Me neither! That's why I wrote dotify.
Your PRs to extend this useless utility are eagerly anticipated!
: cat src/main.rs | dotify > braille.txt
: cat braille.txt
⡥⡸⡴⡥⡲⡮⠠⡣⡲⡡⡴⡥⠠⡣⡬⡡⡰⠻⠊⠊⡭⡯⡤⠠⡢⡲⡡⡩⡬⡬⡥⠻⠊⡭⡯⡤⠠⡢⡹⡴
⡥⡳⠻⠊⠊⡵⡳⡥⠠⡣⡬⡡⡰⠺⠺⡻⡁⡰⡰⠬⠠⡁⡲⡧⠬⠠⡁⡰⡰⡓⡥⡴⡴⡩⡮⡧⡳⡽⠻⠊
⡵⡳⡥⠠⡳⡴⡤⠺⠺⡩⡯⠻⠊⠊⡦⡮⠠⡭⡡⡩⡮⠨⠩⠠⠭⠾⠠⡩⡯⠺⠺⡒⡥⡳⡵⡬⡴⠼⠨⠩
⠾⠠⡻⠊⠠⠠⡬⡥⡴⠠⡭⡡⡴⡣⡨⡥⡳⠠⠽⠠⡁⡰⡰⠺⠺⡮⡥⡷⠨⡥⡮⡶⠡⠨⠢⡃⡁⡒⡇⡏
⡟⡐⡋⡇⡟⡎⡁⡍⡅⠢⠩⠩⠊⠠⠠⠠⠠⠮⡶⡥⡲⡳⡩⡯⡮⠨⡣⡯⡮⡣⡡⡴⠡⠨⠢⡶⠢⠬⠠⡥
⡮⡶⠡⠨⠢⡃⡁⡒⡇⡏⡟⡐⡋⡇⡟⡖⡅⡒⡓⡉⡏⡎⠢⠩⠩⠩⠊⠠⠠⠠⠠⠮⡡⡵⡴⡨⡯⡲⠨⡥
⡮⡶⠡⠨⠢⡃⡁⡒⡇⡏⡟⡐⡋⡇⡟⡁⡕⡔⡈⡏⡒⡓⠢⠩⠩⠊⠠⠠⠠⠠⠮⡡⡢⡯⡵⡴⠨⡣⡯⡮
⡣⡡⡴⠡⠨⡥⡮⡶⠡⠨⠢⡃⡁⡒⡇⡏⡟⡐⡋⡇⡟⡄⡅⡓⡃⡒⡉⡐⡔⡉⡏⡎⠢⠩⠬⠠⠢⠠⠭⠠
⠢⠬⠠⡥⡮⡶⠡⠨⠢⡃⡁⡒⡇⡏⡟⡐⡋⡇⡟⡈⡏⡍⡅⡐⡁⡇⡅⠢⠩⠩⠩⠊⠠⠠⠠⠠⠮⡨⡥⡬
⡰⡟⡭⡥⡳⡳⡡⡧⡥⠨⠢⡐⡲⡩⡮⡴⠠⡨⡥⡬⡰⠠⡩⡮⡦⡯⡲⡭⡡⡴⡩⡯⡮⠢⠩⠊⠠⠠⠠⠠
⠮⡶⡥⡲⡳⡩⡯⡮⡟⡭⡥⡳⡳⡡⡧⡥⠨⠢⡐⡲⡩⡮⡴⠠⡶⡥⡲⡳⡩⡯⡮⠠⡩⡮⡦⡯⡲⡭⡡⡴
⡩⡯⡮⠢⠩⠊⠠⠠⠠⠠⠮⡳⡥⡴⡴⡩⡮⡧⠨⡁⡰⡰⡓⡥⡴⡴⡩⡮⡧⡳⠺⠺⡃⡯⡬⡯⡲⡥⡤⡈
⡥⡬⡰⠩⠊⠠⠠⠠⠠⠮⡡⡲⡧⠨⡁⡲⡧⠺⠺⡷⡩⡴⡨⡟⡮⡡⡭⡥⠨⠢⡂⡙⡔⡅⡓⠢⠩⠊⠠⠠
⠠⠠⠠⠠⠠⠠⠠⠮⡬⡯⡮⡧⠨⠢⡢⡹⡴⡥⡳⠢⠩⠊⠠⠠⠠⠠⠠⠠⠠⠠⠠⠮⡨⡥⡬⡰⠨⠢⡃⡯
⡮⡶⡥⡲⡴⠠⡢⡲⡡⡩⡬⡬⡥⠠⡴⡯⠠⡢⡹⡴⡥⡳⠢⠩⠩⠊⠠⠠⠠⠠⠮⡧⡥⡴⡟⡭⡡⡴⡣⡨
⡥⡳⠨⠩⠻⠊⠊⠠⠠⡬⡥⡴⠠⡢⡹⡴⡥⡳⠠⠽⠠⡭⡡⡴⡣⡨⡥⡳⠮⡩⡳⡟⡰⡲⡥⡳⡥⡮⡴⠨
⠢⡂⡙⡔⡅⡓⠢⠩⠻⠊⠊⠠⠠⡬⡥⡴⠠⡳⡴⡤⡩⡮⠠⠽⠠⡩⡯⠺⠺⡳⡴⡤⡩⡮⠨⠩⠻⠊⠠⠠
⡬⡥⡴⠠⡳⡴⡤⡯⡵⡴⠠⠽⠠⡩⡯⠺⠺⡳⡴⡤⡯⡵⡴⠨⠩⠻⠊⠠⠠⡬⡥⡴⠠⡭⡵⡴⠠⡲⡥⡡
⡤⡥⡲⠠⠽⠠⡳⡴⡤⡩⡮⠮⡬⡯⡣⡫⠨⠩⠻⠊⠠⠠⡬⡥⡴⠠⡭⡵⡴⠠⡷⡲⡩⡴⡥⡲⠠⠽⠠⡳
⡴⡤⡯⡵⡴⠮⡬⡯⡣⡫⠨⠩⠻⠊⠊⠠⠠⡬⡥⡴⠠⡣⡯⡮⡶⡥⡲⡴⠠⠽⠠⡩⡦⠠⡢⡹⡴⡥⡳⠠
⡻⠊⠠⠠⠠⠠⡢⡹⡴⡥⡳⠺⠺⡣⡯⡮⡶⡥⡲⡴⠊⠠⠠⡽⠠⡥⡬⡳⡥⠠⡻⠊⠠⠠⠠⠠⡢⡲⡡⡩
⡬⡬⡥⠺⠺⡣⡯⡮⡶⡥⡲⡴⠊⠠⠠⡽⠻⠊⠊⠠⠠⡣⡯⡮⡶⡥⡲⡴⠨⠦⡭⡵⡴⠠⡲⡥⡡⡤⡥⡲
⠬⠠⠦⡭⡵⡴⠠⡷⡲⡩⡴⡥⡲⠩⠊⡽⠊
: cat braille.txt | dotify --bytes | head
extern crate clap;
mod braille;
mod bytes;
use clap::{App, Arg, AppSettings};
use std::io;
fn main() -> io::Result<()> {
let matches = App::new(env!("CARGO_PKG_NAME"))