Skip to content

Commit

Permalink
doc: 姓氏模式的文档更新
Browse files Browse the repository at this point in the history
  • Loading branch information
hotoo committed Feb 25, 2022
1 parent 483c3a5 commit 0c022b4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -126,6 +126,11 @@ wǒ xǐhuān nǐ

指定拼音 风格。可以通过以下几种 `STYLE_` 开头的静态属性进行指定。

### options.mode

拼音模式,默认 `pinyin.MODE_NORMAL` 普通模式。
如果你明确的在姓名场景下,可以使用 `pinyin.MODE_SURNAME` 让姓氏使用更准确的拼音。

## 静态属性

### `.STYLE_NORMAL`
Expand Down Expand Up @@ -172,6 +177,13 @@ wǒ xǐhuān nǐ

如:`p y`

### `.MODE_NORMAL`

普通模式,自动识别读音。

### `.MODE_SURNAME`

姓名模式,对于明确的姓名场景,可以更准确的识别姓氏的读音。

## Test

Expand Down

0 comments on commit 0c022b4

Please sign in to comment.