From b614ea2b06b3c9defaceb92b6904fa8a92249abe Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 21 Aug 2021 23:54:03 -0400 Subject: Add segmentation attributes Add attributes that let us override word and sentence boundaries (and, indirectly, line breaks). Tests included. --- docs/pango_markup.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/pango_markup.md') diff --git a/docs/pango_markup.md b/docs/pango_markup.md index 3a1cc311..287bbc56 100644 --- a/docs/pango_markup.md +++ b/docs/pango_markup.md @@ -201,6 +201,12 @@ text_transform 'none', 'lowercase', 'uppercase' or 'capitalize'. Support for text transformation was added in Pango 1.50. +segment +: Overrides word or sentence boundaries. The value can be 'word' or 'sentence', + to indicate that the span should be treated as a single word or sentence. + Overlapping segments will be split to allow this, and line breaks will be + adjusted accordingly. Available since Pango 1.50. + ## Convenience Tags `` -- cgit v1.2.1