-
-
Notifications
You must be signed in to change notification settings - Fork 5
Development
This app was developed using dart, the flutter framework and Tensorflow (lite). Flutter needs to be installed. For this please follow the guide on the official website.
Note: There are some utility scripts that require a python installation.
Now the repository of DaKanji needs to be cloned:
git clone https://github.com/CaptainDario/DaKanji-ApplicationThen all necessary packages need to be installed:
flutter pub getNow some additional files are necessary:
- Copy the dictionary files from the release section of DaKanji dictionary
assets/dict - Copy the kagome binaries from [the release section of kagome dart to
blobs - Copy the TF Lite binaries from the release section of TFLite binaries to
blobs
Note: the tf lite models are not included in the repo and are not available, all ml features are replaced with mock models.
iOS / Android
For updating the icons the flutter_launcher_icons package was used.
To update all icons, replace media/icon.png and run:
flutter pub run flutter_launcher_icons:mainWindows
windows/runner/resources/app_icon.ico
png → ico: https://convertico.com/
MacOS
macos/Runner/Assets.xcassets/AppIcon.appiconset
Linux
note: only snap support
add to
IMPORTANT: This is currently only available on Android and iOS
Other applications can link to DaKanji via deep linking.
The base link is defined as dakanji://dakanji.
Adding a dictionary to the link will result in predictions opening in this dictionary.
Example:
Setting the link to dakanji://dakanji/jisho will open DaKanji. All look ups made, will than use jisho.org.
For web dictionaries which are currently not supported, you can use the dakanji://dakanji/URL/YOUR_URL_HERE link.
Just replace YOUR_URL_HERE with the search url of your dictionary and put %X% as a placeholder for the character to search.
Example:
If you want to link to japandict.com with the search url: https://www.japandict.com/%X% Setting the link to dakanji://dakanji/URL/https://www/japandict.com/%X% is all one needs to do.
A table with all supported deep links can be found here. You can try them out directly in your browser.
Currently supported links are:
-
dakanji://dakanji/jisho(web) -
dakanji://dakanji/wadoku(web) -
dakanji://dakanji/weblio(web) dakanji://dakanji/URL/YOUR_URL_HERE-
dakanji://dakanji/akebi(app) -
dakanji://dakanji/takoboto(app) -
dakanji://dakanji/aedict(app)