Skip to content

bumble-tw/zhuyin-improved

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •