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
@@ -165,8 +165,9 @@ All twenty-five phone applications are compiled as shared-object plugins (`/usr/
|
||||
7. **SMS manager, composer, and spam filter (`sms.so` / `xsms`)**:
|
||||
- **Open**: select **Texts** from the System menu, or choose **Send SMS** / **Read Messages** from Contacts.
|
||||
- **Conversations, inbox, and spam folder**: browse SMS threads and drafts with contact name resolution, unread indicators, and message bubbles (`Recv` and `Sent`). Press `Left`/`Right` in the thread list (or use **Left softkey (`Options`)**) to switch between **`Inbox`** (`~/.local/share/sxmo/modem`) and the **`Spam`** folder (`~/.local/share/sxmo/block`).
|
||||
- **Full-length messages**: open a thread with **Center `OK`** to read the complete text of long, concatenated, or Unicode (`UCS-2`) messages. Message bodies are drawn line by line and clipped to the bubble, so a multipart message is never cut off at its first line. `Up`/`Down` scrolls inside the selected message (a scrollbar on the right edge shows the position) and steps to the previous/next message once the top or bottom is reached; **Right softkey (`Back`)** returns to the thread list. The QMI WMS daemon reassembles 8-bit and 16-bit concatenated SMS across GSM-7 and UCS-2 (including split surrogate pairs) before writing `sms.txt`, and the `[SIM n]` tag in its log header is stripped when parsing.
|
||||
- **Anti-spam blocking**: press **Left softkey (`Options`)** on any thread or conversation to **Block Number (Spam)** (which adds the sender to `~/.config/sxmo/block.tsv` and moves their thread into the `Spam` folder), **Unblock & Restore** (which unblocks the sender and restores their thread to `Inbox`), **Manage Blocklist (N)**, or **Block a Number...**. Incoming texts from blocked numbers are silently routed into `~/.local/share/sxmo/block` without ringing or vibrating.
|
||||
- **Multi-tap composer**: pick a recipient from Contacts/Recents or type a number (hold `0` for `+`), compose messages with multi-tap keypad entry (`#` cycles input mode), monitor live character/segment counts (`0/160`), save drafts automatically, and send via **Call (green)**, **Center `OK`**, or **Left softkey** (prompting to select **SIM 1** or **SIM 2** when two SIM cards are active in DSDS).
|
||||
- **Multi-tap composer**: pick a recipient from Contacts/Recents or type a number (hold `0` for `+`), compose messages with multi-tap keypad entry (`#` cycles input mode), monitor live character/segment counts, save drafts automatically, and send via **Call (green)**, **Center `OK`**, or **Left softkey** (prompting to select **SIM 1** or **SIM 2** when two SIM cards are active in DSDS). The counter is encoding-aware: GSM-7 text shows `units/160` (or `units/306x2` for two concatenated parts at 153 septets each), while any character outside the GSM 7-bit alphabet (for example Ukrainian `є`, `і`, `ї`, `ґ`, or a supplementary-plane character) switches the whole message to UCS-2 and shows `units/70` (or `units/134x2` at 67 UTF-16 units per part). Long composed text is drawn line by line and scrolled so the end of the draft stays visible.
|
||||
|
||||
8. **File manager (`files.so` / `xfiles`)**:
|
||||
- **Open**: select **Files** from the System menu or press `Mod4+d`.
|
||||
|
||||
Reference in new issue
Block a user