Messages app for imsd messages dbus
  • C++ 94.2%
  • Shell 3.9%
  • Python 1.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf 335b27b72d
Wrap: word wrap and ellipsis over a measure function
Crafter.Graphics shapes one line at a time and drops newlines, so the app
breaks text itself: a greedy wrap with breaks after spaces and hyphens
(a space that itself overflows ends the line after the words that fit,
and opens no line of its own when it ends the text or a newline
follows; one at a line's start is no break at all, nor is a run of
them: a break is recorded only once the line holds a word, and a run of
spaces wider than the line splits like a word, with the same rule at the
text's end and before a newline), hard breaks at
newlines, over-long words split between code points, and
the run of spaces where a line wraps left out of both lines. Results are
cached per (text, width, size). The measure is a function, so the caller
supplies the advances; the tests use a constant ten-pixel advance.

Tested: tests/Wrap on a ten-pixel monospace measure, a leading run of
spaces among the cases.
2026-11-17 06:14:18 +01:00
assets project: the repository skeleton 2026-10-17 23:14:00 +02:00
implementations project: the repository skeleton 2026-10-17 23:14:00 +02:00
interfaces Wrap: word wrap and ellipsis over a measure function 2026-11-17 06:14:18 +01:00
tests Wrap: word wrap and ellipsis over a measure function 2026-11-17 06:14:18 +01:00
.gitignore project: the repository skeleton 2026-10-17 23:14:00 +02:00
AGENTS.md project: the repository skeleton 2026-10-17 23:14:00 +02:00
FUNDING.yml project: the repository skeleton 2026-10-17 23:14:00 +02:00
LICENSE project: the repository skeleton 2026-10-17 23:14:00 +02:00
project.cpp Wrap: word wrap and ellipsis over a measure function 2026-11-17 06:14:18 +01:00
README.md project: the repository skeleton 2026-10-17 23:14:00 +02:00

imsd-messages

The SMS app for imsd on Linux phones. imsd 2.0.0 carries texts over IMS and keeps them until a messaging app takes them; this is that app. It speaks imsd's net.catcrafts.IMS1.Messaging D-Bus interface and nothing else: no ModemManager, no modem.

Nothing to install yet. The flatpak will come from the Catcrafts remote:

flatpak remote-add --if-not-exists catcrafts https://flatpak.catcrafts.net/catcrafts.flatpakrepo

Building

This project uses Crafter.Build:

crafter-build          # the executable
crafter-build test     # the unit tests
crafter-build lint     # the house-style rules

License

GPL-3.0-only - see LICENSE. The bundled font (Noto Sans) is under the SIL Open Font License 1.1, see assets/OFL.txt.

Funding

https://catcrafts.net/shop/donation - see FUNDING

Copyright (C) 2026 Catcrafts® catcrafts.net