Jyutping for Flutter

A flutter package for converting written Cantonese characters to Jyutping.

License: MIT

Pub

dependencies:
  jyutping: ^0.1.0  #latest version

Example

import 'package:jyutping/src/jyutping_helper.dart';

//getJyutpingAsString(Cantonese character, Retrieves a list of Jyutping if there's multiple conversions)

String testJyutping = JyutpingHelper.getJyutpingAsString("你",false);

//nei5
print(testJyutping);

String testMultiJyutping = JyutpingHelper.getJyutpingAsString("你",true);

//[nei5,lei5]
print(testMultiJyutping);

//getWholeJyutpingPhrase(Cantonese phrase, Retrieves a list of Jyutping if there's multiple conversions)

String testWholeJyutpingPhrase = JyutpingHelper.getWholeJyutpingPhrase("你好吗",false);

//[nei5,hou2,maa1]
print(testWholeJyutpingPhrase);

TODO

  • Unit tests

Acknowledgements

Developer/s

  • Devon Crebbin

The Jyutping Flutter package uses data from the Jyutping Table project

The Linguistic Society of Hong Kong

Jyutping Table Acknowledgements:

  • Dr Chaak-ming Lau
  • Dr Cheung Kwan Hin (PolyU)
  • Prof Lu Qin (PolyU)
  • Jyutping Workgroup, LSHK
  • Nathan Hammond (@nathanhammond)

Jyutping Table Repository (By LSHK)

Libraries

jyutping