Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 445 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 445 Bytes

Cedict

MDBG's CC-CEDICT wrapper for Kotlin.

This is intended to work as a library.

Installation

Add this to your dependencies.

implementation 'io.github.patarapolw:cedict:0.1.4'

And, download https://github.com/patarapolw/cedict/blob/master/cedict.db?raw=true and put it in resources folder.

Usage

import cedict.Cedict

val dict = Cedict("jdbc:sqlite::resource:cedict.db")
println(dict['你好'])