akira-kurogane / furigana-injector

Automatically exported from code.google.com/p/furigana-injector
2 stars 1 forks source link

Many common words return "no result" in translation pop-ups. #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Pick any page. http://www.asahi.com/ is fine.
2. Inject furigana.
3. Mouseover the furigana to see the translation popups.

What is the expected output? What do you see instead?
I expect to dictionary entries returned from WWWJDIC. But lots of words show 
"Sorry, no result" instead. E.g.
取り次ぎ (furigana とりつ showing over base 取り次 + okurigana ぎ)
広がる (furigana ひろ showing over base 広 + okurigana がる)
入る (furigana はい showing over base 入 + okurigana る)
贈り物 (furigana おくりもの showing over the whole word)

Original issue reported on code.google.com by akira%ya...@gtempaccount.com on 29 Dec 2010 at 3:54

GoogleCodeExporter commented 9 years ago
Analyzing the matching entries from WWWJDIC:
取り次ぎ: "取次(P); 取り次ぎ; 取次ぎ 【とりつぎ】"
広がる: "広がる(P); 拡がる 【ひろがる】"
入る: "入る(P); 這入る 【はいる】"
贈り物: "贈り物(P); 贈物(P) 【おくりもの】"

It seems that entries with multiple kanji forms are not being parsed to find 
the (best-) matching for the original text span.

Todo: debug getWWWJDICEntryCallback() to see why no matchingGloss is found.

Original comment by akira%ya...@gtempaccount.com on 29 Dec 2010 at 4:04

GoogleCodeExporter commented 9 years ago
Regex bug, fixed.

Original comment by akira%ya...@gtempaccount.com on 29 Dec 2010 at 4:29