hanzi-sort 0.2.0

Sort Chinese text by pinyin or stroke count, with polyphonic overrides and terminal-friendly output
1
2
3
4
5
6
7
8
9
10
11
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct JyutpingRecord {
    pub jyutping: Vec<String>,
    pub character: char,
}

impl JyutpingRecord {
    pub fn primary_jyutping(&self) -> Option<&str> {
        self.jyutping.first().map(String::as_str)
    }
}