https://github.com/casey/dotify
⠙⠕⠞⠊⠋⠽ / convert bytes to braille and back again
https://github.com/casey/dotify
Last synced: over 1 year ago
JSON representation
⠙⠕⠞⠊⠋⠽ / convert bytes to braille and back again
- Host: GitHub
- URL: https://github.com/casey/dotify
- Owner: casey
- Created: 2018-05-14T19:52:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-14T21:13:21.000Z (about 8 years ago)
- Last Synced: 2025-03-18T15:49:08.547Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 5.86 KB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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"))
```