Skip to content

Commit

Permalink
Release 2.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hotoo committed Feb 25, 2022
1 parent 1d37363 commit d847410
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

----

## 2.11.0 (2022-02-25)

- feat(surname): 支持姓氏拼音模式,优先处理姓氏读音。 fixed #288

## 2.10.2 (2021-04-11)

- feat(cli): pinyin cli support group by phrases.
Expand Down
12 changes: 12 additions & 0 deletions README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ wǒ xǐhuān nǐ
Specify pinyin style. please use static properties like `STYLE_*`.
default is `.STYLE_TONE`. see Static Property for more.

### `options.mode`

pinyin mode, default is `pinyin.MODE_NORMAL`. If you cleared in surname scene,
use `pinyin.MODE_SURNAME` maybe better.

## Static Property

### `.STYLE_NORMAL`
Expand Down Expand Up @@ -162,6 +167,13 @@ First letter style.

Example: `p y`

### `pinyin.MODE_NORMAL`

Normal mode. This is the default mode.

### `pinyin.MODE_SURNAME`

Surname mode. If chinese word is surname, The pinyin of surname is prioritized.

## Test

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pinyin",
"version": "2.10.2",
"version": "2.11.0",
"description": "汉语拼音转换工具。",
"files": [
"bin",
Expand Down

0 comments on commit d847410

Please sign in to comment.