From cc83f283abf479dac9a2218dea09aaf4302af48a Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 2 Sep 2005 06:18:54 +0000 Subject: [PATCH] (enum MTextLineBreakOption): New enum. (mtext_line_break): Extern it. --- src/m17n-core.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/m17n-core.h b/src/m17n-core.h index 9f0f4c5..f4ddbf8 100644 --- a/src/m17n-core.h +++ b/src/m17n-core.h @@ -511,6 +511,29 @@ extern int mtext_casecmp (MText *mt1, MText *mt2); extern int mtext_ncasecmp (MText *mt1, MText *mt2, int n); +/***en + @brief Enumeration for specifying a set of line breaking option. + + The enum #MTextLineBreakOption is to control the line breaking + algorithm of the function mtext_line_break () by specifying + logical-or of the members in the arg @e option. */ + +enum MTextLineBreakOption + { + /***en Specify the legacy support for space character as base for + combining marks. See the section 8.3 of UAX#14. */ + MTEXT_LBO_SP_CM = 1, + /***en Specify to use space characters for line breaking Korean + text. */ + MTEXT_LBO_KOREAN_SP = 2, + /***en Specify to treat characters of ambiguous line-breaking + class as of ideographic line-breaking class. */ + MTEXT_LBO_AI_AS_ID = 4, + MTEXT_LBO_MAX + }; + +extern int mtext_line_break (MText *mt, int pos, int option, int *after); + /*** @ingroup m17nPlist */ extern MPlist *mplist_deserialize (MText *mt); -- 1.7.10.4