| return 0; | return 0; | ||||
| } | } | ||||
| int IsSpace(unsigned int c) | |||||
| static int IsSpace(unsigned int c) | |||||
| { | { | ||||
| if (c == 0) | if (c == 0) | ||||
| return 0; | return 0; | ||||
| return strchr((char *)s, c); // (char *) is needed for Borland compiler | return strchr((char *)s, c); // (char *) is needed for Borland compiler | ||||
| } | } | ||||
| int IsAllUpper(const char *word) | |||||
| { | |||||
| int c; | |||||
| while ((*word != 0) && !isspace2(*word)) { | |||||
| word += utf8_in(&c, word); | |||||
| if (!iswupper(c)) | |||||
| return 0; | |||||
| } | |||||
| return 1; | |||||
| } | |||||
| static char *SpeakIndividualLetters(Translator *tr, char *word, char *phonemes, int spell_word) | static char *SpeakIndividualLetters(Translator *tr, char *word, char *phonemes, int spell_word) | ||||
| { | { | ||||
| int posn = 0; | int posn = 0; | ||||
| return count; | return count; | ||||
| } | } | ||||
| void Word_EmbeddedCmd() | |||||
| static void Word_EmbeddedCmd() | |||||
| { | { | ||||
| // Process embedded commands for emphasis, sayas, and break | // Process embedded commands for emphasis, sayas, and break | ||||
| int embedded_cmd; | int embedded_cmd; | ||||
| static const char *UCase_ga[] = { "bp", "bhf", "dt", "gc", "hA", "mb", "nd", "ng", "ts", "tA", "nA", NULL }; | static const char *UCase_ga[] = { "bp", "bhf", "dt", "gc", "hA", "mb", "nd", "ng", "ts", "tA", "nA", NULL }; | ||||
| int UpperCaseInWord(Translator *tr, char *word, int c) | |||||
| static int UpperCaseInWord(Translator *tr, char *word, int c) | |||||
| { | { | ||||
| int ix; | int ix; | ||||
| int len; | int len; |