Skip to content

Instantly share code, notes, and snippets.

@ikegami-yukino
Created February 26, 2015 18:44
Show Gist options
  • Save ikegami-yukino/51cb4feb0739412be2e1 to your computer and use it in GitHub Desktop.
Save ikegami-yukino/51cb4feb0739412be2e1 to your computer and use it in GitHub Desktop.
OpenJtalk 1.08 の間延びするバグ修正パッチ
*** jpcommon/jpcommon_label.c.old 2015-02-27 03:35:32.000000000 +0900
--- jpcommon/jpcommon_label.c 2015-02-27 03:36:34.000000000 +0900
*************** static int index_accent_phrase_in_breath
*** 296,301 ****
--- 296,302 ----
if (index == a)
break;
}
+ if (i > 3) i = 3;
return i;
}
*************** static int count_mora_in_utterance(JPCom
*** 395,400 ****
--- 396,402 ----
for (i = 0, index = m->next; index != NULL; index = index->next)
i++;
+ if (i > 10) i = 10;
return index_mora_in_utterance(m) + i;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment