Add radical dictonary to factory
app/src/main/java/eu/lepiller/nani/dictionary/DictionaryFactory.java
| 13 | 13 | ||
| 14 | 14 | private DictionaryFactory(Context context) { | |
| 15 | 15 | dictionaries = new ArrayList<>(); | |
| 16 | + | dictionaries.add(new RadicalDict("RadK", | |
| 17 | + | context.getString(R.string.dico_radk), | |
| 18 | + | context.getString(R.string.dico_radk_long), | |
| 19 | + | context.getCacheDir(), | |
| 20 | + | "https://nani.lepiller.eu/dicos/radicals.nani")); | |
| 16 | 21 | dictionaries.add(new JMDict("JMdict_e", | |
| 17 | 22 | context.getString(R.string.dico_jmdict_e), | |
| 18 | 23 | context.getString(R.string.dico_jmdict_long), |
app/src/main/res/values/strings.xml
| 35 | 35 | Failing to download one of these dictionaries will make the app unusable as you can\'t search for anything. This dictionary can be searched for by | |
| 36 | 36 | kanji, reading (kana) and by meaning in the languages you selected. | |
| 37 | 37 | </string> | |
| 38 | + | <string name="dico_radk">Radical to Kanji dictionary from the Electronic Dictionary Research and Development Group.\n~230 KB, ~13,000 kanji</string> | |
| 39 | + | <string name="dico_radk_long">This dictionary allows you to enter kanji by selecting some of its components. Tap the water component button on the bottom of the screen | |
| 40 | + | to access the kanji selection by component view.</string> | |
| 38 | 41 | ||
| 39 | 42 | <!-- Result view --> | |
| 40 | 43 | <string name="sense_number">%d.</string> |