Giter Site home page Giter Site logo

myanmartools / ng-zawgyi-detector Goto Github PK

View Code? Open in Web Editor NEW
10.0 5.0 1.0 4.21 MB

Zawgyi-One and standard Myanmar Unicode detector library for Angular applications.

Home Page: https://zawgyi-unicode-converter.myanmartools.org

License: MIT License

TypeScript 99.93% JavaScript 0.07%
zawgyi-unicode-detector zawgyi-detector myanmar-tools zawgyi-unicode-converter angular typescript

ng-zawgyi-detector's Introduction

Zawgyi and Standard Myanmar Unicode Detector for Angular

GitHub Actions Status Azure Pipelines Status codecov npm version Gitter

Zawgyi-One and standard Myanmar Unicode detector library for Angular applications.

Features

  • Accurate & performance optimized detection for both Zawgyi-One (ဇော်ဂျီ) and standard Myanmar Unicode (မြန်မာ ယူနီကုဒ်)
  • Intelligent chunk by chunk detection on mix-typed input (Mixed Zawgyi and Unicode)
  • Fully tested with Myanmar Spelling Book (မြန်မာ စာလုံးပေါင်း သတ်ပုံကျမ်း) data
  • Deep detection on A That (အသက်), Pahsin (ပါဌ်ဆင့်), Kinsi (ကင်းစီး), etc.
  • Work with latest version of Angular
  • Compatible with Angular Universal (Node.js Server Side Rendering - SSR)
  • Open source and MIT license!

Get Started

Installation

npm

npm install @myanmartools/ng-zawgyi-detector

or yarn

yarn add @myanmartools/ng-zawgyi-detector

Module Setup (app.module.ts)

import { ZawgyiDetectorModule } from '@myanmartools/ng-zawgyi-detector';

@NgModule({
  imports: [
    // Other module imports

    // ng-zawgyi-detector module
    ZawgyiDetectorModule
  ]
})
export class AppModule { }

Live edit app.module.ts in stackblitz

Usage (app.component.ts)

import { Component } from '@angular/core';

import { ZawgyiDetector } from '@myanmartools/ng-zawgyi-detector';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html'
})
export class AppComponent {
  constructor(private readonly _zawgyiDetector: ZawgyiDetector) {
    const result = this._zawgyiDetector.detect('ျမန္မာစာ');
      if (result.detectedEnc === 'zg') {
          console.log('ZAWGYI DETECTED');
      } else if (result.detectedEnc === 'uni') {
          console.log('UNICODE DETECTED');
      }
  }
}

Live edit app.component.ts in stackblitz

Samples

Demo app view source / live edit in stackblitz

Live Application

Zawgyi Unicode Converter - Angular PWA

Build & Test Tools

We use lib-tools for bundling, testing and packaging our library projects.

Lib Tools

Feedback and Contributing

Check out the Contributing page.

License

This repository is licensed with the MIT license.

ng-zawgyi-detector's People

Contributors

dagonmetric-contributor avatar mmzliveid avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

mmzliveid

ng-zawgyi-detector's Issues

Update Dependencies (Renovate Bot)

This master issue contains a list of Renovate updates and their statuses.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • Update dependency aws-sdk to v2.686.0
  • Update dependency handy-redis to v1.8.3
  • Update dependency jsonwebtoken to v8.5.1
  • Update dependency luxon to v1.24.1
  • Update dependency moment to v2.26.0
  • Update dependency nodemailer to v6.4.8
  • Update dependency objects-to-csv to v1.3.6
  • Update dependency pg to v7.18.2
  • Update linters (eslint, eslint-config-prettier, eslint-plugin-import, eslint-plugin-prettier)
  • Update dependency @sindresorhus/is to v2
  • Update dependency badgen to v3
  • Update dependency p-all to v3
  • Update dependency pg to v8
  • Update dependency prettier to v2
  • Update got packages (major) (gh-got, got)
  • Update linters (major) (eslint, eslint-config-airbnb-base)

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

  • Update dependency renovate to v20.16.1

Closed/Ignored

These updates were closed unmerged and will not be recreated unless you click a checkbox below.


Advanced
  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

File: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid regExp for packageRules[0].packagePatterns: ^@angular-devkit/., Invalid regExp for packageRules[1].packagePatterns: ^@angular/., Invalid regExp for packageRules[2].packagePatterns: ^@dagonmetric/., Invalid regExp for packageRules[3].packagePatterns: ^@types/., Invalid regExp for packageRules[4].packagePatterns: ^jasmine., Invalid regExp for packageRules[5].packagePatterns: ^karma., Invalid regExp for packageRules[6].packagePatterns: ^protractor.*``

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.