From 6cc87ec9753d7482af2ff75bed2d405f7c31c072 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Mon, 13 Apr 2020 22:59:56 +0300 Subject: remove "fragment" from jp.convertReading variables --- ext/bg/js/japanese.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ext/bg') diff --git a/ext/bg/js/japanese.js b/ext/bg/js/japanese.js index c74e4553..ac81acb5 100644 --- a/ext/bg/js/japanese.js +++ b/ext/bg/js/japanese.js @@ -124,25 +124,25 @@ return wanakana.toRomaji(text); } - function convertReading(expressionFragment, readingFragment, readingMode) { + function convertReading(expression, reading, readingMode) { switch (readingMode) { case 'hiragana': - return convertKatakanaToHiragana(readingFragment); + return convertKatakanaToHiragana(reading); case 'katakana': - return convertHiraganaToKatakana(readingFragment); + return convertHiraganaToKatakana(reading); case 'romaji': - if (readingFragment) { - return convertToRomaji(readingFragment); + if (reading) { + return convertToRomaji(reading); } else { - if (isStringEntirelyKana(expressionFragment)) { - return convertToRomaji(expressionFragment); + if (isStringEntirelyKana(expression)) { + return convertToRomaji(expression); } } - return readingFragment; + return reading; case 'none': return ''; default: - return readingFragment; + return reading; } } -- cgit v1.2.3