From: handa Date: Fri, 2 Sep 2005 06:18:54 +0000 (+0000) Subject: (enum MTextLineBreakOption): New enum. X-Git-Tag: REL-1-3-0~207 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=cc83f283abf479dac9a2218dea09aaf4302af48a;p=m17n%2Fm17n-lib.git (enum MTextLineBreakOption): New enum. (mtext_line_break): Extern it. --- 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);