Skip to content

Adds proper (Mandarin) Chinese tone diacritics to a string

License

Notifications You must be signed in to change notification settings

fdematos/pinyinizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinyinizer

Adds proper (Mandarin) Chinese tone diacritics to a string.

The four tones of Chinese are commonly represented by the numbers 1-4. This module enables one to take a string with numerical tone representation and transforming it into a string with proper tone diacritics.

Numeric Tone Diacritic Description
ma1 level
ma2 rising
ma3 dipping
ma4 falling
ma ma neutral

Installation

dependencies:
  pinyinizer: 1.x #latest version
import 'package:pinyinizer/Pinyinizer.dart';

Usage

var pinyinizer = Pinyinizer();
pinyinizer.pinyinize("xie3 dian3er shen2me ba")
// return xiě diǎner shénme ba

About

Adds proper (Mandarin) Chinese tone diacritics to a string

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages