Text
Words fitted to a width, cut where a reader loses least, and numbers said as words.
Desktop
arkui::fit · arkui::line · arkui::format · arkui::clipboard


clock(261.0) | 4:21 |
clock(3725.0) | 1:02:05 |
spell(3_725_000) | 1 hr 2 min |
plural(1, "place") | place |
plural(12, "place") | places |
span(1685, 1750) | 1685–1750 |
fit::middle(LONG, 24) | A name far t…ddle (2026) |
arkui::fit
Cutting text to a width: from the end or through the middle, measured in pixels, and the characters the typeface cannot draw spelt in ones it can.
Cut::{End, Middle}tail(s, chars)middle(s, chars)within(body, px, cut, measure)drawable(s)
Rules
- A name loses its middle, a heading its end.
arkui::line
One line of text cut, at layout, to the width it is given; gives_way lays it out after the rest of its row.
Line::new(body, size, cut, colour)Line::gives_way()
Rules
- A row lays out in order, so a line first in it would take everything; giving way puts it last.
arkui::format
Words for numbers: a clock, a count spelt out, a plural, a span of time, a day.
clock(secs)spell(ms)plural(n, word)span(born, died)day(ms, now)
Rules
- A length past an hour is h:mm:ss.
arkui::clipboard
Copy, cut and paste in every text box, in a browser too: the window's view handed the browser's clipboard, and a paste put in where the keys are once the browser hands it over.
view(view): the whole window's, oncepastes() -> Subscription<()>
Rules
- A paste is asked for and arrives later; it goes into whichever box has the keys, at its cursor, as typed text does.
- On the desktop it is iced's own clipboard, untouched.
Mobile
Nothing shared for this on Android yet.
Nothing shared for this on iOS yet.