Skip to content

Commit

Permalink
多音字拼音提取出错 (#131)
Browse files Browse the repository at this point in the history
U+7F57: luó,luō  # 罗
类似这种多音字,第一个拼音的最后一个字母带音调会导致后一个拼音提取出错
  • Loading branch information
vdbrcxby authored Sep 7, 2023
1 parent 5083845 commit 67f6d79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pinyin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ std::set<std::string> PinYin::to_plain(const std::string &input) {
s.insert(value);
s.insert(value.substr(0, 1));
value.clear();
len = 1;
continue;
}
len = get_str_len((unsigned char)byte);
Expand Down

0 comments on commit 67f6d79

Please sign in to comment.