Skip to content

A JavaScript tool that converts Hanyu Pinyin tone numbers to tone marks.

Notifications You must be signed in to change notification settings

garyfeng/pinyinize.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinyinize.js

Build Status

Setup

Just simply load the pinyinize.js or pinyinize.min.js file:

<head>
    ...
    <script src="src/pinyinize.js"></script>
    ...
</head>

Usage

Pinyinize.toMarks('tai2 wan1'); // returns 'tái wān'

Tests

Install karma-cli: npm install -g karma-cli

Run the tests:

karma start

About

A JavaScript tool that converts Hanyu Pinyin tone numbers to tone marks.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%