Fix case issue
This commit is contained in:
parent
264820f208
commit
248a18dd72
@ -231,7 +231,7 @@ const jp = (() => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function convertNumericTofullWidth(text) {
|
function convertNumericToFullWidth(text) {
|
||||||
let result = '';
|
let result = '';
|
||||||
for (const char of text) {
|
for (const char of text) {
|
||||||
let c = char.codePointAt(0);
|
let c = char.codePointAt(0);
|
||||||
@ -485,7 +485,7 @@ const jp = (() => {
|
|||||||
convertHiraganaToKatakana,
|
convertHiraganaToKatakana,
|
||||||
convertToRomaji,
|
convertToRomaji,
|
||||||
convertReading,
|
convertReading,
|
||||||
convertNumericTofullWidth,
|
convertNumericToFullWidth,
|
||||||
convertHalfWidthKanaToFullWidth,
|
convertHalfWidthKanaToFullWidth,
|
||||||
convertAlphabeticToKana,
|
convertAlphabeticToKana,
|
||||||
distributeFurigana,
|
distributeFurigana,
|
||||||
|
@ -373,7 +373,7 @@ class Translator {
|
|||||||
text2 = jp.convertHalfWidthKanaToFullWidth(text2, sourceMapping);
|
text2 = jp.convertHalfWidthKanaToFullWidth(text2, sourceMapping);
|
||||||
}
|
}
|
||||||
if (numeric) {
|
if (numeric) {
|
||||||
text2 = jp.convertNumericTofullWidth(text2);
|
text2 = jp.convertNumericToFullWidth(text2);
|
||||||
}
|
}
|
||||||
if (alphabetic) {
|
if (alphabetic) {
|
||||||
if (sourceMapping === null) { sourceMapping = Translator.createTextSourceMapping(text2); }
|
if (sourceMapping === null) { sourceMapping = Translator.createTextSourceMapping(text2); }
|
||||||
|
Loading…
Reference in New Issue
Block a user