Skip to content

Commit

Permalink
de-duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Aug 12, 2023
1 parent bbf99f3 commit 58f6c0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rime/gear/simplifier.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ class Opencc {
// Current dictionary doesn't convert the word. We need to keep it for
// other dicts in the chain. e.g. s2t.json expands 里 to 里 and 裏,
// then t2tw.json passes 里 as-is and converts 裏 to 裡.
converted_words.push_back(original_word);
if (word_set.insert(original_word).second) {
converted_words.push_back(original_word);
}
continue;
}
matched = true;
Expand Down

0 comments on commit 58f6c0c

Please sign in to comment.