https://github.com/deechael/chinesecharacterlibrary
You can get the pronounciation and tone of a Chinese character
https://github.com/deechael/chinesecharacterlibrary
chinese chinese-characters chinese-language chinese-simplified chinese-translation java
Last synced: about 1 month ago
JSON representation
You can get the pronounciation and tone of a Chinese character
- Host: GitHub
- URL: https://github.com/deechael/chinesecharacterlibrary
- Owner: DeeChael
- License: gpl-3.0
- Created: 2022-07-08T13:58:54.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-09T08:32:21.000Z (about 3 years ago)
- Last Synced: 2025-07-15T06:16:02.714Z (3 months ago)
- Topics: chinese, chinese-characters, chinese-language, chinese-simplified, chinese-translation, java
- Language: Java
- Homepage:
- Size: 167 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chinese Character Library (WIP)
## Get the pronounciation and tone of a Chinese character!---
## How to use?### Added ChineseCharacterLibrary as dependency
**Maven**
```xmlnet.deechael
chschar
1.00.0```
**Gradle**
```groovy
dependencies {
//...
implementation 'net.deechael:chschar:1.00.0'
}
```### Using the library
**Java**
```java
import net.deechael.chschar.ChineseCharacter;
import net.deechael.chschar.ChineseCharacterLibrary;
import net.deechael.chschar.Pronunciation;public class Main {
public static void main(String[] args) {
char you = '你';
ChineseCharacter character = ChineseCharacterLibrary.get(you);
System.out.println(character.getCharacter());
System.out.println(character.getPronunciations().size());
for (Pronunciation pronunciation : character.getPronunciations()) {
System.out.println(pronunciation.getPhoneticizationString());
System.out.println(pronunciation.getPhoneticizationStringWithV());
System.out.println(pronunciation.getPhoneticizationStringWithTone());
}
}
}
```
Will print:
```text
你
1
ni
ni
nǐ
```
---
## This library is in developing because I'm putting each character into the map in the ChineseCharacterLibrary class by hand