himselfv / wakan

Japanese and Chinese learning tool with dictionary
39 stars 7 forks source link

ー in words like ソファー is not considered part of the word #146

Closed himselfv closed 11 years ago

himselfv commented 11 years ago

Original report by me.

Originally reported on Google Code with ID 146

Subj. Even though we dict-selected the whole word, last char is not colored, meaning
box is not extended to it.

Reported by himselfv on 2013-04-12 08:12:54

himselfv commented 11 years ago

Reported by himselfv on 2013-04-19 12:45:05

himselfv commented 11 years ago
Dictionary having entries both for SOFA and SOFA- might have something to do with this.
Or, dictionary entry having reading as SOFA and kanji as SOFA- or vice versa.

Reported by himselfv on 2013-04-22 12:11:28

himselfv commented 11 years ago
Apparently the problem appears when the replacement kanji is longer than the kana entered.
The pair:
 い  五十
Also suffers from this (only 五 is highlighted after replacement)

Reported by himselfv on 2013-05-16 07:06:47

himselfv commented 11 years ago
Fixed @r731 by deleting a line in SetWordTrans which used dicresult.slen for "word length"
instead of the length of GetDocWord()'s result. I wonder if it was there for a reason.
Time will tell.

Reported by himselfv on 2013-05-16 07:22:04