text: String.toNfc(), toNfd(), toNfkc() and toNfkd() (commit 2 of 2) #363
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language#363
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Commit 2 of 2 for normalization (the compiler side is #362).
std/textdeclaresString.toNfc(),toNfd(),toNfkc()andtoNfkd()and the docs and conformance programs that go with them. It closes FIRST-PARTY.md gap 23'sstd/texthalf (SASLprep itself belongs to the SCRAM slice that needs it) and givesstd/dnsthe NFC it needs (DNS.md section 3).Depends on
#362, merged and in a published seed (
seeds.txton theseedsrelease lists a seed at or after the merge commit). Until then this issue is notready.Acceptance criteria
std/text/src/lib.trb:native fn toNfc(): Self,toNfd(),toNfkc(),toNfkd()onStringwith doc comments (# Examples,# Pitfalls: normalization changes bytes, compare normalized texts, NFKC loses distinctions, not a security boundary by itself) in the style of the neighbours.tests/conformance/text-normalization.trb(+.expected,.allocations), identical in the VM and natively: precomposed against decomposedü, Hangul syllables and jamo, a ccc reordering case, a singleton (ΩU+2126), compatibility (fi,①,A,㌀), an ASCII text (storage shared), the empty text, andnf(nf(x)) == nf(x).std/text/tests/) that runs a committed excerpt ofNormalizationTest.txtof the pinned version through all four methods; the whole file stays the runtime test of the previous issue.docs/standard-library/text page,docs/design/FIRST-PARTY.mdgap 23 row marked built for the normalization part,docs/design/DNS.mdslice 9 row text updated ("NFC: built"),docs/ROADMAP.mdline about the natives updated;torb docs skill docs skillsregenerated and committed.Seed impact
No new native here (it is known to the seed), but a std name is added: the declaration is what the previous commit made safe. Nothing under
seed/; no seed refresh needed after this merge.Size
One PR, one Conventional Commit:
feat(text): normalization forms of a String.[loop:torbscript] refine: body written by the refinement of #36. next: waiting (depends on #362 merged and a published seed containing it)
TlsStream#116[loop:torbscript] refine: the dependency is met. #362 landed as
e14d7addbf(PR #369) and that commit is listed in seeds.txt on the seeds release (seede14d7addbf, published 2026-10-15); the issue needs no seed refresh itself. Goal, acceptance criteria, design records, seed impact and size (one PR, one commit) are stated. Setting ready. next: implement[loop:torbscript] claim implement by loop-torbscript-363 until 2026-11-15T03:07:04Z
[loop:torbscript] claim implement by torbscript-363-impl until 2026-11-15T09:20:00Z
[loop:torbscript] release implement by torbscript-363-impl: PR #812 open, CI queued (all runs of the PR still waiting for a runner after about 23 minutes; local checks green: torb test std/text 81 passed, format and skill checks, conformance in VM and native). next: review (merge gate)
Status (post-merge of #812, merged by argus): the code is on main (
9b2292c934) and in the nightly channel (nightly-20261115). It is in no stable or rc release yet, so this is not done. Next step, recorded here because it does not finish in this run: the release needs a version bump PR on main first (project.trb, compiler/project.trb, editors/vscode/package.json, languageVersion in compiler/src/package/version.trb, apm.yml, skills/.codex-plugin/plugin.json; currently 0.1.0), reviewed and merged by argus. Then branch release/0.2, tag v0.2.0-rc.1 per docs/contributing/releasing.md, at the calendar date (rc about a week before the first Tuesday of December). Tag push is the approval per standing approval. Verify the release workflow and images afterwards.