Fix full-length SMS rendering and Unicode-aware segment counting
The expanded xsms conversation view handed the whole message body to pango_xft_render_layout() as one multiline layout; on the target Pango/Xft stack that call only paints the first line, so long concatenated/UCS-2 messages (e.g. the Ukrainian 'Мелорінг дарує хіти!' example) stopped right before the first non-ASCII character. Verified on the connected phone with an instrumented sms.so (530-byte body, 13 measured lines, one painted line) and a standalone ARM reproducer; the QMI WMS reassembly and sms.txt parser are correct. - Draw message bodies and long drafts line by line via a shared renderLayoutLines() helper with an Xft clip, so nothing overflows the bubble or softkey bar; use the same layout width for measuring and drawing. - Make the selected message scrollable with Up/Down (one line per press plus a right-edge scrollbar), stepping to the previous/next message only at the top/bottom of an overflowing message. - Replace the byte-based compose counter with smsTextMetrics(), which decodes UTF-8, detects the GSM 7-bit alphabet/extension table and reports GSM-7 septets (160/153) or UCS-2 UTF-16 units (70/67) with the right part count. - Strip [SIM n] tags from QMI/local SMS log headers and stop writing them in the offline-send fallback; log units instead of bytes. - Add a check-rebuild.sh guard against reintroducing the bulk layout render. - Rebuild prebuilt/overlay sms.so and engmenu.so, sync docs, and regenerate images/bananarchy-nokia-argon.img.
This commit is contained in:
1 parent
8078f211e5
commit
16df110b0b
10 files changed
+266
-30
No files matched your search
@@ -11,6 +11,13 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Full-length SMS conversation view and Unicode-aware composer
|
||||
- Fixed `xsms` (`sms.so`) cutting long, concatenated, or Unicode messages short in the expanded conversation view: the body was handed to `pango_xft_render_layout()` as one multiline layout, and the target Pango/Xft stack only painted its first line (the example Ukrainian `Мелорінг дарує хіти! …` message stopped right before `є`). Reproduced on the connected phone with an instrumented `sms.so` (full 530-byte body, 13 measured layout lines, only one painted line) and a standalone ARM reproducer; `pango_xft_render_layout_line()` paints all lines. The QMI WMS reassembly and `sms.txt` parser were verified correct and are not the cause.
|
||||
- Message bodies (and long composed text) are now rendered line by line through a shared `renderLayoutLines()` helper with an Xft clip rectangle, so no text overflows its bubble or the softkey bar. The selected message is scrollable with `Up`/`Down` (one line per press, with a right-edge scrollbar); the keys step to the previous/next message only at the top/bottom of an overflowing message. Card measurement now uses the same width as rendering.
|
||||
- Replaced the byte-based `composeText.size()/160` counter with `smsTextMetrics()`, which decodes UTF-8 code points, detects the 3GPP TS 23.038 GSM 7-bit alphabet plus extension table, and reports GSM-7 septets (160 per part, 153 when concatenated) or UCS-2 UTF-16 units (70 per part, 67 when concatenated) with the correct part count. The offline-send fallback log now records units instead of bytes.
|
||||
- `parseSmsHeaderLine()` strips the `[SIM n]` tag written by the QMI WMS daemon (`Received from 5050 [SIM 1] at …:`) and by older local send fallbacks (`Sent at … [SIM 1]:`), so senders and ISO timestamps stay clean; the fallback no longer writes the tag into `sms.txt`.
|
||||
- Added a `scripts/check-rebuild.sh` guard that rejects a bulk `pango_xft_render_layout()` call in `sms_plugin.cpp` and requires the line-by-line renderer, scroll state, encoding metrics, and SIM-tag stripping.
|
||||
|
||||
### Remove the remaining optional scripting runtimes
|
||||
- Removed `perl`, `perl-io-socket-ssl`, `tcl-lib`, `tcl-tls`, `sqlite-tcl`, `lua5.4`, `lua5.4-dev`, `lua5.5`, `lua5.5-dev`, and `sqlite` (CLI) from `scripts/rootfs-packages.txt` and added them to the prune denylist: 13 packages / 49.45 MiB including dependents. `sqlite-libs`, `tcl`, and all paramount runtimes stay.
|
||||
- Promoted `curl` to an explicit world entry and pinned `curl`, `bc`, `ed`, `rlwrap`, `mandoc`, `nano`, `less`, and `frotz` as core tools in `scripts/check-rebuild.sh`.
|
||||
|
||||
Reference in new issue
Block a user