diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2020-04-13 22:59:56 +0300 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2020-04-13 22:59:56 +0300 |
commit | 6cc87ec9753d7482af2ff75bed2d405f7c31c072 (patch) | |
tree | e3727e48dcc41e22bed4c77508008292a4a25a09 /ext/bg/js/japanese.js | |
parent | f93dc857107e9b23ec06f1b568aad2c6f870ba4c (diff) |
remove "fragment" from jp.convertReading variables
Diffstat (limited to 'ext/bg/js/japanese.js')
-rw-r--r-- | ext/bg/js/japanese.js | 18 |
1 files changed, 9 insertions, 9 deletions
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; } } |