Unicode lookup table library for Java
- Java 8+
- xerial's sqlite-jdbc (alredy included in pom.xml) or another SQLite JDBC driver
First of all you have to generate database.
From project root directory run
java -jar DBGenerator.jar unihan|nounihan|all [d] [save to]
(see DBGenerator -h for more information)
This will download ucd.%choice%.flat.zip and generate DB from xml file inside zip. Depending on your choice, this can be slow operation, so go take a break for a tea or coffee 🍵.
For more information see ucdxml.readme.txt and Unihan Database
Run
mvn package
and use the library generated inside target
directory.
Run
mvn javadoc:javadoc
Xerial's sqlite-jdbc driver does not work on Android so you have to use different driver, for exaple SQLDroid. Just add it to your project and use UniLookup jar without dependencies.