1 
2 /******************************************************************************
3 * MODULE     : hyphenate.hpp
4 * DESCRIPTION: hyphenation by Liang's algorithm
5 * COPYRIGHT  : (C) 1999  Joris van der Hoeven
6 *******************************************************************************
7 * This software falls under the GNU general public license version 3 or later.
8 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
9 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
10 ******************************************************************************/
11 
12 #ifndef HYPHENATE_H
13 #define HYPHENATE_H
14 #include "language.hpp"
15 
16 void load_hyphen_tables (string language_name,
17                          hashmap<string,string>& patterns,
18                          hashmap<string,string>& hyphenations, bool toCork);
19 array<int> get_hyphens (string s,
20                         hashmap<string,string> patterns,
21                         hashmap<string,string> hyphenations);
22 array<int> get_hyphens (string s,
23                         hashmap<string,string> patterns,
24                         hashmap<string,string> hyphenations, bool utf8);
25 void std_hyphenate (string s, int after, string& left, string& right, int pen);
26 void std_hyphenate (string s, int after, string& left, string& right, int pen,
27                     bool utf8);
28 
29 #endif // defined HYPHENATE_H
30