https://github.com/xuender/unidecode
ASCII transliterations of Unicode text for Java
https://github.com/xuender/unidecode
Last synced: 6 months ago
JSON representation
ASCII transliterations of Unicode text for Java
- Host: GitHub
- URL: https://github.com/xuender/unidecode
- Owner: xuender
- License: mit
- Created: 2013-05-24T01:53:43.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-07-09T23:25:12.000Z (over 10 years ago)
- Last Synced: 2025-03-31T08:12:12.718Z (9 months ago)
- Language: Java
- Size: 738 KB
- Stars: 83
- Watchers: 11
- Forks: 23
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unidecode #
[](https://travis-ci.org/xuender/unidecode)
[](https://maven-badges.herokuapp.com/maven-central/me.xuender/unidecode)
ASCII transliterations of Unicode string for Java.
## How to Use ##
Edit pom.xml.
```xml
me.xuender
unidecode
0.0.7
```
### decode
```java
System.out.print(Unidecode.decode("南无阿弥陀佛"));
Nan Wu A Mi Tuo Fo
System.out.print(Unidecode.decode("一条会走路的鱼"));
Yi Tiao Hui Zou Lu De Yu
System.out.print(Unidecode.decode("あみだにょらい"));
amidaniyorai
```
### initials
```java
System.out.print(Unidecode.initials("南无阿弥陀佛"));
NWAMTF
System.out.println(Unidecode.initials("不怨人就是成佛的大道根"));
BYRJSCFDDDG
System.out.print(Unidecode.initials("Κνωσός"));
K
```
## Reference ##
[Unidecode for Python](https://pypi.python.org/pypi/Unidecode)
## Thanks ##
* 魏敬宁([cratylus](https://github.com/cratylus))
* Marco Schweighauser([Schweigi](https://github.com/Schweigi))