Package Exports
- zhuyin-improved
- zhuyin-improved/lib/cjs/index.js
- zhuyin-improved/lib/esm/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zhuyin-improved) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
improved
- 修正無法轉換單音的bug
- 修正注音4聲會轉換錯誤的bug
- 修正注音'ㄩ'轉換成pinyin會不正確的問題。
- 修正輕聲判別位置賺前後與轉換後,應在前方而不是在後方。 ex: X[ㄇㄜ˙],O[˙ㄇㄜ]
- 加入一些少用的拼音。 ex: 黁[ㄋㄨㄣˊ]
Install
npm install zhuyin-imporved
Usage
const zhuyin = require("zhuyin-improved")
zhuyin("wǒ de māo xǐhuan hē níunǎi").then(console.log)
zhuyin("wo3 de mao1 xi3huan he1niu2 nai3").then(console.log)
zhuyin("wǒdemāoxǐhuanhēníunǎi").then(console.log)
zhuyin("wo3demao1xi3huanhe1niu2nai3").then(console.log)
// [ 'ㄨㄛˇ', 'ㄉㄜ˙', 'ㄇㄠ', 'ㄒㄧˇ', 'ㄏㄨㄢ˙', 'ㄏㄜ', 'ㄋㄧㄡˊ', 'ㄋㄞˇ' ]