Add radical dictonary to factory

Julien LepillerSun Apr 26 00:31:52+0200 2020

199e4d1

Add radical dictonary to factory

app/src/main/java/eu/lepiller/nani/dictionary/DictionaryFactory.java

1313
1414
    private DictionaryFactory(Context context) {
1515
        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"));
1621
        dictionaries.add(new JMDict("JMdict_e",
1722
                context.getString(R.string.dico_jmdict_e),
1823
                context.getString(R.string.dico_jmdict_long),

app/src/main/res/values/strings.xml

3535
        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
3636
        kanji, reading (kana) and by meaning in the languages you selected.
3737
    </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>
3841
3942
    <!-- Result view -->
4043
    <string name="sense_number">%d.</string>