Read misc.territory, timezone, useragent and car as tables, and state the data rules behind them #23

Merged
lilleman merged 14 commits from misc-territory into main 2026-09-19 01:40:34 +02:00
Owner

ISO 3166-1 codes territories rather than sovereign states, so misc.country is
misc.territory, and a sourced country column names the state each belongs to —
DK for Greenland, FI for Åland, its own code for a sovereign one, and its own
for Western Sahara, which the register records no state for.

misc.timezone, misc.useragent and misc.car become tables. misc.timezone is
tzdb zone.tab's zone per territory with the zone's standard offset, linked to
misc.territory, so misc.territory[SE].timezone draws Europe/Stockholm;
misc.useragent the top-user-agents lists with browser, device and os;
misc.car its own makes and models, with maker renamed make.

README Goals gains goal 10, that data is sourced or on its way there, and Decisions
gains the three rules that settled these choices without asking: what misc takes,
that a register's canonical spelling loses to the one its domain writes, and that
misc.territory is the spine a misc table naming a territory links to.

ISO 3166-1 codes territories rather than sovereign states, so `misc.country` is `misc.territory`, and a sourced `country` column names the state each belongs to — `DK` for Greenland, `FI` for Åland, its own code for a sovereign one, and its own for Western Sahara, which the register records no state for. `misc.timezone`, `misc.useragent` and `misc.car` become tables. `misc.timezone` is tzdb `zone.tab`'s zone per territory with the zone's standard offset, linked to `misc.territory`, so `misc.territory[SE].timezone` draws `Europe/Stockholm`; `misc.useragent` the top-user-agents lists with `browser`, `device` and `os`; `misc.car` its own makes and models, with `maker` renamed `make`. README Goals gains goal 10, that data is sourced or on its way there, and Decisions gains the three rules that settled these choices without asking: what `misc` takes, that a register's canonical spelling loses to the one its domain writes, and that `misc.territory` is the spine a `misc` table naming a territory links to.
lilleman added 6 commits 2026-09-18 23:13:25 +02:00
lilleman added 2 commits 2026-09-18 23:22:57 +02:00
lilleman added 2 commits 2026-09-18 23:26:33 +02:00
Hedge the zone counts out of going stale, and name a tarball member that is no file
Tests / vet + fmt + tests (pull_request) Successful in 1m24s
Tests / Gitea release from CHANGELOG.md (pull_request) Has been skipped
85d4760cde
lilleman added 2 commits 2026-09-18 23:33:54 +02:00
lilleman added 2 commits 2026-09-18 23:40:47 +02:00
Floor every zone weight at the GeoNames cutoff, refuse a table that all falls to it, and name the tzdata a drawn zone needs
Tests / vet + fmt + tests (pull_request) Successful in 1m23s
Tests / Gitea release from CHANGELOG.md (pull_request) Has been skipped
Tests / vet + fmt + tests (push) Successful in 8s
Tests / Gitea release from CHANGELOG.md (push) Successful in 5s
d366a80629
lilleman marked the pull request as ready for review 2026-09-18 23:53:40 +02:00
lilleman merged commit d366a80629 into main 2026-09-19 01:40:34 +02:00
lilleman deleted branch misc-territory 2026-09-19 01:40:34 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: larvit/fejkdata#23