#include <espeak-ng/espeak_ng.h> | #include <espeak-ng/espeak_ng.h> | ||||
#include <espeak-ng/speak_lib.h> | #include <espeak-ng/speak_lib.h> | ||||
#include <espeak-ng/encoding.h> | #include <espeak-ng/encoding.h> | ||||
#include <ucd/ucd.h> | |||||
#include "common.h" | #include "common.h" | ||||
#include "translate.h" | |||||
#pragma GCC visibility push(default) | #pragma GCC visibility push(default) | ||||
} | } | ||||
*c = c1; | *c = c1; | ||||
return n_bytes+1; | return n_bytes+1; | ||||
} | |||||
} | |||||
int towlower2(unsigned int c, Translator *translator) | |||||
{ | |||||
// check for non-standard upper to lower case conversions | |||||
if (c == 'I' && translator->langopts.dotless_i) | |||||
return 0x131; // I -> ı | |||||
return ucd_tolower(c); | |||||
} |
#define ESPEAK_NG_COMMON_H | #define ESPEAK_NG_COMMON_H | ||||
#include "espeak-ng/espeak_ng.h" | #include "espeak-ng/espeak_ng.h" | ||||
#include "translate.h" | |||||
extern ESPEAK_NG_API int GetFileLength(const char *filename); | extern ESPEAK_NG_API int GetFileLength(const char *filename); | ||||
extern ESPEAK_NG_API void strncpy0(char *to, const char *from, int size); | extern ESPEAK_NG_API void strncpy0(char *to, const char *from, int size); | ||||
int towlower2(unsigned int c, Translator *translator); // Supports Turkish I | |||||
ESPEAK_NG_API int utf8_in(int *c, const char *buf); | ESPEAK_NG_API int utf8_in(int *c, const char *buf); | ||||
int utf8_in2(int *c, const char *buf, int backwards); | int utf8_in2(int *c, const char *buf, int backwards); | ||||
int utf8_out(unsigned int c, char *buf); | int utf8_out(unsigned int c, char *buf); |
#include "error.h" // for create_file_error_context | #include "error.h" // for create_file_error_context | ||||
#include "mnemonics.h" // for LookupMnemName, MNEM_TAB | #include "mnemonics.h" // for LookupMnemName, MNEM_TAB | ||||
#include "phoneme.h" // for PHONEME_TAB_LIST, phonSWITCH, phone... | #include "phoneme.h" // for PHONEME_TAB_LIST, phonSWITCH, phone... | ||||
#include "readclause.h" // for towlower2 | |||||
#include "speech.h" // for path_home | #include "speech.h" // for path_home | ||||
#include "synthesize.h" // for Write4Bytes | #include "synthesize.h" // for Write4Bytes | ||||
#include "translate.h" // for isspace2, IsDigit09, utf8_in, utf8_out | #include "translate.h" // for isspace2, IsDigit09, utf8_in, utf8_out |
#include "common.h" | #include "common.h" | ||||
#include "dictionary.h" // for Lookup, TranslateRules, EncodePhonemes, Look... | #include "dictionary.h" // for Lookup, TranslateRules, EncodePhonemes, Look... | ||||
#include "phoneme.h" // for phonSWITCH, PHONEME_TAB, phonEND_WORD, phonP... | #include "phoneme.h" // for phonSWITCH, PHONEME_TAB, phonEND_WORD, phonP... | ||||
#include "readclause.h" // for WordToString2, towlower2 | |||||
#include "readclause.h" // for WordToString2 | |||||
#include "synthdata.h" // for SelectPhonemeTable | #include "synthdata.h" // for SelectPhonemeTable | ||||
#include "synthesize.h" // for phoneme_tab | #include "synthesize.h" // for phoneme_tab | ||||
#include "translate.h" // for Translator, LANGUAGE_OPTIONS, IsDigit09, WOR... | #include "translate.h" // for Translator, LANGUAGE_OPTIONS, IsDigit09, WOR... |
return (*str == 0 && memcmp(str, str+1, size-1) == 0); | return (*str == 0 && memcmp(str, str+1, size-1) == 0); | ||||
} | } | ||||
int towlower2(unsigned int c, Translator *translator) | |||||
{ | |||||
// check for non-standard upper to lower case conversions | |||||
if (c == 'I' && translator->langopts.dotless_i) | |||||
return 0x131; // I -> ı | |||||
return ucd_tolower(c); | |||||
} | |||||
static int IsRomanU(unsigned int c) | static int IsRomanU(unsigned int c) | ||||
{ | { | ||||
if ((c == 'I') || (c == 'V') || (c == 'X') || (c == 'L')) | if ((c == 'I') || (c == 'V') || (c == 'X') || (c == 'L')) |
int is_str_totally_null(const char* str, int size); | int is_str_totally_null(const char* str, int size); | ||||
int clause_type_from_codepoint(uint32_t c); | int clause_type_from_codepoint(uint32_t c); | ||||
int towlower2(unsigned int c, Translator *translator); // Supports Turkish I | |||||
int Eof(void); | int Eof(void); | ||||
const char *WordToString2(unsigned int word); | const char *WordToString2(unsigned int word); | ||||
int Read4Bytes(FILE *f); | int Read4Bytes(FILE *f); |