[gtk/new-text-attributes: 5/5] gtk-demo: Add hyphenation control to the markup demo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/new-text-attributes: 5/5] gtk-demo: Add hyphenation control to the markup demo
- Date: Sat, 21 Mar 2020 04:00:10 +0000 (UTC)
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> hyphenation algorithm is a set of rules, especially one codified
for implementation in a computer program, that decides at which points a word can be broken over two
lines with a hyphen. For example, a hyphenation algorithm might decide that impeachment 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]