Skip to content

Commit

Permalink
add basic PinyinVariant info
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn111 committed Dec 22, 2024
1 parent 786b0ff commit 3e43992
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Binary file modified capi/data/mini.dat
Binary file not shown.
11 changes: 7 additions & 4 deletions src/editor/zhuyin_layout/pinyin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,19 @@ const MAX_PINYIN_LEN: usize = 10;
/// TODO: docs
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
pub enum PinyinVariant {
/// TODO: docs
/// [Hanyu Pinyin](https://en.wikipedia.org/wiki/Pinyin), or simply pinyin
#[default]
HanyuPinyin,
/// TODO: docs
/// [THL, taíwan huáyǔ luómǎ pinyin](https://pinyin.thl.tw/)
ThlPinyin,
/// TODO: docs
/// [MPS2, Mandarin Phonetic Symbols II](https://pinyin.info/romanization/mps2)
Mps2Pinyin,
}

/// TODO: docs
/// Pinyin
///
/// Current support types: [`PinyinVariant`](enum@PinyinVariant)
///
#[derive(Default, Debug, Clone)]
pub struct Pinyin {
key_seq: String,
Expand Down

0 comments on commit 3e43992

Please sign in to comment.