9 releases

0.3.1 Dec 4, 2024
0.3.0 Oct 24, 2024
0.2.4 Aug 22, 2024
0.2.1 Jul 23, 2024
0.1.1 Jul 29, 2023

#225 in Text processing

Download history 229/week @ 2024-08-19 2/week @ 2024-08-26 11/week @ 2024-09-23 5/week @ 2024-09-30 9/week @ 2024-10-14 118/week @ 2024-10-21 8/week @ 2024-10-28 4/week @ 2024-11-04 2/week @ 2024-11-18 123/week @ 2024-12-02

125 downloads per month

MIT license

37KB
274 lines

CLI utility for encoding and decoding data to/from binary representations using the Braille Patterns Unicode Block characters

See also the bbd-lib library crate.

Usage

$ bbd -h
Binary Braille Dump

Encode/decode data to/from Braille Patterns Unicode Block characters

Usage: bbd [OPTIONS] [PATH]...

Arguments:
  [PATH]...  Input file(s); [default: "-" (stdin)]

Options:
  -d              Decode Braille characters to bytes using the given style;
                  ignores wrapping
  -s <STYLE>      Style (1) [default: nlbb] [possible values: bcd, direct, nlbb,
                  nlbt, nrbb, nrbt]
  -c <N>          Wrap to N columns ("bytes") per line; 0: disable wrapping
                  [default: 64]
  -m              Markdown output
  -h, --help      Print help
  -V, --version   Print version

---

Notes:

1. Styles:
    * `bcd`: Binary Coded Decimal of byte values 0-99
    * `direct`: Direct encoding using the standard Braille dot values
    * `nlbb`: Most significant nibble (MSN) left column, most significant bit
      (MSB) bottom row. This is the default style.
    * `nlbt`: MSN left column, MSB top row
    * `nrbb`: MSN right column, MSB bottom row
    * `nrbt`: MSN right column, MSB top row
$ bbd -V
bbd 0.3.1

Examples

$ echo Hello |bbd
⢄⠮⢦⢦⢾⢐
$ echo "⢄⠮⢦⢦⢾⢐" |bbd -d
Hello

Dependencies

~3–11MB
~141K SLoC