NixLabConnectionconnecting
CommitsCommit
web/dreamstop.openfp.net · commit

Take the manual's title page from its Inkwell title

SmSmartypants, 2026-12-06 21:21839e0d3fd8#45 · 22/22

parents: b373d98a7c

Take the manual's title page from its Inkwell title

The generated Typst now prints the cover from the book's title, so no prose lives in it. ChangeLog bullet 1 is split into one change per bullet, and the introduction no longer defines continuous disambiguation.

3 files changed

Diff

 dreamstop-openfp-net-web/ChangeLog.md |  4 ++-
 manual/dreamstop.vx                   |  2 +-
 nix/site.nix                          | 47 ++++++++++++++++++++---------------
 3 files changed, 31 insertions(+), 22 deletions(-)

diff --git a/dreamstop-openfp-net-web/ChangeLog.md b/dreamstop-openfp-net-web/ChangeLog.md
index 208cb6a..a6bbc63 100644
--- a/dreamstop-openfp-net-web/ChangeLog.md
+++ b/dreamstop-openfp-net-web/ChangeLog.md
@@ -2,7 +2,9 @@
  
 ## 0.3.0.0 — 2026-12-06
  
-- Rewrote the manual in the manner of the OpenFP Quality Control Handbook's introduction. It now works through ambiguous sentences, from the handbook's hypothetical entries and from the document kinds' minimal pairs, each with its readings and its rewrites, for every layer of codes. It now also covers the verdicts, minimal pairs, normalisation, the document kinds and their patterns, the limits of the codes, a reference of every code and a glossary.
+- Rewrote the manual in the manner of the OpenFP Quality Control Handbook's introduction.
+- The manual now works through ambiguous sentences, from the handbook's hypothetical entries and from the document kinds' minimal pairs, each with its readings and its rewrites, for every layer of codes.
+- The manual now also covers the verdicts, minimal pairs, normalisation, the document kinds and their patterns, the limits of the codes, a reference of every code and a glossary.
 - The manual now uses the design kit's dark Typst theme.
 - The manual now prints every codepoint on a light panel. Every codepoint is still printed in the colour of its layer.
 - The manual now credits New Ithkuil and John Quijada for the codes taken from New Ithkuil.
diff --git a/manual/dreamstop.vx b/manual/dreamstop.vx
index aa7bea1..b8bda04 100644
--- a/manual/dreamstop.vx
+++ b/manual/dreamstop.vx
@@ -1,7 +1,7 @@
 do
   title [text "dreamstop: a language for disambiguating text"]
   section (Identifier "Introduction") [text "Introduction"] $ do
-    paragraph [text "dreamstop is a language for marking up what each clause of a document means. It is for authors who write documentation, ChangeLogs, issues and websites, and for reviewers who check them. An annotator, a program, reads a sentence and writes down each meaning it can find, as a short string of codes. A sentence with one meaning gets one annotation. A sentence with several meanings gets one annotation for each, and the author rewrites it until one is left. Doing this at every review, rather than once, is what continuous disambiguation means."]
+    paragraph [text "dreamstop is a language for marking up what each clause of a document means. It is for anyone who writes or reviews documentation, ChangeLogs, issues or websites. An annotator, a program, reads a sentence and writes down each meaning it can find, as a short string of codes. A sentence with one meaning gets one annotation. A sentence with several meanings gets one annotation for each, and the author rewrites it until one is left."]
     paragraph [text "No prior knowledge of linguistics is assumed. The codes are defined as they come up, and the reference at the end of this manual lists them all."]
     section (Identifier "Introduction: Reading an annotation") [text "Reading an annotation"] $ do
       paragraph [text "An annotation is a list of clauses in brackets. Each clause holds its codes, joined by middle dots, always in the same order. For example, this ChangeLog entry is two clauses:"]
diff --git a/nix/site.nix b/nix/site.nix
index d4a4780..6cf6a87 100644
--- a/nix/site.nix
+++ b/nix/site.nix
@@ -25,6 +25,7 @@ local:
         layers = {
           Force = {
             colour = "#b91c1c";
+            dark = "#fca5a5";
             codes = [
               "ASR"
               "DIR"
@@ -36,6 +37,7 @@ local:
           };
           Mood = {
             colour = "#854d0e";
+            dark = "#fde047";
             codes = [
               "FAC"
               "HYP"
@@ -44,6 +46,7 @@ local:
           };
           Aspect = {
             colour = "#1d4ed8";
+            dark = "#93c5fd";
             codes = [
               "PFV"
               "PRF"
@@ -53,6 +56,7 @@ local:
           };
           Phase = {
             colour = "#7e22ce";
+            dark = "#d8b4fe";
             codes = [
               "INC"
               "CSS"
@@ -62,6 +66,7 @@ local:
           };
           Modality = {
             colour = "#047857";
+            dark = "#6ee7b7";
             codes = [
               "DEO"
               "ABL"
@@ -73,14 +78,17 @@ local:
           };
           Negation = {
             colour = "#be185d";
+            dark = "#f9a8d4";
             codes = [ "NEG" ];
           };
           Bound = {
             colour = "#9a3412";
+            dark = "#fdba74";
             codes = [ "ONE" ];
           };
           Evidence = {
             colour = "#0e7490";
+            dark = "#67e8f9";
             codes = [
               "OBS"
               "PUP"
@@ -91,6 +99,7 @@ local:
           };
           Nominalisation = {
             colour = "#3f6212";
+            dark = "#bef264";
             codes = [
               "BSC"
               "OBJ"
@@ -140,41 +149,39 @@ local:
           #let codes = (${lib.concatMapStrings (c: "\"${c}\", ") allCodes}"G")
           #let codepoints(body) = {
             let cp(col) = it => text(fill: rgb(col), it)
-            show regex("[\\[\\]·]|/(rel|adv|comp)[0-9]+"): cp("${codepoints.mark}")
+            show regex("[\\[\\]·]|/(rel|adv|comp)[0-9]+"): it => text(fill: tokens.muted, it)
         ''
         + lib.concatMapStrings (
           l:
           "  show regex(\"\\\\b(${
               lib.concatStringsSep "|" codepoints.layers.${l}.codes
-            })\\\\b\"): cp(\"${codepoints.layers.${l}.colour}\")\n"
+            })\\\\b\"): cp(\"${codepoints.layers.${l}.dark}\")\n"
         ) layerNames
         + ''
             body
           }
-          #let annotation(s) = box(fill: rgb("#f4f4f5"), inset: (x: 3pt, y: 0pt), outset: (y: 2.5pt), radius: 2pt, codepoints(text(font: "DejaVu Sans Mono", size: 8pt, fill: rgb("#27272a"), s)))
+          #let annotation(s) = codepoints(text(font: "DejaVu Sans Mono", size: 7.5pt, weight: 700, fill: tokens.text, s))
           #show: estate-doc.with(brand: "openfp")
-          #show link: set text(fill: accent.a400)
-          #set table(stroke: 0.6pt + tokens.hairline, inset: 6pt, align: left + horizon)
-          #show table.cell.where(y: 0): set text(fill: tokens.title, weight: "bold")
-          #set enum(spacing: 0.9em)
-          #show emph: set text(size: 8.5pt, fill: tokens.muted)
-          #show quote.where(block: true): it => block(inset: (left: 1.2em, y: 0.2em), stroke: (left: 2pt + accent.a500), text(style: "italic", fill: tokens.title, it.body))
+          #set table(stroke: 0.5pt + tokens.hairline, inset: (x: 8pt, y: 7pt), align: left)
+          #show quote.where(block: true): it => block(inset: (left: 9pt, right: 7pt, top: 5pt, bottom: 5pt), above: 0.4em, below: 0.65em, text(style: "italic", it.body))
           #show raw.where(block: false): it => {
             let parts = it.text.split(regex("[·\[\], ]+")).filter(t => t != "")
             if it.text.starts-with("[") or (parts.len() > 0 and parts.all(t => t in codes)) { annotation(it.text) } else { it }
           }
           #show heading.where(level: 1): it => { pagebreak(weak: true); it }
-          #show heading.where(level: 1, numbering: none, outlined: true): none
-          #align(center)[
-            #v(5em)
-            #image("dreamstop.svg", width: 22%, alt: "The dreamstop mark")
-            #v(1.5em)
-            #text(font: "Montserrat", weight: 900, size: 30pt, fill: tokens.title, tracking: 0.02em)[DREAMSTOP]
-            #v(0.4em)
-            #text(font: "Montserrat", weight: 700, size: 11pt, fill: accent.a400, tracking: 0.05em)[A LANGUAGE FOR DISAMBIGUATING TEXT]
-          ]
-          #pagebreak(weak: true)
-          #outline(depth: 2, target: heading.where(numbering: "1.1"))
+          #show heading.where(level: 1, numbering: none, outlined: true): it => {
+            let parts = it.body.fields().at("text", default: "").split(": ")
+            align(center)[
+              #v(5em)
+              #image("dreamstop.svg", width: 22%, alt: "The dreamstop mark")
+              #v(1.5em)
+              #text(font: "Montserrat", weight: 900, size: 26pt, fill: tokens.title, tracking: 0.02em, upper(parts.first()))
+              #v(0.4em)
+              #text(font: "Montserrat", weight: 700, size: 11pt, fill: accent.a400, tracking: 0.05em, upper(parts.slice(1).join(": ")))
+            ]
+            pagebreak(weak: true)
+            outline(depth: 2, target: heading.where(numbering: "1.1"))
+          }
           #include "body.typ"
         ''
       );