#dictionary #kvariants #kvariant #hfhchan-irg

irg-kvariants

A simple wrapper around kvariant from hfhchan/irg

1 unstable release

0.1.0 Feb 15, 2023

#116 in #dictionary

Download history 3514/week @ 2024-02-26 4509/week @ 2024-03-04 3954/week @ 2024-03-11 4420/week @ 2024-03-18 3749/week @ 2024-03-25 3738/week @ 2024-04-01 3383/week @ 2024-04-08 3505/week @ 2024-04-15 3113/week @ 2024-04-22 3433/week @ 2024-04-29 3405/week @ 2024-05-06 2977/week @ 2024-05-13 3732/week @ 2024-05-20 3053/week @ 2024-05-27 3521/week @ 2024-06-03 3623/week @ 2024-06-10

14,176 downloads per month
Used in 7 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
~37K SLoC