mirror of
https://github.com/Dasemu/NavFrame.git
synced 2026-11-26 15:26:05 +00:00
fix: keep TFT snapshots alive when labels need unbundled glyph ranges
MapLibre's MapSnapshotter aborts the whole still image on any glyph load
error. The offline style only bundled Noto Sans ranges 0-2047, while the
Asturias archive labels use U+1E36/U+1E37 (Asturian Ḷḷ) and typographic
quotes/dashes, so the TFT failed with SDK/STYLE_READY UNKNOWN/UNKNOWN
("Could not read asset") whenever such a label was in view, while the
phone MapView kept working.
Bundle the unmodified demotiles ranges 7680-7935 and 8192-8447, add an
empty placeholder for every other BMP range, report missing assets as
NOT_FOUND, and release 0.13.7.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014YKH4z66ZCe2wK4GvgRg7g
This commit is contained in:
259 files changed
+846
-9
No files matched your search
+1
-1
@@ -26,7 +26,7 @@ Relevant inactive markers are excluded (`disused`/`abandoned` and prefixes for s
|
||||
|
||||
## Contract and SQLite
|
||||
|
||||
The original core `OfflinePlace` retains ID, name, `PlaceCategory`, position, optional address/openingHours/website/phone, and optional straight-line distance. `normalizePlaceSearch` uses NFD, removes combining marks, lowercases independently of locale, compacts whitespace/control/format characters, and preserves non-Latin alphabets. Python generates `search_name` with the same algorithm. Map glyphs remain limited to Unicode 0–2047; native list text does not depend on these PBF glyphs.
|
||||
The original core `OfflinePlace` retains ID, name, `PlaceCategory`, position, optional address/openingHours/website/phone, and optional straight-line distance. `normalizePlaceSearch` uses NFD, removes combining marks, lowercases independently of locale, compacts whitespace/control/format characters, and preserves non-Latin alphabets. Python generates `search_name` with the same algorithm. Map glyphs remain limited to Unicode 0–2047, 7680–7935 and 8192–8447; native list text does not depend on these PBF glyphs.
|
||||
|
||||
Schema: `places(id TEXT PRIMARY KEY, name TEXT, search_name TEXT, category TEXT, latitude REAL, longitude REAL, address TEXT, opening_hours TEXT, website TEXT, phone TEXT)`. Name/search/category/position are required and categories are checked. Indexes: `(category,latitude,longitude)`, `(latitude,longitude)`, `search_name`. `metadata(key TEXT PRIMARY KEY,value TEXT)` identifies version/coverage. Android queries are parameterized and escape `%`, `_`, and backslash via `escapePlaceLike` with `ESCAPE '\'`; an apostrophe remains data. Bounded substring search does not make the name index a full-text-search guarantee for millions of places.
|
||||
|
||||
|
||||
Reference in new issue
Block a user