Add Jibiki dictonary type.

Julien LepillerMon Jun 22 22:39:42+0200 2020

0488984

Add Jibiki dictonary type.

.idea/dictionaries/tyreunom.xml

55
      <w>dico</w>
66
      <w>downstep</w>
77
      <w>heiban</w>
8+
      <w>jibiki</w>
89
      <w>jmdict</w>
910
      <w>kanji</w>
1011
      <w>kanjis</w>

CHANGELOG.md

44
Changes Since 0.3.0
55
-------------------
66
7+
### Features
8+
9+
* New dictionary from [Jibiki](https://jibiki.fr).
10+
711
### UI Fixes
812
913
* Clicking the back button when the radical panel is open will now close the panel

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

103103
                                    chooseLanguage(synopsis),
104104
                                    chooseLanguage(description),
105105
                                    cacheDir, url, size, entries, sha256);
106+
                        } else if (type.compareTo("jibiki") == 0) {
107+
                            d = new Jibiki(name,
108+
                                    chooseLanguage(synopsis),
109+
                                    chooseLanguage(description),
110+
                                    cacheDir, url, size, entries, sha256);
106111
                        } else if (type.compareTo("wadoku_pitch") == 0) {
107112
                            d = new WadokuPitchDictionary(name,
108113
                                    chooseLanguage(synopsis),

app/src/main/java/eu/lepiller/nani/dictionary/Jibiki.java unknown status 1

1+
package eu.lepiller.nani.dictionary;
2+
3+
import java.io.File;
4+
5+
import eu.lepiller.nani.R;
6+
7+
public class    Jibiki extends ResultDictionary {
8+
    Jibiki(String name, String description, String fullDescription, File cacheDir, String url, int fileSize, int entries, String hash) {
9+
        super(name, description, fullDescription, cacheDir, url, fileSize, entries, hash);
10+
    }
11+
12+
    @Override
13+
    int getDrawableId() {
14+
        return R.drawable.ic_jibiki;
15+
    }
16+
}

app/src/main/res/drawable/ic_jibiki.xml unknown status 1

1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
    android:width="48dp"
3+
    android:height="48dp"
4+
    android:viewportWidth="48"
5+
    android:viewportHeight="48">
6+
  <path
7+
      android:pathData="M0,0h64v64h-64z"
8+
      android:fillColor="#FFFFFF" />
9+
  <path
10+
      android:pathData="m5.5605,14.2041 l0.0664,-7.8732 36.1384,0.0691v7.9475"
11+
      android:strokeLineJoin="miter"
12+
      android:strokeWidth="3.12120509"
13+
      android:fillColor="#00000000"
14+
      android:strokeColor="#ff0000"
15+
      android:strokeLineCap="butt"/>
16+
  <path
17+
      android:pathData="m24.5773,5.9595 l0.0664,-5.942"
18+
      android:strokeLineJoin="miter"
19+
      android:strokeWidth="3.12120509"
20+
      android:fillColor="#00000000"
21+
      android:strokeColor="#ff0000"
22+
      android:strokeLineCap="butt"/>
23+
  <path
24+
      android:pathData="M3.5,29.9503L44.5,29.9503"
25+
      android:strokeLineJoin="miter"
26+
      android:strokeWidth="3.19966722"
27+
      android:fillColor="#00000000"
28+
      android:strokeColor="#ff0000"
29+
      android:strokeLineCap="butt"/>
30+
  <path
31+
      android:pathData="m11.7688,16.1353 l24.2448,-0.2229 -13.3967,10.9927"
32+
      android:strokeLineJoin="round"
33+
      android:strokeWidth="3.12120509"
34+
      android:fillColor="#00000000"
35+
      android:strokeColor="#ff0000"
36+
      android:strokeLineCap="butt"/>
37+
  <path
38+
      android:pathData="M16.4086,46.4395 L23.2703,46.3704 23.1397,24.9791"
39+
      android:strokeLineJoin="miter"
40+
      android:strokeWidth="3.12120509"
41+
      android:fillColor="#00000000"
42+
      android:strokeColor="#ff0000"
43+
      android:strokeLineCap="butt"/>
44+
</vector>