mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 06:01:53 +00:00
[1.43.02 release]
Language improvements include Danish rules.
Fixed phoneme [n^] for Klatt synthesizer, was producing noise burst.
espeakedit: Display error details after Compile Dictionary.
espeakedit: Fix: After speaking a word which changes language, Compile
Dictionary may compile the wrong dictionary.
Don't consider multiple spaces as thousands separator (eg. 2 000 )
Lang=Hungarian, don't allow dot as thousands separator.
Lang-Hungarian, Fix suffixes -a, -e, -az, -ez, -azt, -ezt after numbers.
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@239 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
@@ -590,7 +590,36 @@ void MyFrame::OnTools(wxCommandEvent& event)
|
||||
wxLogStatus(_T("Compiled '")+wxString(dictionary_name,wxConvLocal)+_T("', %d errors"),err);
|
||||
|
||||
if(log != NULL)
|
||||
{
|
||||
fclose(log);
|
||||
|
||||
if(err > 0)
|
||||
{
|
||||
// display the error messages
|
||||
int len;
|
||||
FILE *f;
|
||||
char *msg;
|
||||
wxString msg_string;
|
||||
|
||||
len = GetFileLength(fname_log);
|
||||
if(len > 0)
|
||||
{
|
||||
if(len > 2000)
|
||||
len = 2000; // restrict length to pppppevent crash in wxLogMessage()
|
||||
msg = (char *)malloc(len+1);
|
||||
if(msg != NULL)
|
||||
{
|
||||
f = fopen(fname_log,"r");
|
||||
fread(msg,len,1,f);
|
||||
fclose(f);
|
||||
msg[len] = 0;
|
||||
msg_string = wxString(msg,wxConvUTF8);
|
||||
wxLogMessage(msg_string);
|
||||
free(msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case MENU_FORMAT_DICTIONARY:
|
||||
|
||||
Reference in New Issue
Block a user