mongol_code 0.2.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 63

mongol_code #

Unicode conversion library in Dart for traditional Mongolian script

Usage #

A simple usage example:

MongolCode converter = MongolCode.instance;

// Unicode to Menksoft code
String unicodeInput = 'ᠮᠣᠩᠭᠣᠯ';
String menksoftResult = converter.unicodeToMenksoft(unicodeInput);
print(menksoftResult);

// Menksoft code to Unicode
String menksoftInput = "\uE2C1\uE27F\uE317\uE27E\uE2E8"; // bichig
String unicodeResult = converter.menksoftToUnicode(menksoftInput);
print(unicodeResult);

0.2.0 #

  • Exported more of the internal classes
  • Moved Menksoft methods to Menksoft class

0.1.2 #

  • Fixed warnings

0.1.1 #

  • Fixed warnings

0.1.0 #

  • Initial version, ported from mongol-library
  • Supports Menksoft and Unicode conversion

example/mongol_code_example.dart

import 'package:mongol_code/mongol_code.dart';

void main() {

  MongolCode converter = MongolCode.instance;

  // Unicode to Menksoft code
  String unicodeInput = 'ᠮᠣᠩᠭᠣᠯ';
  String menksoftResult = converter.unicodeToMenksoft(unicodeInput);
  print(menksoftResult);

  // Menksoft code to Unicode
  String menksoftInput = "\uE2C1\uE27F\uE317\uE27E\uE2E8"; // bichig
  String unicodeResult = converter.menksoftToUnicode(menksoftInput);
  print(unicodeResult);
}

Use this package as a library

1. Depend on it

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


dependencies:
  mongol_code: ^0.2.0

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:mongol_code/mongol_code.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
26
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
63
Learn more about scoring.

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

  • Dart: 2.8.4
  • pana: 0.13.15

Health issues and suggestions

Document public APIs. (-0.57 points)

608 out of 617 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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
Dev dependencies
pedantic ^1.8.0
test ^1.6.0