Crates.io | bioneer |
lib.rs | bioneer |
version | 0.1.1 |
source | src |
created_at | 2023-06-28 12:59:38.1847 |
updated_at | 2023-06-28 13:18:11.840243 |
description | An Open-Source Rust Implementation of Bionic Reading. |
homepage | |
repository | https://github.com/klaatu01/bioneer |
max_upload_size | |
id | 902090 |
size | 20,114 |
bioneer
- Bionic Reading LibraryThe bioneer
crate is a Rust port of the JavaScript library text-vide, providing a bionic reading library for converting text into a bionic reading format. This library enhances the readability and comprehension of text by applying formatting techniques. It provides a trait for bionifying strings.
Add the following dependency to your Cargo.toml
file:
[dependencies]
bioneer = "0.1.1"
Import the necessary items into your Rust code:
use bioneer::Bionify;
The Bionify
trait provides a method for bionifying strings.
fn bionify(&self) -> String
This method converts the implementing string into a bionic reading format.
use bioneer::Bionify;
let text = "Hello, world!";
let bionified_text = text.bionify();
println!("{}", bionified_text);
// "<b>Hel</b>lo, <b>Wor</b>ld!"
Hello, World!
This crate is distributed under the terms of the MIT license. See the LICENSE file for details.