#dictionary #kvariants #kvariant #hfhchan-irg

irg-kvariants

A simple wrapper around kvariant from hfhchan/irg

1 unstable release

0.1.0 Feb 15, 2023

#120 in #dictionary

Download history 3037/week @ 2024-01-03 3226/week @ 2024-01-10 2936/week @ 2024-01-17 3349/week @ 2024-01-24 2998/week @ 2024-01-31 3432/week @ 2024-02-07 3337/week @ 2024-02-14 3375/week @ 2024-02-21 4303/week @ 2024-02-28 3812/week @ 2024-03-06 4325/week @ 2024-03-13 4208/week @ 2024-03-20 3503/week @ 2024-03-27 3587/week @ 2024-04-03 3504/week @ 2024-04-10 2900/week @ 2024-04-17

14,317 downloads per month
Used in 6 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 dictionnary, 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.6–2.4MB
~38K SLoC