All Projects → flutterchina → Lpinyin

flutterchina / Lpinyin

Licence: bsd-2-clause
Dart 汉字转拼音,Flutter, web, other

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to Lpinyin

Xpinyin
Translate Chinese hanzi to pinyin (拼音) by Python, 汉字转拼音
Stars: ✭ 709 (+196.65%)
Mutual labels:  pinyin
Hallelujahim
hallelujahIM(哈利路亚 英文输入法) is an intelligent English input method with auto-suggestions and spell check features, Mac only.
Stars: ✭ 1,334 (+458.16%)
Mutual labels:  pinyin
Elasticsearch Analysis Pinyin
This Pinyin Analysis plugin is used to do conversion between Chinese characters and Pinyin.
Stars: ✭ 2,215 (+826.78%)
Mutual labels:  pinyin
Hanbaobao
Mandarin Chinese text segmentation and mobile dictionary Android app (中文分词)
Stars: ✭ 17 (-92.89%)
Mutual labels:  pinyin
Php Pinyin
A PHP extension converting Chinese characters to Pinyin
Stars: ✭ 83 (-65.27%)
Mutual labels:  pinyin
Bigcidian
Pronunciation lexicon covering both English and Chinese languages for Automatic Speech Recognition.
Stars: ✭ 99 (-58.58%)
Mutual labels:  pinyin
Pinyin Data
汉字拼音数据
Stars: ✭ 641 (+168.2%)
Mutual labels:  pinyin
Somiao Pinyin
Somiao Pinyin: Train your own Chinese Input Method with Seq2seq Model 搜喵拼音输入法
Stars: ✭ 209 (-12.55%)
Mutual labels:  pinyin
Vue Typescript Music
🔥 基于 vue 全家桶 音乐项目(Music project) vue+typescript 实现 高仿 网易云音乐 移动端WebApp
Stars: ✭ 94 (-60.67%)
Mutual labels:  pinyin
G2pc
g2pC: A Context-aware Grapheme-to-Phoneme Conversion module for Chinese
Stars: ✭ 155 (-35.15%)
Mutual labels:  pinyin
Go Pinyin
汉字转拼音
Stars: ✭ 907 (+279.5%)
Mutual labels:  pinyin
Rime pure
【rime小狼毫\trime同文】手机/PC一站式配置【简约皮肤\拼音搜狗词库\原创trime同文四叶草九宫格拼音方案\四叶草拼音、小鹤双拼、极品五笔、徐码、郑码】 rime配置
Stars: ✭ 73 (-69.46%)
Mutual labels:  pinyin
Gpy
Go 语言汉字转拼音工具
Stars: ✭ 136 (-43.1%)
Mutual labels:  pinyin
Redis Search
Deprecated! High performance real-time prefix search, indexes store in Redis for Rails application
Stars: ✭ 713 (+198.33%)
Mutual labels:  pinyin
Toolgood.words
一款高性能敏感词(非法词/脏字)检测过滤组件,附带繁体简体互换,支持全角半角互换,汉字转拼音,模糊搜索等功能。
Stars: ✭ 2,785 (+1065.27%)
Mutual labels:  pinyin
Pinyin
🇨🇳 汉字拼音 ➜ hàn zì pīn yīn
Stars: ✭ 6,047 (+2430.13%)
Mutual labels:  pinyin
Cn sort
中文排序:按拼音/笔顺快速排序简体中文词组(百万数量级,可含中英/多音字)。如果对您有所帮助,欢迎点个star鼓励一下。
Stars: ✭ 102 (-57.32%)
Mutual labels:  pinyin
Pinyinlite
Lightweight and Lightning-Fast ⚡️ Pinyin Library for JavaScript
Stars: ✭ 218 (-8.79%)
Mutual labels:  pinyin
Chinese To Pinyin
一个将中文翻译成拼音的库
Stars: ✭ 199 (-16.74%)
Mutual labels:  pinyin
React Native Search List
A searchable ListView which supports Chinese PinYin and alphabetical index.
Stars: ✭ 152 (-36.4%)
Mutual labels:  pinyin

lpinyin (Flutter汉字转拼音)

lpinyin是一个汉字转拼音的Dart Package. 主要参考Java开源类库jpinyin.
①准确、完善的字库
②拼音转换速度快
③支持多种拼音输出格式:带音标、不带音标、数字表示音标以及拼音首字母输出格式
④支持常见多音字的识别,其中包括词组、成语、地名等
⑤简繁体中文转换
⑥支持添加用户自定义字典

Pub

dependencies:
  lpinyin: ^2.0.0  #latest version

Example

// Import package
import 'package:lpinyin/lpinyin.dart';

String text = "天府广场";

//字符串拼音首字符
PinyinHelper.getShortPinyin(str); // tfgc

//字符串首字拼音
PinyinHelper.getFirstWordPinyin(str); // tian

//无法转换拼音会 throw PinyinException
PinyinHelper.getPinyin(text);
PinyinHelper.getPinyin(text, separator: " ", format: PinyinFormat.WITHOUT_TONE);//tian fu guang chang

//无法转换拼音 默认用' '替代
PinyinHelper.getPinyinE(text);
PinyinHelper.getPinyinE(text, separator: " ", defPinyin: '#', format: PinyinFormat.WITHOUT_TONE);//tian fu guang chang

//添加用户自定义字典
List<String> dict1 = ['耀=yào','老=lǎo'];
PinyinHelper.addPinyinDict(dict1);//拼音字典
List<String> dict2 = ['奇偶=jī,ǒu','成都=chéng,dū'];
PinyinHelper.addMultiPinyinDict(dict2);//多音字词组字典
List<String> dict3 = ['倆=俩','們=们'];
ChineseHelper.addChineseDict(dict3);//繁体字字典

Screenshots

Changelog

Please see the Changelog page to know what's recently changed.

App

Moss App

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].