Skip to content

Report every language a chart states - #78

Merged
beetlebugorg merged 1 commit into
mainfrom
fix/language-cap
Sep 9, 2026
Merged

beetlebugorg merged 1 commit into
mainfrom
fix/language-cap

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

adapter.languages stopped at four codes, and a chart that states more than four had the rest dropped from the archive metadata and from the bake's portrayal passes. The doc comment gave the reason as cost: each language is a portrayal pass at bake time and a text property per label in the tile.

101AA00DS0001 in the S-101 1.2 test set states six languages: fin, iku, sme, smn, sms and swe. The two the cap dropped were sme=Anár and sms=Lâu'ŋŋsuõllu, both nameUsage 2 entries, which PortrayalModel.GetFeatureName returns on an exact match against PreferredLanguage. A mariner could select neither.

Baking S-101_1.2/000 without the cap grows the six-language chart from 54658 to 54954 bytes, and the 32 chart bake from 1.36s to 1.42s of user time. Bake size over the set is unchanged at KB resolution. The limitations.md entry goes with the cap.

zig build, zig build test and zig fmt --check src/ tools/ build.zig pass. tile57_chart_languages on the rebaked 101AA00DS0001 reports all six codes, and rendering the chart at each one gives six distinct outputs, with fin matching the default because the portrayed name is the Finnish name.

adapter.languages stopped at four codes. A chart that states more than
four had the rest dropped from the archive metadata and from the bake's
portrayal passes. 101AA00DS0001 in the S-101 1.2 test set states six:
fin, iku, sme, smn, sms and swe. The two dropped were sme=Anár and
sms=Lâu'ŋŋsuõllu, nameUsage 2 entries the portrayal catalogue selects on
an exact language match.

Baking that set without the cap grows the six-language chart from 54658
to 54954 bytes, and the 32 chart bake from 1.36s to 1.42s of user time.
Bake size over the set is unchanged at KB resolution.
Base automatically changed from feat/chart-languages to main September 9, 2026 17:32
@beetlebugorg
beetlebugorg merged commit 82a4dfa into main Sep 9, 2026
5 checks passed
@beetlebugorg
beetlebugorg deleted the fix/language-cap 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