Skip to content

Report the label languages - #65

Merged
beetlebugorg merged 3 commits into
mainfrom
feat/chart-languages
Sep 9, 2026
Merged

beetlebugorg merged 3 commits into
mainfrom
feat/chart-languages

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

tile57_mariner.preferred_language accepts any ISO 639-2 code, and a host has no list to build a language menu from. A code the chart does not state draws the portrayed name, so a mariner can pick one and see a screen of unchanged labels. Stacked on #64, which adds the setting.

The bake collects the languages its portrayal passes ran for and splices them into the archive metadata under a languages key, beside scamin. Chart.languages reads them back and tile57_chart_languages hands them across the ABI as NUL-terminated codes, mirroring tile57_chart_scamin. The compositor borrows its charts, so a host reading a quilt unions the sets from the charts it opened, as it does for SCAMIN.

A baked S-57 cell with a national name states und, which answers any language because S-57 records none for NOBJNM. A native S-101 dataset naming its features in six languages states the four the bake keeps. A chart naming every feature in English states none, and the key is left out rather than written empty.

zig build, zig build test and zig fmt --check pass.

beetlebugorg and others added 3 commits September 4, 2026 16:19
tile57_mariner.preferred_language accepts any code, and a host had no
list to build a language menu from. A code the chart does not state
draws the portrayed name, so a mariner could pick one and see a screen
of unchanged labels.

The bake collects the languages its portrayal passes ran for and splices
them into the archive metadata under a "languages" key, beside "scamin".
Chart.languages reads them back, and tile57_chart_languages hands them
across the ABI as NUL-terminated codes, mirroring tile57_chart_scamin.
The compositor borrows its charts, so a host unions the sets from the
charts it opened, as it does for SCAMIN.

A baked S-57 cell with a national name states und. A native S-101
dataset naming its features in six languages states the four the bake
keeps. A chart naming every feature in English states none and the key
is left out.
labelTextField composes the depth twin and one per language the chart
states. The comment still named text_nat, the single twin it composed
before the language passes.
The base picked up main, and both sides had appended to the end of
src/chart.zig — the scanLanguageArray test here, main's inventory section
and its tests on the base — so the merged file keeps both blocks.
Everything else merged without a conflict.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LovcP7ikg3Co7HzLE9egmG
@beetlebugorg beetlebugorg changed the title Report the label languages a chart states Report the label languages Sep 9, 2026
Base automatically changed from feat/nobjnm-name to main September 9, 2026 17:28
@beetlebugorg
beetlebugorg merged commit 1dda46d into main Sep 9, 2026
5 checks passed
@beetlebugorg
beetlebugorg deleted the feat/chart-languages branch September 9, 2026 17:32
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