@@ -23,7 +23,11 @@
:style="{ 'ruby-position': pinyinPosition === 'top' ? 'over' : 'under' }"
class="py-char"
>{{ word
- }}<rt class="pinyin" :class="{ active: visible && word_index == k }">{{ item.pinyin.split(' ')[w] }}</rt>
+ }}<rt
+ class="pinyin"
+ :class="{ active: visible && word_index == k && paragraph_index === i && sentence_index === j }"
+ >{{ item.pinyin.split(' ')[w] }}</rt
+ >
</ruby>
</span>
</div>