Figured out more details, documented most values, work on substitutions.
[pspp] / notes
diff --git a/notes b/notes
index c0f2f81d96079321f5f1cf0af2a35dcd2b3fda6e..811a7a1177f41660ecab599a2a75b898ed08c04d 100644 (file)
--- a/notes
+++ b/notes
@@ -2662,11 +2662,22 @@ Substitutions
 -------------
 
 The primary format specifier for substitution 1 is ^1.
-Substitutions with multiple values take the form [:^1:]1.  The : are mandatory even though not apparently useful.
+
+Substitutions with multiple values take the form [:^1:]1, where ]1
+references substitution 1 and ^1 refers to the first value within the
+substitution.  The : are mandatory even though not apparently useful.
+
+There can be extra text, e.g. [:^1\n:]1.
+
 Substitutions with two forms for multiple values are written as [%1:, ^1:]1.
+
+The general form appears to be [a:b:]x.  Apparently, % is used in a and
+^ is used in b, but there's no obvious reason why.
+
 Substitutions can take two values at a time, like: [:^1 = ^2:]1
 but more often there would be two forms: [%1 = %2:, ^1 = ^2:]1.
-
+A literal : is written \:
+Presumably a literal ^ is written \^ but there are no examples.
 
 WM is constant when Age = 19.00. It will be included in any boxplots produced but other output will be omitted.
     <template format="^1 is constant when [%1 = %2:, ^1 = ^2:]2. It will be included in any boxplots produced but other output will be omitted.">