Skip to content

Commit

Permalink
Cleaned logs
Browse files Browse the repository at this point in the history
  • Loading branch information
EX3exp committed Dec 20, 2024
1 parent 6619822 commit 102f0de
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Mirivoice/Commands/SetProsodyCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void Execute(bool isRedoing)

isFirstExec = false;

Log.Debug($"Execute: undo: {undoMem}, redo: {redoMem}");
//Log.Debug($"Execute: undo: {undoMem}, redo: {redoMem}");
}
}

Expand All @@ -55,7 +55,7 @@ public void UnExecute()
v.DonotExecCommand = true;
v.Prosody = undoMem;
v.DonotExecCommand = false;
Log.Debug($"Undo: undo: {undoMem} redo: {redoMem}");
//Log.Debug($"Undo: undo: {undoMem} redo: {redoMem}");


}
Expand Down
6 changes: 3 additions & 3 deletions Mirivoice/Commands/TextBoxEditCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void Execute(bool isRedoing)
{
if (isRedoing)
{
Log.Debug($"Redo: {redoMem}");
//Log.Debug($"Redo: {redoMem}");
if (!redoMem.CanPop) { return; }

v.mTextBoxEditor.DonotExecCommand = true;
Expand All @@ -40,7 +40,7 @@ public void Execute(bool isRedoing)
undoMem.Push(v.mTextBoxEditor.CurrentScript);
}
isFirstExec = false;
Log.Debug($"Execute: undo: {undoMem}, redo: {redoMem}");
//Log.Debug($"Execute: undo: {undoMem}, redo: {redoMem}");
}
}

Expand All @@ -52,7 +52,7 @@ public void UnExecute()
v.mTextBoxEditor.DonotExecCommand = true;
v.mTextBoxEditor.CurrentScript = undoMem.Pop();
v.mTextBoxEditor.DonotExecCommand = false;
Log.Debug($"Undo: undo: {undoMem} redo: {redoMem}");
//Log.Debug($"Undo: undo: {undoMem} redo: {redoMem}");


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public override string ConvertToIPA(string phoneme, bool isFirstPhoneme)
}
string result = string.Join("", IPA);
string res = string.Join("\t", result.ToCharArray());
//Log.Debug($"Converted {phoneme} to {res}");
Log.Debug($"[IPA 변환] {phoneme} -> {res}");
return res;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Mirivoice.Mirivoice.Plugins.Builtin.Phonemizers.Utils;
using Serilog;
using System.Collections.Generic;

namespace Mirivoice.Mirivoice.Plugins.Builtin.IPAConverters
Expand Down Expand Up @@ -94,7 +95,7 @@ public override string ConvertToIPA(string phoneme, bool isFirstPhoneme)
string _result = $"{FirstConsonant2IPA[firstConsonant]}{Vowel2IPA[(string)splited[1]]}{LastConsonant2IPA[(string)splited[2]]}";
result = string.Join("\t", _result.ToCharArray());

//Log.Information("ConvertToIPA: {phoneme} -> {result}", phoneme, result);
Log.Information("[IPA 변환] {phoneme} -> {result}", phoneme, result);
}

return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static string WordToArpabet(string word)
{
// use the CMU Pronouncing Dictionary to convert words to ARPAbet
string arpabetRes = cmuDict.CMUDict.TryGetValue(word.ToLower(), out string arpabet) ? arpabet.ToLower() : word;
Log.Debug($"WordToArpabet: {word} -> {arpabetRes}");
//Log.Debug($"WordToArpabet: {word} -> {arpabetRes}");
return arpabetRes;

}
Expand Down

0 comments on commit 102f0de

Please sign in to comment.