Skip to content

Commit adb9dac

Browse files
committed
[css-text] Give word-break values a high-level desription.
--HG-- extra : rebase_source : d107482c1b0e4beda3e433be151104f065d72c0b
1 parent e9bbca8 commit adb9dac

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

css-text/Overview.bs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -932,18 +932,19 @@ Line Breaking Details</h3>
932932
allows breaks between any two consecutive Hangul/Hanja.
933933

934934
<dt><dfn>break-all</dfn></dt>
935-
<dd>In addition to ''word-break/normal'' <i>soft wrap opportunities</i>,
935+
<dd>Breaking is allowed within “words”:
936+
in addition to ''word-break/normal'' <i>soft wrap opportunities</i>,
936937
lines may break between any two <i>semantically-perceived letters</i>
937938
(except where forbidden by the 'line-break' property).
938939
Hyphenation is not applied. This option is used mostly in a context where
939940
the text is predominantly using CJK characters with few non-CJK excerpts
940941
and it is desired that the text be better distributed on each line.</dd>
941942

942943
<dt><dfn>keep-all</dfn></dt>
943-
<dd>
944-
Implicit <i>soft wrap opportunities</i> between <i>semantically-perceived letters</i> are suppressed,
944+
<dd>Breaking is forbidden within “words”:
945+
implicit <i>soft wrap opportunities</i> between <i>semantically-perceived letters</i> are suppressed,
945946
i.e. breaks are prohibited between pairs of letters
946-
(including those explicitly allowed by 'line-break')
947+
(regardless of 'line-break' settings)
947948
except where opportunities exist due to dictionary-based breaking.
948949
Otherwise this option is equivalent to ''word-break/normal''.
949950
In this style, sequences of CJK characters do not break.

css-text/Overview.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,18 +1103,19 @@ <h3 class="heading settled heading" data-level=5.2 id=word-break-property><span
11031103
allows breaks between any two consecutive Hangul/Hanja.
11041104

11051105
<dt><dfn class=css-code data-dfn-for=word-break data-dfn-type=value data-export="" id=valuedef-break-all>break-all<a class=self-link href=#valuedef-break-all></a></dfn></dt>
1106-
<dd>In addition to <a class=css data-link-for=word-break data-link-type=maybe href=#valuedef-normal1 title=normal>normal</a> <a data-link-type=dfn href=#soft-wrap-opportunity title="soft wrap opportunities">soft wrap opportunities</a>,
1106+
<dd>Breaking is allowed within “words”:
1107+
in addition to <a class=css data-link-for=word-break data-link-type=maybe href=#valuedef-normal1 title=normal>normal</a> <a data-link-type=dfn href=#soft-wrap-opportunity title="soft wrap opportunities">soft wrap opportunities</a>,
11071108
lines may break between any two <a data-link-type=dfn href=#semantically-perceived-letter title="semantically-perceived letters">semantically-perceived letters</a>
11081109
(except where forbidden by the <a class=property data-link-type=propdesc href=#propdef-line-break title=line-break>line-break</a> property).
11091110
Hyphenation is not applied. This option is used mostly in a context where
11101111
the text is predominantly using CJK characters with few non-CJK excerpts
11111112
and it is desired that the text be better distributed on each line.</dd>
11121113

11131114
<dt><dfn class=css-code data-dfn-for=word-break data-dfn-type=value data-export="" id=valuedef-keep-all>keep-all<a class=self-link href=#valuedef-keep-all></a></dfn></dt>
1114-
<dd>
1115-
Implicit <a data-link-type=dfn href=#soft-wrap-opportunity title="soft wrap opportunities">soft wrap opportunities</a> between <a data-link-type=dfn href=#semantically-perceived-letter title="semantically-perceived letters">semantically-perceived letters</a> are suppressed,
1115+
<dd>Breaking is forbidden within “words”:
1116+
implicit <a data-link-type=dfn href=#soft-wrap-opportunity title="soft wrap opportunities">soft wrap opportunities</a> between <a data-link-type=dfn href=#semantically-perceived-letter title="semantically-perceived letters">semantically-perceived letters</a> are suppressed,
11161117
i.e. breaks are prohibited between pairs of letters
1117-
(including those explicitly allowed by <a class=property data-link-type=propdesc href=#propdef-line-break title=line-break>line-break</a>)
1118+
(regardless of <a class=property data-link-type=propdesc href=#propdef-line-break title=line-break>line-break</a> settings)
11181119
except where opportunities exist due to dictionary-based breaking.
11191120
Otherwise this option is equivalent to <a class=css data-link-for=word-break data-link-type=maybe href=#valuedef-normal1 title=normal>normal</a>.
11201121
In this style, sequences of CJK characters do not break.

0 commit comments

Comments
 (0)