2 releases

0.1.1 Jul 4, 2024
0.1.0 Feb 15, 2023

#985 in Text processing

Download history 2047/week @ 2024-07-24 2102/week @ 2024-07-31 1992/week @ 2024-08-07 1903/week @ 2024-08-14 1733/week @ 2024-08-21 2000/week @ 2024-08-28 2354/week @ 2024-09-04 1765/week @ 2024-09-11 1652/week @ 2024-09-18 1709/week @ 2024-09-25 1773/week @ 2024-10-02 2016/week @ 2024-10-09 2153/week @ 2024-10-16 2255/week @ 2024-10-23 2093/week @ 2024-10-30 2157/week @ 2024-11-06

8,983 downloads per month
Used in 8 crates (via charabia)

MIT license

130KB
160 lines

kvariants

A Rust crate wrapping https://github.com/hfhchan/irg/blob/master/kVariants.md made by @hfhchan. If you want to participate in improving this dictionary, don't hesitate to create an issue or submit a PR directly on the dictionary repository.

Usage

use kvariants::KVARIANTS;

let c = '';

let kvariant = match KVARIANTS.get(&c) {
    Some(kvariant) => kvariant.destination_ideograph,
    None => c,
};

assert_eq!(kvariant, '');

Fetch latest dictionary from upstream

The dictionary file is vendored into dictionaries/source/ and can be updated with bin/sync_dictionaries.

Dependencies

~1.4–2.3MB
~34K SLoC