Skip to content

Commit

Permalink
支持轻声转换 #119 #138
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Apr 27, 2023
1 parent f6d9af4 commit 4d0fb4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pinyin.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ protected function formatTone($pinyin, $option = \PINYIN_NO_TONE)
{
$replacements = [
// mb_chr(593) => 'ɑ' 轻声中除了 `ɑ` 和 `ü` 以外,其它和字母一样
'ɑ' => ['a', 5], 'ü' => ['v', 5],
'ɑ' => ['a', 5], 'ü' => ['yu', 5],
'üē' => ['ue', 1], 'üé' => ['ue', 2], 'üě' => ['ue', 3], 'üè' => ['ue', 4],
'ā' => ['a', 1], 'ē' => ['e', 1], 'ī' => ['i', 1], 'ō' => ['o', 1], 'ū' => ['u', 1], 'ǖ' => ['yu', 1],
'á' => ['a', 2], 'é' => ['e', 2], 'í' => ['i', 2], 'ó' => ['o', 2], 'ú' => ['u', 2], 'ǘ' => ['yu', 2],
Expand Down

0 comments on commit 4d0fb4f

Please sign in to comment.