pinyin-pro
Advanced tools
Comparing version 3.16.7 to 3.17.0
{ | ||
"name": "pinyin-pro", | ||
"version": "3.16.7", | ||
"version": "3.17.0", | ||
"description": "准确率和性能最优异的汉字转拼音库。获取中文拼音、韵母、声母、声调、首字母,支持拼音匹配", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -25,2 +25,3 @@ [](https://github.com/zh-lx/pinyin-pro) | ||
- 支持获取汉字的所有拼音 | ||
- 支持拼音输入转换 | ||
- 极致的性能和极高的拼音识别准确率 | ||
@@ -85,2 +86,17 @@ | ||
- 拼音格式转换,更多功能请查看[convert API](https://pinyin-pro.cn/use/convert) | ||
```js | ||
import { convert } from 'pinyin-pro'; | ||
// 数组转符号 | ||
convert('pin1 yin1'); // 'pīn yīn' | ||
// 符号转数字 | ||
convert('pīn yīn', { format: 'symbolToNum' }); // 'pin1 yin1' | ||
// 消除符号 | ||
convert('pīn yīn', { format: 'toneNone' }); // 'pin yin' | ||
``` | ||
- 获取带汉字拼音的 HTML 字符串,更多配置请查看[html API](https://pinyin-pro.cn/use/html) | ||
@@ -87,0 +103,0 @@ |
@@ -1,2 +0,2 @@ | ||
import type { Pattern } from '@/common/ac'; | ||
import type { Pattern } from '../../lib/common/ac'; | ||
declare const DICT2: { | ||
@@ -3,0 +3,0 @@ [prop: string]: string; |
@@ -1,2 +0,2 @@ | ||
import type { Pattern } from '@/common/ac'; | ||
import type { Pattern } from '../../lib/common/ac'; | ||
declare const DICT3: { | ||
@@ -3,0 +3,0 @@ [prop: string]: string; |
@@ -1,2 +0,2 @@ | ||
import type { Pattern } from '@/common/ac'; | ||
import type { Pattern } from '../../lib/common/ac'; | ||
declare const DICT4: { | ||
@@ -3,0 +3,0 @@ [prop: string]: string; |
@@ -1,2 +0,2 @@ | ||
import type { Pattern } from '@/common/ac'; | ||
import type { Pattern } from '../../lib/common/ac'; | ||
declare const DICT5: { | ||
@@ -3,0 +3,0 @@ [prop: string]: string; |
@@ -1,2 +0,2 @@ | ||
import type { Pattern } from '@/common/ac'; | ||
import type { Pattern } from '../../lib/common/ac'; | ||
declare const Surnames: { | ||
@@ -3,0 +3,0 @@ [key: string]: string; |
@@ -6,1 +6,2 @@ export { pinyin } from './core/pinyin'; | ||
export { polyphonic } from './core/polyphonic'; | ||
export { convert } from './core/convert'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
836007
26
14541
211