| #define N_RULES 3000 // max rules for each group | #define N_RULES 3000 // max rules for each group | ||||
| int isHexDigit(int c) | |||||
| static int isHexDigit(int c) | |||||
| { | { | ||||
| if ((c >= '0') && (c <= '9')) | if ((c >= '0') && (c <= '9')) | ||||
| return c - '0'; | return c - '0'; | ||||
| return prule; | return prule; | ||||
| } | } | ||||
| int __cdecl string_sorter(char **a, char **b) | |||||
| static int __cdecl string_sorter(char **a, char **b) | |||||
| { | { | ||||
| char *pa, *pb; | char *pa, *pb; | ||||
| int ix; | int ix; |
| int dictionary_skipwords; | int dictionary_skipwords; | ||||
| char dictionary_name[40]; | char dictionary_name[40]; | ||||
| extern void print_dictionary_flags(unsigned int *flags, char *buf, int buf_len); | |||||
| extern char *DecodeRule(const char *group_chars, int group_length, char *rule, int control); | |||||
| // accented characters which indicate (in some languages) the start of a separate syllable | // accented characters which indicate (in some languages) the start of a separate syllable | ||||
| static const unsigned short diereses_list[7] = { 0xe4, 0xeb, 0xef, 0xf6, 0xfc, 0xff, 0 }; | static const unsigned short diereses_list[7] = { 0xe4, 0xeb, 0xef, 0xf6, 0xfc, 0xff, 0 }; | ||||
| int LookupDictList(Translator *tr, char **wordptr, char *ph_out, unsigned int *flags, int end_flags, WORD_TAB *wtab); | int LookupDictList(Translator *tr, char **wordptr, char *ph_out, unsigned int *flags, int end_flags, WORD_TAB *wtab); | ||||
| int HashDictionary(const char *string); | int HashDictionary(const char *string); | ||||
| void print_dictionary_flags(unsigned int *flags, char *buf, int buf_len); | |||||
| char *DecodeRule(const char *group_chars, int group_length, char *rule, int control); | |||||
| void MakePhonemeList(Translator *tr, int post_pause, int new_sentence); | void MakePhonemeList(Translator *tr, int post_pause, int new_sentence); | ||||
| int ChangePhonemes_ru(Translator *tr, PHONEME_LIST2 *phlist, int n_ph, int index, PHONEME_TAB *ph, CHANGEPH *ch); | int ChangePhonemes_ru(Translator *tr, PHONEME_LIST2 *phlist, int n_ph, int index, PHONEME_TAB *ph, CHANGEPH *ch); | ||||
| void ApplySpecialAttribute2(Translator *tr, char *phonemes, int dict_flags); | void ApplySpecialAttribute2(Translator *tr, char *phonemes, int dict_flags); |