Skip to content

Commit d847410

Browse files
committed
Release 2.11.0
1 parent 1d37363 commit d847410

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
----
44

5+
## 2.11.0 (2022-02-25)
6+
7+
- feat(surname): 支持姓氏拼音模式,优先处理姓氏读音。 fixed #288
8+
59
## 2.10.2 (2021-04-11)
610

711
- feat(cli): pinyin cli support group by phrases.

README.en-US.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ wǒ xǐhuān nǐ
122122
Specify pinyin style. please use static properties like `STYLE_*`.
123123
default is `.STYLE_TONE`. see Static Property for more.
124124

125+
### `options.mode`
126+
127+
pinyin mode, default is `pinyin.MODE_NORMAL`. If you cleared in surname scene,
128+
use `pinyin.MODE_SURNAME` maybe better.
129+
125130
## Static Property
126131

127132
### `.STYLE_NORMAL`
@@ -162,6 +167,13 @@ First letter style.
162167

163168
Example: `p y`
164169

170+
### `pinyin.MODE_NORMAL`
171+
172+
Normal mode. This is the default mode.
173+
174+
### `pinyin.MODE_SURNAME`
175+
176+
Surname mode. If chinese word is surname, The pinyin of surname is prioritized.
165177

166178
## Test
167179

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pinyin",
3-
"version": "2.10.2",
3+
"version": "2.11.0",
44
"description": "汉语拼音转换工具。",
55
"files": [
66
"bin",

0 commit comments

Comments
 (0)