From 17003189888694da51d840dcf0464355bb342a4c Mon Sep 17 00:00:00 2001 From: siikamiika Date: Tue, 5 Nov 2019 02:43:04 +0200 Subject: remove unneeded feature Unidic actually has a field for the base form of the input --- ext/mixed/js/japanese.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ext') diff --git a/ext/mixed/js/japanese.js b/ext/mixed/js/japanese.js index 78c419b2..1201e524 100644 --- a/ext/mixed/js/japanese.js +++ b/ext/mixed/js/japanese.js @@ -102,11 +102,7 @@ function jpDistributeFuriganaInflected(expression, reading, source) { const shortest = Math.min(source.length, expression.length); const sourceHiragana = jpKatakanaToHiragana(source); const expressionHiragana = jpKatakanaToHiragana(expression); - while ( - stemLength < shortest && - // sometimes an expression can use a kanji that's different from the source - (!jpIsKana(source[stemLength]) || (sourceHiragana[stemLength] === expressionHiragana[stemLength])) - ) { + while (stemLength < shortest && sourceHiragana[stemLength] === expressionHiragana[stemLength]) { ++stemLength; } const offset = source.length - stemLength; -- cgit v1.2.3