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 | 93 #if 0 |
94 HyphenDict *hnj_hyphen_load (const unsigned char *data, size_t size); | 94 /* DO NOT USE, there are known problems with Unicode on Windows. */ |
95 #else | |
96 HyphenDict *hnj_hyphen_load (const char *fn); | 95 HyphenDict *hnj_hyphen_load (const char *fn); |
97 #endif | 96 #endif |
| 97 HyphenDict *hnj_hyphen_load_file (FILE *f); |
98 void hnj_hyphen_free (HyphenDict *dict); | 98 void hnj_hyphen_free (HyphenDict *dict); |
99 | 99 |
100 /* obsolete, use hnj_hyphen_hyphenate2() or *hyphenate3() functions) */ | 100 /* obsolete, use hnj_hyphen_hyphenate2() or *hyphenate3() functions) */ |
101 int hnj_hyphen_hyphenate (HyphenDict *dict, | 101 int hnj_hyphen_hyphenate (HyphenDict *dict, |
102 const char *word, int word_size, | 102 const char *word, int word_size, |
103 char *hyphens); | 103 char *hyphens); |
104 | 104 |
105 /* | 105 /* |
106 | 106 |
107 int hnj_hyphen_hyphenate2(): non-standard hyphenation. | 107 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, | 164 int hnj_hyphen_hyphenate3 (HyphenDict *dict, |
165 const char *word, int word_size, char * hyphens, | 165 const char *word, int word_size, char * hyphens, |
166 char *hyphword, char *** rep, int ** pos, int ** cut, | 166 char *hyphword, char *** rep, int ** pos, int ** cut, |
167 int lhmin, int rhmin, int clhmin, int crhmin); | 167 int lhmin, int rhmin, int clhmin, int crhmin); |
168 | 168 |
169 #ifdef __cplusplus | 169 #ifdef __cplusplus |
170 } | 170 } |
171 #endif /* __cplusplus */ | 171 #endif /* __cplusplus */ |
172 | 172 |
173 #endif /* __HYPHEN_H__ */ | 173 #endif /* __HYPHEN_H__ */ |
OLD | NEW |