Skip to content

Commit 2322e89

Browse files
committed
Add an example section for hanging-punctuation: allow-end and force-end
1 parent 53193b2 commit 2322e89

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

css3-text/Overview.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4193,6 +4193,28 @@ <h3 id=hanging-punctuation><span class=secno>10.2. </span> Hanging
41934193
UAs that wish to support CJK typography, particularly those in the
41944194
Japanese market.
41954195

4196+
<div class=example>
4197+
<p>The &lsquo;<code class=css>allow-end</code>&rsquo; and &lsquo;<code
4198+
class=css>force-end</code>&rsquo; are two variations of hanging
4199+
punctuation used in East Asia.</p>
4200+
4201+
<div class=figure>
4202+
<p><img alt="hanging-punctuation: allow-end (left) and force-end (right)"
4203+
height=51 src=hanging-punctuation-end.png width=388>
4204+
4205+
<p class=caption>&lsquo;<a href="#hanging-punctuation0"><code
4206+
class=property>hanging-punctuation</code></a>&rsquo;: &lsquo;<code
4207+
class=css>allow-end</code>&rsquo; (left) and &lsquo;<code
4208+
class=css>force-end</code>&rsquo; (right)</p>
4209+
</div>
4210+
4211+
<p>The punctuation at the end of the first line for &lsquo;<code
4212+
class=css>allow-end</code>&rsquo; does not hang, because it fits without
4213+
hanging. If &lsquo;<code class=css>force-end</code>&rsquo; is used,
4214+
however, it is forced to hang. The justification measures the line
4215+
without the hanging punctuation and therefore the line is expanded.</p>
4216+
</div>
4217+
41964218
<h2 id=decoration><span class=secno>11. </span> <a
41974219
name=text-decoration>Text Decoration</a></h2>
41984220

css3-text/Overview.src.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3132,6 +3132,22 @@ <h3 id="hanging-punctuation">
31323132
for UAs that wish to support CJK typography, particularly those in
31333133
the Japanese market.</p>
31343134

3135+
<div class="example">
3136+
<p>The ''allow-end'' and ''force-end'' are two variations of
3137+
hanging punctuation used in East Asia.</p>
3138+
<div class="figure">
3139+
<p><img src="hanging-punctuation-end.png"
3140+
width="388" height="51"
3141+
alt="hanging-punctuation: allow-end (left) and force-end (right)">
3142+
<p class="caption">'hanging-punctuation': ''allow-end'' (left) and ''force-end'' (right)</p>
3143+
</div>
3144+
<p>The punctuation at the end of the first line for ''allow-end''
3145+
does not hang, because it fits without hanging.
3146+
If ''force-end'' is used, however, it is forced to hang.
3147+
The justification measures the line without the hanging punctuation
3148+
and therefore the line is expanded.</p>
3149+
</div>
3150+
31353151
<h2 id="decoration">
31363152
<a name="text-decoration">Text Decoration</a></h2>
31373153

0 commit comments

Comments
 (0)