Skip to content

Commit

Permalink
add reds page
Browse files Browse the repository at this point in the history
  • Loading branch information
fechan committed Mar 4, 2024
1 parent 228f478 commit d2cd89f
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 13 deletions.
12 changes: 12 additions & 0 deletions assets/css/guide.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
.guide {
.polarity-fig {
display: flex;
justify-content: center;

>div {
@extend .px-3;
display: flex;
flex-direction: column;
align-items: center;
}
}

.paginator-bottom {
@extend .pb-3;

Expand Down
12 changes: 0 additions & 12 deletions assets/css/pages/guide/basics.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
.guide-basics {
@extend .container;

.polarity-fig {
display: flex;
justify-content: center;

>div {
@extend .px-3;
display: flex;
flex-direction: column;
align-items: center;
}
}
}
1 change: 1 addition & 0 deletions guide/blues.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,6 @@ <h3>Passive constructions</h3>

<nav class="paginator-bottom">
<a href="/guide/basics.html" class="prev">Prev page: The basics</a>
<a href="/guide/reds.html" class="next">Next page: The Reds</a>
</nav>
</main>
2 changes: 1 addition & 1 deletion guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2>Trilangle guide</h2>
<ol>
<li><a href="/guide/basics.html">The basics</a></li>
<li><a href="/guide/blues.html">The Blues</a></li>
<li>The Reds</li>
<li><a href="/guide/reds.html">The Reds</a></li>
<li>The Greens</li>
<li>Adverbial modification</li>
<li>Time</li>
Expand Down
121 changes: 121 additions & 0 deletions guide/reds.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
---
title: The Reds - Trilangle Guide
layout: default
description: A more-in depth guide to how Reds work in Trilangle
---
<main class="guide container">
<h2>The Reds</h2>
<p class="lead mb-0">
This page goes into more depth on how Reds work and how they can expand and contain other triangles.
</p>
<nav class="mb-3"><a href="/guide/index.html">← Back to guide index</a></nav>

<section>
<h3>Expansion</h3>
<p class="lead">Recall that Reds donate its variable on all sides.</p>

<figure class="text-center d-flex flex-column">
<div><img src="/assets/images/red-arrow.svg" class="px-3"></div>
<span>There is a cat</span>
<span>∃x cat(x)</span>
</figure>

<p class="lead">Since every side acts the same way, we can safely expand the Red to take up more space. Even when expanded, every side still donates the Red's variable to adjacent triangles.</p>

<p class="lead">The following reds all mean the same thing, even though they have been expanded in different ways.</p>

<figure class="polarity-fig">
<div>
<trilangle-sentence>
<template>[{"word": "cat", "color": "red", "triangles": [[0,0,1], [0,1,0]]}]</template>
</trilangle-sentence>
</div>
<div>
<trilangle-sentence>
<template>[{"word": "cat", "color": "red", "triangles": [[0,0,1], [1,0,0], [0,1,0]]}]</template>
</trilangle-sentence>
</div>
<div>
<trilangle-sentence>
<template>[{"word": "cat", "color": "red", "triangles": [[1,0,0], [0,0,1], [0,1,0],[1,0,1],[1,1,0]]}]</template>
</trilangle-sentence>
</div>
</figure>
</section>

<section>
<h3>Nesting</h3>
<p class="lead">If you expand a Red, you can nest more Reds inside of them. Anything nested inside a Red will be inside the scope of the parent quantifier, and any object asserted by Reds that are nested inside a parent are considered the same as the object that the parent Red asserts.</p>

<figure class="trilangle-gloss">
<div class="trilangle">
<trilangle-sentence>
<template>
[
{"word": "spoon", "color": "red", "level": 0, "triangles": [
[1,0,0],
[0,0,1]
]},
{"word": "fork", "color": "red", "level": 1, "triangles": [[0,0,1]]}
]
</template>
</trilangle-sentence>
</div>
<div>
<dl>
<dt>Idiomatic translation</dt>
<dd>There is a spoon that is also a fork.</dd>

<dt>Literal translation</dt>
<dd>There exists a thing x such that x is a spoon, and there exists a thing y such that y is a fork, and x is the same thing y.</dd>

<dt>Formal semantics</dt>
<dd>∃x ( spoon(x) & ( ∃y fork(y) ) & x = y)</dd>
</dl>
</div>
</figure>

<p class="lead">Variables asserted by non-Reds that are nested inside a Red are not equal to the parent's variable.</p>

<p>In the following figure, "ice" asserts an object <i>x</i> and "solid" asserts an event <i>e</i>. Even though "solid" is nested inside "ice," x ≠ e because "ice" is a different color.</p>

<figure class="trilangle-gloss">
<div class="trilangle">
<trilangle-sentence>
<template>
[
{"word": "ice", "color": "red", "level": 0, "triangles": [
[1,0,0],
[0,0,1],
[0,1,0]
]},
{"word": "water", "color": "red", "level": 1, "triangles": [[0,0,1]]},
{"word": "solid", "color": "blue", "dot": 3, "level": 1, "triangles": [[0,1,0]]}
]
</template>
</trilangle-sentence>
</div>
<div>
<dl>
<dt>Idiomatic translation</dt>
<dd>There is some ice that is also solid water.</dd>

<dt>Literal translation</dt>
<dd>
There exists a thing x such that x is ice,<br>
and there exists a thing y such that y is water,<br>
and there exists an event e such that e is an event of y being solid,<br>
and x is the same thing as y.
</dd>

<dt>Formal semantics</dt>
<dd>∃x ( ice(x) & ( ∃y water(y) & ∃e solid(e, y) ) & x = y)</dd>
</dl>
</div>
</figure>
</section>

<nav class="paginator-bottom">
<a href="/guide/blues.html" class="prev">Prev page: The Blues</a>
</nav>
</main>

0 comments on commit d2cd89f

Please sign in to comment.