https://github.com/dcrebbin/jyutping-for-flutter
A flutter package for converting written Cantonese characters to Jyutping.
https://github.com/dcrebbin/jyutping-for-flutter
Last synced: about 1 month ago
JSON representation
A flutter package for converting written Cantonese characters to Jyutping.
- Host: GitHub
- URL: https://github.com/dcrebbin/jyutping-for-flutter
- Owner: dcrebbin
- License: mit
- Created: 2023-09-02T09:45:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-14T07:34:55.000Z (almost 2 years ago)
- Last Synced: 2026-03-28T18:23:57.272Z (2 months ago)
- Language: Dart
- Homepage:
- Size: 238 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Jyutping for Flutter
### Version: 0.1.2
A flutter package for converting written Cantonese characters to Jyutping.
License: **MIT**
## Pub
dependencies:
jyutping: ^0.1.2 #latest version
## Example
```dart
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);
```
## Acknowledgements
#### Developer/s
- Devon Crebbin
_The Jyutping Flutter package uses data from the Jyutping Table project_
[The Linguistic Society of Hong Kong](https://lshk.org/)
#### Jyutping Table Acknowledgements:
- [Dr Chaak-ming Lau](https://github.com/chaaklau)
- Dr Cheung Kwan Hin (PolyU)
- Prof Lu Qin (PolyU)
- Jyutping Workgroup, LSHK
- Nathan Hammond (@nathanhammond)
#### [Jyutping Table Repository (By LSHK)](https://github.com/lshk-org/jyutping-table)