Skip to content

Commit 63c2cdd

Browse files
committed
[css-text] inter-word doesn't allow justification between letters. Fix example.
1 parent 3379e03 commit 63c2cdd

2 files changed

Lines changed: 14 additions & 15 deletions

File tree

css-text/Overview.html

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2410,19 +2410,18 @@ <h4 id=justify-algos><span class=secno>7.3.5. </span> Possible Algorithms</h4>
24102410
their needs and desired balance of quality, speed, and complexity.
24112411

24122412
<div class=example>
2413-
<p>For instance, a basic but fast ‘<code class=css>inter-word</code>
2414-
justification algorithm might use a simple greedy method for determining
2415-
line breaks, then distribute leftover space. This algorithm could follow
2416-
the guidelines by expanding word spaces first, expanding between letters
2417-
only if the spaces between words hit a limit defined by the UA.
2418-
2419-
<p>A more sophisticated but slower ‘<code class=css>inter-word</code>
2420-
justification algorithm might use a Knuth/Plass method where <a
2421-
href="#expansion-opportunity"><i>expansion opportunities</i></a> and
2422-
limits were assigned weights and assessed with other line breaking
2423-
considerations. This algorithm could follow the guidelines by giving more
2424-
weight to <a href="#word-separator"><i>word separators</i></a> than
2425-
letter spacing.
2413+
<p>For instance, a basic but fast justification algorithm might use a
2414+
simple greedy method for determining line breaks, then distribute
2415+
leftover space. This algorithm could follow the guidelines by expanding
2416+
word spaces first, expanding between letters only if the spaces between
2417+
words hit a limit defined by the UA.
2418+
2419+
<p>A more sophisticated but slower justification algorithm might use a
2420+
Knuth/Plass method where <a href="#expansion-opportunity"><i>expansion
2421+
opportunities</i></a> and limits were assigned weights and assessed with
2422+
other line breaking considerations. This algorithm could follow the
2423+
guidelines by giving more weight to <a href="#word-separator"><i>word
2424+
separators</i></a> than letter spacing.
24262425
</div>
24272426

24282427
<div class=example>

css-text/Overview.src.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,13 +1760,13 @@ <h4 id="justify-algos">
17601760

17611761

17621762
<div class="example">
1763-
<p>For instance, a basic but fast ''inter-word'' justification algorithm
1763+
<p>For instance, a basic but fast justification algorithm
17641764
might use a simple greedy method for determining line breaks,
17651765
then distribute leftover space.
17661766
This algorithm could follow the guidelines by expanding word spaces first,
17671767
expanding between letters only if the spaces between words hit a limit defined by the UA.
17681768

1769-
<p>A more sophisticated but slower ''inter-word'' justification algorithm
1769+
<p>A more sophisticated but slower justification algorithm
17701770
might use a Knuth/Plass method
17711771
where <i>expansion opportunities</i> and limits were assigned weights
17721772
and assessed with other line breaking considerations.

0 commit comments

Comments
 (0)