Skip to content

Small nits and fixes to Specifications - #279

Merged
jquast merged 3 commits into
masterfrom
jq/spec-nits-and-fixes
Sep 29, 2026
Merged

jquast merged 3 commits into
masterfrom
jq/spec-nits-and-fixes

Conversation

@jquast

@jquast jquast commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

Some bot-assisted search for errors in specs.rst, to try to get ahead of any ai bots that discover "bug fixes" if they read too deeply into them, and to make clear some of my recent comments about the 2-cell cap, etc.

  • Delete per-category counts are gone, they have drifted from Unicode 18.0
  • ZWJ: it is zero-width, and wcswidth() and width() also "consume" the codepoint after it
    • (perhaps in error, but we take a stance that this library does not try to measure 'glitch unicode', unless it can be done with minimal performance impact)
  • bugfix C1 range ends at U+009F
  • Width of 2 excludes Category codes Mn and Mc (U+302E, U+302F, U+16FF0, U+16FF1)
  • delete outdated Sk/FULLWIDTH zero-width bullet
  • state the purpose of the 2-cell cap is to bound the Mc rule and the virama conjunct sum
  • citation fixes

- Delete per-category counts are gone, they have drifted from Unicode 18.0,
  I worry AI bots will try to correct them, even though marked "aprox."
- ZWJ: it is zero-width, and wcswidth() and width() also "consume" the
  codepoint after it (perhaps in error, but we take a stance that this
  library does not try to measure 'glitch unicode', unless it can be
  done with minimal performance impact)
- bugfix C1 range ends at U+009F
- Width of 2 excludes Category codes Mn and Mc (U+302E, U+302F, U+16FF0, U+16FF1)
- Fitzpatrick rule gets its own bullet
- delete outdated Sk/FULLWIDTH zero-width bullet
- state the purpose of the 2-cell cap is to bound the Mc rule and the virama conjunct sum
- Scope introduces wcstwidth() and males clear the libwcwidth entry points
- citations for General Category Values table and L2/25-263

docs/history.rst, docs/intro.rst: repair the chapter-4 core-spec anchor and the
ucs-detect general-tabulated-summary anchor
@codspeed

codspeed Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 121 untouched benchmarks


Comparing jq/spec-nits-and-fixes (5fcf538) with master (5528e9d)

Open in CodSpeed

@jquast
jquast marked this pull request as ready for review September 29, 2026 16:30
@jquast
jquast merged commit f1222fb into master Sep 29, 2026
33 checks passed
@jquast
jquast deleted the jq/spec-nits-and-fixes branch September 29, 2026 16:30
@codecov

codecov Bot commented Sep 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.49%. Comparing base (5528e9d) to head (5fcf538).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #279   +/-   ##
=======================================
  Coverage   87.49%   87.49%           
=======================================
  Files          41       41           
  Lines        5614     5614           
  Branches     1501     1501           
=======================================
  Hits         4912     4912           
  Misses        324      324           
  Partials      378      378           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant