diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2008-04-25 00:33:29 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2008-04-25 00:33:29 +0000 |
commit | 8cb6363b7e598b0e4d4a4ef4229bed3d7a5d46c8 (patch) | |
tree | 53d111625613ddf6b7f50cc0bbde17e630c236a7 /docs | |
parent | f6b1fef713a035e4abcbe0d0fda54721a3560d5e (diff) | |
download | pango-8cb6363b7e598b0e4d4a4ef4229bed3d7a5d46c8.tar.gz |
Part of Bug 97545 – Make pango_default_break follow Unicode TR #29
2008-04-24 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 97545 – Make pango_default_break follow Unicode TR #29
* docs/tmpl/main.sgml:
* pango/break.c (pango_default_break):
* pango/pango-break.h:
* tests/testboundaries_ucd.c (main):
Add new PangoLogAttr member is_word_boundary, that implements UAX#29's
Word Boundaries semantics. Test fully passes for it.
svn path=/trunk/; revision=2618
Diffstat (limited to 'docs')
-rw-r--r-- | docs/tmpl/main.sgml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/tmpl/main.sgml b/docs/tmpl/main.sgml index fe37ff91..f5cff8e0 100644 --- a/docs/tmpl/main.sgml +++ b/docs/tmpl/main.sgml @@ -393,6 +393,10 @@ about the attributes of a single character. @is_cursor_position: if set, cursor can appear in front of character. i.e. this is a grapheme boundary, or the first character in the text. + This flag implements Unicode's + <ulink + url="http://www.unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries">Grapheme + Cluster Boundaries</ulink> semantics. @is_word_start: is first character in a word @is_word_end: is first non-word char after a word Note that in degenerate cases, you could have both @is_word_start @@ -424,6 +428,15 @@ about the attributes of a single character. characters. @is_expandable_space: is a whitespace character that can possibly be expanded for justification purposes. (Since: 1.18) +@is_word_boundary: is a word boundary. + More specifically, means that this is not a position in the middle + of a word. For example, both sides of a punctuation mark are + considered word boundaries. This flag is particularly useful when + selecting text word-by-word. + This flag implements Unicode's + <ulink url="http://www.unicode.org/reports/tr29/#Word_Boundaries">Word + Boundaries</ulink> semantics. + (Since: 1.22) <!-- ##### FUNCTION pango_shape ##### --> <para> |