Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 315 Bytes

README.md

File metadata and controls

18 lines (10 loc) · 315 Bytes

pinyin-formatter

A utility for formatting pinyin text

How it works

The pinyin.js file contains functions for applying pinyin tone accents to a word that uses numeric tone indicators.

Example

ni3hao3. wo3 jiao4 wang2xian1sheng.

becomes

nĭhăo. wǒ jiào wángxiānsheng.