Also look for pitch when there is no kanji
app/src/main/java/eu/lepiller/nani/dictionary/WadokuPitchDictionary.java
| 90 | 90 | } | |
| 91 | 91 | } | |
| 92 | 92 | } | |
| 93 | + | ||
| 94 | + | if(kanjis.size() == 0) { | |
| 95 | + | for(Result.Reading read: readings) { | |
| 96 | + | List<String> innerReadings = read.getReadings(); | |
| 97 | + | for(String reading: innerReadings) { | |
| 98 | + | String pitch = findPitch("", reading, file); | |
| 99 | + | if(pitch != null) { | |
| 100 | + | Log.d(TAG, "Found " + pitch); | |
| 101 | + | read.addPitch(pitch); | |
| 102 | + | } | |
| 103 | + | } | |
| 104 | + | } | |
| 105 | + | } | |
| 93 | 106 | } catch (FileNotFoundException e) { | |
| 94 | 107 | e.printStackTrace(); | |
| 95 | 108 | } catch (IOException e) { |