12 releases

new 0.3.4 Apr 16, 2025
0.3.2 Feb 20, 2025
0.3.1 Dec 4, 2024
0.3.0 Oct 24, 2024
0.2.0 Jul 30, 2023

#2158 in Text processing

21 downloads per month
Used in 4 crates (2 directly)

MIT license

30KB
152 lines

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

See the documentation or the source for each function for doctest examples.

See also the bbd crate which provides a CLI utility.

use bbd_lib::*;

assert_eq!(encode(b"Hello\n", encode_nlbb, 0, 0), "⢄⠮⢦⢦⢾⢐");
assert_eq!(decode("⢄⠮⢦⢦⢾⢐", decode_nlbb), b"Hello\n");

Dependencies

~10KB