Fix case issue

This commit is contained in:
toasted-nutbread 2020-03-14 16:38:12 -04:00
parent 264820f208
commit 248a18dd72
2 changed files with 3 additions and 3 deletions

View File

@ -231,7 +231,7 @@ const jp = (() => {
}
}
function convertNumericTofullWidth(text) {
function convertNumericToFullWidth(text) {
let result = '';
for (const char of text) {
let c = char.codePointAt(0);
@ -485,7 +485,7 @@ const jp = (() => {
convertHiraganaToKatakana,
convertToRomaji,
convertReading,
convertNumericTofullWidth,
convertNumericToFullWidth,
convertHalfWidthKanaToFullWidth,
convertAlphabeticToKana,
distributeFurigana,

View File

@ -373,7 +373,7 @@ class Translator {
text2 = jp.convertHalfWidthKanaToFullWidth(text2, sourceMapping);
}
if (numeric) {
text2 = jp.convertNumericTofullWidth(text2);
text2 = jp.convertNumericToFullWidth(text2);
}
if (alphabetic) {
if (sourceMapping === null) { sourceMapping = Translator.createTextSourceMapping(text2); }