examples/graphic-crescent-and-star.umsg
%unimsg 0 graphic/crescent-and-star/v0 · 74 lines · 1793 bytes of text · 1220 bytes canonical · the raw file
Point at anything below — a sigil, a literal, a brace — and the card says what it is. Keyboard: tab through the document. Every explanation is also printed in full beneath the source.
%unimsg 0 graphic/crescent-and-star/v0
graphic {
at 2026-08-25
precision { coordinate 0.0001, rounding :half-even }
space { height 200, unit :user, width 200, y-axis :down }
status :draft
title "Crescent and star"
description "A waxing crescent opening to the right, with a five-pointed\r
star set in its opening. Both are filled with the same gold\r
ramp, running from pale at the upper left to deep at the lower\r
right."
paints {
gold-tight {
from { x 128, y 50 }
kind :linear
ramp -> @ramps.gold
to { x 168, y 94 }
}
gold-wide {
from { x 40, y 40 }
kind :linear
ramp -> @ramps.gold
to { x 160, y 160 }
}
}
ramps {
gold [
| at colour opacity
| 0 "#dfc595" 1
| 0.5 "#c7983c" 1
| 1 "#bf7c26" 1
]
}
scene [
{
ops ^u8 [ 0, 4, 4, 5 ]
role :path
style -> @styles.crescent
coords ^i32 [
1000000, 400000, 600000, 600000, 0, 10000, 0, 1000000, 1600000, 500000
500000, 0, 10000, 10000, 1000000, 400000
]
}
{
role :polygon
style -> @styles.star
points [
| x y
| 148 46
| 154.113 63.5862
| 172.7275 63.9656
| 157.891 75.2138
| 163.2824 93.0344
| 148 82.4
| 132.7176 93.0344
| 138.109 75.2138
| 123.2725 63.9656
| 141.887 63.5862
]
}
]
styles {
crescent {
fill { paint -> @paints.gold-wide }
stroke { paint "#8a5a1c", width 1.5 }
}
star {
fill { paint -> @paints.gold-tight }
stroke { paint "#8a5a1c", width 1 }
}
}
}
The canonical encoding
Produced by the reference encoder when this page was built. Decoding these bytes and printing them in the text form returns the document above, byte for byte — that round trip is the claim the whole format rests on.
a1 67 67 72 61 70 68 69 63 aa 62 61 74 da 00 01 11 da 6a 32 30 32 36 2d
30 38 2d 32 35 65 72 61 6d 70 73 a1 64 67 6f 6c 64 83 a3 62 61 74 00 66
63 6f 6c 6f 75 72 67 23 64 66 63 35 39 35 67 6f 70 61 63 69 74 79 01 a3
62 61 74 c4 82 20 05 66 63 6f 6c 6f 75 72 67 23 63 37 39 38 33 63 67 6f
70 61 63 69 74 79 01 a3 62 61 74 01 66 63 6f 6c 6f 75 72 67 23 62 66 37
63 32 36 67 6f 70 61 63 69 74 79 01 65 73 63 65 6e 65 82 a4 63 6f 70 73
d8 40 44 00 04 04 05 64 72 6f 6c 65 da 00 01 11 d4 64 70 61 74 68 65 73
74 79 6c 65 da 00 01 11 d7 6f 73 74 79 6c 65 73 2e 63 72 65 73 63 65 6e
74 66 63 6f 6f 72 64 73 d8 4a 58 40 00 0f 42 40 00 06 1a 80 00 09 27 c0
00 09 27 c0 00 00 00 00 00 00 27 10 00 00 00 00 00 0f 42 40 00 18 6a 00
00 07 a1 20 00 07 a1 20 00 00 00 00 00 00 27 10 00 00 27 10 00 0f 42 40
00 06 1a 80 a3 64 72 6f 6c 65 da 00 01 11 d4 67 70 6f 6c 79 67 6f 6e 65
73 74 79 6c 65 da 00 01 11 d7 6b 73 74 79 6c 65 73 2e 73 74 61 72 66 70
6f 69 6e 74 73 8a a2 61 78 18 94 61 79 18 2e a2 61 78 c4 82 22 1a 00 02
5a 01 61 79 c4 82 23 1a 00 09 b3 d6 a2 61 78 c4 82 23 1a 00 1a 5b 2b 61
79 c4 82 23 1a 00 09 c2 a8 a2 61 78 c4 82 22 1a 00 02 68 c3 61 79 c4 82
23 1a 00 0b 7a 0a a2 61 78 c4 82 23 1a 00 18 ea 38 61 79 c4 82 23 1a 00
0e 32 28 a2 61 78 18 94 61 79 c4 82 20 19 03 38 a2 61 78 c4 82 23 1a 00
14 40 48 61 79 c4 82 23 1a 00 0e 32 28 a2 61 78 c4 82 22 1a 00 02 1b 7d
61 79 c4 82 23 1a 00 0b 7a 0a a2 61 78 c4 82 23 1a 00 12 cf 55 61 79 c4
82 23 1a 00 09 c2 a8 a2 61 78 c4 82 22 1a 00 02 2a 3f 61 79 c4 82 23 1a
00 09 b3 d6 65 73 70 61 63 65 a4 64 75 6e 69 74 da 00 01 11 d4 64 75 73
65 72 65 77 69 64 74 68 18 c8 66 68 65 69 67 68 74 18 c8 66 79 2d 61 78
69 73 da 00 01 11 d4 64 64 6f 77 6e 65 74 69 74 6c 65 71 43 72 65 73 63
65 6e 74 20 61 6e 64 20 73 74 61 72 66 70 61 69 6e 74 73 a2 69 67 6f 6c
64 2d 77 69 64 65 a4 62 74 6f a2 61 78 18 a0 61 79 18 a0 64 66 72 6f 6d
a2 61 78 18 28 61 79 18 28 64 6b 69 6e 64 da 00 01 11 d4 66 6c 69 6e 65
61 72 64 72 61 6d 70 da 00 01 11 d7 6a 72 61 6d 70 73 2e 67 6f 6c 64 6a
67 6f 6c 64 2d 74 69 67 68 74 a4 62 74 6f a2 61 78 18 a8 61 79 18 5e 64
66 72 6f 6d a2 61 78 18 80 61 79 18 32 64 6b 69 6e 64 da 00 01 11 d4 66
6c 69 6e 65 61 72 64 72 61 6d 70 da 00 01 11 d7 6a 72 61 6d 70 73 2e 67
6f 6c 64 66 73 74 61 74 75 73 da 00 01 11 d4 65 64 72 61 66 74 66 73 74
79 6c 65 73 a2 64 73 74 61 72 a2 64 66 69 6c 6c a1 65 70 61 69 6e 74 da
00 01 11 d7 71 70 61 69 6e 74 73 2e 67 6f 6c 64 2d 74 69 67 68 74 66 73
74 72 6f 6b 65 a2 65 70 61 69 6e 74 67 23 38 61 35 61 31 63 65 77 69 64
74 68 01 68 63 72 65 73 63 65 6e 74 a2 64 66 69 6c 6c a1 65 70 61 69 6e
74 da 00 01 11 d7 70 70 61 69 6e 74 73 2e 67 6f 6c 64 2d 77 69 64 65 66
73 74 72 6f 6b 65 a2 65 70 61 69 6e 74 67 23 38 61 35 61 31 63 65 77 69
64 74 68 c4 82 20 0f 69 70 72 65 63 69 73 69 6f 6e a2 68 72 6f 75 6e 64
69 6e 67 da 00 01 11 d4 69 68 61 6c 66 2d 65 76 65 6e 6a 63 6f 6f 72 64
69 6e 61 74 65 c4 82 23 01 6b 64 65 73 63 72 69 70 74 69 6f 6e 78 ed 41
20 77 61 78 69 6e 67 20 63 72 65 73 63 65 6e 74 20 6f 70 65 6e 69 6e 67
20 74 6f 20 74 68 65 20 72 69 67 68 74 2c 20 77 69 74 68 20 61 20 66 69
76 65 2d 70 6f 69 6e 74 65 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20
20 20 20 73 74 61 72 20 73 65 74 20 69 6e 20 69 74 73 20 6f 70 65 6e 69
6e 67 2e 20 42 6f 74 68 20 61 72 65 20 66 69 6c 6c 65 64 20 77 69 74 68
20 74 68 65 20 73 61 6d 65 20 67 6f 6c 64 0d 0a 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 72 61 6d 70 2c 20 72 75 6e 6e 69 6e 67 20 66 72 6f
6d 20 70 61 6c 65 20 61 74 20 74 68 65 20 75 70 70 65 72 20 6c 65 66 74
20 74 6f 20 64 65 65 70 20 61 74 20 74 68 65 20 6c 6f 77 65 72 0d 0a 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 69 67 68 74 2e
examples/graphic-crescent-and-star.umsg 1220 bytesEvery construct on this page
The formal columns are read from the specification when this page is generated. The last column is this site's plain-language gloss and is not normative — where they differ, the specification is right.
| construct | glyph | carries | example | gloss |
|---|---|---|---|---|
| :annotation | — | — | — | A bare name qualifying the value after it—for example a language tag or a unit such as kg. It is not a value itself; a bare name with nothing after it is an error, not a guess. |
| :array | ^ | type, or type:shape; then [ elements ] | ^f64 [ 1.5, 2.5 ] or ^i16:2x3 [ … ] | A packed, homogeneous numeric array. The ^ marker gives every element its type and may also give the row-major shape: ^f64:2x3 [ … ]. |
| :array-element | — | — | — | One element of a typed array. Its type comes from the ^ marker, so 1.5 inside ^f64 is binary64 rather than an exact decimal. |
| :array-missing | — | — | — | A missing position in a typed array. null here is not an element value: it adds a validity mask while preserving the array's shape. |
| :block | — | — | — | A block: named pairs, in braces. Its keys are sorted in the encoding and shown here as written. |
| :bytes | ~ | encoding:data | ~hex:ff00 or ~b64:iVBORw0KGgo= | Raw octets, carried as octets. No base64 tax, no pretending they are text. |
| :comment | -- | to end of line | -- a note | A note for people. It travels with the pair it precedes and never reaches the bytes. |
| :decimal | — | — | — | An exact decimal. 19.99 is nineteen and ninety-nine hundredths, not the nearest double to it. |
| :extension | ! | name, then value | !acme/hint { zone 4 } | A qualifier this reader may not know. It survives the round trip intact, and stays legible on the way past — the rule that separates an extension from a private convention. |
| :float | — | — | — | A binary float, marked so it can never be mistaken for the exact decimal beside it. |
| :hash | # | algorithm:hex | #sha256:deadbeef | The digest of some content, with the algorithm said out loud so it is still meaningful in ten years. |
| :header | % | unimsg only | %unimsg 0 label | Declares the format version and what this document is. Optional, and useful exactly when a file arrives without context. |
| :identifier | @ | word | @ord-88213 | Gives this value a name, so another document can point at it without copying it. |
| :integer | — | — | — | A whole number of any size. Past 2^53 it is still exact, which is the whole reason this is not JSON. |
| :key | — | — | — | A field name: the first thing in a pair. It is bare when possible and quoted when needed, and names the content without becoming part of the value. |
| :reference | -> | an identifier or a path | -> @cust-4471, -> @lexicon.entries.kitāb | Points at a name. Nothing follows it while reading — resolution is somebody else's job, deliberately. |
| :reserved-literal | — | — | — | One of six bare words that are values rather than names. The list is fixed, so no value is coerced by what it looks like. |
| :sequence | — | — | — | An ordered list. Order is preserved and is meaning. |
| :string | — | — | — | Text. May span lines, so prose does not have to be escaped into one. |
| :symbol | : | word | :dispatched | A name from a fixed vocabulary, not free text. :high is a value someone chose; "high" is a phrase someone typed. |
| :table-row | | | cells | | sku qty | One record of a table. A table is sugar for a sequence of blocks with the same keys, and encodes identically to the longhand. |
| — | — | — | A temporal value at the precision written. 2026-08 stays a month, and 03:52 stays a wall-clock time; neither is widened into an invented instant. |