Skip to content

Commit f014ff9

Browse files
committed
[css-text] Add inter-character as alias of distribute. <http://lists.w3.org/Archives/Public/www-style/2014Oct/0294.html>
1 parent b395796 commit f014ff9

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

css-text/Overview.bs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,9 +1526,8 @@ Canonical order: N/A
15261526

15271527
<p>If <dfn dfn-for=text-align-last dfn-type=value>auto</dfn> is specified,
15281528
content on the affected line is aligned per 'text-align'
1529-
unless 'text-align' is set to ''justify''.
1530-
In this case, content is justified if 'text-justify' is ''distribute''
1531-
and start-aligned otherwise.
1529+
unless 'text-align' is set to ''justify'',
1530+
in which case it is start-aligned.
15321531
All other values have the same meanings as in 'text-align'.
15331532

15341533
<h3 id="text-justify-property">
@@ -1541,7 +1540,7 @@ Canonical order: N/A
15411540
</tr>
15421541
<tr>
15431542
<th><a href="#values">Value</a>:
1544-
<td>auto | none | inter-word | distribute
1543+
<td>auto | none | inter-word | inter-character
15451544
</td>
15461545
</tr>
15471546
<tr>
@@ -1654,16 +1653,18 @@ Canonical order: N/A
16541653
src="text-justify-interword.png"></p>
16551654
<p class="caption">Mixed-script text with ''text-justify: inter-word''
16561655
</div>
1657-
<dt><dfn>distribute</dfn></dt>
1656+
<dt><dfn>inter-character</dfn></dt>
16581657
<dd>Justification adjusts spacing between each pair of adjacent <i>typographic character units</i>
16591658
(effectively varying the used 'letter-spacing' on the line).
16601659
This value is sometimes used in East Asian systems such as Japanese.
16611660
<div class="figure" id="fig-text-justify-distribute">
16621661
<p>
16631662
<img alt="Extra space is equally distributed at points between spaces and letters of all writing systems."
16641663
src="text-justify-distribute.png"></p>
1665-
<p class="caption">Mixed-script text with ''text-justify: distribute''
1664+
<p class="caption">Mixed-script text with ''text-justify: inter-character''
16661665
</div>
1666+
For legacy reasons, UAs must also support the alternate keyword <dfn>distribute</dfn>
1667+
with the exact same meaning and behavior.
16671668
</dl>
16681669

16691670
<p class="advisement">
@@ -1702,7 +1703,7 @@ Expanding and Compressing Text</h4>
17021703
regardless of which <i>typographic character units</i> created that opportunity.
17031704
For example, if <i>justification opportunities</i> between two Han characters
17041705
and between two Latin letters are defined to be at the same level
1705-
(as they are in the ''distribute'' justification style),
1706+
(as they are in the ''inter-character'' justification style),
17061707
they are not treated differently because they originate from different <i>typographic character units</i>.
17071708
It is not defined in this level
17081709
whether or how other factors
@@ -1752,7 +1753,7 @@ Unexpandable Text</h4>
17521753
<p>If the inline contents of a line cannot be stretched to the full width of the line box,
17531754
then they must be aligned as specified by the 'text-align-last' property.
17541755
(If 'text-align-last' is ''justify'', then
1755-
they must be aligned as for ''center'' if 'text-justify' is ''distribute'',
1756+
they must be aligned as for ''center'' if 'text-justify' is ''inter-character'',
17561757
and as ''start'' otherwise.)
17571758

17581759
<h4 id="justify-cursive">

css-text/Overview.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,9 +1673,8 @@ <h3 class="heading settled" data-level=7.3 id=text-align-last-property><span cla
16731673

16741674
<p>If <dfn class=css data-dfn-for=text-align-last data-dfn-type=value data-export="" id=valdef-text-align-last-auto>auto<a class=self-link href=#valdef-text-align-last-auto></a></dfn> is specified,
16751675
content on the affected line is aligned per <a class=property data-link-type=propdesc href=#propdef-text-align title=text-align>text-align</a>
1676-
unless <a class=property data-link-type=propdesc href=#propdef-text-align title=text-align>text-align</a> is set to <a class=css data-link-type=maybe href=#valdef-text-align-justify title=justify>justify</a>.
1677-
In this case, content is justified if <a class=property data-link-type=propdesc href=#propdef-text-justify title=text-justify>text-justify</a> is <a class=css data-link-type=maybe href=#valdef-text-justify-distribute title=distribute>distribute</a>
1678-
and start-aligned otherwise.
1676+
unless <a class=property data-link-type=propdesc href=#propdef-text-align title=text-align>text-align</a> is set to <a class=css data-link-type=maybe href=#valdef-text-align-justify title=justify>justify</a>,
1677+
in which case it is start-aligned.
16791678
All other values have the same meanings as in <a class=property data-link-type=propdesc href=#propdef-text-align title=text-align>text-align</a>.
16801679

16811680
<h3 class="heading settled" data-level=7.4 id=text-justify-property><span class=secno>7.4 </span><span class=content>
@@ -1688,7 +1687,7 @@ <h3 class="heading settled" data-level=7.4 id=text-justify-property><span class=
16881687
</tr>
16891688
<tr>
16901689
<th><a href=#values>Value</a>:
1691-
<td>auto | none | inter-word | distribute
1690+
<td>auto | none | inter-word | inter-character
16921691
</td>
16931692
</tr>
16941693
<tr>
@@ -1796,15 +1795,17 @@ <h3 class="heading settled" data-level=7.4 id=text-justify-property><span class=
17961795
<img alt="Extra space is equally distributed mainly to spaces." src=text-justify-interword.png></p>
17971796
<p class=caption>Mixed-script text with <a class=css data-link-type=propdesc href=#propdef-text-justify title=text-justify>text-justify: inter-word</a>
17981797
</div>
1799-
<dt><dfn class=css data-dfn-for=text-justify data-dfn-type=value data-export="" id=valdef-text-justify-distribute>distribute<a class=self-link href=#valdef-text-justify-distribute></a></dfn></dt>
1798+
<dt><dfn class=css data-dfn-for=text-justify data-dfn-type=value data-export="" id=valdef-text-justify-inter-character>inter-character<a class=self-link href=#valdef-text-justify-inter-character></a></dfn></dt>
18001799
<dd>Justification adjusts spacing between each pair of adjacent <a data-link-type=dfn href=#typographic-character-unit title="typographic character units">typographic character units</a>
18011800
(effectively varying the used <a class=property data-link-type=propdesc href=#propdef-letter-spacing title=letter-spacing>letter-spacing</a> on the line).
18021801
This value is sometimes used in East Asian systems such as Japanese.
18031802
<div class=figure id=fig-text-justify-distribute>
18041803
<p>
18051804
<img alt="Extra space is equally distributed at points between spaces and letters of all writing systems." src=text-justify-distribute.png></p>
1806-
<p class=caption>Mixed-script text with <a class=css data-link-type=propdesc href=#propdef-text-justify title=text-justify>text-justify: distribute</a>
1805+
<p class=caption>Mixed-script text with <a class=css data-link-type=propdesc href=#propdef-text-justify title=text-justify>text-justify: inter-character</a>
18071806
</div>
1807+
For legacy reasons, UAs must also support the alternate keyword <dfn class=css data-dfn-for=text-justify data-dfn-type=value data-export="" id=valdef-text-justify-distribute>distribute<a class=self-link href=#valdef-text-justify-distribute></a></dfn>
1808+
with the exact same meaning and behavior.
18081809
</dl>
18091810

18101811
<p class=advisement>
@@ -1843,7 +1844,7 @@ <h4 class="heading settled" data-level=7.4.1 id=expanding-text><span class=secno
18431844
regardless of which <a data-link-type=dfn href=#typographic-character-unit title="typographic character units">typographic character units</a> created that opportunity.
18441845
For example, if <a data-link-type=dfn href=#justification-opportunity title="justification opportunities">justification opportunities</a> between two Han characters
18451846
and between two Latin letters are defined to be at the same level
1846-
(as they are in the <a class=css data-link-type=maybe href=#valdef-text-justify-distribute title=distribute>distribute</a> justification style),
1847+
(as they are in the <a class=css data-link-type=maybe href=#valdef-text-justify-inter-character title=inter-character>inter-character</a> justification style),
18471848
they are not treated differently because they originate from different <a data-link-type=dfn href=#typographic-character-unit title="typographic character units">typographic character units</a>.
18481849
It is not defined in this level
18491850
whether or how other factors
@@ -1893,7 +1894,7 @@ <h4 class="heading settled" data-level=7.4.3 id=justify-limits><span class=secno
18931894
<p>If the inline contents of a line cannot be stretched to the full width of the line box,
18941895
then they must be aligned as specified by the <a class=property data-link-type=propdesc href=#propdef-text-align-last title=text-align-last>text-align-last</a> property.
18951896
(If <a class=property data-link-type=propdesc href=#propdef-text-align-last title=text-align-last>text-align-last</a> is <a class=css data-link-type=maybe href=#valdef-text-align-justify title=justify>justify</a>, then
1896-
they must be aligned as for <a class=css data-link-type=maybe href=#valdef-text-align-center title=center>center</a> if <a class=property data-link-type=propdesc href=#propdef-text-justify title=text-justify>text-justify</a> is <a class=css data-link-type=maybe href=#valdef-text-justify-distribute title=distribute>distribute</a>,
1897+
they must be aligned as for <a class=css data-link-type=maybe href=#valdef-text-align-center title=center>center</a> if <a class=property data-link-type=propdesc href=#propdef-text-justify title=text-justify>text-justify</a> is <a class=css data-link-type=maybe href=#valdef-text-justify-inter-character title=inter-character>inter-character</a>,
18971898
and as <a class=css data-link-type=maybe href=#valdef-text-align-start title=start>start</a> otherwise.)
18981899

18991900
<h4 class="heading settled" data-level=7.4.4 id=justify-cursive><span class=secno>7.4.4 </span><span class=content>
@@ -3044,6 +3045,7 @@ <h2 class="no-num no-ref heading settled" id=index><span class=content>
30443045
<li>hyphenation, <a href=#hyphenate title="section 6">6</a>
30453046
<li>hyphenation opportunity, <a href=#hyphenation-opportunity title="section 6">6</a>
30463047
<li>hyphens, <a href=#propdef-hyphens title="section 6.1">6.1</a>
3048+
<li>inter-character, <a href=#valdef-text-justify-inter-character title="section 7.4">7.4</a>
30473049
<li>inter-word, <a href=#valdef-text-justify-inter-word title="section 7.4">7.4</a>
30483050
<li>justification opportunity, <a href=#justification-opportunity title="section 7.4.1">7.4.1</a>
30493051
<li>justify, <a href=#valdef-text-align-justify title="section 7.1">7.1</a>
@@ -3134,7 +3136,7 @@ <h2 class="no-num no-ref heading settled" id=property-index><span class=content>
31343136
<tr><th scope=row><a class=css data-link-type=property href=#propdef-text-align-all title=text-align-all>text-align-all</a><td>start | end | left | right | center |
31353137
justify | match-parent<td>start<td>block containers<td>yes<td>N/A<td>visual<td>no<td>N/A<td><td>specified value
31363138
<tr><th scope=row><a class=css data-link-type=property href=#propdef-text-align-last title=text-align-last>text-align-last</a><td>auto | start | end | left | right | center | justify<td>auto<td>block containers<td>yes<td>N/A<td>visual<td>no<td>N/A<td><td>specified value
3137-
<tr><th scope=row><a class=css data-link-type=property href=#propdef-text-justify title=text-justify>text-justify</a><td>auto | none | inter-word | distribute<td>auto<td>block containers and, optionally, inline elements<td>yes<td>N/A<td>visual<td>no<td>N/A<td><td>specified value
3139+
<tr><th scope=row><a class=css data-link-type=property href=#propdef-text-justify title=text-justify>text-justify</a><td>auto | none | inter-word | inter-character<td>auto<td>block containers and, optionally, inline elements<td>yes<td>N/A<td>visual<td>no<td>N/A<td><td>specified value
31383140
<tr><th scope=row><a class=css data-link-type=property href=#propdef-word-spacing title=word-spacing>word-spacing</a><td>[ normal | &lt;length&gt; | &lt;percentage&gt;]<td>normal<td>all elements<td>yes<td>refers to width of the affected glyph<td>visual<td>as length, percentage, or calc<td>N/A<td><td>an absolute length
31393141
<tr><th scope=row><a class=css data-link-type=property href=#propdef-letter-spacing title=letter-spacing>letter-spacing</a><td>normal | &lt;length&gt;<td>normal<td>all elements<td>yes<td>N/A<td>visual<td>as length<td>N/A<td><td>an absolute length
31403142
<tr><th scope=row><a class=css data-link-type=property href=#propdef-text-indent title=text-indent>text-indent</a><td>[ &lt;length&gt;

css-text/issues-lc-2013.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,9 @@ From: James Clark
634634
Comment: http://lists.w3.org/Archives/Public/www-style/2014Mar/0475.html
635635
Response: http://lists.w3.org/Archives/Public/www-style/2014Jun/0431.html
636636
Comment: http://lists.w3.org/Archives/Public/www-style/2014Jun/0439.html
637-
Open: Waiting for Microsoft, edits
637+
Response:
638+
Closed: Accepted
639+
Resolved: http://lists.w3.org/Archives/Public/www-style/2014Oct/0259.html
638640
----
639641
Issue 73.
640642
Summary: example 16 named entity

0 commit comments

Comments
 (0)