diff options
| author | eunhhu <[email protected]> | 2026-09-30 15:29:20 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-09-30 15:29:20 +0100 |
| commit | 72ecae6b6eb1365e722bd6d45acae8a5ccb74b23 (patch) | |
| tree | 3b49bc61da3cee795afdc335bbb149b7df86649e /docs/design | |
| parent | 8fc6f35b30642f3a8ebbd7f5f47b70195c8ffea1 (diff) | |
| download | vega-72ecae6b6eb1365e722bd6d45acae8a5ccb74b23.tar.gz vega-72ecae6b6eb1365e722bd6d45acae8a5ccb74b23.zip | |
Show a bool as true or false, and make the examples' flags bools
aup and Pure now have a bool (Pure 016): a view or column may be one.
vega_text writes it as true or false, as a string's interpolation does, so
every surface shows the same words: the CLI, the TUI's cells, speech and
the web surface's JSON (a value's text) and page. An app that wants other
words picks them with a conditional (if t.done { "done" } else { "" }).
The flags of the examples are bools: todo's done and urgent, today's done,
the stopwatch's running. vega.when takes the bool as it took the number.
bools checks a bool field and a bool column on the CLI, the TUI, speech
and the web surface: true and false, never 1 and 0.
Diffstat (limited to 'docs/design')
| -rw-r--r-- | docs/design/001-first-component.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/design/001-first-component.md b/docs/design/001-first-component.md index d3ba7e6..9e1ef80 100644 --- a/docs/design/001-first-component.md +++ b/docs/design/001-first-component.md @@ -62,6 +62,9 @@ Tab이 키 모드로 바꾸면 글자·숫자·Space가 `KeyA`·`Digit0`·`Space **값이 보이는 방식.** 값은 제 자리 안에서 제 글자로 보인다. 화면에 작용할 글자만 예외다(Pure `docs/design/015-boundary-meaning.md`가 정한 값의 뜻의 화면 쪽이다). +- 수는 Pure의 가장 짧은 글자로, bool은 `true`나 `false`로 보인다. 보간(`"{done}"`)과 같은 글자다. 다르게 보이고 + 싶은 앱은 조건식으로 글을 고른다(`if t.done { "완료" } else { "" }`). + - 제어 문자(C0)와 DEL은 제어 그림(␀…␟, ␡)으로, C1 제어는 �로, 줄과 문단의 구분자(U+2028, U+2029)는 로 보인다 (`vega_visible`). CLI, TUI, 픽셀, 웹 페이지가 모두 같다. 값은 제 줄을 끊지 못한다. - 터미널의 칸(TUI, CLI)에서는 뒤따르는 글줄을 뒤집을 제어(방향 임베딩·오버라이드·격리, U+202A–202E, U+2066–2069)도 |
