Fossil SCM

Assorted improvements to Pikchr handling in the docs under the new skin.

wyoung 2024-02-18 14:08 trunk
Commit b3d99d9260faa4dc63dfd98e1e04600637c9dd3a57a13a7c20a8ff75c9bf1782
--- skins/default/css.txt
+++ skins/default/css.txt
@@ -332,27 +332,10 @@
332332
.content pre, table.numbered-lines > tbody > tr {
333333
hyphens: none;
334334
line-height: 1.25;
335335
}
336336
337
-.content .pikchr-wrapper {
338
- /* Pikchr was developed with the assumption that it would be
339
- * integrated into a Fossil repo using the old 0.9em body font
340
- * size, which no longer obtians. This gives us a choice:
341
- *
342
- * 1. Change Pikchr to track this skin change, potentially breaking
343
- * uses of alternate skins with differing default font sizes.
344
- * 2. Restore the old default for Pikchr diagrams so the old
345
- * assumptions continue to be valid.
346
- * 3. Make everyone with custom skins set pikchr-scale=1.11 (1/0.9)
347
- * in their skin's footer.txt to increase the diagram's relative
348
- * size to compensate for the font size change.
349
- *
350
- * We choose #2 because it puts both adjustments in the same file. */
351
- font-size: 0.9em;
352
-}
353
-
354337
.content ul li {
355338
list-style-type: disc;
356339
}
357340
358341
.doc > .content table {
@@ -700,11 +683,12 @@
700683
/* Selector naming scheme mismatch is intentional: it must match the
701684
* way it's given in default.css exactly if it is to override it. */
702685
margin-left: 70pt;
703686
margin-right: 50pt;
704687
}
705
- div.pikchr-wrapper.center:not(.source) {
688
+ div.pikchr-wrapper.center:not(.source),
689
+ div.pikchr-wrapper.float-right:not(.source) {
706690
margin-left: 0;
707691
}
708692
709693
/* Special treatment for backward compatibility. */
710694
.indent, /* clean alternative to misusing <blockquote> */
711695
--- skins/default/css.txt
+++ skins/default/css.txt
@@ -332,27 +332,10 @@
332 .content pre, table.numbered-lines > tbody > tr {
333 hyphens: none;
334 line-height: 1.25;
335 }
336
337 .content .pikchr-wrapper {
338 /* Pikchr was developed with the assumption that it would be
339 * integrated into a Fossil repo using the old 0.9em body font
340 * size, which no longer obtians. This gives us a choice:
341 *
342 * 1. Change Pikchr to track this skin change, potentially breaking
343 * uses of alternate skins with differing default font sizes.
344 * 2. Restore the old default for Pikchr diagrams so the old
345 * assumptions continue to be valid.
346 * 3. Make everyone with custom skins set pikchr-scale=1.11 (1/0.9)
347 * in their skin's footer.txt to increase the diagram's relative
348 * size to compensate for the font size change.
349 *
350 * We choose #2 because it puts both adjustments in the same file. */
351 font-size: 0.9em;
352 }
353
354 .content ul li {
355 list-style-type: disc;
356 }
357
358 .doc > .content table {
@@ -700,11 +683,12 @@
700 /* Selector naming scheme mismatch is intentional: it must match the
701 * way it's given in default.css exactly if it is to override it. */
702 margin-left: 70pt;
703 margin-right: 50pt;
704 }
705 div.pikchr-wrapper.center:not(.source) {
 
706 margin-left: 0;
707 }
708
709 /* Special treatment for backward compatibility. */
710 .indent, /* clean alternative to misusing <blockquote> */
711
--- skins/default/css.txt
+++ skins/default/css.txt
@@ -332,27 +332,10 @@
332 .content pre, table.numbered-lines > tbody > tr {
333 hyphens: none;
334 line-height: 1.25;
335 }
336
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337 .content ul li {
338 list-style-type: disc;
339 }
340
341 .doc > .content table {
@@ -700,11 +683,12 @@
683 /* Selector naming scheme mismatch is intentional: it must match the
684 * way it's given in default.css exactly if it is to override it. */
685 margin-left: 70pt;
686 margin-right: 50pt;
687 }
688 div.pikchr-wrapper.center:not(.source),
689 div.pikchr-wrapper.float-right:not(.source) {
690 margin-left: 0;
691 }
692
693 /* Special treatment for backward compatibility. */
694 .indent, /* clean alternative to misusing <blockquote> */
695
--- skins/default/details.txt
+++ skins/default/details.txt
@@ -1,4 +1,6 @@
1
+pikchr-fontscale: "0.9"
2
+pikchr-scale: "1.1"
13
timeline-arrowheads: 1
24
timeline-circle-nodes: 1
35
timeline-color-graph-lines: 1
46
white-foreground: 0
57
--- skins/default/details.txt
+++ skins/default/details.txt
@@ -1,4 +1,6 @@
 
 
1 timeline-arrowheads: 1
2 timeline-circle-nodes: 1
3 timeline-color-graph-lines: 1
4 white-foreground: 0
5
--- skins/default/details.txt
+++ skins/default/details.txt
@@ -1,4 +1,6 @@
1 pikchr-fontscale: "0.9"
2 pikchr-scale: "1.1"
3 timeline-arrowheads: 1
4 timeline-circle-nodes: 1
5 timeline-color-graph-lines: 1
6 white-foreground: 0
7
--- www/branching.wiki
+++ www/branching.wiki
@@ -491,11 +491,11 @@
491491
[#dist-clone|Above], we stated that forks carry a risk that development
492492
effort on a branch can be divided among the forks. It might not be
493493
immediately obvious why this is so. To see it, consider this swim lane
494494
diagram:
495495
496
-<verbatim type="pikchr center toggle toggle">
496
+<verbatim type="pikchr center toggle">
497497
$laneh = 0.75
498498
499499
ALL: [
500500
# Draw the lanes
501501
down
502502
--- www/branching.wiki
+++ www/branching.wiki
@@ -491,11 +491,11 @@
491 [#dist-clone|Above], we stated that forks carry a risk that development
492 effort on a branch can be divided among the forks. It might not be
493 immediately obvious why this is so. To see it, consider this swim lane
494 diagram:
495
496 <verbatim type="pikchr center toggle toggle">
497 $laneh = 0.75
498
499 ALL: [
500 # Draw the lanes
501 down
502
--- www/branching.wiki
+++ www/branching.wiki
@@ -491,11 +491,11 @@
491 [#dist-clone|Above], we stated that forks carry a risk that development
492 effort on a branch can be divided among the forks. It might not be
493 immediately obvious why this is so. To see it, consider this swim lane
494 diagram:
495
496 <verbatim type="pikchr center toggle">
497 $laneh = 0.75
498
499 ALL: [
500 # Draw the lanes
501 down
502
--- www/delta_encoder_algorithm.wiki
+++ www/delta_encoder_algorithm.wiki
@@ -107,13 +107,13 @@
107107
<li>move the window forward one byte.
108108
</li>
109109
</ul>
110110
</p>
111111
112
-<div style="float:right">
113
-<verbatim type="pikchr" style="float:right">
112
+<verbatim type="pikchr float-right">
114113
TARGET: [
114
+ scale = 0.8
115115
down
116116
"Target" bold
117117
box fill palegreen width 150% height 200% "Processed"
118118
GI: box same as first box fill yellow height 25% "Gap → Insert"
119119
CC: box same fill orange height 200% "Common → Copy"
@@ -133,11 +133,10 @@
133133
B3: box fill white height 200%
134134
] with .nw at 0.75 right of TARGET.ne
135135
136136
arrow from TARGET.W.e to ORIGIN.B2.w "Signature" aligned above
137137
</verbatim>
138
-</div>
139138
140139
<p>To make this decision the encoder first computes the hash value for
141140
the NHASH bytes in the window and then looks at all the locations in
142141
the "origin" which have the same signature. This part uses the hash
143142
table created by the pre-processing step to efficiently find these
144143
--- www/delta_encoder_algorithm.wiki
+++ www/delta_encoder_algorithm.wiki
@@ -107,13 +107,13 @@
107 <li>move the window forward one byte.
108 </li>
109 </ul>
110 </p>
111
112 <div style="float:right">
113 <verbatim type="pikchr" style="float:right">
114 TARGET: [
 
115 down
116 "Target" bold
117 box fill palegreen width 150% height 200% "Processed"
118 GI: box same as first box fill yellow height 25% "Gap → Insert"
119 CC: box same fill orange height 200% "Common → Copy"
@@ -133,11 +133,10 @@
133 B3: box fill white height 200%
134 ] with .nw at 0.75 right of TARGET.ne
135
136 arrow from TARGET.W.e to ORIGIN.B2.w "Signature" aligned above
137 </verbatim>
138 </div>
139
140 <p>To make this decision the encoder first computes the hash value for
141 the NHASH bytes in the window and then looks at all the locations in
142 the "origin" which have the same signature. This part uses the hash
143 table created by the pre-processing step to efficiently find these
144
--- www/delta_encoder_algorithm.wiki
+++ www/delta_encoder_algorithm.wiki
@@ -107,13 +107,13 @@
107 <li>move the window forward one byte.
108 </li>
109 </ul>
110 </p>
111
112 <verbatim type="pikchr float-right">
 
113 TARGET: [
114 scale = 0.8
115 down
116 "Target" bold
117 box fill palegreen width 150% height 200% "Processed"
118 GI: box same as first box fill yellow height 25% "Gap → Insert"
119 CC: box same fill orange height 200% "Common → Copy"
@@ -133,11 +133,10 @@
133 B3: box fill white height 200%
134 ] with .nw at 0.75 right of TARGET.ne
135
136 arrow from TARGET.W.e to ORIGIN.B2.w "Signature" aligned above
137 </verbatim>
 
138
139 <p>To make this decision the encoder first computes the hash value for
140 the NHASH bytes in the window and then looks at all the locations in
141 the "origin" which have the same signature. This part uses the hash
142 table created by the pre-processing step to efficiently find these
143
--- www/glossary.md
+++ www/glossary.md
@@ -167,11 +167,10 @@
167167
suffices for simple purposes, but you may have use for something
168168
more complicated. This author uses a scheme like the following on
169169
mobile machines that shuttle between home and the office:
170170
171171
``` pikchr toggle indent
172
-scale=0.8
173172
box "~/museum/" fit
174173
move right 0.1
175174
line right dotted
176175
move right 0.05
177176
box invis "where one stores valuable fossils" ljust
178177
--- www/glossary.md
+++ www/glossary.md
@@ -167,11 +167,10 @@
167 suffices for simple purposes, but you may have use for something
168 more complicated. This author uses a scheme like the following on
169 mobile machines that shuttle between home and the office:
170
171 ``` pikchr toggle indent
172 scale=0.8
173 box "~/museum/" fit
174 move right 0.1
175 line right dotted
176 move right 0.05
177 box invis "where one stores valuable fossils" ljust
178
--- www/glossary.md
+++ www/glossary.md
@@ -167,11 +167,10 @@
167 suffices for simple purposes, but you may have use for something
168 more complicated. This author uses a scheme like the following on
169 mobile machines that shuttle between home and the office:
170
171 ``` pikchr toggle indent
 
172 box "~/museum/" fit
173 move right 0.1
174 line right dotted
175 move right 0.05
176 box invis "where one stores valuable fossils" ljust
177

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button