Add box, rule and kv blocks, text folding and receipt preview
Phase 1 of docs/plans/formatters.md: single and double CP437 boxes from
one /print element, and a way to see a receipt without using paper.
- receipt: box, rule and kv elements, laid out when the job renders from
the printer profile, size and font (never fixed widths). Boxes take a
title (inline or capped), a footer, padding, fit and columns, and a
body of text or children (text, feed, kv, and rules as dividers joined
to the borders). Glyphs a code page lacks fall back per set: double-h
and double-v to double, then single, then ascii; a missing junction
switches line weight first.
- Validation names nested elements (elements[0].children[3] (qr)),
checks fields per block type, allows one level of children and counts
them toward the 500-element limit. Block fields on the older types are
problems, as they were unknown fields before.
- Text is composed to NFC and characters the code page lacks fold to
look-alikes (curly quotes, dashes, ellipsis, arrows, check marks, euro,
trademark), as the owner approved on 2026-11-29. An emoji sequence
prints as one '?'. Encodable text is untouched.
- escpos: CodePage.CanEncode and Decode, and Interpret, which reads a
command stream back as the printer would print it. It takes the
profile so that it can follow the printer's own wrapping and
alignment; raw spans stay opaque.
- POST /api/v1/preview and `uberbringer preview` show the lines a job
prints, as text or JSON with styles, without fetching images.
- Config: [format] max_lines (default 2000), refused with 422
too_many_lines on preview; printer.box_line_spacing (default 0).
Byte compatibility: testdata/compat fixtures were rendered by 9b91109
before the renderer changed, and still match it and the new renderer.
examples/blocks.json was printed on the TM-T88IV; the owner judged the
border gaps at the default spacing fine (2026-11-30), so
box_line_spacing stays 0, and TestPaperReceipts pins its bytes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9fdea32b4f
commit
4562f0cebb
109 files changed
+6383
-487
No files matched your search
@@ -0,0 +1,15 @@
|
||||
inline text before a box
|
||||
+- Children -----------------------------+
|
||||
| Centred by the box. |
|
||||
| Left by its own align. |
|
||||
| Bold and right. |
|
||||
| |
|
||||
| |
|
||||
| Unwrapped text is split at the content |
|
||||
| width instead of at spaces. |
|
||||
| Tabs line up from the content edge. |
|
||||
| Newline true is allowed. |
|
||||
+----------------------------------------+
|
||||
After the box, text continues at the left
|
||||
margin.
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,15 @@
|
||||
inline text before a box
|
||||
┌─ Children ─────────────────────────────┐
|
||||
│ Centred by the box. │
|
||||
│ Left by its own align. │
|
||||
│ Bold and right. │
|
||||
│ │
|
||||
│ │
|
||||
│ Unwrapped text is split at the content │
|
||||
│ width instead of at spaces. │
|
||||
│ Tabs line up from the content edge. │
|
||||
│ Newline true is allowed. │
|
||||
└────────────────────────────────────────┘
|
||||
After the box, text continues at the left
|
||||
margin.
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,15 @@
|
||||
inline text before a box
|
||||
┌─ Children ─────────────────────────────┐
|
||||
│ Centred by the box. │
|
||||
│ Left by its own align. │
|
||||
│ Bold and right. │
|
||||
│ │
|
||||
│ │
|
||||
│ Unwrapped text is split at the content │
|
||||
│ width instead of at spaces. │
|
||||
│ Tabs line up from the content edge. │
|
||||
│ Newline true is allowed. │
|
||||
└────────────────────────────────────────┘
|
||||
After the box, text continues at the left
|
||||
margin.
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,13 @@
|
||||
{"elements": [
|
||||
{"type": "text", "text": "inline text before a box ", "newline": false},
|
||||
{"type": "box", "title": "Children", "align": "center", "children": [
|
||||
{"type": "text", "text": "Centred by the box."},
|
||||
{"type": "text", "text": "Left by its own align.", "align": "left"},
|
||||
{"type": "text", "text": "Bold and right.", "bold": true, "align": "right"},
|
||||
{"type": "feed", "lines": 2},
|
||||
{"type": "text", "text": "Unwrapped text is split at the content width instead of at spaces.", "wrap": false, "align": "left"},
|
||||
{"type": "text", "text": "Tabs\tline up\tfrom the content edge.", "align": "left"},
|
||||
{"type": "text", "text": "Newline true is allowed.", "newline": true}
|
||||
]},
|
||||
{"type": "text", "text": "After the box, text continues at the left margin."}
|
||||
]}
|
||||
@@ -0,0 +1,52 @@
|
||||
+-----+
|
||||
| fit |
|
||||
+-----+
|
||||
+- A title longer than the text -+
|
||||
| short |
|
||||
+--------------------------------+
|
||||
+--------------------------+
|
||||
| short |
|
||||
+- a footer that is long --+
|
||||
+-| capped |-+
|
||||
| x |
|
||||
+------------+
|
||||
+---------------------------------------+
|
||||
| A fit box with more text than fits on |
|
||||
| one line wraps at the full width. |
|
||||
+---------------------------------------+
|
||||
+--------------+
|
||||
|Line one |
|
||||
|is longer than|
|
||||
|line three |
|
||||
+--------------+
|
||||
+---------------------+
|
||||
| Fit ............ kv |
|
||||
+-- a divider label --+
|
||||
| |
|
||||
+---------------------+
|
||||
+- columns 20 -----+
|
||||
| A fixed width, |
|
||||
| centred on the |
|
||||
| paper. |
|
||||
+------------------+
|
||||
+-------------------+
|
||||
| Odd columns |
|
||||
| centre with the |
|
||||
| extra space on |
|
||||
| the right. |
|
||||
+-------------------+
|
||||
+- columns 200 --------------------------+
|
||||
| Clamped to the paper. |
|
||||
+----------------------------------------+
|
||||
+----------------------+
|
||||
| fit inside a columns |
|
||||
| limit that is |
|
||||
| narrower than the |
|
||||
| text |
|
||||
+----------------------+
|
||||
+-+
|
||||
|x|
|
||||
|y|
|
||||
|z|
|
||||
+-+
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,52 @@
|
||||
┌─────┐
|
||||
│ fit │
|
||||
└─────┘
|
||||
┌─ A title longer than the text ─┐
|
||||
│ short │
|
||||
└────────────────────────────────┘
|
||||
┌──────────────────────────┐
|
||||
│ short │
|
||||
└─ a footer that is long ──┘
|
||||
╔═╡ capped ╞═╗
|
||||
║ x ║
|
||||
╚════════════╝
|
||||
┌───────────────────────────────────────┐
|
||||
│ A fit box with more text than fits on │
|
||||
│ one line wraps at the full width. │
|
||||
└───────────────────────────────────────┘
|
||||
┌──────────────┐
|
||||
│Line one │
|
||||
│is longer than│
|
||||
│line three │
|
||||
└──────────────┘
|
||||
┌─────────────────────┐
|
||||
│ Fit ............ kv │
|
||||
├── a divider label ──┤
|
||||
│ │
|
||||
└─────────────────────┘
|
||||
┌─ columns 20 ─────┐
|
||||
│ A fixed width, │
|
||||
│ centred on the │
|
||||
│ paper. │
|
||||
└──────────────────┘
|
||||
┌───────────────────┐
|
||||
│ Odd columns │
|
||||
│ centre with the │
|
||||
│ extra space on │
|
||||
│ the right. │
|
||||
└───────────────────┘
|
||||
┌─ columns 200 ──────────────────────────┐
|
||||
│ Clamped to the paper. │
|
||||
└────────────────────────────────────────┘
|
||||
┌──────────────────────┐
|
||||
│ fit inside a columns │
|
||||
│ limit that is │
|
||||
│ narrower than the │
|
||||
│ text │
|
||||
└──────────────────────┘
|
||||
┌─┐
|
||||
│x│
|
||||
│y│
|
||||
│z│
|
||||
└─┘
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,52 @@
|
||||
┌─────┐
|
||||
│ fit │
|
||||
└─────┘
|
||||
┌─ A title longer than the text ─┐
|
||||
│ short │
|
||||
└────────────────────────────────┘
|
||||
┌──────────────────────────┐
|
||||
│ short │
|
||||
└─ a footer that is long ──┘
|
||||
╔═╣ capped ╠═╗
|
||||
║ x ║
|
||||
╚════════════╝
|
||||
┌───────────────────────────────────────┐
|
||||
│ A fit box with more text than fits on │
|
||||
│ one line wraps at the full width. │
|
||||
└───────────────────────────────────────┘
|
||||
┌──────────────┐
|
||||
│Line one │
|
||||
│is longer than│
|
||||
│line three │
|
||||
└──────────────┘
|
||||
┌─────────────────────┐
|
||||
│ Fit ............ kv │
|
||||
├── a divider label ──┤
|
||||
│ │
|
||||
└─────────────────────┘
|
||||
┌─ columns 20 ─────┐
|
||||
│ A fixed width, │
|
||||
│ centred on the │
|
||||
│ paper. │
|
||||
└──────────────────┘
|
||||
┌───────────────────┐
|
||||
│ Odd columns │
|
||||
│ centre with the │
|
||||
│ extra space on │
|
||||
│ the right. │
|
||||
└───────────────────┘
|
||||
┌─ columns 200 ──────────────────────────┐
|
||||
│ Clamped to the paper. │
|
||||
└────────────────────────────────────────┘
|
||||
┌──────────────────────┐
|
||||
│ fit inside a columns │
|
||||
│ limit that is │
|
||||
│ narrower than the │
|
||||
│ text │
|
||||
└──────────────────────┘
|
||||
┌─┐
|
||||
│x│
|
||||
│y│
|
||||
│z│
|
||||
└─┘
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,18 @@
|
||||
{"elements": [
|
||||
{"type": "box", "fit": true, "text": "fit"},
|
||||
{"type": "box", "fit": true, "title": "A title longer than the text", "text": "short"},
|
||||
{"type": "box", "fit": true, "footer": "a footer that is long", "text": "short"},
|
||||
{"type": "box", "fit": true, "style": "double", "title": "capped", "title_style": "capped", "text": "x"},
|
||||
{"type": "box", "fit": true, "text": "A fit box with more text than fits on one line wraps at the full width."},
|
||||
{"type": "box", "fit": true, "padding": 0, "text": "Line one\nis longer than\nline three"},
|
||||
{"type": "box", "fit": true, "children": [
|
||||
{"type": "kv", "pairs": [{"key": "Fit", "value": "kv"}]},
|
||||
{"type": "rule", "text": "a divider label"},
|
||||
{"type": "feed"}
|
||||
]},
|
||||
{"type": "box", "columns": 20, "title": "columns 20", "text": "A fixed width, centred on the paper."},
|
||||
{"type": "box", "columns": 21, "text": "Odd columns centre with the extra space on the right."},
|
||||
{"type": "box", "columns": 200, "title": "columns 200", "text": "Clamped to the paper."},
|
||||
{"type": "box", "columns": 24, "fit": true, "text": "fit inside a columns limit that is narrower than the text"},
|
||||
{"type": "box", "columns": 2, "padding": 3, "text": "xyz"}
|
||||
]}
|
||||
@@ -0,0 +1,16 @@
|
||||
+- padding 0 ----------------------------+
|
||||
|Text runs right up to the borders when |
|
||||
|the padding is zero. |
|
||||
+----------------------------------------+
|
||||
+- padding 1 ----------------------------+
|
||||
| One space each side is the default |
|
||||
| padding. |
|
||||
+----------------------------------------+
|
||||
+- padding 2 ----------------------------+
|
||||
| Two spaces each side. |
|
||||
+----------------------------------------+
|
||||
+- padding 3 ----------------------------+
|
||||
| Three spaces each side, the most |
|
||||
| there is. |
|
||||
+----------------------------------------+
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,16 @@
|
||||
┌─ padding 0 ────────────────────────────┐
|
||||
│Text runs right up to the borders when │
|
||||
│the padding is zero. │
|
||||
└────────────────────────────────────────┘
|
||||
┌─ padding 1 ────────────────────────────┐
|
||||
│ One space each side is the default │
|
||||
│ padding. │
|
||||
└────────────────────────────────────────┘
|
||||
┌─ padding 2 ────────────────────────────┐
|
||||
│ Two spaces each side. │
|
||||
└────────────────────────────────────────┘
|
||||
╔═ padding 3 ════════════════════════════╗
|
||||
║ Three spaces each side, the most ║
|
||||
║ there is. ║
|
||||
╚════════════════════════════════════════╝
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,16 @@
|
||||
┌─ padding 0 ────────────────────────────┐
|
||||
│Text runs right up to the borders when │
|
||||
│the padding is zero. │
|
||||
└────────────────────────────────────────┘
|
||||
┌─ padding 1 ────────────────────────────┐
|
||||
│ One space each side is the default │
|
||||
│ padding. │
|
||||
└────────────────────────────────────────┘
|
||||
┌─ padding 2 ────────────────────────────┐
|
||||
│ Two spaces each side. │
|
||||
└────────────────────────────────────────┘
|
||||
╔═ padding 3 ════════════════════════════╗
|
||||
║ Three spaces each side, the most ║
|
||||
║ there is. ║
|
||||
╚════════════════════════════════════════╝
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,6 @@
|
||||
{"elements": [
|
||||
{"type": "box", "padding": 0, "title": "padding 0", "text": "Text runs right up to the borders when the padding is zero."},
|
||||
{"type": "box", "padding": 1, "title": "padding 1", "text": "One space each side is the default padding."},
|
||||
{"type": "box", "padding": 2, "title": "padding 2", "text": "Two spaces each side.", "align": "center"},
|
||||
{"type": "box", "padding": 3, "style": "double", "title": "padding 3", "text": "Three spaces each side, the most there is.", "align": "right"}
|
||||
]}
|
||||
@@ -0,0 +1,22 @@
|
||||
+- size 1 -------------------------------+
|
||||
| Forty-two columns of Font A. |
|
||||
+----------------------------------- a --+
|
||||
+- size 2 ----------+
|
||||
| Twenty-one |
|
||||
| columns. |
|
||||
+-------------- a --+
|
||||
+- size 3 ---+
|
||||
| Fourteen |
|
||||
| columns. |
|
||||
+------- a --+
|
||||
+- size 1 font b --------------------------------------+
|
||||
| Fifty-six columns of Font B on the same paper. |
|
||||
+------------------------------------------------- b --+
|
||||
+- size 2 font b ----------+
|
||||
| Twenty-eight columns. |
|
||||
+--------------------- b --+
|
||||
+- size 3 b -----+
|
||||
| Eighteen |
|
||||
| columns. |
|
||||
+----------- b --+
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,22 @@
|
||||
┌─ size 1 ───────────────────────────────┐
|
||||
│ Forty-two columns of Font A. │
|
||||
└─────────────────────────────────── a ──┘
|
||||
┌─ size 2 ──────────┐
|
||||
│ Twenty-one │
|
||||
│ columns. │
|
||||
└────────────── a ──┘
|
||||
╔═ size 3 ═══╗
|
||||
║ Fourteen ║
|
||||
║ columns. ║
|
||||
╚═══════ a ══╝
|
||||
┌─ size 1 font b ──────────────────────────────────────┐
|
||||
│ Fifty-six columns of Font B on the same paper. │
|
||||
└───────────────────────────────────────────────── b ──┘
|
||||
┌─ size 2 font b ──────────┐
|
||||
│ Twenty-eight columns. │
|
||||
└───────────────────── b ──┘
|
||||
╔═ size 3 b ═════╗
|
||||
║ Eighteen ║
|
||||
║ columns. ║
|
||||
╚═══════════ b ══╝
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,22 @@
|
||||
┌─ size 1 ───────────────────────────────┐
|
||||
│ Forty-two columns of Font A. │
|
||||
└─────────────────────────────────── a ──┘
|
||||
┌─ size 2 ──────────┐
|
||||
│ Twenty-one │
|
||||
│ columns. │
|
||||
└────────────── a ──┘
|
||||
╔═ size 3 ═══╗
|
||||
║ Fourteen ║
|
||||
║ columns. ║
|
||||
╚═══════ a ══╝
|
||||
┌─ size 1 font b ──────────────────────────────────────┐
|
||||
│ Fifty-six columns of Font B on the same paper. │
|
||||
└───────────────────────────────────────────────── b ──┘
|
||||
┌─ size 2 font b ──────────┐
|
||||
│ Twenty-eight columns. │
|
||||
└───────────────────── b ──┘
|
||||
╔═ size 3 b ═════╗
|
||||
║ Eighteen ║
|
||||
║ columns. ║
|
||||
╚═══════════ b ══╝
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,8 @@
|
||||
{"elements": [
|
||||
{"type": "box", "size": 1, "title": "size 1", "footer": "a", "text": "Forty-two columns of Font A."},
|
||||
{"type": "box", "size": 2, "title": "size 2", "footer": "a", "text": "Twenty-one columns."},
|
||||
{"type": "box", "size": 3, "style": "double", "title": "size 3", "footer": "a", "text": "Fourteen columns."},
|
||||
{"type": "box", "size": 1, "font": "b", "title": "size 1 font b", "footer": "b", "text": "Fifty-six columns of Font B on the same paper."},
|
||||
{"type": "box", "size": 2, "font": "b", "title": "size 2 font b", "footer": "b", "text": "Twenty-eight columns."},
|
||||
{"type": "box", "size": 3, "font": "B", "style": "double", "title": "size 3 b", "footer": "b", "text": "Eighteen columns."}
|
||||
]}
|
||||
@@ -0,0 +1,41 @@
|
||||
+- single -------------------------------+
|
||||
| Inline title, default style. |
|
||||
+----------------------------------------+
|
||||
+- double -------------------------------+
|
||||
| Inline title. |
|
||||
+----------------------------------------+
|
||||
+- double-h -----------------------------+
|
||||
| Inline title. |
|
||||
+----------------------------------------+
|
||||
+- double-v -----------------------------+
|
||||
| Inline title. |
|
||||
+----------------------------------------+
|
||||
+- ascii --------------------------------+
|
||||
| Inline title. |
|
||||
+----------------------------------------+
|
||||
+-| single |-----------------------------+
|
||||
| Capped title. |
|
||||
+----------------------------------------+
|
||||
+-| double |-----------------------------+
|
||||
| Capped title. |
|
||||
+----------------------------------------+
|
||||
+-| double-h |---------------------------+
|
||||
| Capped title. |
|
||||
+----------------------------------------+
|
||||
+-| double-v |---------------------------+
|
||||
| Capped title. |
|
||||
+----------------------------------------+
|
||||
+-| ascii |------------------------------+
|
||||
| Capped title. |
|
||||
+----------------------------------------+
|
||||
+----------------------------------------+
|
||||
| No title, a footer, and a long |
|
||||
| paragraph that wraps inside the |
|
||||
| borders. |
|
||||
| A second paragraph. |
|
||||
+------------------------ 29 Nov 21:04 --+
|
||||
+----------------------------------------+
|
||||
| Bold, underlined and inverted body |
|
||||
| text; the borders stay plain. |
|
||||
+----------------------------------------+
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,41 @@
|
||||
┌─ single ───────────────────────────────┐
|
||||
│ Inline title, default style. │
|
||||
└────────────────────────────────────────┘
|
||||
╔═ double ═══════════════════════════════╗
|
||||
║ Inline title. ║
|
||||
╚════════════════════════════════════════╝
|
||||
╒═ double-h ═════════════════════════════╕
|
||||
│ Inline title. │
|
||||
╘════════════════════════════════════════╛
|
||||
╓─ double-v ─────────────────────────────╖
|
||||
║ Inline title. ║
|
||||
╙────────────────────────────────────────╜
|
||||
+- ascii --------------------------------+
|
||||
| Inline title. |
|
||||
+----------------------------------------+
|
||||
┌─┤ single ├─────────────────────────────┐
|
||||
│ Capped title. │
|
||||
└────────────────────────────────────────┘
|
||||
╔═╡ double ╞═════════════════════════════╗
|
||||
║ Capped title. ║
|
||||
╚════════════════════════════════════════╝
|
||||
╒═╡ double-h ╞═══════════════════════════╕
|
||||
│ Capped title. │
|
||||
╘════════════════════════════════════════╛
|
||||
╓─┤ double-v ├───────────────────────────╖
|
||||
║ Capped title. ║
|
||||
╙────────────────────────────────────────╜
|
||||
+-| ascii |------------------------------+
|
||||
| Capped title. |
|
||||
+----------------------------------------+
|
||||
╔════════════════════════════════════════╗
|
||||
║ No title, a footer, and a long ║
|
||||
║ paragraph that wraps inside the ║
|
||||
║ borders. ║
|
||||
║ A second paragraph. ║
|
||||
╚════════════════════════ 29 Nov 21:04 ══╝
|
||||
┌────────────────────────────────────────┐
|
||||
│ Bold, underlined and inverted body │
|
||||
│ text; the borders stay plain. │
|
||||
└────────────────────────────────────────┘
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,41 @@
|
||||
┌─ single ───────────────────────────────┐
|
||||
│ Inline title, default style. │
|
||||
└────────────────────────────────────────┘
|
||||
╔═ double ═══════════════════════════════╗
|
||||
║ Inline title. ║
|
||||
╚════════════════════════════════════════╝
|
||||
╔═ double-h ═════════════════════════════╗
|
||||
║ Inline title. ║
|
||||
╚════════════════════════════════════════╝
|
||||
╔═ double-v ═════════════════════════════╗
|
||||
║ Inline title. ║
|
||||
╚════════════════════════════════════════╝
|
||||
+- ascii --------------------------------+
|
||||
| Inline title. |
|
||||
+----------------------------------------+
|
||||
┌─┤ single ├─────────────────────────────┐
|
||||
│ Capped title. │
|
||||
└────────────────────────────────────────┘
|
||||
╔═╣ double ╠═════════════════════════════╗
|
||||
║ Capped title. ║
|
||||
╚════════════════════════════════════════╝
|
||||
╔═╣ double-h ╠═══════════════════════════╗
|
||||
║ Capped title. ║
|
||||
╚════════════════════════════════════════╝
|
||||
╔═╣ double-v ╠═══════════════════════════╗
|
||||
║ Capped title. ║
|
||||
╚════════════════════════════════════════╝
|
||||
+-| ascii |------------------------------+
|
||||
| Capped title. |
|
||||
+----------------------------------------+
|
||||
╔════════════════════════════════════════╗
|
||||
║ No title, a footer, and a long ║
|
||||
║ paragraph that wraps inside the ║
|
||||
║ borders. ║
|
||||
║ A second paragraph. ║
|
||||
╚════════════════════════ 29 Nov 21:04 ══╝
|
||||
┌────────────────────────────────────────┐
|
||||
│ Bold, underlined and inverted body │
|
||||
│ text; the borders stay plain. │
|
||||
└────────────────────────────────────────┘
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,14 @@
|
||||
{"elements": [
|
||||
{"type": "box", "title": "single", "text": "Inline title, default style."},
|
||||
{"type": "box", "style": "double", "title": "double", "text": "Inline title."},
|
||||
{"type": "box", "style": "double-h", "title": "double-h", "text": "Inline title."},
|
||||
{"type": "box", "style": "double-v", "title": "double-v", "text": "Inline title."},
|
||||
{"type": "box", "style": "ascii", "title": "ascii", "text": "Inline title."},
|
||||
{"type": "box", "title": "single", "title_style": "capped", "text": "Capped title."},
|
||||
{"type": "box", "style": "double", "title": "double", "title_style": "capped", "text": "Capped title."},
|
||||
{"type": "box", "style": "double-h", "title": "double-h", "title_style": "capped", "text": "Capped title."},
|
||||
{"type": "box", "style": "double-v", "title": "double-v", "title_style": "capped", "text": "Capped title."},
|
||||
{"type": "box", "style": "ascii", "title": "ascii", "title_style": "capped", "text": "Capped title."},
|
||||
{"type": "box", "style": "DOUBLE", "footer": "29 Nov 21:04", "text": "No title, a footer, and a long paragraph that wraps inside the borders.\nA second paragraph."},
|
||||
{"type": "box", "text": "Bold, underlined and inverted body text; the borders stay plain.", "bold": true, "underline": 1, "invert": true, "align": "right"}
|
||||
]}
|
||||
@@ -0,0 +1,23 @@
|
||||
+- An inline title that is far too l... -+
|
||||
| Cut with an ellipsis. |
|
||||
+----------------------------------------+
|
||||
+-| A capped title that is far too ... |-+
|
||||
| Cut two columns earlier. |
|
||||
+----------------------------------------+
|
||||
+- Exactly thirty-six characters long!! -+
|
||||
| The longest inline title that fits. |
|
||||
+----------------------------------------+
|
||||
+- Thirty-seven characters long, too!!! -+
|
||||
| One more and it is cut. |
|
||||
+----------------------------------------+
|
||||
+----------------------------------------+
|
||||
| Cut with an ellipsis. |
|
||||
+- A footer that is far too long fo... --+
|
||||
+- Title with a newline and a tab -------+
|
||||
| Newlines and tabs in titles and |
|
||||
| footers become spaces. |
|
||||
+------------------------- Footer also --+
|
||||
+- A lon... -+
|
||||
| Big |
|
||||
+- A lo... --+
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,23 @@
|
||||
┌─ An inline title that is far too l... ─┐
|
||||
│ Cut with an ellipsis. │
|
||||
└────────────────────────────────────────┘
|
||||
╔═╡ A capped title that is far too ... ╞═╗
|
||||
║ Cut two columns earlier. ║
|
||||
╚════════════════════════════════════════╝
|
||||
┌─ Exactly thirty-six characters long!! ─┐
|
||||
│ The longest inline title that fits. │
|
||||
└────────────────────────────────────────┘
|
||||
┌─ Thirty-seven characters long, too!!! ─┐
|
||||
│ One more and it is cut. │
|
||||
└────────────────────────────────────────┘
|
||||
┌────────────────────────────────────────┐
|
||||
│ Cut with an ellipsis. │
|
||||
└─ A footer that is far too long fo... ──┘
|
||||
┌─ Title with a newline and a tab ───────┐
|
||||
│ Newlines and tabs in titles and │
|
||||
│ footers become spaces. │
|
||||
└───────────────────────── Footer also ──┘
|
||||
┌─ A lon... ─┐
|
||||
│ Big │
|
||||
└─ A lo... ──┘
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,23 @@
|
||||
┌─ An inline title that is far too l... ─┐
|
||||
│ Cut with an ellipsis. │
|
||||
└────────────────────────────────────────┘
|
||||
╔═╣ A capped title that is far too ... ╠═╗
|
||||
║ Cut two columns earlier. ║
|
||||
╚════════════════════════════════════════╝
|
||||
┌─ Exactly thirty-six characters long!! ─┐
|
||||
│ The longest inline title that fits. │
|
||||
└────────────────────────────────────────┘
|
||||
┌─ Thirty-seven characters long, too!!! ─┐
|
||||
│ One more and it is cut. │
|
||||
└────────────────────────────────────────┘
|
||||
┌────────────────────────────────────────┐
|
||||
│ Cut with an ellipsis. │
|
||||
└─ A footer that is far too long fo... ──┘
|
||||
┌─ Title with a newline and a tab ───────┐
|
||||
│ Newlines and tabs in titles and │
|
||||
│ footers become spaces. │
|
||||
└───────────────────────── Footer also ──┘
|
||||
┌─ A lon... ─┐
|
||||
│ Big │
|
||||
└─ A lo... ──┘
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,9 @@
|
||||
{"elements": [
|
||||
{"type": "box", "title": "An inline title that is far too long for the top border of the box", "text": "Cut with an ellipsis."},
|
||||
{"type": "box", "style": "double", "title_style": "capped", "title": "A capped title that is far too long for the top border of the box", "text": "Cut two columns earlier."},
|
||||
{"type": "box", "title": "Exactly thirty-six characters long!!", "text": "The longest inline title that fits."},
|
||||
{"type": "box", "title": "Thirty-seven characters long, too!!!", "text": "One more and it is cut."},
|
||||
{"type": "box", "footer": "A footer that is far too long for the bottom border", "text": "Cut with an ellipsis."},
|
||||
{"type": "box", "title": "Title\nwith a newline\tand a tab", "footer": "Footer\nalso", "text": "Newlines and tabs in titles and footers become spaces."},
|
||||
{"type": "box", "size": 3, "title": "A long title", "footer": "A long footer", "text": "Big"}
|
||||
]}
|
||||
@@ -0,0 +1,45 @@
|
||||
+- single box ---------------------------+
|
||||
| single rule |
|
||||
+----------------------------------------+
|
||||
| double rule |
|
||||
+========================================+
|
||||
| labelled |
|
||||
+-- Left --------------------------------+
|
||||
+---------------- Centre ----------------+
|
||||
+=============================== Right ==+
|
||||
| end |
|
||||
+----------------------------------------+
|
||||
+- double box ---------------------------+
|
||||
| single rule |
|
||||
+----------------------------------------+
|
||||
| double rule |
|
||||
+================ Label =================+
|
||||
| end |
|
||||
+----------------------------------------+
|
||||
+- double-h box -------------------------+
|
||||
| single rule |
|
||||
+----------------------------------------+
|
||||
| double rule |
|
||||
+================ Label =================+
|
||||
| end |
|
||||
+----------------------------------------+
|
||||
+- double-v box -------------------------+
|
||||
| single rule |
|
||||
+----------------------------------------+
|
||||
| double rule |
|
||||
+================ Label =================+
|
||||
| end |
|
||||
+----------------------------------------+
|
||||
+- ascii box ----------------------------+
|
||||
| single rule |
|
||||
+----------------------------------------+
|
||||
| double rule |
|
||||
+================ Label =================+
|
||||
| end |
|
||||
+----------------------------------------+
|
||||
+------------+
|
||||
| narrow |
|
||||
+-- too... --+
|
||||
+--- fits ---+
|
||||
+------------+
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,45 @@
|
||||
┌─ single box ───────────────────────────┐
|
||||
│ single rule │
|
||||
├────────────────────────────────────────┤
|
||||
│ double rule │
|
||||
╞════════════════════════════════════════╡
|
||||
│ labelled │
|
||||
├── Left ────────────────────────────────┤
|
||||
├──────────────── Centre ────────────────┤
|
||||
╞═══════════════════════════════ Right ══╡
|
||||
│ end │
|
||||
└────────────────────────────────────────┘
|
||||
╔═ double box ═══════════════════════════╗
|
||||
║ single rule ║
|
||||
╟────────────────────────────────────────╢
|
||||
║ double rule ║
|
||||
╠════════════════ Label ═════════════════╣
|
||||
║ end ║
|
||||
╚════════════════════════════════════════╝
|
||||
╒═ double-h box ═════════════════════════╕
|
||||
│ single rule │
|
||||
├────────────────────────────────────────┤
|
||||
│ double rule │
|
||||
╞════════════════ Label ═════════════════╡
|
||||
│ end │
|
||||
╘════════════════════════════════════════╛
|
||||
╓─ double-v box ─────────────────────────╖
|
||||
║ single rule ║
|
||||
╟────────────────────────────────────────╢
|
||||
║ double rule ║
|
||||
╠════════════════ Label ═════════════════╣
|
||||
║ end ║
|
||||
╙────────────────────────────────────────╜
|
||||
+- ascii box ----------------------------+
|
||||
| single rule |
|
||||
+----------------------------------------+
|
||||
| double rule |
|
||||
+================ Label =================+
|
||||
| end |
|
||||
+----------------------------------------+
|
||||
┌────────────┐
|
||||
│ narrow │
|
||||
├── too... ──┤
|
||||
├─── fits ───┤
|
||||
└────────────┘
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,45 @@
|
||||
┌─ single box ───────────────────────────┐
|
||||
│ single rule │
|
||||
├────────────────────────────────────────┤
|
||||
│ double rule │
|
||||
├────────────────────────────────────────┤
|
||||
│ labelled │
|
||||
├── Left ────────────────────────────────┤
|
||||
├──────────────── Centre ────────────────┤
|
||||
├─────────────────────────────── Right ──┤
|
||||
│ end │
|
||||
└────────────────────────────────────────┘
|
||||
╔═ double box ═══════════════════════════╗
|
||||
║ single rule ║
|
||||
╠════════════════════════════════════════╣
|
||||
║ double rule ║
|
||||
╠════════════════ Label ═════════════════╣
|
||||
║ end ║
|
||||
╚════════════════════════════════════════╝
|
||||
╔═ double-h box ═════════════════════════╗
|
||||
║ single rule ║
|
||||
╠════════════════════════════════════════╣
|
||||
║ double rule ║
|
||||
╠════════════════ Label ═════════════════╣
|
||||
║ end ║
|
||||
╚════════════════════════════════════════╝
|
||||
╔═ double-v box ═════════════════════════╗
|
||||
║ single rule ║
|
||||
╠════════════════════════════════════════╣
|
||||
║ double rule ║
|
||||
╠════════════════ Label ═════════════════╣
|
||||
║ end ║
|
||||
╚════════════════════════════════════════╝
|
||||
+- ascii box ----------------------------+
|
||||
| single rule |
|
||||
+----------------------------------------+
|
||||
| double rule |
|
||||
+================ Label =================+
|
||||
| end |
|
||||
+----------------------------------------+
|
||||
┌────────────┐
|
||||
│ narrow │
|
||||
├── too... ──┤
|
||||
├─── fits ───┤
|
||||
└────────────┘
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,46 @@
|
||||
{"elements": [
|
||||
{"type": "box", "title": "single box", "children": [
|
||||
{"type": "text", "text": "single rule"},
|
||||
{"type": "rule"},
|
||||
{"type": "text", "text": "double rule"},
|
||||
{"type": "rule", "style": "double"},
|
||||
{"type": "text", "text": "labelled"},
|
||||
{"type": "rule", "text": "Left", "align": "left"},
|
||||
{"type": "rule", "text": "Centre"},
|
||||
{"type": "rule", "text": "Right", "align": "right", "style": "double", "bold": true},
|
||||
{"type": "text", "text": "end"}
|
||||
]},
|
||||
{"type": "box", "style": "double", "title": "double box", "children": [
|
||||
{"type": "text", "text": "single rule"},
|
||||
{"type": "rule"},
|
||||
{"type": "text", "text": "double rule"},
|
||||
{"type": "rule", "style": "double", "text": "Label"},
|
||||
{"type": "text", "text": "end"}
|
||||
]},
|
||||
{"type": "box", "style": "double-h", "title": "double-h box", "children": [
|
||||
{"type": "text", "text": "single rule"},
|
||||
{"type": "rule"},
|
||||
{"type": "text", "text": "double rule"},
|
||||
{"type": "rule", "style": "double", "text": "Label"},
|
||||
{"type": "text", "text": "end"}
|
||||
]},
|
||||
{"type": "box", "style": "double-v", "title": "double-v box", "children": [
|
||||
{"type": "text", "text": "single rule"},
|
||||
{"type": "rule"},
|
||||
{"type": "text", "text": "double rule"},
|
||||
{"type": "rule", "style": "double", "text": "Label"},
|
||||
{"type": "text", "text": "end"}
|
||||
]},
|
||||
{"type": "box", "style": "ascii", "title": "ascii box", "children": [
|
||||
{"type": "text", "text": "single rule"},
|
||||
{"type": "rule"},
|
||||
{"type": "text", "text": "double rule"},
|
||||
{"type": "rule", "style": "double", "text": "Label"},
|
||||
{"type": "text", "text": "end"}
|
||||
]},
|
||||
{"type": "box", "columns": 14, "children": [
|
||||
{"type": "text", "text": "narrow"},
|
||||
{"type": "rule", "text": "too long a label"},
|
||||
{"type": "rule", "text": "fits"}
|
||||
]}
|
||||
]}
|
||||
@@ -0,0 +1,15 @@
|
||||
+- “Quoted” — title… --------------------+
|
||||
| ‘Single’ – dash; ellipsis… • bullet -> |
|
||||
| arrow <- back x x × € ™ done |
|
||||
+----------------------------------------+
|
||||
Emoji: ? one sequence, ? a family, ? a
|
||||
flag, 1 a keycap, ? a sign.
|
||||
Price .......................... 12 € — 3×
|
||||
Emoji ................................. ??
|
||||
---------------- “Label” -----------------
|
||||
Decomposed: café, naïve; zerowidth and
|
||||
joiner gone.
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
=== warnings
|
||||
elements[1]: 4 characters not in cp1252 printed as ?
|
||||
elements[2]: 2 characters not in cp1252 printed as ?
|
||||
@@ -0,0 +1,15 @@
|
||||
┌─ "Quoted" -- title... ─────────────────┐
|
||||
│ 'Single' - dash; ellipsis... · bullet │
|
||||
│ -> arrow <- back √ √ x EUR TM done │
|
||||
└────────────────────────────────────────┘
|
||||
Emoji: ? one sequence, ? a family, ? a
|
||||
flag, 1 a keycap, ? a sign.
|
||||
Price ....................... 12 EUR -- 3x
|
||||
Emoji ................................. ??
|
||||
──────────────── "Label" ─────────────────
|
||||
Decomposed: café, naïve; zerowidth and
|
||||
joiner gone.
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
=== warnings
|
||||
elements[1]: 4 characters not in cp437 printed as ?
|
||||
elements[2]: 2 characters not in cp437 printed as ?
|
||||
@@ -0,0 +1,15 @@
|
||||
┌─ "Quoted" -- title... ─────────────────┐
|
||||
│ 'Single' - dash; ellipsis... · bullet │
|
||||
│ -> arrow <- back x x × EUR TM done │
|
||||
└────────────────────────────────────────┘
|
||||
Emoji: ? one sequence, ? a family, ? a
|
||||
flag, 1 a keycap, ? a sign.
|
||||
Price ....................... 12 EUR -- 3×
|
||||
Emoji ................................. ??
|
||||
──────────────── "Label" ─────────────────
|
||||
Decomposed: café, naïve; zerowidth and
|
||||
joiner gone.
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
=== warnings
|
||||
elements[1]: 4 characters not in cp850 printed as ?
|
||||
elements[2]: 2 characters not in cp850 printed as ?
|
||||
@@ -0,0 +1,7 @@
|
||||
{"elements": [
|
||||
{"type": "box", "title": "“Quoted” — title…", "text": "‘Single’ – dash; ellipsis… • bullet → arrow ← back ✓ ✔ × € ™ done"},
|
||||
{"type": "text", "text": "Emoji: 👍🏽 one sequence, 👨\u200D👩\u200D👧 a family, 🇩🇪 a flag, 1\uFE0F\u20E3 a keycap, ⚠\uFE0F a sign."},
|
||||
{"type": "kv", "pairs": [{"key": "Price", "value": "12 € — 3×"}, {"key": "Emoji", "value": "🎉🎉"}]},
|
||||
{"type": "rule", "text": "“Label”"},
|
||||
{"type": "text", "text": "Decomposed: cafe\u0301, nai\u0308ve; zero\u200Bwidth and joiner\u200D gone."}
|
||||
]}
|
||||
@@ -0,0 +1,29 @@
|
||||
Host ............................... nas01
|
||||
Note ... The scrub finished with 0 errors.
|
||||
Next scrub Sunday 03:00.
|
||||
Used ................................. 94%
|
||||
Empty ....................................
|
||||
A key that is much too long to ... ..... v
|
||||
URL .. https://example.com/a/very/long/pat
|
||||
h/without/any/spaces/in/it
|
||||
Lines .................... first paragraph
|
||||
second paragraph
|
||||
··········································
|
||||
Middle dots ···························· ·
|
||||
Spaces justified
|
||||
space the same
|
||||
Underscores ____________________________ _
|
||||
Dashes --------------------------------- -
|
||||
Line ----------------------------------- ?
|
||||
Columns .... 24, centred
|
||||
Size .............. 2
|
||||
Total ........ £12.50
|
||||
Font B .......................... fifty-six columns wide
|
||||
+- kv in a box --------------------------+
|
||||
| Inside ........... the content width |
|
||||
| Wraps ..... a value that is too long |
|
||||
| for one line of the box |
|
||||
+----------------------------------------+
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
=== warnings
|
||||
elements[7]: 1 character not in cp1252 printed as ?
|
||||
@@ -0,0 +1,27 @@
|
||||
Host ............................... nas01
|
||||
Note ... The scrub finished with 0 errors.
|
||||
Next scrub Sunday 03:00.
|
||||
Used ................................. 94%
|
||||
Empty ....................................
|
||||
A key that is much too long to ... ..... v
|
||||
URL .. https://example.com/a/very/long/pat
|
||||
h/without/any/spaces/in/it
|
||||
Lines .................... first paragraph
|
||||
second paragraph
|
||||
··········································
|
||||
Middle dots ···························· ·
|
||||
Spaces justified
|
||||
space the same
|
||||
Underscores ____________________________ _
|
||||
Dashes --------------------------------- -
|
||||
Line ─────────────────────────────────── ─
|
||||
Columns .... 24, centred
|
||||
Size .............. 2
|
||||
Total ........ £12.50
|
||||
Font B .......................... fifty-six columns wide
|
||||
┌─ kv in a box ──────────────────────────┐
|
||||
│ Inside ........... the content width │
|
||||
│ Wraps ..... a value that is too long │
|
||||
│ for one line of the box │
|
||||
└────────────────────────────────────────┘
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,27 @@
|
||||
Host ............................... nas01
|
||||
Note ... The scrub finished with 0 errors.
|
||||
Next scrub Sunday 03:00.
|
||||
Used ................................. 94%
|
||||
Empty ....................................
|
||||
A key that is much too long to ... ..... v
|
||||
URL .. https://example.com/a/very/long/pat
|
||||
h/without/any/spaces/in/it
|
||||
Lines .................... first paragraph
|
||||
second paragraph
|
||||
··········································
|
||||
Middle dots ···························· ·
|
||||
Spaces justified
|
||||
space the same
|
||||
Underscores ____________________________ _
|
||||
Dashes --------------------------------- -
|
||||
Line ─────────────────────────────────── ─
|
||||
Columns .... 24, centred
|
||||
Size .............. 2
|
||||
Total ........ £12.50
|
||||
Font B .......................... fifty-six columns wide
|
||||
┌─ kv in a box ──────────────────────────┐
|
||||
│ Inside ........... the content width │
|
||||
│ Wraps ..... a value that is too long │
|
||||
│ for one line of the box │
|
||||
└────────────────────────────────────────┘
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
{"elements": [
|
||||
{"type": "kv", "pairs": [
|
||||
{"key": "Host", "value": "nas01"},
|
||||
{"key": "Note", "value": "The scrub finished with 0 errors. Next scrub Sunday 03:00."},
|
||||
{"key": "Used", "value": "94%", "bold": true},
|
||||
{"key": "Empty", "value": ""},
|
||||
{"key": "A key that is much too long to leave room for its value", "value": "v"},
|
||||
{"key": "URL", "value": "https://example.com/a/very/long/path/without/any/spaces/in/it"},
|
||||
{"key": "Lines", "value": "first paragraph\nsecond paragraph"}
|
||||
]},
|
||||
{"type": "rule", "style": "dotted"},
|
||||
{"type": "kv", "leader": "·", "pairs": [{"key": "Middle dots", "value": "·"}]},
|
||||
{"type": "kv", "leader": " ", "pairs": [{"key": "Spaces", "value": "justified"}]},
|
||||
{"type": "kv", "leader": "space", "pairs": [{"key": "space", "value": "the same"}]},
|
||||
{"type": "kv", "leader": "_", "pairs": [{"key": "Underscores", "value": "_"}]},
|
||||
{"type": "kv", "leader": "-", "pairs": [{"key": "Dashes", "value": "-"}]},
|
||||
{"type": "kv", "leader": "─", "pairs": [{"key": "Line", "value": "─"}]},
|
||||
{"type": "kv", "columns": 24, "pairs": [{"key": "Columns", "value": "24, centred"}]},
|
||||
{"type": "kv", "size": 2, "pairs": [{"key": "Size", "value": "2"}, {"key": "Total", "value": "£12.50", "bold": true}]},
|
||||
{"type": "kv", "font": "b", "pairs": [{"key": "Font B", "value": "fifty-six columns wide"}]},
|
||||
{"type": "box", "title": "kv in a box", "padding": 2, "children": [
|
||||
{"type": "kv", "pairs": [{"key": "Inside", "value": "the content width"}, {"key": "Wraps", "value": "a value that is too long for one line of the box"}]}
|
||||
]}
|
||||
]}
|
||||
@@ -0,0 +1,24 @@
|
||||
+-| ACHTUNG |----------------------------+
|
||||
| The coffee machine is being descaled. |
|
||||
| Do not use until 10:30. |
|
||||
+----------------------------------------+
|
||||
|
||||
+---------------------+
|
||||
| !!! ACHTUNG !!! |
|
||||
+---------------------+
|
||||
|
||||
+-------------------+
|
||||
| !!! ACHTUNG !!! |
|
||||
+-------------------+
|
||||
|
||||
+- NAS REPORT ---------------------------+
|
||||
| Host ........................... nas01 |
|
||||
| Pool ................... tank (raidz2) |
|
||||
| Used ............................. 94% |
|
||||
+-- Services ----------------------------+
|
||||
| · grafana up |
|
||||
| · offsite-backup DOWN since 19:00 |
|
||||
+------------------------ 29 Nov 21:04 --+
|
||||
================= TOTAL ==================
|
||||
Total: £12.50
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,24 @@
|
||||
╔═╡ ACHTUNG ╞════════════════════════════╗
|
||||
║ The coffee machine is being descaled. ║
|
||||
║ Do not use until 10:30. ║
|
||||
╚════════════════════════════════════════╝
|
||||
|
||||
┌─────────────────────┐
|
||||
│ !!! ACHTUNG !!! │
|
||||
└─────────────────────┘
|
||||
|
||||
╔═══════════════════╗
|
||||
║ !!! ACHTUNG !!! ║
|
||||
╚═══════════════════╝
|
||||
|
||||
┌─ NAS REPORT ───────────────────────────┐
|
||||
│ Host ........................... nas01 │
|
||||
│ Pool ................... tank (raidz2) │
|
||||
│ Used ............................. 94% │
|
||||
├── Services ────────────────────────────┤
|
||||
│ · grafana up │
|
||||
│ · offsite-backup DOWN since 19:00 │
|
||||
└──────────────────────── 29 Nov 21:04 ──┘
|
||||
═════════════════ TOTAL ══════════════════
|
||||
Total: £12.50
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,24 @@
|
||||
╔═╣ ACHTUNG ╠════════════════════════════╗
|
||||
║ The coffee machine is being descaled. ║
|
||||
║ Do not use until 10:30. ║
|
||||
╚════════════════════════════════════════╝
|
||||
|
||||
┌─────────────────────┐
|
||||
│ !!! ACHTUNG !!! │
|
||||
└─────────────────────┘
|
||||
|
||||
╔═══════════════════╗
|
||||
║ !!! ACHTUNG !!! ║
|
||||
╚═══════════════════╝
|
||||
|
||||
┌─ NAS REPORT ───────────────────────────┐
|
||||
│ Host ........................... nas01 │
|
||||
│ Pool ................... tank (raidz2) │
|
||||
│ Used ............................. 94% │
|
||||
├── Services ────────────────────────────┤
|
||||
│ · grafana up │
|
||||
│ · offsite-backup DOWN since 19:00 │
|
||||
└──────────────────────── 29 Nov 21:04 ──┘
|
||||
═════════════════ TOTAL ══════════════════
|
||||
Total: £12.50
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,17 @@
|
||||
{"elements": [
|
||||
{"type": "box", "style": "double", "title": "ACHTUNG", "title_style": "capped", "align": "center",
|
||||
"text": "The coffee machine is being descaled.\nDo not use until 10:30."},
|
||||
{"type": "feed"},
|
||||
{"type": "box", "fit": true, "padding": 3, "text": "!!! ACHTUNG !!!"},
|
||||
{"type": "feed"},
|
||||
{"type": "box", "style": "double", "fit": true, "padding": 2, "text": "!!! ACHTUNG !!!"},
|
||||
{"type": "feed"},
|
||||
{"type": "box", "title": "NAS REPORT", "footer": "29 Nov 21:04", "children": [
|
||||
{"type": "kv", "pairs": [{"key": "Host", "value": "nas01"}, {"key": "Pool", "value": "tank (raidz2)"}, {"key": "Used", "value": "94%", "bold": true}]},
|
||||
{"type": "rule", "text": "Services", "align": "left"},
|
||||
{"type": "text", "text": "· grafana up\n· offsite-backup DOWN since 19:00"}
|
||||
]},
|
||||
{"type": "rule", "style": "double", "text": "TOTAL"},
|
||||
{"type": "text", "text": "Total: ", "newline": false},
|
||||
{"type": "text", "text": "£12.50", "bold": true}
|
||||
]}
|
||||
@@ -0,0 +1,22 @@
|
||||
------------------------------------------
|
||||
==========================================
|
||||
##########################################
|
||||
##########################################
|
||||
##########################################
|
||||
##########################################
|
||||
- - - - - - - - - - - - - - - - - - - - -
|
||||
··········································
|
||||
------------------------------------------
|
||||
----------------- TODAY ------------------
|
||||
================= TOTAL ==================
|
||||
-- Notes ---------------------------------
|
||||
--------------------------------- Right --
|
||||
################# URGENT #################
|
||||
- dashed - - - - - - - - - - - - - - - -
|
||||
- - - - - - - - - dashed - - - - - - - - -
|
||||
································ dotted ··
|
||||
-- A label far too long to fit insid... --
|
||||
-------- 20 --------
|
||||
======== BIG ========
|
||||
------------------------ Font B ------------------------
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,22 @@
|
||||
──────────────────────────────────────────
|
||||
══════════════════════════════════════════
|
||||
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
||||
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
|
||||
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
|
||||
██████████████████████████████████████████
|
||||
- - - - - - - - - - - - - - - - - - - - -
|
||||
··········································
|
||||
------------------------------------------
|
||||
───────────────── TODAY ──────────────────
|
||||
═════════════════ TOTAL ══════════════════
|
||||
── Notes ─────────────────────────────────
|
||||
───────────────────────────────── Right ──
|
||||
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ URGENT ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
|
||||
- dashed - - - - - - - - - - - - - - - -
|
||||
- - - - - - - - - dashed - - - - - - - - -
|
||||
································ dotted ··
|
||||
── A label far too long to fit insid... ──
|
||||
──────── 20 ────────
|
||||
════════ BIG ════════
|
||||
──────────────────────── Font B ────────────────────────
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
@@ -0,0 +1,22 @@
|
||||
──────────────────────────────────────────
|
||||
══════════════════════════════════════════
|
||||
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
||||
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
|
||||
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
|
||||
██████████████████████████████████████████
|
||||
- - - - - - - - - - - - - - - - - - - - -
|
||||
··········································
|
||||
------------------------------------------
|
||||
───────────────── TODAY ──────────────────
|
||||
═════════════════ TOTAL ══════════════════
|
||||
── Notes ─────────────────────────────────
|
||||
───────────────────────────────── Right ──
|
||||
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ URGENT ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
|
||||
- dashed - - - - - - - - - - - - - - - -
|
||||
- - - - - - - - - dashed - - - - - - - - -
|
||||
································ dotted ··
|
||||
── A label far too long to fit insid... ──
|
||||
──────── 20 ────────
|
||||
════════ BIG ════════
|
||||
──────────────────────── Font B ────────────────────────
|
||||
- - - - - - - partial cut - - - - - - - -
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
{"elements": [
|
||||
{"type": "rule"},
|
||||
{"type": "rule", "style": "double"},
|
||||
{"type": "rule", "style": "light"},
|
||||
{"type": "rule", "style": "medium"},
|
||||
{"type": "rule", "style": "dark"},
|
||||
{"type": "rule", "style": "solid"},
|
||||
{"type": "rule", "style": "dashed"},
|
||||
{"type": "rule", "style": "dotted"},
|
||||
{"type": "rule", "style": "ascii"},
|
||||
{"type": "rule", "text": "TODAY"},
|
||||
{"type": "rule", "style": "double", "text": "TOTAL", "bold": true},
|
||||
{"type": "rule", "text": "Notes", "align": "left"},
|
||||
{"type": "rule", "text": "Right", "align": "right"},
|
||||
{"type": "rule", "style": "dark", "text": "URGENT"},
|
||||
{"type": "rule", "style": "dashed", "text": "dashed", "align": "left"},
|
||||
{"type": "rule", "style": "dashed", "text": "dashed"},
|
||||
{"type": "rule", "style": "dotted", "text": "dotted", "align": "right"},
|
||||
{"type": "rule", "text": "A label far too long to fit inside a rule on this paper"},
|
||||
{"type": "rule", "columns": 20, "text": "20"},
|
||||
{"type": "rule", "size": 2, "style": "double", "text": "BIG"},
|
||||
{"type": "rule", "font": "b", "text": "Font B"}
|
||||
]}
|
||||
Reference in new issue
Block a user