The first boot in a landscape asks "Keep this orientation?" with one Keep
button in a corner and a 15 s countdown. Keep stores the choice; no tap, or a
restart before one, goes back to portrait, so a touch map that does not fit a
unit can never leave it stuck. Asked for on Discord by e4m7g6.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Asked for on Discord by benanderson. The time left uses the rate seen since the
transfer started, once it has run two seconds. Language store v33 snapshot
refreshed with the two new strings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The flat (no accelerometer) heading now uses the same axes as the tilt-compensated
one. Changing 1.0 in place would never reach a device that already has it. The apps
page regen also lists Cyberspace from #788.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-ups in the merge, from the review:
- emojiRememberRecent copies the picked text first: a Recent cell points into
s_emoji_recent, and the shift overwrote it before the copy into slot 0.
- The text menu's Emoji opens the emoji set (it passed k_emoji_items, which
marked the sheet as special characters, so nothing was remembered).
- Without a pack the picker is the plain grid it always was: no tabs, no
Recent, and hearts never show as a "More" tab (they sit under Smileys).
- Removed wada_shape_flag_codepoint, which nothing called.
- emoji_data.c regenerated with the merged add-emoji.py (the eight bot emoji
from beta_102 kept); the EmojiGlyph typedef stays on one line.
- .lang rows for the tab names in all 15 languages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Bluetooth-only boot never started lwIP, so a connect there asserts. A TLS
handshake on a short internal heap starves Wi-Fi's own buffers. The periodic
store flush runs on the UI thread and can hit SPIFFS garbage collection, the
beta_25 watchdog class, so it is guarded and rate-capped at 30 s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MeshCore Open TAK and Wadamesh TAK carry photos, voice, one-time-pad traffic
and team tracking as ordinary texts, which read as gibberish here. With the
new switch in Radio & Mesh, messages between apps are dropped before any
notification and the rest show as a short label that keeps the caption. Off
by default. Frames still reach a connected phone app.
The recognition rules are jade-on-mesh's, from their notes for Wadamesh.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While muted, the Colour section offers five tones: Slate (the muted
palette as before, the default), Sepia, Grey, Sage and Dusk. Each sets
the accent; with Tone the whole screen (default on) every surface and
text is also laid on the tone's dark-to-light ramp, status colours
keeping a little of their own. Off, only the accent takes the tone.
High contrast keeps its own colours. Saved as ui_mute_tn / ui_mute_wh;
the preview and the tone tiles use the same maths.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Michael A. Cojocari <michael.cojocari@gmail.com>
A new switch at the top of Settings > Theme > Colour for a calm, old-desktop
look, saved as ui_mute (default off) and applied at the next boot like the
rest of the theme:
- No animations: no boot splash, lock screen motion, Home radar sweep,
live-dot breathing, advert ring, PIN shake or glance fades; scrolls, tab
changes, Lua app scrolls and switch knobs jump instead of sliding.
- Constellation screensaver goes calm: no pulse, sweep, pings or packets; the
burn-in steps (turn, drift, corner moves) stay, without the fade.
- Muted colours: a grey-blue accent, Regular look, and the link, mention,
status and bubble colours pulled towards grey, in Day and Night.
- Solid panels: no background, no glass tiles, and popup backdrops are the
theme background instead of see-through black.
While it is on, the accent, looks, rainbow, background and glass controls are
locked with a note; their saved values come back when it is turned off. High
contrast keeps its own colours but still loses the animations. T-Deck Pro is
unchanged (no Colour section).
Placeholder rows for the 3 new strings in the 15 language files; the
Constellation render harness takes CST_CALM=1.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Michael A. Cojocari <michael.cojocari@gmail.com>
6587555 left-aligned the placeholders because centred ones, often as wide as
the text column, looked wrong. That broke tapping: a tap opens a picture only
in the middle third of the screen, and a short left-aligned placeholder sits
entirely in the left third, where a tap turns the page instead.
Centre a placeholder that fits on one line (padding it with spaces, since the
page is one left-aligned label), and keep the blank line above and below it.
A placeholder that wraps stays left-aligned.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
Placeholders are often as wide as the text column, so centring looked wrong.
A blank line above and below now sets each one apart. text_lines ignores the
empty line after a trailing newline, so lines() adds it back; the harness
wrapper now matches the firmware there.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
A placeholder that fits on one line is padded with spaces to the middle of the
text column. Tests also check that an image inside a paragraph gets a line of
its own.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
Adds an Images menu row (always / on tap / never) that appears only when the
firmware has wada.ui.image, which it does not yet. Without it the app behaves
exactly as before (placeholders only). With it: on tap shows a picture fit to
the screen from the placeholder (tap, i key or menu row), always gives a
picture a page of its own, and never ignores taps on the placeholder. The
default stays never until the firmware call exists.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
Use the img alt text when the book gives one, including images wrapped in
svg (common for covers), and ignore closing img tags so one image makes one
placeholder.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
On beta_101 store.get(key) of a missing key returns the store's own table,
not nil (storeGet reads the default from stack slot 2, which is the table by
then), so the first launch called :gmatch on a table. Only strings and numbers
count as stored values now, and the harness reproduces the quirk for this app.
The store reloads lines of at most 191 bytes, so the serialized reading
positions are capped at 180 bytes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
Pure-Lua reader using wada.fs: chapters, three text sizes, remembered
position, touch/trackball/jog-wheel/keyboard navigation. Includes
scripts/ebook-prep.py to repack epubs uncompressed, harness scenarios,
and a store page entry.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
A client for cyberspace.online (cIRC rooms, C-Mail, the Feed) as a store app,
and the SDK pieces it needed:
- wada.net.request{url, method, headers, body, max}: any method, request
headers, the real status code. https:// runs in a one-shot TLS task with the
chain verified against the ISRG roots (CAP_LUA_HTTPS: off on the P4 boards,
where TLS runs on the C6 unverified, and on the 2 MB Heltec V4).
- wada.json.decode/encode in C; 64-bit integers come back as exact text.
- label:on_press(fn): a label becomes a tap / long-press / cursor target.
- wada.store: get(key) with no default returned the store table for a missing
key; flush wrote past its 192-byte line buffer; changes now reach the card
within 2 s instead of only on close.
Host tests: test/test_lua_json.cpp and scripts/lua-harness/cyberspace/run.sh.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01He9DHEuLWYQHXVBnNzzD6E
The row was an English placeholder in every language but Polish, so the
Chats menu item stayed English (Heltec V4 TFT, French). Filled in all 14,
in the full menu phrasing; the tooltip row "Mark all read" keeps its
shorter text. i18n_builtin.h regenerated, so the V4's compiled-in table
carries them too. The store copies follow with the next language store
version.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01He9DHAqRzswrcCw39ZcTgB
pl.lang landed on main after this branch's last rebase. The 8 keys this PR
newly wraps in TR() (30 sec, the sleep hint, File Transfer, the spectrum
peak readouts, the send/receive progress) go in as key<TAB>key, like the
other placeholders there. i18n-audit is clean.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01He9DHEChzoehLNNDyGUBGY
Four rows carried their translations on keys no source uses any more,
while the live keys stayed English. Each translation moves to its live
key, and the dead rows go back to main's value:
- "Export Backup" -> "Export backup"
- "No backups yet. Use Export Backup above..." -> "... Export backup ..."
- "turn on if ...; disables modifier latching" -> "Turn on if .... It
turns off modifier latching." (now two sentences, like the key)
- "Normal\nLarge text\nHuge text" -> "Large text" and "Huge text"
The control panel's Timer and Screenshot labels only feed ccTipTitle,
which already translates those slots, so their TR() wraps are dropped,
and with them the "Timer" row nothing reads.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MjAKa5hXgyBykCLqnwcjEy
The Device page, keyboard protocol and setup wizard Bluetooth strings
(Hardware, Radio:, Keyboard:, the four keyboard protocol states and the
Bluetooth hint) are now added by #630 itself, so the code and its
translations land together. Keeping them here too would duplicate the
keys once both merge. Also drops two notes no code uses any more
('Older keyboard protocol is now in Settings > Device.' and
'Diagnostics are on the Device page.').
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
i18n-audit.py reported 63 TR() keys with no row in any .lang file (62 in
Czech), so they showed in English whatever the language: the beta
test-report form and its summary, the USB Files page, the backups list,
Settings > Display's screen timeout and UI-size options, the paste-key
hint, the BOOT unlock hint, the landscape-keyboard restart notice and
others. Added them to all 14 languages, using each file's existing
wording, with every printf conversion and line break matching the key.
i18n_builtin.h regenerated.
i18n-audit.py now reports every language "ok (1272 keys covered)", and
i18n-scan-unwrapped.py 0 unwrapped literals.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016zE15egJdCZ9nRBZmg1YUq
(cherry picked from commit e5e1e5583f)
(cherry picked from commit 613965699d89abef5d7ab27a6c1a8a8123560eee)
i18n-scan-unwrapped.py reported 16 user-visible literals that never went
through TR(), so they rendered in English in every language. Wrapped them:
the 30 sec slider label, the Spectrum peak readout (and its two live
formats, which the scan cannot see), the T-Deck Max sleep banner, the File
Transfer status lines and page title, the USB Files title, and the Reboot
Now / Forget confirm buttons. The add-channel menu items and the control
centre's Timer / Screenshot captions were already translated (or unused)
inside their helpers; they are wrapped at the call site too, which the
scanner expects and which is harmless. Three app-page titles assigned
directly (Send advert, Known regions, Blocked users), where the scan cannot
see them, are wrapped as well. "Esc" is a key-cap name and joins SKIP_TEXT.
The sleep banner's English also lost its typo ("Asleep:Tap Screen").
Translated in all 14 languages, along with the Forget-keyboard question
and "Known regions", which were English copies in most files.
i18n_builtin.h regenerated. The scan now reports 0 unwrapped literals.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016zE15egJdCZ9nRBZmg1YUq
(cherry picked from commit 6e9b92c278)
(cherry picked from commit dce673f7906b405f777839c1b75e7ab1f9964a8e)
"Scope", "my region" and "another region" were blank in 12 languages,
and "ambiguous (several regions matched)" was an English copy in 13, so
the Info popup's Scope line stayed English. Filled them in using each
language's existing scope/region wording (e.g. Region & Reichweite /
Regionsbereich), and regenerated i18n_builtin.h.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016zE15egJdCZ9nRBZmg1YUq
(cherry picked from commit 38cbcb3afe)
(cherry picked from commit e916d09cd3726dd105706b01cc8ed54647cfdaf8)
49 new TR() keys (the Pager key help, Quiet now, Shift + knob level pill,
emoji and quick-reply hints, lock and theme notes), appended as key<TAB>key
to the 14 files #755 did not translate, and the 3 invariant ones (Backspace,
N, M C H A S) to de.lang, only where the key is absent. i18n-audit is clean;
i18n_builtin.h regenerated: unchanged (placeholders are not baked).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
de.lang conflict: main's rows since the PR's base (picture dimming, the 19
missing rows) and the PR's German rows unioned, one row per key, the later
(translated) row kept. Header stays at main's ver: 31. i18n_builtin.h
regenerated with scripts/build/gen-lang-builtin.py; only the German table
changes (1334 rows).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Settings group heading "Connections" had no row in any language, so it
stayed English (CONNECTIONS above Polish rows). The headings come from
kSettingsGroups through `for (const SettingsGroupDef& g : kSettingsGroups)
... TR(g.title)`, and i18n-audit.py's range-for rule only recognised
`for (auto& x : table)`, so the key never reached the audit. The rule now
takes any element type.
The audit then lists 18 more keys added since the last pass (the old-contact
purge, vibration, browser-build notes, the web location prompt). All 19 get
a row in all 15 files: real translations in de, nl, fr, es, it, pt-br and pl,
English placeholders elsewhere. i18n_builtin.h regenerated (V4 +3.9 KB).
i18n-audit.py: every file ok.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A background picture was always toned down by a fixed amount (night: x107/256,
then every pixel held to a luma of 64; day: lifted 60% toward white, held up to
200), and the lock-screen wallpaper always sat under a black veil of 105/255.
On a dark theme that left a picture barely visible. Both now take a step: Off,
Light, Medium or Strong.
- Settings > Theme > Background: "Picture dimming" under the picture's button,
shown while Image is picked; part of the page's pending choices, saved by
Apply and restart (bgImageFit applies it once at boot).
- Settings > Lock screen > Look: "Wallpaper dimming", applies the next time the
lock screen shows (veil 0 / 40 / 72 / 105).
Strong is the default and an absent key reads as Strong, so nothing changes for
anyone until they pick a step: PictureDim.h holds the per-pixel step, and
test/test_picture_dim.cpp checks Strong against the old formula on 281k
samples, plus range, ordering and the per-step readability bounds. New keys
bg_dim and lock_dim are standalone uchar keys in the settings backup list.
Three new strings, rows in every .lang, i18n_builtin.h regenerated.
V4 (no picture option there): +1624 B flash, the string table.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Discord (gadgeteerza, ThinkNode M9, beta_100): no Central Africa zone, the
clock often half an hour behind on a Custom UTC offset, and "Sync clock from
system" with Wi-Fi on not always setting it.
Zones: the saved setting is an index into the zone table, and Custom used to
be "one past the list", so appending zones would have moved it. Custom now
keeps its id (16) forever and the new zones (Central/South/East/West Africa,
Egypt, Eastern/Western Europe, Moscow, Turkey, Arabia, Iran, Gulf, Pakistan,
Nepal, Bangladesh, Indochina, Singapore, Perth, Korea, Adelaide, Brisbane,
New Zealand, Argentina, Mexico City, Newfoundland) sit after it. The picker
shows its own west-to-east order and opens on the current zone.
Half an hour behind: not the offset. WadaNmeaLocationProvider::begin() kept
the parser's pre-rest sentence, so after a GPS saver rest the first loop pass
saw a "valid" fix, the 30-minute re-sync was due, and the clock was set to
the moment the receiver went to rest. begin() now clears the parser, and
UITask::setGpsPower(true) calls syncTime() so the core provider (V4 and
others) gets the same. test_gps_time_sync runs the real provider against a
receiver sending true UTC: the pre-fix provider set the clock 1801 s behind
after a 30-minute rest; now every set is within 1 s.
Sync from system: on the M9 the system clock is the device clock, so the
button copied a clock onto itself. And the Wi-Fi loop wrote only the FIRST
SNTP result into the mesh clock: SNTP's hourly re-syncs set the system clock
only, the PCF8563 kept its old value, and the hourly chip resync (#583)
pulled the clock back to it. Every completed sync is now written through
(SntpClockPush.h, test_sntp_clock_push), and the button with Wi-Fi up
restarts SNTP and says "Clock synced" when the answer lands.
test_time_zones: the legacy ids keep their zones, every zone's offset in
January/July/October, Egypt's DST edges, and all 65536 saved
(tz_zone, time_offs) byte pairs through the exact prefs path to localtime().
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use wada.sys.datetime() for the status bar and localise the ASTRO event times without changing the astronomy. The local civil date drives the day-of-year, the UTC offset is re-read at draw time (DST and half-hour zones included), and a host without sys.datetime() falls back to UTC with explicit labels. Refresh ASTRO immediately on open and retry when the clock or GPS fix arrives. Add harness scenarios for local time, UTC+13/-10, half-hour zones, a live timezone change, no clock, and the UTC fallback.
German rows for the strings the Pager work added: vibration settings, the
battery gauge lines in the popup, chart, lock screen and screensaver, charge
limits, battery care and the low-battery warnings, the battery pack capacity,
the motion settings, the shortcuts and key help, the ship-mode power-off
notice, the knob hint in the emoji picker, the lock and battery settings
notes. Also translates two rows that still carried the English text ("Sound is
off", "Do Not Disturb is on").
The English placeholder rows main appended for #748 to #751 are replaced in
place (the last row wins), the new ones are appended, and the file's version is
left as it is. i18n_builtin.h regenerated with scripts/build/gen-lang-builtin.py.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Josh <8422439+MrYoshii@users.noreply.github.com>
73 new TR() keys (vibration, charger and gauge, battery care, low battery,
motion settings, ship-mode power-off), appended as key<TAB>key to all 15
.lang files so translators see them; English until translated. Appended at
the end and only where the key is absent, so no existing translation is
shadowed. i18n_builtin.h regenerated: unchanged (placeholders are not baked).
The 17 keys i18n-audit already reported missing on main are left as they were.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>