[gtk/new-text-attributes: 5/5] gtk-demo: Add hyphenation control to the markup demo



commit 923a245a805c5537fc1075ea11c5003e093a197f
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Mar 20 23:51:36 2020 -0400

    gtk-demo: Add hyphenation control to the markup demo

 demos/gtk-demo/markup.txt | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/demos/gtk-demo/markup.txt b/demos/gtk-demo/markup.txt
index 92da324a15..e5e7ea67d0 100644
--- a/demos/gtk-demo/markup.txt
+++ b/demos/gtk-demo/markup.txt
@@ -14,3 +14,7 @@ Superscripts and subscripts: 𝜀<span rise="-6000" size="x-small" font_desc="it
 OpenType font features: <span font_desc="sans regular" font_features="dlig=0">feast</span> versus <span 
font_desc="sans regular" font_features="dlig=1">feast</span>
 
 Shortcuts: <tt>Monospace</tt> – <b>Bold</b> – <i>Italic</i> – <big>Big</big> – <small>Small</small> – 
<u>Underlined</u> – <s>Strikethrough</s> – Super<sup>script</sup> – Sub<sub>script</sub>
+
+<span allow_breaks="false">A</span> hy­phen­ation al­go­rithm is a set of rules, espe­ci­ally one co­di­fied 
for im­ple­men­tation in a com­pu­ter pro­gram, that de­ci­des at which points a word can be bro­ken over two 
lines with a hy­phen. For ex­am­ple, a hy­phen­ation al­go­rithm might de­cide that im­peach­ment can be 
broken as <span allow_breaks="false">impeach‧ment</span> or <span allow_breaks="false">im‧peachment</span> 
but not <span allow_breaks="false">impe‧achment.</span>
+
+<span insert_hyphens="false">one/two three/four five/six seven/eight nine/ten</span>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]