zawgyi_converter 0.0.4+pre-v0.2

Zawgyi Converter Documentation #

Get #

Import #

import 'package:zawgyi_converter/zawgyi_converter.dart';

Initialize #

ZawgyiConverter zawgyiConverter = ZawgyiConverter();

Use it #

# for unicode ---> zawgyi
String result = zawgyiConverter.unicodeToZawgyi("မင်္ဂလာပါ");
# for zawgyi ---> unicode
String result = zawgyiConverter.zawgyiToUnicode("မဂၤလာပါ");
# for zawgyi normalization
String result = zawgyiConverter.normalizeZawgyi("မဂၤလာပါ");

License #

MIT [Notice]: This tool is a modified version of Google Myanmar Tools. So, the Regular Expression data located under lib/src/data.dart will be the Apache License, Version 2.0 (the "License")

0.0.4+pre-v0.2 #

  • Fixing the errors on analysis tab


import 'package:zawgyi_converter/zawgyi_converter.dart';

void main() {
  ZawgyiConverter zawgyiConverter = ZawgyiConverter();
  // String result = zawgyiConverter.unicodeToZawgyi("ကျွန်တော့်နာမည်သူရအောင်ပါ");
  String result = zawgyiConverter.zawgyiToUnicode('ေနကာင္းလား');
  // String result = zawgyiConverter.normalizeZawgyi('ေနကာင္းလား');
  print('zawgyiConverter ${result}');

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  zawgyi_converter: ^0.0.4+pre-v0.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:zawgyi_converter/zawgyi_converter.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jul 10, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:zawgyi_converter/zawgyi_converter.dart.

Health issues and suggestions

Document public APIs. (-1 points)

6 out of 6 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/zawgyi_converter.dart. (-0.50 points)

Analysis of lib/zawgyi_converter.dart reported 1 hint:

line 11 col 36: Use isNotEmpty instead of length

Format lib/src/Rule.dart.

Run dartfmt to format lib/src/Rule.dart.

Maintenance suggestions

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0