Skip to content

Commit adaa79a

Browse files
committed
[css-text-4] Reformat hyphenate-character definition. (No normative changes.)
1 parent 8dcb4ec commit adaa79a

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

css-text-4/Overview.bs

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -534,24 +534,35 @@ Hyphens: the 'hyphenate-character' property</h3>
534534
Computed value: as specified
535535
</pre>
536536

537-
This property specifies strings that are shown between parts of
538-
hyphenated words. The <dfn for=hyphenate-character>auto</dfn> value means that the user agent should
539-
find an appropriate value, preferably from the same source as the
540-
hyphenation dictionary. If a string is specified, it appears at
541-
the end of the line before a hyphenation break.
537+
This property specifies the string that is shown
538+
between parts of hyphenated words.
539+
Values have the following meanings:
540+
541+
<dl dfn-for=hyphenate-character dfn-type=value>
542+
<dt><dfn>auto</dfn>
543+
<dd>
544+
Specifies that the user agent should find an appropriate string
545+
based on the <a>content language</a>’s typographic conventions,
546+
possibly from the same source as the hyphenation dictionary.
547+
<dt><dfn><<string>></dfn>
548+
<dd>
549+
Specifies the string that appears
550+
at the end of the line before a hyphenation break.
551+
</dl>
542552

543553
<div class="example">
544-
In Latin scripts, the hyphen character (U+2010) is often used to
545-
indicate that a word has been split. Normally, it will not be
546-
necessary to set it explicitly. However, this can easily be done:
554+
In Latin scripts, the hyphen character (U+2010) is most typically used
555+
to indicate that a word has been split.
556+
Normally, it will not be necessary to set this explicitly.
557+
However, this can easily be done:
547558
<pre>
548559
article { hyphenate-character: "\2010" }
549560
</pre>
550561
</div>
551562

552-
Note: Both hyphens triggered by automatic hyphenation and
553-
hyphens triggered by soft hyphens are rendered according to
554-
'hyphenate-character'.
563+
Note: Both hyphens triggered by automatic hyphenation
564+
and hyphens triggered by soft hyphens
565+
are rendered according to 'hyphenate-character'.
555566

556567
<h3 id="hyphenate-size-limits">
557568
Hyphenation Size Limit: the 'hyphenate-limit-zone' property</h3>

0 commit comments

Comments
 (0)