The Tree of Widsdom

智慧の樹

IncWin

^do( IncWin, notename )^

Type: Macro

Purpose: Embeds a note as a mock Mac OS window

The IncWin macro inserts a mini version of notename inside a a Mac OS-type window.

Hover below to reveal BoxPress code

<div class="tb-note"><div class="tb-heading">^title("$1")^</div><div class="tb-body">^include("$1", bstTextRich)^</div></div>

IncWin sample

This is the markup that is rendered below

An included audio_note:
^do(IncWin, "I am a sample audio_note")^
An included person_note:
^do(IncWin, "I am a sample person_note with image")^
An included article_note:
^do(IncWin, "I am a sample article_note")^
An included book_note:
^do(IncWin, "I am a sample book_note")^
An included quote_note:
^do(IncWin, "I am a sample quote_note")^
An included event_note:
^do(IncWin, "I am a sample event_note")^
An included code_note:
^do(IncWin, "I am a sample code_note")^
This is text from the “current” note. Notice the seamless integration.

An included audio_note:

I am a sample audio_note

CSH: We’re talking about perceiving the irrational basis of your desiring, about perceiving that your motivator is irrational, about seeing that the set of commands that drives you is not a proper basis for living—and not being able to do anything about it. Because it constitutes you so deeply that it’s un-eraseable.

Jesse: Not to mention you got a good chunk of it just from genes, which you definitely don’t have any control over.

CSH: But, we have to agree that seeing the basis of your lack of autonomy has some value.

Jesse: Disagree!

CSH: It’s helpful to know that you’re being driven mechanically!

Jesse: No. Not really.

An included person_note:

I am a sample person_note with image

English follower of Paracelsus. People have the qualities of a magnet and that when two people meet, an interactive magnetic field arises.

An included article_note:

I am a sample article_note

Abstract: Antidepressant medications are the most popular treatment for unipolar depression in the United States, although there may be safer alternatives that are equally or more effective. This article reviews a wide range of well-controlled studies comparing psychological and pharmacological treatments for depression. The evidence suggests that the psychological interventions, particularly cognitive–behavioral therapy, are at least as effective as medication in the treatment of depression, even if severe. These conclusions hold for both vegetative and social adjustment symptoms, especially when patient-rated measures are used and long-term follow-up is considered. Some aspirational guidelines for the treatment of depression are proposed.

Insight-oriented psychotherapy was the least effective on most outcome measures at both evaluation periods; 30% of those patients remained in the moderate to severe range of depression, in comparison with 19% of those in the control condition. There were no significant differences between drug therapy and relaxation therapy on any outcome measure. No treatment had a significantly better outcome with the severely depressed subgroup (McLean & Taylor, 1992).

An included book_note:

I am a sample book_note

First mention of the unconscious, psychosomatic disease, and autosuggestion.

An included quote_note:

I am a sample quote_note

Before he realised it, he was looking at the stone again, and letting its curious influence call up a nebulous pageantry in his mind. He saw processions of robed, hooded figures whose outlines were not human, and looked on endless leagues of desert lined with carved, sky-reaching monoliths. He saw towers and walls in nighted depths under the sea, and vortices of space where wisps of black mist floated before thin shimmerings of cold purple haze. And beyond all else he glimpsed an infinite gulf of darkness, where solid and semi-solid forms were known only by their windy stirrings, and cloudy patterns of force seemed to superimpose order on chaos and hold forth a key to all the paradoxes and arcana of the worlds we know.

An included event_note:

I am a sample event_note

For 2000 years, European medicine was based on the humoralism theory of Galen (129–216) and Hippocrates (460– 370 BCE). According to humoralism, the human body is filled with four basic liquids, called humors, which are in balance when a person is healthy.

The four humors
HumorSeasonElementOrganQualitiesTemperamentTemperament characteristics
Bloodspringairliverwarm and moistsanguinecourageous, hopeful, playful, carefree
Yellow bilesummerfirespleenwarm and drycholericambitious, leader-like, restless, easily angered
Black bileautumnearthgallbladdercold and drymelancholicdespondent, quiet, analytical, serious
Phlegmwinterwaterbrain/lungscold and moistphlegmaticcalm, thoughtful, patient, peaceful

Health could be maintained or restored by balancing the humors, and also by regulating air, diet, exercise, sleep, evacuation and emotion. Medical treatment consisted of enemas, bleeding, emetics (cause vomiting), laxatives (ease defecation), purgatives (strong laxatives), and cathartics (accelerate defecation).

An included code_note:

I am a sample code_note

The MediaDemo demothing is a nonexistent macro that I have invented for purposes of showing its layout. I’m not sure what else I can say here. How about something about a semantic <figure> element whose title argument supplies the tool-tip text and the alternative text as well as a caption?

Hover below to reveal BoxPress code

Here is some plausible Tinderbox code. ^do(_striptags, "$2")^<figure ^if($3)^class="center-block $3"^endIf^><a target="_blank" href=^if($4)^"$4"^else^"^root^img/$1"^endIf^><img src="^root^img/$1" alt="^value($tmpStr1(_stripnote))^" title="^value($tmpStr1(_stripnote))^" ^if($5)^width="$5"^endIf^ class="img-responsive center-block well well-sm ^if($3)^^value("$3".replace("(img-left|img-right)","))^^endIf^"></a><figcaption>$2</figcaption></figure>"

This is text from the “current” note. Notice the seamless integration.

For a full list, see Explore Prototype export schemes.