#byte #braille #convert-bytes #back #again #cell

app dotify

Convert bytes to braille and back again

1 stable release

Uses old Rust 2015

1.0.0 May 14, 2018

#14 in #again

CC0 license

4KB
80 lines

dotify

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"))

Dependencies

~425KB