2 releases

0.1.1 Jul 4, 2024
0.1.0 Feb 15, 2023

#25 in #tokenize

Download history 2087/week @ 2024-11-21 2068/week @ 2024-11-28 2205/week @ 2024-12-05 2020/week @ 2024-12-12 2372/week @ 2024-12-19 2079/week @ 2024-12-26 2779/week @ 2025-01-02 3453/week @ 2025-01-09 2698/week @ 2025-01-16 2869/week @ 2025-01-23 2435/week @ 2025-01-30 2931/week @ 2025-02-06 2627/week @ 2025-02-13 2865/week @ 2025-02-20 2937/week @ 2025-02-27 3288/week @ 2025-03-06

12,199 downloads per month
Used in 10 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.2MB
~33K SLoC