From 8ae78449f205715d894efb34e786e947199ee28e Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 15 Mar 2021 23:02:38 -0400 Subject: Fix furigana distribution when source/expression kana differs (#1532) * Fix furigana distribution when source/expression kana differs * Add an additional test --- test/test-japanese.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test') diff --git a/test/test-japanese.js b/test/test-japanese.js index 8e8078d1..978f4b9c 100644 --- a/test/test-japanese.js +++ b/test/test-japanese.js @@ -750,6 +750,19 @@ function testDistributeFuriganaInflected() { [ {text: 'おこなわなかった', furigana: ''} ] + ], + [ + ['いい', 'いい', 'イイ'], + [ + {text: 'イイ', furigana: ''} + ] + ], + [ + ['否か', 'いなか', '否カ'], + [ + {text: '否', furigana: 'いな'}, + {text: 'カ', furigana: 'か'} + ] ] ]; -- cgit v1.2.3