Giter Site home page Giter Site logo

inko_js's Introduction


Inko.js

version

Open Source Library, Converting Misspelled English characters into Korean letters (& vice versa)


Getting Started

  • 영타를 한글로 쳤을 때, 혹은 한타를 영어로 변환해주는 기능을 가진 자바스크립트 오픈소스 라이브러리입니다.
  • Inko Offical Website has been launched!

Release Note

Version Release Date Changes Contributors
v1.0.3 2018.08.07 #7 영타 -> 한글로 변환 시켜주는 로직 수정. 알파벳 소문자 26개, 대문자 26개 총 52개에 맞춰서 한글과 매핑함. JonJee
v1.0.4 2018.08.11 #4 Gulp로 workflow 자동화 (inko.min.js 파일 생성), #8 Bower에 라이브러리 등록 JonJee
v1.0.5 2018.08.11 inko.js에서 package.json 파일을 import하는 부분 제거 JonJee
v1.0.6 2018.08.25 #12 hlhlhl -> ㅚㅗㅣㅗㅣ로 변환되는 버그 수정, #14 rtk -> ꦵ로 변환되는 버그 수정, #15 복자음 가능 여부 옵션화, config 함수 추가 algoshipda, JonJee

Command Line Interface

  • Inko CLI - Use Inko on the command line.

Installation

npm

npm install inko

yarn

yarn add inko

As Browser module

CDN

<script src="https://cdn.jsdelivr.net/npm/[email protected]/inko.min.js"></script>

Bower

bower install inko

Usage

var Inko = require('inko');
var inko = new Inko();

// ES6
import Inko from 'inko';
let inko = new Inko();

영어 → 한글

inko.en2ko('dkssudgktpdy tptkd!');
// 안녕하세요 세상!

한글 → 영어

inko.ko2en('ㅗ디ㅣㅐ 재깅!');
// hello world!

복자음 가능 여부 설정

// allowDoubleConsonant의 기본값은 false입니다
var option = {
  allowDoubleConsonant: true
}

설정을 부여하는 방법은 아래의 세 가지 방법으로 지원합니다.

  1. 인스턴스 생성할 때 생성자의 인자로 설정 부여
var inko = Inko(option);
  1. config 함수로 설정 부여
inko.config(option);
  1. en2ko 함수의 인자로 설정 부여
inko.en2ko('rtrt', option);
// output: ㄳㄳ
inko.en2ko('rtrt', { allowDoubleConsonant: false });
// output: ㄱㅅㄱㅅ

Contributors


Jon Jee

algoshipda

hyoungsp

joonghyeob-shin

Contributing

이 오픈소스 프로젝트에 누구나 기여할 수 있습니다. 기여하고 싶은 분들은 이 레포지토리를 포크한 후 풀리퀘스트 요청해주세요!

License

Inko.js is released under the MIT License. See LICENSE file for details.

inko_js's People

Contributors

hyoungsp avatar

Stargazers

 avatar

Watchers

 avatar

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.