lib/_data_ingestion/kanjidic: correctly parse radical names from xml
This commit is contained in:
@@ -27,11 +27,10 @@ List<Character> parseKANJIDICData(XmlElement root) {
|
||||
jlpt: int.tryParse(
|
||||
misc.findElements('jlpt').firstOrNull?.innerText ?? '',
|
||||
),
|
||||
radicalName: radical
|
||||
?.findElements('rad_name')
|
||||
radicalName: misc
|
||||
.findElements('rad_name')
|
||||
.map((e) => e.innerText)
|
||||
.toList() ??
|
||||
[],
|
||||
.toList(),
|
||||
codepoints: codepoint
|
||||
?.findElements('cp_value')
|
||||
.map(
|
||||
|
||||
Reference in New Issue
Block a user