Crates.io | rust-birkana |
lib.rs | rust-birkana |
version | 1.1.2 |
source | src |
created_at | 2016-10-25 07:36:17.509224 |
updated_at | 2019-02-25 12:43:47.76992 |
description | Creates Birkana rune symbols SVG representation of given hexadecimal number. |
homepage | https://github.com/lunemec/rust-birkana |
repository | https://github.com/lunemec/rust-birkana |
max_upload_size | |
id | 7003 |
size | 16,599 |
Birkana SVG generator.
Recently I read this awesome article about representing hexadecimal numbers using runic system. So I created this little program that takes hexadecimal string on stdin
and spits out SVG data on stdout
.
The code is not that nice, I just wanted a working version.
You can download binary versions for most common platforms from releases section.
Since cross-compilation is not in very much working state right now, you'll have to build the binary yourselves.
Steps:
git clone https://github.com/lunemec/rust-birkana
cd rust-birkana
cargo build --release
mv target/release/rust-birkana .
Now you should be able use the program as described in usage
section.
echo "0123456789abcdef" | rust-birkana > target.svg
This results in this kind of SVG image:
This is a image of my name encoded in UTF-8 and represented as HEX:
In your Cargo.toml add:
[dependencies]
rust-birkana = "1.1"
And use it like this:
extern crate rust_birkana;
use rust_birkana::document_from_string;
let document = document_from_string(hex_string);
let svg_string = document.to_string();