Fix double-highlight bug for furigana and simplify logic