Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kimkevin/HangulParser
[Java&Android] HangulParser is to parse Hangul to Jaso(basic consonant and vowel) by using Unicode
https://github.com/kimkevin/HangulParser
android hangul java unicode vowel
Last synced: 3 months ago
JSON representation
[Java&Android] HangulParser is to parse Hangul to Jaso(basic consonant and vowel) by using Unicode
- Host: GitHub
- URL: https://github.com/kimkevin/HangulParser
- Owner: kimkevin
- Created: 2015-10-31T16:57:08.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-19T01:37:39.000Z (over 5 years ago)
- Last Synced: 2024-02-14T05:34:25.067Z (9 months ago)
- Topics: android, hangul, java, unicode, vowel
- Language: Java
- Homepage:
- Size: 568 KB
- Stars: 33
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hangul - HangulParser - HangulParser is to parse Hangul to Jaso by using Unicode (Programming Languages / Java)
README
## 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
```java
repositories {
jcenter()
}dependencies {
compile 'com.github.kimkevin:hangulparser:1.0.0'
}
```## Usage
**1. 자소 분리(Disassemble)**
> public List\ disassemble(char hangul)
```java
try {
jasoList = HangulParser.getInstance().disassemble('한');
} catch (HangulParserException e) {
e.printStackTrace();
}
> [ㅎ, ㅏ, ㄴ]
```> public List\ disassemble(String hangul)
```java
try {
jasoList = HangulParser.getInstance().disassemble("한글");
} catch (HangulParserException e) {
e.printStackTrace();
}> [ㅎ, ㅏ, ㄴ, ㄱ, ㅡ, ㄹ]
```**2. 자소 결합(Assemble)**
> public String assemble(List\ jasoList)```java
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](https://github.com/kimkevin/HangulToJasoParser/pulls) or refer to
the [Issues](https://github.com/kimkevin/HangulToJasoParser/issues) section.## License
Copyright (c) 2015 "KimKevin" Yongjun KimLicensed under the MIT license.