0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-06-30 22:19:29 -04:00

festival: 240 chars should be enough for line length.

This commit is contained in:
Witold Filipczyk 2007-03-07 17:49:03 +01:00 committed by Witold Filipczyk
parent 17385a8d7f
commit 9465425b16

View File

@ -54,6 +54,8 @@ read_from_festival(struct fest *fest)
#define FLITE_SYSTEM 1
#define ESPEAK_SYSTEM 2
#define MAX_LINE_LENGTH 240
static void
write_to_festival(struct fest *fest)
{
@ -77,7 +79,7 @@ write_to_festival(struct fest *fest)
return;
len = doc->data[fest->line].length;
int_upper_bound(&len, 512);
int_upper_bound(&len, MAX_LINE_LENGTH);
if (!init_string(&buf))
return;
@ -200,6 +202,7 @@ init_festival(void)
#undef FESTIVAL_SYSTEM
#undef FLITE_SYSTEM
#undef ESPEAK_SYSTEM
#undef MAX_LINE_LENGTH
void
run_festival(struct session *ses, struct document_view *doc_view)