|
@@ -141,8 +141,8 @@ namespace BeatLyrics.Tool.Utils
|
|
|
var hira2 = match.Groups[4].Value;
|
|
|
|
|
|
// 聞き飽き
|
|
|
- if (match.Groups.Count == 5
|
|
|
- && Enumerable.Range(1, 4).All(p => match.Groups[p].Value.Length == 1)
|
|
|
+ if (match.Groups.Count == 5
|
|
|
+ && Enumerable.Range(1, 4).All(p => match.Groups[p].Value.Length == 1)
|
|
|
&& hira1 == hira2 && displayText.Length == yomiText.Length)
|
|
|
{
|
|
|
lst.Add(new TextTuple { Text = displayText[0].ToString(), Ruby = yomiText[0].ToString() });
|
|
@@ -152,6 +152,19 @@ namespace BeatLyrics.Tool.Utils
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
+ //聞き届 け
|
|
|
+ //ききとどけ
|
|
|
+ if (match.Groups.Count == 5
|
|
|
+ && Enumerable.Range(1, 4).All(p => match.Groups[p].Value.Length == 1)
|
|
|
+ && displayText.Length + 1 == yomiText.Length && yomiText[0] == yomiText[1])
|
|
|
+ {
|
|
|
+ lst.Add(new TextTuple { Text = displayText[0].ToString(), Ruby = yomiText[0].ToString() });
|
|
|
+ lst.Add(new TextTuple { Text = hira1, Ruby = hira1 });
|
|
|
+ lst.Add(new TextTuple { Text = displayText[2].ToString(), Ruby = yomiText[2].ToString() + yomiText[3] });
|
|
|
+ lst.Add(new TextTuple { Text = hira2, Ruby = hira2 });
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
var split = yomiText.Split(new[] { hira1, hira2 }, StringSplitOptions.RemoveEmptyEntries);
|
|
|
|
|
|
lst.Add(new TextTuple { Text = kan1, Ruby = split[0] });
|