fitz/hyphen.h
Index
struct
function
Hyphen
struct fz_hyphenator {
fz_pool *pool;
int node_count;
int pattern_count;
fz_hyph_trie *trie;
}
struct fz_hyph_trie
{
char *patval; /* null unless leaf */
short patlen; /* num values - 1 in pattern */
int ch; /* char to branch on (not used for leaves) */
fz_hyph_trie *child;
fz_hyph_trie *next;
}
fz_hyphenator *
fz_new_hyphenator_from_stream (
fz_context *ctx,
fz_stream *stm
)
void
fz_register_hyphenator (
fz_context *ctx,
fz_text_language lang,
fz_hyphenator *hyph
)
void
fz_hyphenate_word (
fz_context *ctx,
fz_hyphenator *hyph,
const char *input,
int input_size,
char *output,
int output_size
)
void
fz_drop_hyphenator (
fz_context *ctx,
fz_hyphenator *hyph
)
fz_hyphenator *
fz_lookup_hyphenator (
fz_context *ctx,
fz_text_language lang
)