[1.25.04] Windows, look in Registry to find location of dictsource.

Add lang=is Icelandic.
Adopt Phoneme [R] from experimental Croatian [R2].
lang=hu, add vowel_pause.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@20 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2007-05-23 10:34:28 +00:00
parent e40539b00b
commit ae4ae76802
31 changed files with 1113 additions and 161 deletions
+11 -1
View File
@@ -280,13 +280,23 @@ void Free(void *ptr)
static void init_path(const char *path)
{//====================================
#ifdef PLATFORM_WINDOWS
HKEY RegKey;
unsigned long size;
unsigned long var_type;
unsigned char buf[100];
if(path != NULL)
{
sprintf(path_home,"%s/espeak-data",path);
return;
}
buf[0] = 0;
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Speech\\Voices\\Tokens\\eSpeak", 0, KEY_READ, &RegKey);
size = sizeof(buf);
var_type = REG_SZ;
RegQueryValueEx(RegKey, "path", 0, &var_type, buf, &size);
strcpy(path_home,"c:\\Program Files\\espeak\\espeak-data");
sprintf(path_home,"%s\\espeak-data",buf);
#else
if(path != NULL)