Skip to content
[Java&Android] HangulParser is to parse Hangul to Jaso(basic consonant and vowel) by using Unicode
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
gradle/wrapper
library
samples
static
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

HangulParser

[자바 & 안드로이드] HangulParser는 한 글자를 자소(자음과 모음)로 분리하고 자음과 모음을 하나의 글자로 만들 수 있는 Gradle 라이브러리입니다.

[Java & Android] HangulParser is to seperate hangul to basic consonant and vowel by using unicode and also to convert basic consonant and vowel to hangul.

Download

repositories {
  jcenter()
}

dependencies {
  compile 'com.github.kimkevin:hangulparser:1.0.0'
}

Usage

1. 자소 분리(Disassemble)

public List<String> disassemble(char hangul)

  try {
    jasoList = HangulParser.getInstance().disassemble('');
  } catch (HangulParserException e) {
    e.printStackTrace();
  }
  
  > [ㅎ, ㅏ, ㄴ]

public List<String> disassemble(String hangul)

  try {
    jasoList = HangulParser.getInstance().disassemble("한글");
  } catch (HangulParserException e) {
    e.printStackTrace();
  }

  > [ㅎ, ㅏ, ㄴ, ㄱ, ㅡ, ㄹ]

2. 자소 결합(Assemble)

public String assemble(List<String> jasoList)

  jasoList.add("");
  jasoList.add("");
  jasoList.add("");
  jasoList.add("");
  jasoList.add("");
  jasoList.add("");
  try {
    String hangul = HangulParser.getInstance().assemble(jasoList);
  } catch (HangulParserException e) {
    e.printStackTrace();
  }
  
  > 한글

Contributing

All contributions are welcome. Open a Pull Requests or refer to the Issues section.

License

Copyright (c) 2015 "KimKevin" Yongjun Kim

Licensed under the MIT license.

You can’t perform that action at this time.