#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 2737/week @ 2023-12-09 2696/week @ 2023-12-16 2027/week @ 2023-12-23 2571/week @ 2023-12-30 3334/week @ 2024-01-06 3078/week @ 2024-01-13 2966/week @ 2024-01-20 3271/week @ 2024-01-27 3304/week @ 2024-02-03 3528/week @ 2024-02-10 3317/week @ 2024-02-17 3461/week @ 2024-02-24 4445/week @ 2024-03-02 3657/week @ 2024-03-09 4580/week @ 2024-03-16 3429/week @ 2024-03-23

16,697 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
~37K SLoC