OLD | NEW |
1 /* Hyphen - hyphenation library using converted TeX hyphenation patterns | 1 /* Hyphen - hyphenation library using converted TeX hyphenation patterns |
2 * | 2 * |
3 * (C) 1998 Raph Levien | 3 * (C) 1998 Raph Levien |
4 * (C) 2001 ALTLinux, Moscow | 4 * (C) 2001 ALTLinux, Moscow |
5 * (C) 2006, 2007, 2008 László Németh | 5 * (C) 2006, 2007, 2008 László Németh |
6 * | 6 * |
7 * This was part of libHnj library by Raph Levien. | 7 * This was part of libHnj library by Raph Levien. |
8 * | 8 * |
9 * Peter Novodvorsky from ALTLinux cut hyphenation part from libHnj | 9 * Peter Novodvorsky from ALTLinux cut hyphenation part from libHnj |
10 * to use it in OpenOffice.org. | 10 * to use it in OpenOffice.org. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 int fallback_state; | 83 int fallback_state; |
84 int num_trans; | 84 int num_trans; |
85 HyphenTrans *trans; | 85 HyphenTrans *trans; |
86 }; | 86 }; |
87 | 87 |
88 struct _HyphenTrans { | 88 struct _HyphenTrans { |
89 char ch; | 89 char ch; |
90 int new_state; | 90 int new_state; |
91 }; | 91 }; |
92 | 92 |
93 #ifdef HYPHEN_CHROME_CLIENT | |
94 HyphenDict *hnj_hyphen_load (const unsigned char *data, size_t size); | |
95 #else | |
96 HyphenDict *hnj_hyphen_load (const char *fn); | 93 HyphenDict *hnj_hyphen_load (const char *fn); |
97 #endif | 94 HyphenDict *hnj_hyphen_load_file (FILE *f); |
98 void hnj_hyphen_free (HyphenDict *dict); | 95 void hnj_hyphen_free (HyphenDict *dict); |
99 | 96 |
100 /* obsolete, use hnj_hyphen_hyphenate2() or *hyphenate3() functions) */ | 97 /* obsolete, use hnj_hyphen_hyphenate2() or *hyphenate3() functions) */ |
101 int hnj_hyphen_hyphenate (HyphenDict *dict, | 98 int hnj_hyphen_hyphenate (HyphenDict *dict, |
102 const char *word, int word_size, | 99 const char *word, int word_size, |
103 char *hyphens); | 100 char *hyphens); |
104 | 101 |
105 /* | 102 /* |
106 | 103 |
107 int hnj_hyphen_hyphenate2(): non-standard hyphenation. | 104 int hnj_hyphen_hyphenate2(): non-standard hyphenation. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 int hnj_hyphen_hyphenate3 (HyphenDict *dict, | 161 int hnj_hyphen_hyphenate3 (HyphenDict *dict, |
165 const char *word, int word_size, char * hyphens, | 162 const char *word, int word_size, char * hyphens, |
166 char *hyphword, char *** rep, int ** pos, int ** cut, | 163 char *hyphword, char *** rep, int ** pos, int ** cut, |
167 int lhmin, int rhmin, int clhmin, int crhmin); | 164 int lhmin, int rhmin, int clhmin, int crhmin); |
168 | 165 |
169 #ifdef __cplusplus | 166 #ifdef __cplusplus |
170 } | 167 } |
171 #endif /* __cplusplus */ | 168 #endif /* __cplusplus */ |
172 | 169 |
173 #endif /* __HYPHEN_H__ */ | 170 #endif /* __HYPHEN_H__ */ |
OLD | NEW |