| 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 |
| 93 HyphenDict *hnj_hyphen_load (const char *fn); | 96 HyphenDict *hnj_hyphen_load (const char *fn); |
| 97 #endif |
| 94 void hnj_hyphen_free (HyphenDict *dict); | 98 void hnj_hyphen_free (HyphenDict *dict); |
| 95 | 99 |
| 96 /* obsolete, use hnj_hyphen_hyphenate2() or *hyphenate3() functions) */ | 100 /* obsolete, use hnj_hyphen_hyphenate2() or *hyphenate3() functions) */ |
| 97 int hnj_hyphen_hyphenate (HyphenDict *dict, | 101 int hnj_hyphen_hyphenate (HyphenDict *dict, |
| 98 const char *word, int word_size, | 102 const char *word, int word_size, |
| 99 char *hyphens); | 103 char *hyphens); |
| 100 | 104 |
| 101 /* | 105 /* |
| 102 | 106 |
| 103 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... |
| 160 int hnj_hyphen_hyphenate3 (HyphenDict *dict, | 164 int hnj_hyphen_hyphenate3 (HyphenDict *dict, |
| 161 const char *word, int word_size, char * hyphens, | 165 const char *word, int word_size, char * hyphens, |
| 162 char *hyphword, char *** rep, int ** pos, int ** cut, | 166 char *hyphword, char *** rep, int ** pos, int ** cut, |
| 163 int lhmin, int rhmin, int clhmin, int crhmin); | 167 int lhmin, int rhmin, int clhmin, int crhmin); |
| 164 | 168 |
| 165 #ifdef __cplusplus | 169 #ifdef __cplusplus |
| 166 } | 170 } |
| 167 #endif /* __cplusplus */ | 171 #endif /* __cplusplus */ |
| 168 | 172 |
| 169 #endif /* __HYPHEN_H__ */ | 173 #endif /* __HYPHEN_H__ */ |
| OLD | NEW |