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 eb45e78 commit f18c80c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ protected function formatTone(string $pinyin, string $style): string
}

$replacements = [
// chr(201) => 'ɑ' 轻声中除了 `ɑ` 和 `ü` 以外,其它和字母一样
'ɑ' => [chr(201), 5], 'ü' => ['v', 5],
// mb_chr(593) => 'ɑ' 轻声中除了 `ɑ` 和 `ü` 以外,其它和字母一样
'ɑ' => ['a', 5], 'ü' => ['v', 5],
'üē' => ['ue', 1], 'üé' => ['ue', 2], 'üě' => ['ue', 3], 'üè' => ['ue', 4],
'ā' => ['a', 1], 'ē' => ['e', 1], 'ī' => ['i', 1], 'ō' => ['o', 1], 'ū' => ['u', 1], 'ǖ' => ['v', 1],
'á' => ['a', 2], 'é' => ['e', 2], 'í' => ['i', 2], 'ó' => ['o', 2], 'ú' => ['u', 2], 'ǘ' => ['v', 2],
Expand Down

0 comments on commit f18c80c

Please sign in to comment.