diff --git a/data/surnames b/data/surnames index 9f6072a4..5f13741d 100644 --- a/data/surnames +++ b/data/surnames @@ -1,4 +1,4 @@ - ' mò qí', '尉迟' => ' yù chí', @@ -81,4 +81,6 @@ '粘' => ' niàn', '难' => ' nàn', '若' => ' ruò', + '貟' => ' yùn', + '贠' => ' yùn', ); \ No newline at end of file diff --git a/data/words_3 b/data/words_3 index 008d629b..d29ef9db 100644 --- a/data/words_3 +++ b/data/words_3 @@ -1,4 +1,4 @@ - ' lì', '鱰' => ' shu', @@ -4257,7 +4257,7 @@ '貢' => ' gòng', '財' => ' cái', '負' => ' fù', - '貟' => ' yuán', + '貟' => ' yùn', '貞' => ' zhēn', '貝' => ' bèi', '貜' => ' jué', diff --git a/tests/AbstractDictLoaderTestCase.php b/tests/AbstractDictLoaderTestCase.php index 1cf13e9c..0e08279c 100644 --- a/tests/AbstractDictLoaderTestCase.php +++ b/tests/AbstractDictLoaderTestCase.php @@ -292,6 +292,13 @@ public function testYu() $this->assertEquals(array('lv', 'xiu', 'cai'), $this->pinyin->convert('吕秀才', \PINYIN_UMLAUT_V)); } + public function testIssue175() + { + $this->assertEquals('yùn', $this->pinyin->sentence('貟', PINYIN_TONE)); + $this->assertEquals(['yun', 'xiu', 'cai'], $this->pinyin->name('貟秀才')); + $this->assertEquals(['yun', 'xiu', 'cai'], $this->pinyin->name('贠秀才')); + } + public function testPhrase() { $pinyin = $this->pinyin;