Skip to content

Commit

Permalink
fix leanpub build errors, z-book, move scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
swimmingly committed Jan 11, 2024
1 parent 491869e commit 031c542
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 38 deletions.
4 changes: 4 additions & 0 deletions _pages/Leanpub book gen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@




2 changes: 1 addition & 1 deletion _pages/darkness.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ plan: door seal - [download](/img/plan/door-seal.pdf)

If door has a window, use one of the methods below to cover it.

### blinds
### blind

#### constraints-b

Expand Down
4 changes: 1 addition & 3 deletions _pages/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Round buildings feel sheltering. They shield occupants from subtle energy, physi

Human consciousness expects roundness in its environment. Nature is a symphony of curves: circles, ellipses, parabolas, catenaries, spirals, cones, and spheres. Curvature arises from and gives rise to innumerable straight-edged shapes at visible and microscopic scales: mostly triangles, pentagons, and hexagons; tetrahedrons, octahedrons, dodecahedrons and icosahedrons; and their stellations and combinations. Buckminster Fuller demonstrated in his _Synergetics_ (see [A Fuller Explanation](https://www.arvindguptatoys.com/arvindgupta/synergy-fuller.pdf)) that nature's coordinate system is octatetrahedronal, not cubic (Cartesian). It is four-dimensional, not three. All these shapes are inherently compelling, familiar, and alive to us.

By contrast, a square building feels imprisoning and dead. They're Death Star trash compactors ever on the verge of activating. By nature, the right angle stops movement: of things, people, and energy. This stagnation saps and poisons occupants over the long term. Even turning at right angles while walking is militaristic and jarring.
By comparison, a square building feels imprisoning and dead. I'm not saying it's like a Death Star trash compactor ever on the verge of activating. It's just that, by nature, the right angle stops movement: of things, people, and energy. This stagnation saps and poisons occupants over the long term. Even turning at right angles while walking is jarring and militaristic.

We compensate by making square (rectilinear or orthogonal) buildings larger than necessary to push corners away. We soften and round them out by filling their corners with stuff. Ever dissatisfied, we remodel. When that fails, we move, perhaps destroying a family or business in the process.

Expand All @@ -203,8 +203,6 @@ Happily, a handful of elegant, cheap, quick, [round shelter designs](/other-writ

![plan: conic / hygienic house](/img/plan/image/conic.png)

plan: conic / hygienic house - [download](/img/plan/conic.pdf)

It turns out that rectilinear construction is not simpler or easier. It's just a frame of mind.

~/~
Expand Down
2 changes: 1 addition & 1 deletion _pages/format.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ We often feel groggy after sleeping a lot after many short nights. Some people c

In fact, we are tapping into the first layer of a backlog of lost sleep. Feeling groggy is the first phase of catching up. This can take days. Reversing sleep deprivation is like withdrawing from a strong drug. Like me, you may need a retreat to get to the other side of it without backsliding.

In the meantime, this format helps us remember how important darkness is. Next step is to make an [instant sleeping mask](/darkness#sleeping-mask-instant). When ready for perfect darkness for nightly sleep, make your room dark, quiet, airy, _and_ easily reopened to daylight with [blackout blinds](/darkness#blind), [lightproof vents](/darkness#lightproof), a [fan mounts](/air#fan-mount), and [silencers](/air#silencer).
In the meantime, this format helps us remember how important darkness is. Next step is to make an [instant sleeping mask](/darkness#instant). When ready for perfect darkness for nightly sleep, make your room dark, quiet, airy, _and_ easily reopened to daylight with [blackout blinds](/darkness#blind), [lightproof vents](/darkness#lightproof), a [fan mounts](/air#fan-mount), and [silencers](/air#silencer).

#### nightly

Expand Down
2 changes: 1 addition & 1 deletion _pages/hygiene.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ What is health like, according to our science?
> "Health does not consist merely of the absence of symptoms of illness. It is a state of positive well-being that is evidenced by a constant state of euphoria. It is rarely, if ever, experienced by humans today."
--Herbert Shelton, father of modern hygiene[^1]

Euphoria is the sign of function that my adolescent [rapture](/introduction#rapture) hinted at. Once tasted, nothing else will do. What conditions would make it possible? Identifying and providing conditions is hygiene's forte. It accomplishes this by making observations of life in nature along certain lines.
Euphoria is the sign of function that my adolescent [rapture](/darkness-conjecture#rapture) hinted at. Once tasted, nothing else will do. What conditions would make it possible? Identifying and providing conditions is hygiene's forte. It accomplishes this by making observations of life in nature along certain lines.

#### outline

Expand Down
2 changes: 1 addition & 1 deletion _pages/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ In a moment, I was overcome by [rapture](/darkness-conjecture/rapture): sublime

I finished high school. Barely. I started [living out](https://warmlite.com) of a [backpack](https://mchalepacks.com). For 21 years, I independently investigated this mystery. I experimented with the elements of my legacy: philosophy, health, and design. Toward the end of this period, I did my first darkroom retreats. Soon after, in late 2008, the answer came:

>_A slight increase of vital energy from adolescence had caused a temporary, partial restoration of my damaged psychic integrity, revealing an enrapturing universe. So a massive increase from profound rest in darkness would cause permanent and complete restoration._
>_A slight increase of vital energy from adolescence had caused a temporary, partial restoration of my damaged psychic integrity, revealing the perfection and beauty of the universe, which was enrapturing. So a massive increase from profound rest in darkness would cause permanent and complete restoration._
With this breakthrough, my search ended. Testing of my discovery began. I and 28 clients have tried it. Their results echoed my early ones.

Expand Down
6 changes: 3 additions & 3 deletions _pages/make.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ All components rely on the basic instructions in the following sections: **metri
[10  darkness](/darkness)
[11  water](/water)

After improvising darkness to sleep in [tonight](/format#tonight), the [instant sleeping mask](/darkness#sleeping-mask-instant) probably comes next. Thus initiated, you can begin your training as a darkroom-building ninja. You will become invisible to everyone for a while. And everything will be invisible to you, too. Haha.
After improvising darkness to sleep in [tonight](/format#tonight), the [instant sleeping mask](/darkness#instant) probably comes next. Thus initiated, you can begin your training as a darkroom-building ninja. You will become invisible to everyone for a while. And everything will be invisible to you, too. Haha.

If you need more specific advice for darkening your space, I provide [design consultation](/services#consultation). I guide people through text, voice, and image on a chat app toward a completed darkroom and successful retreat. Likewise, feel free to use these [open-source](/introduction#open-source) designs and my consultation to darken other people's spaces as a service for money. See [license](/license) for my liberal terms.
If you need more specific advice for darkening your space, I provide [design consultation](/services#consult). I guide people through text, voice, and image on a chat app toward a completed darkroom and successful retreat. Likewise, feel free to use these [open-source](/introduction#open-source) designs and my consultation to darken other people's spaces as a service for money. See [license](/license) for my liberal terms.

### metric

Expand Down Expand Up @@ -130,7 +130,7 @@ A drawing has one or two _views_, depending on the best way to communicate its i
- _exploded:_ all parts separated but in correct order and linear relation (3D)


For example, the [helix vent](/darkness#helix-vent) has plan views of its flat parts and one section view showing how parts are assembled. The [toilet frame](/water#toilet-frame) has both plan and elevation views, while the [shower](/water#shower) has an exploded view.
For example, the [helix vent](/darkness#helix-vent) has plan views of its flat parts and one section view showing how parts are assembled. The [toilet frame](/water#upgrade-t) has both plan and elevation views, while the [shower](/water#upgrade-b) has an exploded view.

All plans can be reused except [sleeping mask](/darkness#sleeping-mask) plan, which is destroyed as you make it. So make as many prints of it as masks you intend to make.

Expand Down
2 changes: 1 addition & 1 deletion _pages/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Readers of paper books can follow crosslinks (links within the book). These are

E-paper or paper are best for reading. I recommend any of the 6", 8", and 10" e-paper devices by established companies for reading. The Dasung 13.3" monitor is best for writing.

Paper copies [available](/about/services#writing).
Paper copies [available](/about/services#write).

If possible, avoid backlit color screens (most computers, tablets, phones). They disrupt concentration and comprehension.

Expand Down
2 changes: 1 addition & 1 deletion _pages/prepare.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ These substances imbalance, overload, or destroy digestive chemistry, bacteria,

If you would like to know more about this menu before trying it, see:

- [food](/darkroom-retreat#food-darkroom-retreat) and [food](/protocol#food-protocol)
- [food](/darkroom-retreat#food) and [food](/protocol#food)
- Dr Douglas Graham's masterful [80/10/10 Diet](https://foodnsport.com)
- [Loren Lockman's videos](https://www.youtube.com/user/LorenLockman)

Expand Down
43 changes: 21 additions & 22 deletions f/sh/z-book
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mkdir book-done

# backup scripts

cp "z-book" "z-zip" "zzg" "z-git" "print/z-impose" yodrew.github.io/f/sh
cp "z-book" "z-zip" "z-git" "print/z-impose" yodrew.github.io/f/sh

# COLLECT #

Expand Down Expand Up @@ -48,6 +48,7 @@ sed -i 's/^###/##/g' *.md

# miscellaneous

perl -p -i -e 's,\ \n,,s' hygiene.md
sed -i 's,> _,C> _,s' make.md
sed -i 's/{% include cover.md %}//g' services.md
perl -p -i -e 's,fees\)\n,fees\),g' services.md
Expand Down Expand Up @@ -97,7 +98,7 @@ perl -p -i -e 's,________,____,g' *.md
# image

rm images/conic-hi.png images/maha*.jpg images/pee*.jpg
perl -pi -e 's,\[plan:[0-9a-z\, -]+\]\(/img/plan/image/,\[\]\(images/,g' *.md
perl -pi -e 's,\[plan:[0-9a-z\, /-]+\]\(/img/plan/image/,\[\]\(images/,g' *.md
perl -pi -e 's,\]\(/img/photo/,\]\(images/,g' *.md
# perl -pi -e 's,\]\(/img/plan/image/,\]\(images/,g' *.md
# perl -pi -e 's,^!\[ph,\{width=100%\}\n!\[ph,g' *.md
Expand All @@ -113,33 +114,32 @@ perl -p -i -e 's,^plan:,          plan:,g' *.md

perl -p -i -e 's,\]\(/about,\]\(,g' *.md

# (/chapter) or (/chapter/) to (#chapter)
# (/chapter) or (/chapter/) to (#chapter) (-chapter)

perl -p -i -e 's,\]\(\/(notes|foreword|preface|introduction|hygiene|darkroom-retreat|psychology|format|protocol|prepare|design|make|air|darkness|water|faq|bibliography-influences|acknowledgments|services|license|participate|bio)[/]?\),\]\(#\1\) \(\1),g' *.md
perl -p -i -e 's,\]\(\/(notes|foreword|preface|introduction|hygiene|darkroom-retreat|psychology|format|protocol|prepare|design|make|air|darkness|water|faq|bibliography-influences|acknowledgments|services|license|participate|bio)[/]?\),\]\(#\1\) \(-\1),g' *.md

# (/chapter#section) to (#section)( -chapter-name)
# (/chapter#section) to (#section) (-chapter)

perl -p -i -e 's,\]\(\/(notes|foreword|preface|introduction|hygiene|darkroom-retreat|psychology|format|protocol|prepare|design|make|air|darkness|water|faq|bibliography-influences|acknowledgments|services|license|participate|bio)#([^)]+)\),\]\(#\2\) \(\1\),g' *.md
perl -p -i -e 's,\]\(\/(notes|foreword|preface|introduction|hygiene|darkroom-retreat|psychology|format|protocol|prepare|design|make|air|darkness|water|faq|bibliography-influences|acknowledgments|services|license|participate|bio)#([^)]+)\),\]\(#\2\) \(-\1\),g' *.md

# duplicates

perl -pi -e '$a=1 if(!$a && s/\(#food\)/\(#food-d\)/);' prepare.md protocol.md
perl -pi -e '$a=1 if(!$a && s/\(#food\)/\(#food-p\)/);' prepare.md protocol.md

# (chapter) to (chchapter-number)

# ( -chapter-number)

perl -pi -e 's, \(hygiene\), \(ch1\),g' *.md
perl -pi -e 's, \(darkroom-retreat\), \(ch2\),g' *.md
perl -pi -e 's, \(psychology\), \(ch3\),g' *.md
perl -pi -e 's, \(format\), \(ch4\),g' *.md
perl -pi -e 's, \(protocol\), \(ch5\),g' *.md
perl -pi -e 's, \(prepare\), \(ch6\),g' *.md
perl -pi -e 's, \(design\), \(ch7\),g' *.md
perl -pi -e 's, \(make\), \(ch8\),g' *.md
perl -pi -e 's, \(air\), \(ch9\),g' *.md
perl -pi -e 's, \(darkness\), \(ch10\),g' *.md
perl -pi -e 's, \(water\), \(ch11\),g' *.md
perl -pi -e 's, \(-hygiene\), \(ch1\),g' *.md
perl -pi -e 's, \(-darkroom-retreat\), \(ch2\),g' *.md
perl -pi -e 's, \(-psychology\), \(ch3\),g' *.md
perl -pi -e 's, \(-format\), \(ch4\),g' *.md
perl -pi -e 's, \(-protocol\), \(ch5\),g' *.md
perl -pi -e 's, \(-prepare\), \(ch6\),g' *.md
perl -pi -e 's, \(-design\), \(ch7\),g' *.md
perl -pi -e 's, \(-make\), \(ch8\),g' *.md
perl -pi -e 's, \(-air\), \(ch9\),g' *.md
perl -pi -e 's, \(-darkness\), \(ch10\),g' *.md
perl -pi -e 's, \(-water\), \(ch11\),g' *.md

# (/ to (https://darkroomretreat

Expand All @@ -148,7 +148,7 @@ perl -p -i -e 's,\(\/,\(https:\/\/darkroomretreat.com\/,g' *.md
# anchors

# generate
# ( 1)( 2) ( 3) ( 4)
# 1-1 2-----2 33 4--------------4
perl -p -i -e 's/^(#+ )([0-9]+ )*(- )?([A-Za-z0-9 ,_-]+)/\1\2\3\4 \{#\4\}/g' *.md
perl -p -i -e 's/\{#[^ \4\}/g' *.md

Expand All @@ -157,10 +157,9 @@ perl -p -i -e 's/\{#[^ \4\}/g' *.md
# misc

perl -p -i -e 's/{#relief, recovery, healing}/{#relief recovery healing}/g' blurb.md
perl -p -i -e 's,\ \n,,s' hygiene.md
perl -p -i -e 's,more clearly.\n,more clearly.,s' hygiene.md
perl -p -i -e 's, {#part \d},,s' [1-9]-*.md
perl -p -i -e 's, {#sample note},,s' sample-note.md
perl -p -i -e 's,\{#([^-]+)-and,\{#\1,s' *.md

# spaces with dashes

Expand Down
2 changes: 1 addition & 1 deletion f/sh/z-git
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# from ~/Write/darkness/

xfce4-terminal -H -e ~/Write/darkness/zzg
xfce4-terminal -H -e ~/Write/darkness/yodrew.github.io/f/sh/zzzgit

4 changes: 3 additions & 1 deletion f/sh/z-page
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# from ~/Dropbox/write/darkness
# from ~/Write/darkness/yodrew.github.io/f/sh

# script converts separate website source files into single file for the web
# collect images
Expand All @@ -10,6 +10,8 @@
#rsync -auv plan/image/*.png ../../darkroomretreat/manuscript/images
#rsync -auv plan/image/book/*.png ../../darkroomretreat/manuscript/images

cd ../../../

# text
# collect
mkdir web
Expand Down
4 changes: 2 additions & 2 deletions f/sh/zzg → f/sh/zzzgit
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# from ~/Write/darkness/
# from ~/Write/darkness/yodrew.github.io/f/sh

cd yodrew.github.io
cd ~/Write/darkness/yodrew.github.io
git add .
git commit --dry-run
echo "commit message:"
Expand Down

0 comments on commit 031c542

Please sign in to comment.