Skip to content

Commit 596d0a4

Browse files
committed
Fix specberus bugs
1 parent 8794c96 commit 596d0a4

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

‎echidna

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ images/FE0F.png
3838
images/FEFF.png
3939
images/many-glyphs.png
4040
images/indivisible-memorable.jpg
41+
images/memorable-unicode.png
4142
images/suisse-cows.jpg
4243
images/emoji-image-1.png
4344
images/emoji-image-2.png

‎index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,8 +1269,8 @@ <h3 id="char_def">Characters and character encoding basics</h3>
12691269

12701270
<p class="reviewComments"><a href="https://github.com/w3c/i18n-activity/labels/t%3Achar_def" target="_blank">See related review comments.</a></p>
12711271

1272-
<aside id="char-start-here" class="start-here">
1273-
<legend>Start Here</legend>
1272+
<aside id="char-start-here" class="start-here" title="&#x27a4;&#x27a4;&#x27a4;Start Here">
1273+
<p class="title">&#x27a4;&#x27a4;&#x27a4;Start Here</p>
12741274
<p>The relationship between text and its storage and processing in computers is complicated, involving many terms and concepts that may be new to you. Understanding this terminology is important to understanding the guidance in the internationalization guidelines and best practices. We've created this article to explain and illustrate what you need to know:</p>
12751275

12761276
<p style="text-align:center;font-family:sans-serif;font-size:larger"><a href="https://www.w3.org/International/articles/definitions-characters/index.en.html">Character encodings: Essential concepts</a></p>
@@ -1483,7 +1483,7 @@ <h3 id="char_def">Characters and character encoding basics</h3>
14831483

14841484
<table class="charTermExample">
14851485
<tr>
1486-
<th width="15%">[=grapheme cluster=]</th>
1486+
<th>[=grapheme cluster=]</th>
14871487
<td class="bigtext">&#x42f;</td>
14881488
<td class="bigtext" colspan="2">&#x2764;&#xfe0f;</td>
14891489
<td class="bigtext" colspan="2">&#x1f1e8;&#x1f1ed;</td>
@@ -1495,10 +1495,10 @@ <h3 id="char_def">Characters and character encoding basics</h3>
14951495
<tr><td colspan="8" style="text-align:left">Some of the [=visual text units=] require more than one character. This particular phrase consists of seven characters because these emoji characters use some of the more unusual features of Unicode. <span class="codepoint"><bdi lang="en">&#x2764;</bdi><code class="uname">U+2764 HEAVY BLACK HEART</code></span> is followed by <span class="codepoint"><img src="./images/FE0F.png" alt="U+FE0F"><code class="uname">U+FE0F VARIATION SELECTOR-16</code></span> in order to display as an emoji variant, while the flag of Switzerland is formed using a pair of emoji flag characters. (Note: on some browsers, the "flag" might display as a grapheme cluster with the letters <kbd>CH</kbd>. These are still treated by the browser as a single grapheme cluster!)</td></tr>
14961496

14971497
<tr>
1498-
<th width="15%">[=Encoded character=]</th>
1498+
<th>[=Encoded character=]</th>
14991499
<td class="bigtext">&#x42f;</td>
15001500
<td class="bigtext">&#x2764;</td>
1501-
<td class="bigtext"><span class="codepoint"><img src="./images/FE0F.png"></span></td>
1501+
<td class="bigtext"><span class="codepoint"><img src="./images/FE0F.png" alt="U+FE0F"></span></td>
15021502
<td class="bigtext">&#x1f1e8;</td>
15031503
<td class="bigtext">&#x1f1ed;</td>
15041504
<td class="bigtext">&#x1f404;</td>
@@ -3098,7 +3098,7 @@ <h3>Truncating or limiting the length of strings</h3>
30983098

30993099
<p>Consider the words <em>indivisible</em> and <em>memorable</em>. The first has 11 letters, the second only 9 letters. However, <em>indivisible</em> consumes fewer pixels in many proportional fonts (it has a number of letters ‘I’ and ‘L’, which are narrow, versus the letters ‘M’ in <em>memorable</em>):</p>
31003100

3101-
<img src="images/indivisible-memorable.jpg">
3101+
<img src="images/indivisible-memorable.jpg" alt="the words indivisible and memorable showing how one is longer than the other">
31023102

31033103
<p>Some scripts make the difference between visual text units and pixel size even more obvious. For example, here is the word for "Unicode" in Tamil:</p>
31043104

@@ -3125,7 +3125,7 @@ <h3>Truncating or limiting the length of strings</h3>
31253125

31263126
<p>Finally, notice that the Tamil word quite often takes more room with four [=visual text units=] than an English word with nine:</p>
31273127

3128-
<img src="./images/memorable-unicode.png" alt="comparison of யூனிகோட் and memorable">
3128+
<img src="images/memorable-unicode.png" alt="comparison of யூனிகோட் and memorable">
31293129

31303130
</aside>
31313131

@@ -3180,7 +3180,7 @@ <h3>Truncating or limiting the length of strings</h3>
31803180
<table>
31813181
<tr>
31823182
<th>Syllable</th>
3183-
<th colspan="4" style="text-align:center">Code Points</th>
3183+
<th colspan="2" style="text-align:center">Code Points</th>
31843184
</tr>
31853185
<tr>
31863186
<td class="bigtext" style="width:6rem;text-align:center" lang="ta">&#x0BAF;&#x0BC2;</td>
@@ -3391,7 +3391,7 @@ <h3>Truncating or limiting the length of strings</h3>
33913391

33923392
<p>Finally, don't forget that the limit will also interact with the truncation boundary chosen (as shown in [[[#example-code-unit-trunc-bad]]]): if the truncation is done naively at the 15th byte, the resulting string might contain only a partial character. For example, the Marathi could experience this problem:</p>
33933393

3394-
<p class="bigtext" lang="ma">मी का�...</p>
3394+
<p class="bigtext" lang="mr">मी का�...</p>
33953395

33963396
</aside>
33973397
<aside class="example" id="family-example" title="Emoji sequences as an example of grapheme clusters">

‎local.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ img.emoji-image {
505505
padding: 10px;
506506
}
507507

508-
aside.start-here legend {
508+
aside.start-here p.title {
509509
color: rgb(3, 69, 117);
510510
font-size:large;
511511
font-family:sans-serif;
@@ -520,6 +520,10 @@ table.charTermExample {
520520
border-collapse: collapse;
521521
}
522522

523+
table.charTermExample th {
524+
width: 15%;
525+
}
526+
523527
table.charTermExample td {
524528
border-right: 1px dotted gray;
525529
text-align: center;

0 commit comments

Comments
 (0)