Fix: u+i verb bug
This commit is contained in:
@@ -140,6 +140,7 @@ StringUtil.getMultiAlphabetFromJungsung = function(alphabet) {
|
|||||||
multiJungsungList['ㅚ'] = ['ㅗ', 'ㅣ'];
|
multiJungsungList['ㅚ'] = ['ㅗ', 'ㅣ'];
|
||||||
multiJungsungList['ㅝ'] = ['ㅜ', 'ㅓ'];
|
multiJungsungList['ㅝ'] = ['ㅜ', 'ㅓ'];
|
||||||
multiJungsungList['ㅞ'] = ['ㅜ', 'ㅔ'];
|
multiJungsungList['ㅞ'] = ['ㅜ', 'ㅔ'];
|
||||||
|
multiJungsungList['ㅟ'] = ['ㅜ', 'ㅣ'];
|
||||||
multiJungsungList['ㅢ'] = ['ㅡ', 'ㅣ'];
|
multiJungsungList['ㅢ'] = ['ㅡ', 'ㅣ'];
|
||||||
|
|
||||||
return multiJungsungList[alphabet];
|
return multiJungsungList[alphabet];
|
||||||
|
|||||||
@@ -233,8 +233,9 @@ var TypingTest = {
|
|||||||
initTypingData: function() {
|
initTypingData: function() {
|
||||||
var typingTextMan = new TypingTextManager();
|
var typingTextMan = new TypingTextManager();
|
||||||
|
|
||||||
// var typingPracticeContents = [ "꿰뚫다" , "워머신", "홧김에" ]; // for debug
|
|
||||||
var typingPracticeContents = this.getTypingTestContents();
|
var typingPracticeContents = this.getTypingTestContents();
|
||||||
|
var typingPracticeContents = [ "십년이면 강산도 변한다." , "십년이면 강산도 변한다.", "십년이면 강산도 변한다." ]; // for debug
|
||||||
|
// var typingPracticeContents = [ "꿰뚫다" , "워머신", "홧김에" ]; // for debug
|
||||||
// console.log(typingPracticeContents);
|
// console.log(typingPracticeContents);
|
||||||
typingTextMan.makeTestContents(typingPracticeContents);
|
typingTextMan.makeTestContents(typingPracticeContents);
|
||||||
var wordCountForStage = TypingTest.WORD_COUNT_FOR_STAGE;
|
var wordCountForStage = TypingTest.WORD_COUNT_FOR_STAGE;
|
||||||
@@ -446,11 +447,11 @@ var TypingTest = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getHighlioghtKey: function(inputContent, typingContent) {
|
getHighlioghtKey: function(inputContent, typingContent) {
|
||||||
var highlightKey = "";
|
|
||||||
|
|
||||||
if(typingContent == undefined)
|
if(typingContent == undefined)
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|
||||||
|
var highlightKey = "";
|
||||||
|
var inputIndex = inputContent.length - 1;
|
||||||
var inputLength = inputContent.length;
|
var inputLength = inputContent.length;
|
||||||
var typingLength = typingContent.length;
|
var typingLength = typingContent.length;
|
||||||
// console.log("inputLength : " + inputLength + " / " + inputContent);
|
// console.log("inputLength : " + inputLength + " / " + inputContent);
|
||||||
@@ -476,24 +477,20 @@ var TypingTest = {
|
|||||||
|
|
||||||
// english typing test
|
// english typing test
|
||||||
else if(isEnglishTypingApp()) {
|
else if(isEnglishTypingApp()) {
|
||||||
console.log("===== english");
|
// console.log("===== english");
|
||||||
console.log("misspelledIndex : " + misspelledIndex);
|
// console.log("misspelledIndex : " + misspelledIndex);
|
||||||
if(inputLength == typingLength)
|
// console.log("inputIndex : " + inputIndex);
|
||||||
highlightKey = "Enter";
|
if(misspelledIndex > inputIndex)
|
||||||
else if(misspelledIndex == -1)
|
|
||||||
highlightKey = typingContent[inputLength];
|
|
||||||
else if(misspelledIndex > -1)
|
|
||||||
highlightKey = "Backspace";
|
|
||||||
else
|
|
||||||
highlightKey = typingContent[misspelledIndex];
|
highlightKey = typingContent[misspelledIndex];
|
||||||
|
else
|
||||||
|
highlightKey = "Backspace";
|
||||||
}
|
}
|
||||||
// korean typing test
|
// korean typing test
|
||||||
else {
|
else {
|
||||||
// console.log(misspelledIndex + " / " + typingContent[misspelledIndex]);
|
// console.log(misspelledIndex + " / " + typingContent[misspelledIndex]);
|
||||||
else if(typingContent[misspelledIndex] == " ")
|
if(typingContent[misspelledIndex] == " ")
|
||||||
highlightKey = " ";
|
highlightKey = " ";
|
||||||
else {
|
else {
|
||||||
var inputIndex = inputContent.length - 1;
|
|
||||||
var inputLetter = "";
|
var inputLetter = "";
|
||||||
var typingLetter = "";
|
var typingLetter = "";
|
||||||
var typingNextLetter = "";
|
var typingNextLetter = "";
|
||||||
@@ -630,6 +627,7 @@ var TypingTest = {
|
|||||||
// 입력할 글자에 종성이 있을 경우
|
// 입력할 글자에 종성이 있을 경우
|
||||||
else if(StringUtil.hasJongsung(typingLetter)) {
|
else if(StringUtil.hasJongsung(typingLetter)) {
|
||||||
var typingLetterJongsung = StringUtil.jongsung(typingLetter);
|
var typingLetterJongsung = StringUtil.jongsung(typingLetter);
|
||||||
|
|
||||||
// 입력한 글자의 종성과 입력할 글자의 종성이 같은 경우
|
// 입력한 글자의 종성과 입력할 글자의 종성이 같은 경우
|
||||||
if(StringUtil.jongsung(inputLetter) == typingLetterJongsung)
|
if(StringUtil.jongsung(inputLetter) == typingLetterJongsung)
|
||||||
highlightKey = StringUtil.chosung(typingNextLetter);
|
highlightKey = StringUtil.chosung(typingNextLetter);
|
||||||
|
|||||||
Reference in New Issue
Block a user