1.0.7 • Published 12 months ago

zhuyin-improved v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

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)

// [ 'ㄨㄛˇ', 'ㄉㄜ˙', 'ㄇㄠ', 'ㄒㄧˇ', 'ㄏㄨㄢ˙', 'ㄏㄜ', 'ㄋㄧㄡˊ', 'ㄋㄞˇ' ]

Related

1.0.7

12 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago