Skip to content

Commit

Permalink
update 干
Browse files Browse the repository at this point in the history
  • Loading branch information
peterolson committed Dec 11, 2019
1 parent bbb5557 commit 84542f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hanzi-tools",
"version": "1.2.12",
"version": "1.2.13",
"author": "Peter Olson <[email protected]>",
"description": "Converts from Chinese characters to pinyin, between simplified and traditional, and does word segmentation.",
"license": "Unlicense",
Expand Down
3 changes: 3 additions & 0 deletions spec/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,7 @@ describe("Traditionalize", () => {
expect(traditionalize("又在梦里见到你")).toEqual("又在夢裡見到你");
expect(traditionalize("我只有三只狗。")).toEqual("我只有三隻狗。");
});
it("chooses right ambiguous character", () => {
expect(traditionalize(`你对那个女的干了什么?`)).toEqual("你對那個女的幹了什麼?");
});
});
2 changes: 1 addition & 1 deletion src/pinyinDict.js
Original file line number Diff line number Diff line change
Expand Up @@ -4016,7 +4016,7 @@ let dict = [
"乷|||乷|xx",
"乸|||乸|nǎ",
"乾|||乾||乹||亁|gān",
"干|||乾||幹||干||乹||亁|gàn",
"干|||幹||乾||干||乹||亁|gàn",
"乺|||乺|xx",
"乼|||乼|xx",
"干俸|||乾俸|gān​fèng",
Expand Down

0 comments on commit 84542f6

Please sign in to comment.