parse-pinyin 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -32
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -151,38 +151,6 @@ console.timeEnd('pinyin-pro');
|
|
|
151
151
|
| 单字符拼音转换 (10,000次) | 13.27ms | 166.45ms | 12.54x |
|
|
152
152
|
| 批量处理 (100,000字符) | ~130ms | ~1660ms | 12.77x |
|
|
153
153
|
|
|
154
|
-
### 功能对比
|
|
155
|
-
|
|
156
|
-
| 特性 | parse-pinyin | pinyin-pro |
|
|
157
|
-
|------|--------------|------------|
|
|
158
|
-
| 汉字转拼音 | ✅ | ✅ |
|
|
159
|
-
| 拼音反查汉字 | ✅ | ✅ |
|
|
160
|
-
| 多音字支持 | ✅ | ✅ |
|
|
161
|
-
| 声调符号格式 | ✅ | ✅ |
|
|
162
|
-
| 数字声调格式 | ✅ | ✅ |
|
|
163
|
-
| 无音调模式 | ✅ | ✅ |
|
|
164
|
-
| 数组格式输出 | ✅ | ❌ |
|
|
165
|
-
| 词语注音 | ❌ | ✅ |
|
|
166
|
-
| 智能分词 | ❌ | ✅ |
|
|
167
|
-
| 浏览器支持 | ✅ | ✅ |
|
|
168
|
-
| Node.js 支持 | ✅ | ✅ |
|
|
169
|
-
| 无外部依赖 | ✅ | ✅ |
|
|
170
|
-
|
|
171
|
-
## 使用场景建议
|
|
172
|
-
|
|
173
|
-
### 适合使用 parse-pinyin 的场景:
|
|
174
|
-
1. **高性能要求**:需要快速处理大量汉字拼音转换
|
|
175
|
-
2. **内存敏感**:对内存使用有严格要求的应用
|
|
176
|
-
3. **简单转换**:只需要基础的汉字拼音互查功能
|
|
177
|
-
4. **包体积限制**:希望减少依赖包体积
|
|
178
|
-
5. **纯 JavaScript 环境**:不希望引入复杂依赖
|
|
179
|
-
|
|
180
|
-
### 适合使用 pinyin-pro 的场景:
|
|
181
|
-
1. **词语处理**:需要处理词语或句子的拼音注音
|
|
182
|
-
2. **智能分词**:需要基于词典的智能分词功能
|
|
183
|
-
3. **复杂文本处理**:需要处理复杂的中文文本
|
|
184
|
-
4. **丰富功能**:需要更多拼音处理功能
|
|
185
|
-
5. **兼容性要求**:需要与现有 pinyin-pro 生态集成
|
|
186
154
|
|
|
187
155
|
## 浏览器使用
|
|
188
156
|
|