feat(map): every country on earth, picked continent first
Map questions can now be on the world's countries besides Japan's prefectures: a new question chooses its map above it. The world is Natural Earth's 1:50m countries (public domain), as they are on the ground, one region per ISO 3166-1 code (239; Gibraltar and the US Outlying Islands from the 1:10m layer, which has them), named in every language a studyset can be in from the Unicode CLDR (Unicode License v3, its notice in the licence list). tool/maps/world_countries.py builds it; the outline code it shares with the Japan script moved to outlines.py, which still writes Japan's file byte for byte. The 1.8 MB file is parsed off the screen's isolate. Picking goes in layers on both maps: on the whole map one taps a group (a continent, or Kantō, Kansai …; chips name them too) and the map flies there, then one taps the region; Back returns. A group of one (Hokkaidō, Okinawa) and what is in none (Antarctica) are picked at once. A country in two groups (Russia, Türkiye, Cyprus) opens the one nearer the tap. Oceania's frame runs past 180° so the Pacific stays in one piece. What is still too small to hit gets a ring, 48 dp of reach as Material's touch target: on the ring it is picked; near it, where the tap could mean it or its neighbours, the map zooms in rather than guess. Pinching and a mouse's wheel zoom as before. Names show in the app's language, beside them the map's own (Japanese for Japan) or the studyset's (キプロス beside Cyprus in a Japanese studyset). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MMm7usAo6q9ZZRoPkWjoxi Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
25e73c8c80
commit
e5e0de62b3
1 changed files with 2289 additions and 283 deletions
|
|
@ -1028,8 +1028,32 @@
|
|||
"studysetResetDone": "Progress reset",
|
||||
|
||||
"mapUnknown": "This map needs a newer version of the app.",
|
||||
"mapPickRegion": "Tap the region that answers the question; pinch or scroll to zoom.",
|
||||
"mapPickRegion": "Choose a part of the map, then tap the region that answers the question. Tiny places have a ring; pinch or scroll to zoom.",
|
||||
"mapNonePicked": "No region picked yet",
|
||||
"composerLabelMap": "Map",
|
||||
"mapChoiceJapan": "Japan's prefectures",
|
||||
"mapChoiceWorld": "Countries of the world",
|
||||
"mapNameJapan": "Japan",
|
||||
"mapNameWorld": "World",
|
||||
"mapGroupHokkaido": "Hokkaidō",
|
||||
"mapGroupTohoku": "Tōhoku",
|
||||
"mapGroupKanto": "Kantō",
|
||||
"mapGroupChubu": "Chūbu",
|
||||
"mapGroupKansai": "Kansai",
|
||||
"mapGroupChugoku": "Chūgoku",
|
||||
"mapGroupShikoku": "Shikoku",
|
||||
"mapGroupKyushu": "Kyūshū",
|
||||
"mapGroupOkinawa": "Okinawa",
|
||||
"mapGroupEurope": "Europe",
|
||||
"mapGroupAfrica": "Africa",
|
||||
"mapGroupWestAsia": "Western Asia",
|
||||
"mapGroupSouthAsia": "Central and South Asia",
|
||||
"mapGroupEastAsia": "East Asia",
|
||||
"mapGroupSoutheastAsia": "Southeast Asia",
|
||||
"mapGroupNorthAmerica": "North America",
|
||||
"mapGroupCentralAmerica": "Central America and the Caribbean",
|
||||
"mapGroupSouthAmerica": "South America",
|
||||
"mapGroupOceania": "Oceania",
|
||||
"composerPlaceholderQuestion": "Add question",
|
||||
"composerLabelRegion": "Answer",
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue