Skip to content

test: Compile the display table apart from the translation table - #40

Merged
henrikottesorensen merged 1 commit into
mainfrom
test/separate-display-table
Dec 5, 2026
Merged

henrikottesorensen merged 1 commit into
mainfrom
test/separate-display-table

Conversation

@henrikottesorensen

@henrikottesorensen henrikottesorensen commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Follows #39 and #42. With this change 154 of the 162 upstream braille specs from liblouis 3.40.0 run (284,639 cases), all passing. The other eight are the dictionary harnesses, which #43 runs in a project of their own.

What changed

  • no.yaml was a harness bug, not a wrapper bug. It was the one spec still disagreeing (299 of 2,191 cases). Its display table is unicode-without-blank.dis,no-no-g0.utb. lou_checkyaml compiles the display table apart from the translation table through _lou_translate (tools/brl_checks.c). The public lou_translate compiles one list for both, so the harness's [display, table] list added the grade 0 table's translation rules to every table in the file. For example, the 8-dot section got a 6-dot number sign in front of every digit.
  • Specs whose display list names anything but a .dis file (no, zh-tw, ms-my-g2, two fr-bfu) now call _lou_translate / _lou_backTranslate directly. Every other spec stays on the wrapper, so the specs still test it end to end. Both functions are exported by all eight runtime packages (checked with objdump); win-x86 exports them as stdcall, which is DllImport's default there.
  • no.yaml is copied from 3.40.0.
  • Skipped-entries tally: typeform goes from 548 to 629, all of it no.yaml.
  • README spec count and no.yaml section updated.

Testing

dotnet test -c Release -warnaserror gives 237/237 on net10.0, run on macOS arm64 only. Linux and Windows are up to CI.

🤖 Generated with Claude Code

@henrikottesorensen
henrikottesorensen requested a review from a team October 14, 2026 14:57
@henrikottesorensen
henrikottesorensen force-pushed the test/separate-display-table branch from 90de15a to e162d82 Compare October 14, 2026 15:04
@henrikottesorensen
henrikottesorensen changed the base branch from test/sharpyaml-parser to main October 14, 2026 15:04
no.yaml was the last spec excluded for disagreeing, at 299 of 2,191
cases, and the cause was the harness. Its display table is
unicode-without-blank.dis,no-no-g0.utb. lou_checkyaml compiles the
display table apart from the translation table through _lou_translate
(tools/brl_checks.c), but lou_translate compiles one list as both, so
putting the display list in front of the translation table added the
grade 0 table's translation rules to every table in the file. Its 8-dot
section got a 6-dot number sign in front of every digit.

A spec whose display list names anything but a .dis file now goes
through _lou_translate and _lou_backTranslate directly. They are
internal but exported on all eight runtime packages, checked with
objdump; win-x86 exports them stdcall, which DllImport defaults to
there. That is no, zh-tw, ms-my-g2 and the two fr-bfu specs; every
other spec stays on the wrapper, so the specs still test it end to end.

no.yaml is copied from 3.40.0. That makes 154 of the 162 upstream specs
and 284,639 cases, all passing. The eight left out are the dictionary
harnesses.

The skipped-entries tally moves with no.yaml: typeform from 548 to 629.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@henrikottesorensen
henrikottesorensen force-pushed the test/separate-display-table branch from e162d82 to e49eb9b Compare December 5, 2026 15:05
@henrikottesorensen
henrikottesorensen merged commit 6ec6b3a into main Dec 5, 2026
10 checks passed
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.

2 participants