|
|
@ -8,8 +8,8 @@ fn main() {
|
|
|
|
let count = jmdict::entries()
|
|
|
|
let count = jmdict::entries()
|
|
|
|
.filter(|e| {
|
|
|
|
.filter(|e| {
|
|
|
|
if e.kanji_elements().any(|k| k.text == input) {
|
|
|
|
if e.kanji_elements().any(|k| k.text == input) {
|
|
|
|
// note two entries have identical Kanji and reading
|
|
|
|
// note two entries have identical Kanji
|
|
|
|
// yet differ in "sense" not shown in this example
|
|
|
|
// yet differ in reading
|
|
|
|
println!("--- entry #{} ---", e.number);
|
|
|
|
println!("--- entry #{} ---", e.number);
|
|
|
|
for kanji in e.kanji_elements() {
|
|
|
|
for kanji in e.kanji_elements() {
|
|
|
|
println!("kanji element: {}", kanji.text);
|
|
|
|
println!("kanji element: {}", kanji.text);
|
|
|
|