Commit 52ebbf5
committed
strings: add French "café" to the first comparison
The first cell compared "hello" (pure ASCII, 1 byte/char) with
"สวัสดี" (Thai, 3 bytes/char) but skipped the middle ground. Adding
"café" between them gives a three-row reading:
English hello 5 code points 5 bytes (ASCII)
French café 4 code points 5 bytes (é = 2 UTF-8 bytes)
Thai สวัสดี 6 code points 18 bytes (each char = 3 bytes)
The example already used "café" in the third cell to demonstrate
strip/upper/encode; lifting it into the opening comparison links
the three cells around one progression of byte costs and removes
the jump from "ASCII" to "completely non-Latin" without a stepping
stone.
Both the :::program block (runnable code) and the matching :::cell
(walkthrough) updated together; the cell's expected output now
shows the three-row table; example_loader verifies the cell output
matches what the program prints.1 parent 5958402 commit 52ebbf5
2 files changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | | - | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
0 commit comments