2 releases

0.1.1 Jul 4, 2024
0.1.0 Feb 15, 2023

#1116 in Text processing

Download history 2064/week @ 2024-10-14 2223/week @ 2024-10-21 2047/week @ 2024-10-28 2606/week @ 2024-11-04 2680/week @ 2024-11-11 2679/week @ 2024-11-18 1842/week @ 2024-11-25 2123/week @ 2024-12-02 1901/week @ 2024-12-09 2256/week @ 2024-12-16 2723/week @ 2024-12-23 2167/week @ 2024-12-30 3120/week @ 2025-01-06 3113/week @ 2025-01-13 2692/week @ 2025-01-20 2704/week @ 2025-01-27

11,877 downloads per month
Used in 9 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