circle script updates
This commit is contained in:
parent
b67257d9ed
commit
7d9ae22f6c
255
articles/circle_script/circle_script.article.bkp.html
Normal file
255
articles/circle_script/circle_script.article.bkp.html
Normal file
@ -0,0 +1,255 @@
|
||||
<article>
|
||||
<style type="text/css">
|
||||
#consonant-grid, #vowel-grid {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
td {
|
||||
padding: 2em;
|
||||
}
|
||||
.vowel-example {
|
||||
padding: 1em;
|
||||
}
|
||||
td, .vowel-sequence {
|
||||
border: 2px solid gray;
|
||||
}
|
||||
table > img {
|
||||
width: 50%;
|
||||
height: 50%;
|
||||
}
|
||||
.hero-example {
|
||||
width: 50%;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.example-glyph {
|
||||
width: 20%;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
#vowel-grid {
|
||||
display: block;
|
||||
width: 60%;
|
||||
}
|
||||
.vowel-sequence {
|
||||
display: block;
|
||||
}
|
||||
.vowel-example {
|
||||
display: inline-block;
|
||||
}
|
||||
.vowel-example * {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.vowel-example > svg {
|
||||
width: 3.5em;
|
||||
height: 3.5em;
|
||||
}
|
||||
.unverified {
|
||||
color: lightgray;
|
||||
}
|
||||
</style>
|
||||
<h3>An introduction to Circle Script (Version... 3?)</h3>
|
||||
<p>Circle script is a writing system that I made up. The fundamental gimmick of it is that words and sentences in it form circles.</p>
|
||||
<img src="splash-example.svg" alt="A large glyph composed of nested circles." class="hero-example" />
|
||||
<p>It's largely decorative, has vague intentions at being phonetic, and I like using it in art! The other primary use case is writing cute notes to people I like.</p>
|
||||
<h4>Here's the overview of how to read circle script:</h5>
|
||||
<p>To read circle script, you start at whatever spot is marked with a little line segment outside the circle, parallel to it. If that's not present, you can usually start at the bottom. Walk around the circle widdershins (counterclockwise) and decode each shape and glyph you encounter, turning them into sounds.</p>
|
||||
<img src="zagreus.svg" alt="A circle script glyph showing a single word-circle, with a small line outside the circle for a starting-point indicator." class="example-glyph"/>
|
||||
<p>If you're reading a whole sentence, you walk around the circle and read each word as you come across it. For each word, you read it starting from the point where it touches the circle that contains it, so you kind of reorient as you go.</p>
|
||||
<p>Also, you might have noticed that some of the shapes inside word-circles have lines connecting them. Those are decorative! A lot of the component parts of the circle script writing system have places for lines to come off. These can be connected as you like, but the... proper? I guess? fancy, perhaps? way to use them is to draw connecting lines between words which are conceptually linked. You might use those lines to connect an adjective with the noun it modifies, or the names of two people who care about each other. There's a lot of room for poetic embellishment in drawing lines between words!</p>
|
||||
<p>Of course, you can also just draw the lines out in a way that looks cool. :)</p>
|
||||
<h4>Okay, now the meat of circle script: How to read words!</h5>
|
||||
<p>To read circle script, you need to understand consonants and vowels. Consonants are easier, so we'll start with those. Consonants are drawn with marks that float above (inside) the continuous line of the circle. Each consonant is composed of a shape, which corresponds to what kind of sound it is, and a diacritic, which indicates where in the mouth it is made. Additionally, if the consonant is <a href="https://en.wikipedia.org/wiki/Voice_(phonetics)">voiced</a>, the shape will generally be drawn with a doubled line.</p>
|
||||
<p><strong>Phew!</strong> That sounded complicated. It's not so bad, really - I'm going to give you a grid, and you can just find the sound you want, and it'll tell you how to draw it. All of that business about kinds of sounds, places in mouths, and voice just means this is a featural script, so that similar sounds are indicated by similar-looking letters.</p>
|
||||
<aside><p>In this version of circle script, consonants do not distort the overall shape, and vowels do. In versions 1 and 2, it was the other way around!</p></aside>
|
||||
<table id="consonant-grid">
|
||||
<thead>
|
||||
<tr class="header">
|
||||
<th></th>
|
||||
<th scope="col" class="diacritic-header"><img src="example-diacritic-1.svg" /></th>
|
||||
<th scope="col" class="diacritic-header"><img src="example-diacritic-2.svg" /></th>
|
||||
<th scope="col" class="diacritic-header"><img src="example-diacritic-3.svg" /></th>
|
||||
<th scope="col" class="diacritic-header"><img src="example-diacritic-4.svg" /></th>
|
||||
<th scope="col" class="diacritic-header"><img src="example-diacritic-5.svg" /></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-mound-1.svg" /></th>
|
||||
<td>[m] <strong>m</strong>ap</td>
|
||||
<td>[n] <strong>n</strong>ope</td>
|
||||
<td class="unverified">[ñ] pi<strong>ñ</strong>ata (unverified)</td>
|
||||
<td>[ŋ] ha<strong>ng</strong></td>
|
||||
<td></td>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-mound-2.svg" /></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-ohm-1.svg" /></th>
|
||||
<td>[p] <strong>p</strong>ear, [b] <strong>b</strong>at</td>
|
||||
<td>[t] <strong>t</strong>alk, [d] <strong>d</strong>eal</td>
|
||||
<td></td>
|
||||
<td>[k] <strong>k</strong>ale, [g] <strong>g</strong>ulp</td>
|
||||
<td class="unverified">[q], [ɢ] (unverified)</td>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-ohm-2.svg" /></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-angle-1.svg" /></th>
|
||||
<td>[f] <strong>f</strong>ace, [v] <strong>v</strong>eer</td>
|
||||
<td>[s] <strong>s</strong>ight, [z] <strong>z</strong>oot</td>
|
||||
<td>[ʃ] <strong>sh</strong>ort, [ʒ] mea<strong>s</strong>ure</td>
|
||||
<td></td>
|
||||
<td class="unverified">[ʔ], [ʡ] (unverified)</td>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-angle-2.svg" /></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-loop-1.svg" /></th>
|
||||
<td>[θ] <strong>th</strong>in, [ð] <strong>th</strong>at</td>
|
||||
<td class="unverified">[ts] <strong>ts</strong>ar? (unverified)</td>
|
||||
<td>[tʃ] <strong>ch</strong>alk, [dʒ] <strong>j</strong>u<strong>dg</strong>e</td>
|
||||
<td>[x~χ] lo<strong>ch</strong>, <span class="unverified">[ʁ] french r</span></td>
|
||||
<td></td>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-loop-2.svg" /></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-wave-1.svg" /></th>
|
||||
<td>[w] <strong>w</strong>alk</td>
|
||||
<td>[ɹ] <strong>r</strong>eal, [l] <strong>l</strong>atent</td>
|
||||
<td>[ɾ~r] pe<strong>rr</strong>o, <span class="unverified">[ɬ] welsh ll</span></td>
|
||||
<td>[j] <strong>y</strong>eet</td>
|
||||
<td>[h] <strong>h</strong>edonism</td>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-wave-2.svg" /></th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>If you're familiar with the <a href="https://en.wikipedia.org/wiki/International_Phonetic_Alphabet">international phonetic alphabet</a> this might look somewhat familiar! (Although I've taken some heavy liberties to make this fit into a grid and match with my American understanding of what sounds are similar) Each square in the grid shows the two consonants (one unvoiced, one unvoiced) indicated by that combination of diacritic (above) and shape (from the side). The unvoiced version (on the left, in a grid square) is indicated by the single-line version of the shape, seen on the left side of the grid. The voiced version uses the "heavy" version, seen on the right side of the grid and originally drawn with a doubled line. I've included the IPA transcription for the consonants, along with an example of that sound in my dialect, which is probably roughly <a href="https://en.wikipedia.org/wiki/General_American_English">General American English</a>.</p>
|
||||
<p>Vowels are a little more haphazard. Have you ever really thought about vowels? They're pretty messed up, especially in English. We were taught the five vowels are a, e, i, o, u, and sometimes y. It turns out that while we have five and a half <em>letters</em> we call vowels, in English, they correspond to anywhere between twelve and fifteen different <em>sounds</em>. And those sounds aren't even necessarily the ones you're thinking of - a lot of the things we think of as individual vowels, like the /i/ in "r<strong>i</strong>ght", are actually diphthongs, composed of two vowels that we run together.</p>
|
||||
<p>Anyway, circle script draws vowels as modifications to the outer circle of a word - as you're drawing the circle, you take a detour to take either a small bite out of it, a big bite out of it, or a loop-the-loop. It is then decorated with a circle, placed either above the detour shape (on the inside of the overall word circle), below the detour shape (often inside the detour shape, towards the outside of the word circle), or on the line of the detour circle. Then, you add a line for emphasis if necessary.</p>
|
||||
<p>The vowels are organized in a way close to the five vowel system seen in many languages. Consider the Japanese ka ki ku ke ko; these are considered the "strong" versions of the five basic vowels. They also come in "weak" versions, common in English. The pairing between strong and weak versions is roughly based on whatever I thought made the most sense to my ears. They're listed in the vowel chart. A strong vowel will have a line extending off it, which can be used freely as with the connectors on the consonant glyphs, and a weak vowel will have no such line.</p>
|
||||
<p>There's one vowel that I didn't quite fit into a correspondence with another "stronger" or "weaker" vowel, /æ/, which you might know from the word "bat" or "back" (in American English). There are also three common diphthongs provided as vowel glyphs. </p>
|
||||
<p>Hopefully, if this system needs to be extended for other vowels, they can be defined by relation to a "similar" sounding vowel, and adding a diacritic of some sort. But that hasn't been standardized yet.</p>
|
||||
<p>The examples I give are based on my accent (some variation of general American English), so if there's any confusion, consult a resource like <a href="https://ipachart.com">ipachart.com</a> for recordings of vowels. Several common diphthongs are available as vowel shapes.</p>
|
||||
<object data="./vowel-example.svg" type="image/svg+xml" style="display: none"></object>
|
||||
<div id="vowel-grid">
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<use xlink:href="./vowel-example.svg#base-omega" ></use>
|
||||
<use xlink:href="./vowel-example.svg#dot-outer"></use>
|
||||
<use xlink:href="./vowel-example.svg#emphasis-outer"></use>
|
||||
</svg>
|
||||
[ɑ, a], box or bah
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<use href="vowel-example.svg#base-omega" ></use>
|
||||
<use href="vowel-example.svg#dot-outer"></use>
|
||||
</svg>
|
||||
[ʌ, ə], but or schwa (unstressed)
|
||||
</div>
|
||||
</div>
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 -12 24 80" >
|
||||
<use href="vowel-example.svg#base-mound" ></use>
|
||||
<use href="vowel-example.svg#dot-inner"></use>
|
||||
<use href="vowel-example.svg#emphasis-inner"></use>
|
||||
</svg>
|
||||
[i], beat
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 -12 24 80" >
|
||||
<use href="vowel-example.svg#base-mound" ></use>
|
||||
<use href="vowel-example.svg#dot-inner"></use>
|
||||
</svg>
|
||||
[ɪ], bit
|
||||
</div>
|
||||
</div>
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 -12 24 80" >
|
||||
<use href="vowel-example.svg#base-mound" ></use>
|
||||
<use href="vowel-example.svg#triangle-inner"></use>
|
||||
<use href="vowel-example.svg#emphasis-inner"></use>
|
||||
</svg>
|
||||
[u], boot
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 -12 24 80" >
|
||||
<use href="vowel-example.svg#base-mound" ></use>
|
||||
<use href="vowel-example.svg#triangle-inner"></use>
|
||||
</svg>
|
||||
[ʊ], book
|
||||
</div>
|
||||
</div>
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 -12 24 80" >
|
||||
<use href="vowel-example.svg#base-mound" ></use>
|
||||
<use href="vowel-example.svg#dot-outer"></use>
|
||||
<use href="vowel-example.svg#emphasis-outer"></use>
|
||||
</svg>
|
||||
[ɛi, e], bait
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 -12 24 80" >
|
||||
<use href="vowel-example.svg#base-mound" ></use>
|
||||
<use href="vowel-example.svg#dot-outer"></use>
|
||||
</svg>
|
||||
[ɛ], bet
|
||||
</div>
|
||||
</div>
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<use href="vowel-example.svg#base-omega" ></use>
|
||||
<use href="vowel-example.svg#dot-inner"></use>
|
||||
<use href="vowel-example.svg#emphasis-inner"></use>
|
||||
</svg>
|
||||
[o, ɔu], won't, boat
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<use href="vowel-example.svg#base-omega" ></use>
|
||||
<use href="vowel-example.svg#dot-inner"></use>
|
||||
</svg>
|
||||
[ɔ], bawk
|
||||
</div>
|
||||
</div>
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<use href="vowel-example.svg#base-omega" ></use>
|
||||
<use href="vowel-example.svg#dot-on"></use>
|
||||
</svg>
|
||||
[æ], bat
|
||||
</div>
|
||||
</div>
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<use href="vowel-example.svg#base-loop" ></use>
|
||||
<use href="vowel-example.svg#dot-outer"></use>
|
||||
</svg>
|
||||
[au], cow
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<use href="vowel-example.svg#base-loop" ></use>
|
||||
<use href="vowel-example.svg#dot-on"></use>
|
||||
</svg>
|
||||
[ai, aɪ], by
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<use href="vowel-example.svg#base-loop" ></use>
|
||||
<use href="vowel-example.svg#dot-inner"></use>
|
||||
</svg>
|
||||
[ɔi, ɔɪ], boy
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p>If you merge caught-cot, it is preferred to use the strong vowel /a~ɑ/ rather than the weak /ɔ/ vowel.</p>
|
||||
</article>
|
417
articles/circle_script/circle_script.article.html
Normal file
417
articles/circle_script/circle_script.article.html
Normal file
@ -0,0 +1,417 @@
|
||||
<article>
|
||||
<style type="text/css">
|
||||
#consonant-grid, #vowel-grid {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
td {
|
||||
padding: 2em;
|
||||
}
|
||||
.vowel-example {
|
||||
padding: 1em;
|
||||
}
|
||||
td, .vowel-sequence {
|
||||
border: 2px solid gray;
|
||||
}
|
||||
table > img {
|
||||
width: 50%;
|
||||
height: 50%;
|
||||
}
|
||||
.hero-example {
|
||||
width: 50%;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.example-glyph {
|
||||
width: 20%;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
#vowel-grid {
|
||||
display: block;
|
||||
width: 60%;
|
||||
}
|
||||
.vowel-sequence {
|
||||
display: block;
|
||||
}
|
||||
.vowel-example {
|
||||
display: inline-block;
|
||||
}
|
||||
.vowel-example * {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.vowel-example > svg {
|
||||
width: 3.5em;
|
||||
height: 3.5em;
|
||||
}
|
||||
.unverified {
|
||||
color: lightgray;
|
||||
}
|
||||
</style>
|
||||
<h3>An introduction to Circle Script (Version... 3?)</h3>
|
||||
<p>Circle script is a writing system that I made up. The fundamental gimmick of it is that words and sentences in it form circles.</p>
|
||||
<img src="splash-example.svg" alt="A large glyph composed of nested circles." class="hero-example" />
|
||||
<p>It's largely decorative, has vague intentions at being phonetic, and I like using it in art! The other primary use case is writing cute notes to people I like.</p>
|
||||
<h4>Here's the overview of how to read circle script:</h5>
|
||||
<p>To read circle script, you start at whatever spot is marked with a little line segment outside the circle, parallel to it. If that's not present, you can usually start at the bottom. Walk around the circle widdershins (counterclockwise) and decode each shape and glyph you encounter, turning them into sounds.</p>
|
||||
<img src="zagreus.svg" alt="A circle script glyph showing a single word-circle, with a small line outside the circle for a starting-point indicator." class="example-glyph"/>
|
||||
<p>If you're reading a whole sentence, you walk around the circle and read each word as you come across it. For each word, you read it starting from the point where it touches the circle that contains it, so you kind of reorient as you go.</p>
|
||||
<p>Also, you might have noticed that some of the shapes inside word-circles have lines connecting them. Those are decorative! A lot of the component parts of the circle script writing system have places for lines to come off. These can be connected as you like, but the... proper? I guess? fancy, perhaps? way to use them is to draw connecting lines between words which are conceptually linked. You might use those lines to connect an adjective with the noun it modifies, or the names of two people who care about each other. There's a lot of room for poetic embellishment in drawing lines between words!</p>
|
||||
<p>Of course, you can also just draw the lines out in a way that looks cool. :)</p>
|
||||
<h4>Okay, now the meat of circle script: How to read words!</h5>
|
||||
<p>To read circle script, you need to understand consonants and vowels. Consonants are easier, so we'll start with those. Consonants are drawn with marks that float above (inside) the continuous line of the circle. Each consonant is composed of a shape, which corresponds to what kind of sound it is, and a radical, which indicates where in the mouth it is made. Additionally, if the consonant is <a href="https://en.wikipedia.org/wiki/Voice_(phonetics)">voiced</a>, the shape will generally be drawn with a doubled line.</p>
|
||||
<p><strong>Phew!</strong> That sounded complicated. It's not so bad, really - I'm going to give you a grid, and you can just find the sound you want, and it'll tell you how to draw it. All of that business about kinds of sounds, places in mouths, and voice just means this is a featural script, so that similar sounds are indicated by similar-looking letters.</p>
|
||||
<aside><p>In this version of circle script, consonants do not distort the overall shape, and vowels do. In versions 1 and 2, it was the other way around!</p></aside>
|
||||
<table id="consonant-grid">
|
||||
<thead>
|
||||
<tr class="header">
|
||||
<th></th>
|
||||
<th scope="col" class="diacritic-header"><img src="example-diacritic-1.svg" /></th>
|
||||
<th scope="col" class="diacritic-header"><img src="example-diacritic-2.svg" /></th>
|
||||
<th scope="col" class="diacritic-header"><img src="example-diacritic-3.svg" /></th>
|
||||
<th scope="col" class="diacritic-header"><img src="example-diacritic-4.svg" /></th>
|
||||
<th scope="col" class="diacritic-header"><img src="example-diacritic-5.svg" /></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-mound-1.svg" /></th>
|
||||
<td>[m] <strong>m</strong>ap</td>
|
||||
<td>[n] <strong>n</strong>ope</td>
|
||||
<td class="unverified">[ñ] pi<strong>ñ</strong>ata (unverified)</td>
|
||||
<td>[ŋ] ha<strong>ng</strong></td>
|
||||
<td></td>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-mound-2.svg" /></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-ohm-1.svg" /></th>
|
||||
<td>[p] <strong>p</strong>ear, [b] <strong>b</strong>at</td>
|
||||
<td>[t] <strong>t</strong>alk, [d] <strong>d</strong>eal</td>
|
||||
<td></td>
|
||||
<td>[k] <strong>k</strong>ale, [g] <strong>g</strong>ulp</td>
|
||||
<td class="unverified">[q], [ɢ] (unverified)</td>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-ohm-2.svg" /></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-angle-1.svg" /></th>
|
||||
<td>[f] <strong>f</strong>ace, [v] <strong>v</strong>eer</td>
|
||||
<td>[s] <strong>s</strong>ight, [z] <strong>z</strong>oot</td>
|
||||
<td>[ʃ] <strong>sh</strong>ort, [ʒ] mea<strong>s</strong>ure</td>
|
||||
<td></td>
|
||||
<td class="unverified">[ʔ], [ʡ] (unverified)</td>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-angle-2.svg" /></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-loop-1.svg" /></th>
|
||||
<td>[θ] <strong>th</strong>in, [ð] <strong>th</strong>at</td>
|
||||
<td class="unverified">[ts] <strong>ts</strong>ar? (unverified)</td>
|
||||
<td>[tʃ] <strong>ch</strong>alk, [dʒ] <strong>j</strong>u<strong>dg</strong>e</td>
|
||||
<td>[x~χ] lo<strong>ch</strong>, <span class="unverified">[ʁ] french r</span></td>
|
||||
<td></td>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-loop-2.svg" /></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-wave-1.svg" /></th>
|
||||
<td>[w] <strong>w</strong>alk</td>
|
||||
<td>[ɹ] <strong>r</strong>eal, [l] <strong>l</strong>atent</td>
|
||||
<td>[ɾ~r] pe<strong>rr</strong>o, <span class="unverified">[ɬ] welsh ll</span></td>
|
||||
<td>[j] <strong>y</strong>eet</td>
|
||||
<td>[h] <strong>h</strong>edonism</td>
|
||||
<th scope="row" class="consonant-shape"><img src="consonant-wave-2.svg" /></th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>If you're familiar with the <a href="https://en.wikipedia.org/wiki/International_Phonetic_Alphabet">international phonetic alphabet</a> this might look somewhat familiar! (Although I've taken some heavy liberties to make this fit into a grid and match with my American understanding of what sounds are similar) Each square in the grid shows the two consonants (one unvoiced, one unvoiced) indicated by that combination of radical (above) and shape (from the side). The unvoiced version (on the left, in a grid square) is indicated by the single-line version of the shape, seen on the left side of the grid. The voiced version uses the "heavy" version, seen on the right side of the grid and originally drawn with a doubled line. I've included the IPA transcription for the consonants, along with an example of that sound in my dialect, which is probably roughly <a href="https://en.wikipedia.org/wiki/General_American_English">General American English</a>.</p>
|
||||
<p>Vowels are a little more haphazard. Have you ever really thought about vowels? They're pretty messed up, especially in English. We were taught the five vowels are a, e, i, o, u, and sometimes y. It turns out that while we have five and a half <em>letters</em> we call vowels, in English, they correspond to anywhere between twelve and fifteen different <em>sounds</em>. And those sounds aren't even necessarily the ones you're thinking of - a lot of the things we think of as individual vowels, like the /i/ in "r<strong>i</strong>ght", are actually diphthongs, composed of two vowels that we run together.</p>
|
||||
<p>Anyway, circle script draws vowels as modifications to the outer circle of a word - as you're drawing the circle, you take a detour to take either a small bite out of it, a big bite out of it, or a loop-the-loop. It is then decorated with a circle, placed either above the detour shape (on the inside of the overall word circle), below the detour shape (often inside the detour shape, towards the outside of the word circle), or on the line of the detour circle. Then, you add a line for emphasis if necessary.</p>
|
||||
<p>The vowels are organized in a way close to the five vowel system seen in many languages. Consider the Japanese ka ki ku ke ko; these are considered the "strong" versions of the five basic vowels. They also come in "weak" versions, common in English. The pairing between strong and weak versions is roughly based on whatever I thought made the most sense to my ears. They're listed in the vowel chart. A strong vowel will have a line extending off it, which can be used freely as with the connectors on the consonant glyphs, and a weak vowel will have no such line.</p>
|
||||
<p>There's one vowel that I didn't quite fit into a correspondence with another "stronger" or "weaker" vowel, /æ/, which you might know from the word "bat" or "back" (in American English). There are also three common diphthongs provided as vowel glyphs. </p>
|
||||
<p>Hopefully, if this system needs to be extended for other vowels, they can be defined by relation to a "similar" sounding vowel, and adding a radical of some sort. But that hasn't been standardized yet.</p>
|
||||
<p>The examples I give are based on my accent (some variation of general American English), so if there's any confusion, consult a resource like <a href="https://ipachart.com">ipachart.com</a> for recordings of vowels. Several common diphthongs are available as vowel shapes.</p>
|
||||
<div id="vowel-grid">
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48083;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.143392,69.705313 h 21.9728073 c 0,0 -8.7107683,-5.308618 -8.6254273,-18.536589 0.08534,-13.227971 11.8971468,-19.957943 22.88067,-20.100079 10.983523,-0.142135 24.132914,6.070091 24.270193,19.58669 0.137279,13.516599 -8.372985,19.018148 -8.372985,19.018148 l 21.57823,-0.142137"
|
||||
id="base-omega"
|
||||
sodipodi:nodetypes="cczzzcc" />
|
||||
<circle
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="dot-outer"
|
||||
cx="12.504731"
|
||||
cy="50.600185"
|
||||
r="7.9595795" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.49271999;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
d="m 12.50473,58.701897 c 0,15.634887 0,15.634887 0,15.634887"
|
||||
id="emphasis-outer" />
|
||||
</svg>
|
||||
[ɑ, a], box or bah
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48083;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.143392,69.705313 h 21.9728073 c 0,0 -8.7107683,-5.308618 -8.6254273,-18.536589 0.08534,-13.227971 11.8971468,-19.957943 22.88067,-20.100079 10.983523,-0.142135 24.132914,6.070091 24.270193,19.58669 0.137279,13.516599 -8.372985,19.018148 -8.372985,19.018148 l 21.57823,-0.142137"
|
||||
id="base-omega"
|
||||
sodipodi:nodetypes="cczzzcc" />
|
||||
<circle
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="dot-outer"
|
||||
cx="12.504731"
|
||||
cy="50.600185"
|
||||
r="7.9595795" />
|
||||
</svg>
|
||||
[ʌ, ə], but or schwa (unstressed)
|
||||
</div>
|
||||
</div>
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 -12 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48084;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.402715,49.335233 h 12.307604 c 0,0 7.3545431,-18.311313 24.915392,-18.311313 17.560849,0 23.714653,18.137348 23.714653,18.137348 l 12.907974,-0.142135"
|
||||
id="base-mound"
|
||||
sodipodi:nodetypes="cczcc" />
|
||||
<circle
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="dot-inner"
|
||||
cx="12.50473"
|
||||
cy="14.924212"
|
||||
r="7.9595795" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.49271999;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
d="M 12.646867,6.8224964 C 12.504729,-8.9545266 12.504729,-1.2792181 12.504729,-1.2792181"
|
||||
id="emphasis-inner" />
|
||||
</svg>
|
||||
[i], beat
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 -12 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48084;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.402715,49.335233 h 12.307604 c 0,0 7.3545431,-18.311313 24.915392,-18.311313 17.560849,0 23.714653,18.137348 23.714653,18.137348 l 12.907974,-0.142135"
|
||||
id="base-mound"
|
||||
sodipodi:nodetypes="cczcc" />
|
||||
<circle
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="dot-inner"
|
||||
cx="12.50473"
|
||||
cy="14.924212"
|
||||
r="7.9595795" />
|
||||
</svg>
|
||||
[ɪ], bit
|
||||
</div>
|
||||
</div>
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 -12 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48084;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.402715,49.335233 h 12.307604 c 0,0 7.3545431,-18.311313 24.915392,-18.311313 17.560849,0 23.714653,18.137348 23.714653,18.137348 l 12.907974,-0.142135"
|
||||
id="base-mound"
|
||||
sodipodi:nodetypes="cczcc" />
|
||||
<path
|
||||
sodipodi:type="star"
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="triangle-inner"
|
||||
sodipodi:sides="3"
|
||||
sodipodi:cx="12.602679"
|
||||
sodipodi:cy="15.606641"
|
||||
sodipodi:r1="8.7842556"
|
||||
sodipodi:r2="8.4311752"
|
||||
sodipodi:arg1="-1.565766"
|
||||
sodipodi:arg2="-0.51856839"
|
||||
inkscape:flatsided="true"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="M 12.646867,6.822496 20.187878,20.036981 4.9732929,19.960446 Z"
|
||||
inkscape:transform-center-x="0.11044414"
|
||||
inkscape:transform-center-y="-0.12140727" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.49271999;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
d="M 12.646867,6.8224964 C 12.504729,-8.9545266 12.504729,-1.2792181 12.504729,-1.2792181"
|
||||
id="emphasis-inner" />
|
||||
</svg>
|
||||
[u], boot
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 -12 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48084;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.402715,49.335233 h 12.307604 c 0,0 7.3545431,-18.311313 24.915392,-18.311313 17.560849,0 23.714653,18.137348 23.714653,18.137348 l 12.907974,-0.142135"
|
||||
id="base-mound"
|
||||
sodipodi:nodetypes="cczcc" />
|
||||
<path
|
||||
sodipodi:type="star"
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="triangle-inner"
|
||||
sodipodi:sides="3"
|
||||
sodipodi:cx="12.602679"
|
||||
sodipodi:cy="15.606641"
|
||||
sodipodi:r1="8.7842556"
|
||||
sodipodi:r2="8.4311752"
|
||||
sodipodi:arg1="-1.565766"
|
||||
sodipodi:arg2="-0.51856839"
|
||||
inkscape:flatsided="true"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="M 12.646867,6.822496 20.187878,20.036981 4.9732929,19.960446 Z"
|
||||
inkscape:transform-center-x="0.11044414"
|
||||
inkscape:transform-center-y="-0.12140727" />
|
||||
</svg>
|
||||
[ʊ], book
|
||||
</div>
|
||||
</div>
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 -12 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48084;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.402715,49.335233 h 12.307604 c 0,0 7.3545431,-18.311313 24.915392,-18.311313 17.560849,0 23.714653,18.137348 23.714653,18.137348 l 12.907974,-0.142135"
|
||||
id="base-mound"
|
||||
sodipodi:nodetypes="cczcc" />
|
||||
<circle
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="dot-outer"
|
||||
cx="12.504731"
|
||||
cy="50.600185"
|
||||
r="7.9595795" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.49271999;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
d="m 12.50473,58.701897 c 0,15.634887 0,15.634887 0,15.634887"
|
||||
id="emphasis-outer" />
|
||||
</svg>
|
||||
[ɛi, e], bait
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 -12 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48084;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.402715,49.335233 h 12.307604 c 0,0 7.3545431,-18.311313 24.915392,-18.311313 17.560849,0 23.714653,18.137348 23.714653,18.137348 l 12.907974,-0.142135"
|
||||
id="base-mound"
|
||||
sodipodi:nodetypes="cczcc" />
|
||||
<circle
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="dot-outer"
|
||||
cx="12.504731"
|
||||
cy="50.600185"
|
||||
r="7.9595795" />
|
||||
</svg>
|
||||
[ɛ], bet
|
||||
</div>
|
||||
</div>
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48083;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.143392,69.705313 h 21.9728073 c 0,0 -8.7107683,-5.308618 -8.6254273,-18.536589 0.08534,-13.227971 11.8971468,-19.957943 22.88067,-20.100079 10.983523,-0.142135 24.132914,6.070091 24.270193,19.58669 0.137279,13.516599 -8.372985,19.018148 -8.372985,19.018148 l 21.57823,-0.142137"
|
||||
id="base-omega"
|
||||
sodipodi:nodetypes="cczzzcc" />
|
||||
<circle
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="dot-inner"
|
||||
cx="12.50473"
|
||||
cy="14.924212"
|
||||
r="7.9595795" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.49271999;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
d="M 12.646867,6.8224964 C 12.504729,-8.9545266 12.504729,-1.2792181 12.504729,-1.2792181"
|
||||
id="emphasis-inner" />
|
||||
</svg>
|
||||
[o, ɔu], won't, boat
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48083;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.143392,69.705313 h 21.9728073 c 0,0 -8.7107683,-5.308618 -8.6254273,-18.536589 0.08534,-13.227971 11.8971468,-19.957943 22.88067,-20.100079 10.983523,-0.142135 24.132914,6.070091 24.270193,19.58669 0.137279,13.516599 -8.372985,19.018148 -8.372985,19.018148 l 21.57823,-0.142137"
|
||||
id="base-omega"
|
||||
sodipodi:nodetypes="cczzzcc" />
|
||||
<circle
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="dot-inner"
|
||||
cx="12.50473"
|
||||
cy="14.924212"
|
||||
r="7.9595795" />
|
||||
</svg>
|
||||
[ɔ], bawk
|
||||
</div>
|
||||
</div>
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48083;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.143392,69.705313 h 21.9728073 c 0,0 -8.7107683,-5.308618 -8.6254273,-18.536589 0.08534,-13.227971 11.8971468,-19.957943 22.88067,-20.100079 10.983523,-0.142135 24.132914,6.070091 24.270193,19.58669 0.137279,13.516599 -8.372985,19.018148 -8.372985,19.018148 l 21.57823,-0.142137"
|
||||
id="base-omega"
|
||||
sodipodi:nodetypes="cczzzcc" />
|
||||
<circle
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="dot-on"
|
||||
cx="12.646866"
|
||||
cy="31.411909"
|
||||
r="7.9595795" />
|
||||
</svg>
|
||||
[æ], bat
|
||||
</div>
|
||||
</div>
|
||||
<div class="vowel-sequence">
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48083;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.143392,69.705313 c 21.9728073,0 54.541558,-0.600371 58.120012,-22.089973 C 35.199043,37.798618 21.290897,32.244199 12.511064,32.347864 3.742928,32.451391 -10.546513,37.771707 -8.5599175,48.096898 -4.5769567,68.798058 27.981866,69.673483 49.560097,69.531345"
|
||||
id="base-loop"
|
||||
sodipodi:nodetypes="ccssc" />
|
||||
<circle
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="dot-outer"
|
||||
cx="12.504731"
|
||||
cy="50.600185"
|
||||
r="7.9595795" />
|
||||
</svg>
|
||||
[au], cow
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48083;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.143392,69.705313 c 21.9728073,0 54.541558,-0.600371 58.120012,-22.089973 C 35.199043,37.798618 21.290897,32.244199 12.511064,32.347864 3.742928,32.451391 -10.546513,37.771707 -8.5599175,48.096898 -4.5769567,68.798058 27.981866,69.673483 49.560097,69.531345"
|
||||
id="base-loop"
|
||||
sodipodi:nodetypes="ccssc" />
|
||||
<circle
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="dot-on"
|
||||
cx="12.646866"
|
||||
cy="31.411909"
|
||||
r="7.9595795" />
|
||||
</svg>
|
||||
[ai, aɪ], by
|
||||
</div>
|
||||
<div class="vowel-example">
|
||||
<svg viewBox="0 0 24 80" >
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:3.48083;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m -24.143392,69.705313 c 21.9728073,0 54.541558,-0.600371 58.120012,-22.089973 C 35.199043,37.798618 21.290897,32.244199 12.511064,32.347864 3.742928,32.451391 -10.546513,37.771707 -8.5599175,48.096898 -4.5769567,68.798058 27.981866,69.673483 49.560097,69.531345"
|
||||
id="base-loop"
|
||||
sodipodi:nodetypes="ccssc" />
|
||||
<circle
|
||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:3.49272;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="dot-inner"
|
||||
cx="12.50473"
|
||||
cy="14.924212"
|
||||
r="7.9595795" />
|
||||
</svg>
|
||||
[ɔi, ɔɪ], boy
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p>If you merge caught-cot, it is preferred to use the strong vowel /a~ɑ/ rather than the weak /ɔ/ vowel.</p>
|
||||
</article>
|
409
articles/circle_script/circle_script_generator.article.html
Normal file
409
articles/circle_script/circle_script_generator.article.html
Normal file
@ -0,0 +1,409 @@
|
||||
<html>
|
||||
<head>
|
||||
<script src="../../static/jquery.min.js" type="text/javascript"></script>
|
||||
<link href="../../static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
|
||||
<link href="../../static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css">
|
||||
<link href="../../static/shoofle.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<style type="text/css">
|
||||
svg circle, svg path { fill: none; }
|
||||
svg .glyph { stroke: #600; fill: none; }
|
||||
svg .vowel { stroke: #044; }
|
||||
svg .radical { stroke: #004; }
|
||||
svg circle.radical { fill: black; }
|
||||
svg .enclosure { stroke: #000; }
|
||||
</style>
|
||||
<div class="row-fluid">
|
||||
<div class="span6 offset3">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="400px" preserveAspectRatio="xMidYMax" id="arena" viewBox="-105 -105 210 210">
|
||||
<defs>
|
||||
<path id="mound" d="M-10,0 H-8 A9,8 0,0,1 8,0 H10" class="glyph"></path>
|
||||
<g id="mound2">
|
||||
<path d="M-10,0 H-8 A9,8 0 0,1 8,0 H10" class="glyph"></path>
|
||||
<path d="M-6,0 A7,6 0,0,1 6,0" class="glyph"></path>
|
||||
</g>
|
||||
<path id="omega" d="M-10,0 H-4 A7,7 0,1,1 4,0 H10" class="glyph"></path>
|
||||
<g id="omega2">
|
||||
<path d="M-10,0 H-4 A7,7 0,1,1 4,0 H10" class="glyph"></path>
|
||||
<path d="M-1,-1 A4.5,4.5 0,1,1 1,-1" class="glyph"></path>
|
||||
</g>
|
||||
<path id="angle" d="M-10,0 H-6 L0,-8 L6,0 H10" class="glyph"></path>
|
||||
<g id="angle2">
|
||||
<path d="M-10,0 H-6 L0,-8 L6,0 H10" class="glyph"></path>
|
||||
<path d="M-4,0 L0,-5.3333 L4,0" class="glyph"></path>
|
||||
</g>
|
||||
<path id="chalice" d="M-10,0 H-6 A15,15 0,0,1 -10,-6 A15,10 0,0,0 10,-6 A15,15 0,0,1 6,0 H10" class="glyph"></path>
|
||||
<g id="chalice2">
|
||||
<path d="M-10,0 H-6 A15,15 0,0,1 -10,-6 A15,10 0,0,0 10,-6 A15,15 0,0,1 6,0 H10" class="glyph"></path>
|
||||
<path d="M-8.5,-3 A 14,9 0,0,0 8.5,-3" class="glyph"></path>
|
||||
</g>
|
||||
<path id="loop" d="M-10,0 H-8 C6,0 6,-10 0,-10 C-6,-10 -6,0 6,0 H10" class="glyph"></path>
|
||||
<g id="loop2">
|
||||
<path d="M-10,0 H-8 C6,0 6,-10 0,-10 C-6,-10 -6,0 6,0 H10" class="glyph"></path>
|
||||
<circle r="2" cx="0" cy="-6" class="glyph"></circle>
|
||||
</g>
|
||||
<path id="weird_up" d="M -4,-4 A 4,6 0,0,0 0,-8 A 4,6 0,0,0 4,-4" class="vowel"></path>
|
||||
<path id="weird_down" d="M -4,-8 A 4,6 0,0,0 0,-4 A 4,6 0,0,0 4,-8" class="vowel"></path>
|
||||
</defs>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<input type="text" value="shoof~l ihs ~ bihg dohrk" />
|
||||
<h3>Available Sounds:</h3>
|
||||
<p id="sounds_list"></p>
|
||||
<script type="text/javascript">
|
||||
var svg_ns = "http://www.w3.org/2000/svg";
|
||||
var xlink_ns = "http://www.w3.org/1999/xlink";
|
||||
function cos_deg (angle) { return Math.cos(angle * Math.PI / 180); }
|
||||
function sin_deg (angle) { return Math.sin(angle * Math.PI / 180); }
|
||||
function norm (vector) {
|
||||
var norm = Math.sqrt(vector.x*vector.x + vector.y*vector.y);
|
||||
return {x: vector.x / norm, y: vector.y / norm};
|
||||
}
|
||||
function sub (a, b) { return {x: a.x-b.x, y: a.y-b.y}; }
|
||||
function add (a, b) { return {x: a.x+b.x, y: a.y+b.y}; }
|
||||
function mul (a, b) {
|
||||
if ("x" in a) { return {x: a.x*b, y: a.y*b}; }
|
||||
return a*b;
|
||||
}
|
||||
|
||||
// Table is the table of what letters mean what things!
|
||||
// Each entry in the table is a list of columnar cells.
|
||||
// Each column corresponds to a particular radical configuration.
|
||||
// Each cell is a list of strings which will be recognized in parsing.
|
||||
var table = {};
|
||||
// Main consonants!
|
||||
table["mound"] = [ ["m"], ["n"], [], ["ng"]];
|
||||
table["omega"] = [ ["p"], ["t"], [], ["k", "c", "q"]];
|
||||
table["angle"] = [ ["f", "ph"], ["s"], ["sh"], []];
|
||||
table["loop"] = [ ["th"], [], ["ch"], []];
|
||||
table["chalice"] = [["w"], ["r"], ["y"], ["h"]];
|
||||
// Alternate (mostly, voiced) consonants!
|
||||
table["mound2"] = [ [], [], [], []];
|
||||
table["omega2"] = [ ["b"], ["d"], [], ["g"]];
|
||||
table["angle2"] = [ ["v"], ["z"], ["zh"], []];
|
||||
table["loop2"] = [ ["dh"], [], ["j"], []];
|
||||
table["chalice2"] = [[], ["l"], [], []];
|
||||
// Vowels in the eat/ate/at and oh/ow/aw tracks!
|
||||
table["above double"] = [["ee"], ["ay"], ["a"]];
|
||||
table["above single"] = [["ih"], ["eh", "e"], ["ah"]];
|
||||
table["below"] = [["oh", "o"], ["ow", "ou"], ["aw"]];
|
||||
// Vowels on the line!
|
||||
table["on the line double"] = [["uh"], ["oo"]];
|
||||
table["on the line single"] = [["~"], ["u"]];
|
||||
// The weird ones!
|
||||
table["weird up"] = [["i"]];
|
||||
table["weird down"] = [["oy", "oi"]];
|
||||
|
||||
// These lists simply list out which radicals should be shown.
|
||||
// four_rad_options contains the radicals array that should be passed to make glyphs in rows with four columns.
|
||||
// three_rad_options contains the radicals array that will be passed to make glyphs in rows with three columns.
|
||||
// And so on.
|
||||
// These are consumed in make_new_glyph().
|
||||
// Basically, each glyph has a number of locations that radicals are placed.
|
||||
// If a shape is in the third column of a four-column row, then we look at four_rad_options, and see that the
|
||||
// third element is [null, "dot", "dot"]. So that shape will have no radical in the first position, and dots in
|
||||
// both the second and third positions.
|
||||
var four_rad_options = [];
|
||||
four_rad_options.push(["dot", null, null]);
|
||||
four_rad_options.push(["line", null, null]);
|
||||
four_rad_options.push([null, "dot", "dot"]);
|
||||
four_rad_options.push([null, "line", "line"]);
|
||||
var three_rad_options = [];
|
||||
three_rad_options.push(["line", null]);
|
||||
three_rad_options.push([null, null]);
|
||||
three_rad_options.push([null, "line"]);
|
||||
var two_rad_options = [];
|
||||
two_rad_options.push([null, null]);
|
||||
two_rad_options.push(["line", "line"]);
|
||||
var one_rad_options = [];
|
||||
one_rad_options.push([]);
|
||||
var rad_options = [one_rad_options, two_rad_options, three_rad_options, four_rad_options];
|
||||
|
||||
// Invert the table of shapes, and the lists of radical options, into a lookup table.
|
||||
// The keys are phrases recognized as coding a sound, and the values are objects describing the appearance of the glyph that should result.
|
||||
var lookup = {};
|
||||
$.each(table, function(shape_name, row) {
|
||||
var radical_options = rad_options[row.length - 1];
|
||||
$.each(row, function(radical_index, valid_sequences) {
|
||||
var current_radicals = radical_options[radical_index];
|
||||
$.each(valid_sequences, function(i, phrase) {
|
||||
lookup[phrase] = {name: shape_name, radicals: current_radicals};
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
var consonant_shapes = "mound omega angle chalice loop ";
|
||||
consonant_shapes = consonant_shapes + consonant_shapes.replace(/ /gi, "2 ");
|
||||
consonant_shapes = consonant_shapes.split(" ");
|
||||
console.log(consonant_shapes);
|
||||
|
||||
var vowel_shapes = "above double,above single,below,on the line double,on the line single,weird up,weird down".split(",");
|
||||
|
||||
// Defines the positions of the radicals for glyphs. Should perhaps be moved to live in the XML?
|
||||
// Maybe each symbol could be a group, and then have radical shapes identified by their classes,
|
||||
// and then dynamically shown/hidden?
|
||||
var consonant_radical_positions = {
|
||||
"mound": [{x: 0, y: -8}, {x: -3, y: -7}, {x: 3, y: -7}],
|
||||
"omega": [{x: 0, y: -16}, {x: -3, y: -15}, {x: 3, y: -15}],
|
||||
"angle": [{x: 0, y: -12}, {x: -3, y: -10}, {x: 3, y: -10}],
|
||||
"loop": [{x: 0, y: -14}, {x: -3, y: -14}, {x: 3, y: -14}],
|
||||
"chalice": [{x: 0, y: -7}, {x: -3, y: -7}, {x: 3, y: -7}]
|
||||
};
|
||||
// Ensure that all the doubled glyphs have the same radical positions as their singled counterparts.
|
||||
$.each(consonant_shapes, function(i, name) {
|
||||
if (name.slice(0, -1) in consonant_radical_positions) {
|
||||
consonant_radical_positions[name] = consonant_radical_positions[name.slice(0, -1)];
|
||||
}
|
||||
});
|
||||
var radical_backup = 3.5;
|
||||
var radical_length = 3;
|
||||
var radical_length_vowel = 6;
|
||||
var vowel_radius = 4;
|
||||
var inset = 5;
|
||||
var word_radius = [14, 14, 14, 16, 20, 24, 28, 32];
|
||||
var sentence_radius = 80;
|
||||
|
||||
var the_big_word;
|
||||
|
||||
function new_glyph(symbol_name, radicals) {
|
||||
var glyph;
|
||||
if ($.inArray(symbol_name, consonant_shapes) != -1) {
|
||||
glyph = new_consonant(symbol_name, radicals);
|
||||
}
|
||||
if ($.inArray(symbol_name, vowel_shapes) != -1) {
|
||||
glyph = new_vowel(symbol_name, radicals);
|
||||
}
|
||||
glyph.name = symbol_name;
|
||||
glyph.radicals = radicals;
|
||||
return glyph;
|
||||
}
|
||||
function new_vowel(symbol_name, radicals) {
|
||||
var s = {handles: {}, vectors: []};
|
||||
s.handles.circle_in = {x: 0, y: 0};
|
||||
s.handles.circle_out = {x: 0, y: 0};
|
||||
s.handles.radicals = [];
|
||||
if (symbol_name == "weird up" || symbol_name == "weird down") {
|
||||
s.e = ns_elem('use', svg_ns, {'xlink:href': '#' + symbol_name.replace(" ", "_")}, xlink_ns);
|
||||
s.handles.center = {x: 0, y: -6};
|
||||
}
|
||||
else {
|
||||
s.e = ns_elem('g', svg_ns);
|
||||
|
||||
if (symbol_name.indexOf("above") != -1) { s.handles.center = {x: 0, y: -8}; }
|
||||
if (symbol_name.indexOf("below") != -1) { s.handles.center = {x: 0, y: 8}; }
|
||||
if (symbol_name.indexOf("on the line") != -1) { s.handles.center = {x: 0, y: 0}; }
|
||||
|
||||
s.handles.radicals.push({x: 0, y: s.handles.center.y - vowel_radius});
|
||||
s.handles.radicals.push({x: 0, y: s.handles.center.y + vowel_radius});
|
||||
|
||||
var vowel_out = $(ns_elem('circle', svg_ns));
|
||||
vowel_out.attr({r: vowel_radius, cx: s.handles.center.x, cy: s.handles.center.y}).attr('class', 'vowel');
|
||||
$(s.e).append(vowel_out);
|
||||
if (symbol_name.indexOf("double") != -1) {
|
||||
var vowel_in = $(ns_elem('circle', svg_ns));
|
||||
vowel_in.attr({r: vowel_radius/3, cx: s.handles.center.x, cy: s.handles.center.y}).attr('class', 'vowel');
|
||||
$(s.e).append(vowel_in);
|
||||
}
|
||||
|
||||
$.each(radicals, function (index, value) {
|
||||
if (value != "line") { return true; }
|
||||
|
||||
var start = s.handles.radicals[index]; var d = norm(sub(start, s.handles.center));
|
||||
var end = { x: start.x + d.x * radical_length_vowel, y: start.y + d.y * radical_length_vowel};
|
||||
|
||||
var line = ns_elem('path', svg_ns);
|
||||
$(line).attr('d', 'M ' + start.x + ', ' + start.y + ' L ' + end.x + ', ' + end.y);
|
||||
$(line).attr('class', 'radical')
|
||||
$(s.e).append(line);
|
||||
});
|
||||
}
|
||||
|
||||
$.each(s.handles, function(index, value) { if (index != "radicals") { s.vectors.push(value); } });
|
||||
|
||||
$.each(s.handles.radicals, function(index, value) { s.vectors.push(value); });
|
||||
|
||||
return s;
|
||||
}
|
||||
function new_consonant(symbol_name, radicals) {
|
||||
var s = {e: ns_elem('g', svg_ns), handles: {}, vectors: []};
|
||||
|
||||
s.handles.center = {x: 0, y: 0};
|
||||
s.handles.circle_in = {x: -10, y: 0};
|
||||
s.handles.circle_out = {x: 10, y: 0};
|
||||
s.handles.radicals = {};
|
||||
|
||||
$.extend(true, s.handles.radicals, consonant_radical_positions[symbol_name]);
|
||||
|
||||
$(s.e).append(ns_elem('use', svg_ns, {'xlink:href': '#' + symbol_name}, xlink_ns));
|
||||
|
||||
$.each(radicals, function(index, value) {
|
||||
var radical_position = s.handles.radicals[index];
|
||||
if (value == "dot") {
|
||||
var circle = $(ns_elem('circle', svg_ns));
|
||||
circle.attr({r: 1, cx: radical_position.x, cy: radical_position.y});
|
||||
circle.attr('class', 'radical');
|
||||
$(s.e).append(circle);
|
||||
}
|
||||
if (value == "line") {
|
||||
var d = norm(sub(radical_position, s.handles.center));
|
||||
var start = sub(radical_position, mul(d, radical_backup));
|
||||
var end = add(radical_position, mul(d, radical_length));
|
||||
|
||||
var line = $(ns_elem('path', svg_ns));
|
||||
line.attr('d', 'M' + start.x + ',' + start.y + ' L' + end.x + ',' + end.y);
|
||||
line.attr('class', 'radical');
|
||||
$(s.e).append(line);
|
||||
}
|
||||
});
|
||||
|
||||
$.each(s.handles, function(index, value) { if (index != "radicals") { s.vectors.push(value); } });
|
||||
$.each(s.handles.radicals, function(i, vector) { s.vectors.push(vector); });
|
||||
|
||||
return s;
|
||||
}
|
||||
function transform_for_circle(radius, angle, glyph) {
|
||||
var group = ns_elem('g', svg_ns);
|
||||
$(group).attr('transform', 'rotate(' + (-1*angle) + ') translate(0 ' + radius + ')');
|
||||
$(group).append(glyph.e);
|
||||
|
||||
$.each(glyph.vectors, function (name, value) {
|
||||
// Translate the vector.
|
||||
var translated = {};
|
||||
translated.x = value.x;
|
||||
translated.y = value.y + radius;
|
||||
|
||||
// Rotate the vector.
|
||||
var rotated = {};
|
||||
rotated.x = translated.x * cos_deg(-angle) - translated.y * sin_deg(-angle);
|
||||
rotated.y = translated.x * sin_deg(-angle) + translated.y * cos_deg(-angle);
|
||||
|
||||
// Change the vector in-place.
|
||||
value.x = rotated.x;
|
||||
value.y = rotated.y;
|
||||
});
|
||||
|
||||
glyph.e = group;
|
||||
return glyph;
|
||||
}
|
||||
function enclose(radius, list_of_glyphs) {
|
||||
var length = list_of_glyphs.length;
|
||||
angle_step = 360 / length;
|
||||
|
||||
var enclosure = {e: ns_elem('g', svg_ns), children: [], handles: {}, vectors: [] };
|
||||
|
||||
$.each(list_of_glyphs, function (index, glyph) {
|
||||
var the_glyph = transform_for_circle(radius, angle_step*index, glyph);
|
||||
|
||||
enclosure.children.push(the_glyph);
|
||||
$(enclosure.e).append(the_glyph.e);
|
||||
$.each(the_glyph.vectors, function (i, vector) { enclosure.vectors.push(vector); });
|
||||
});
|
||||
|
||||
$.each(enclosure.children, function (index) {
|
||||
var current = enclosure.children[index];
|
||||
var next = enclosure.children[(index+1) % length];
|
||||
|
||||
var npd = "M " + current.handles.circle_out.x + " " + current.handles.circle_out.y;
|
||||
var arc = "A" + radius + "," + radius + " 0,0,0 ";
|
||||
if (length != 1) {
|
||||
npd = npd + arc + next.handles.circle_in.x + "," + next.handles.circle_in.y + " ";
|
||||
}
|
||||
else {
|
||||
npd = npd + arc + "0," + (next.handles.circle_in.y - radius - radius) + " ";
|
||||
npd = npd + arc + next.handles.circle_in.x + "," + next.handles.circle_in.y + " ";
|
||||
}
|
||||
|
||||
var arc = $(ns_elem('path', svg_ns)).attr('d', npd).attr('class', 'enclosure');
|
||||
$(enclosure.e).append(arc);
|
||||
});
|
||||
|
||||
$(enclosure.e).attr('transform', 'translate(0 ' + (-radius - inset) + ')');
|
||||
$.each(enclosure.vectors, function (i, vector) {
|
||||
vector.y = vector.y - radius - inset;
|
||||
});
|
||||
|
||||
enclosure.handles.circle_in = {x: 0, y: 0};
|
||||
enclosure.handles.circle_out = {x: 0, y: 0};
|
||||
|
||||
enclosure.vectors.push(enclosure.handles.circle_in);
|
||||
enclosure.vectors.push(enclosure.handles.circle_out);
|
||||
|
||||
return enclosure;
|
||||
}
|
||||
function letters_from_string(str) {
|
||||
str = str.toLowerCase();
|
||||
str = str.replace(/x/g, "ks");
|
||||
str = str.replace(/qu/g, "kw");
|
||||
str = str.replace(/q/g, "k");
|
||||
|
||||
var tokens = [];
|
||||
while (str.length != 0) {
|
||||
var results = consume_token(str);
|
||||
str = results.str;
|
||||
if (results.success) {
|
||||
tokens.push(results.token);
|
||||
}
|
||||
}
|
||||
return tokens;
|
||||
}
|
||||
function consume_token(str) {
|
||||
if (str[0] == " ") {
|
||||
return consume_token(str.slice(1));
|
||||
}
|
||||
var out = {success: false};
|
||||
var the_tip = str.slice(0,2);
|
||||
if (the_tip in lookup) {
|
||||
out.success = true;
|
||||
out.str = str.slice(2);
|
||||
out.token = lookup[the_tip];
|
||||
console.log(out);
|
||||
console.log(the_tip, out.token);
|
||||
}
|
||||
else if (the_tip[0] in lookup) {
|
||||
out.success = true;
|
||||
out.str = str.slice(1);
|
||||
out.token = lookup[the_tip[0]];
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
function interpret_input(str) {
|
||||
var words = [];
|
||||
$.each(str.split(" "), function (i, word) {
|
||||
var tk = letters_from_string(word);
|
||||
var glyphs = [];
|
||||
$.each(tk, function (i, letter_glyph) {
|
||||
glyphs.push(new_glyph(letter_glyph.name, letter_glyph.radicals));
|
||||
});
|
||||
var r = word_radius[word_radius.length-1];
|
||||
if (glyphs.length < word_radius.length) {
|
||||
r = word_radius[glyphs.length];
|
||||
}
|
||||
words.push(enclose(r, glyphs));
|
||||
});
|
||||
var out = enclose(sentence_radius, words);
|
||||
out = transform_for_circle(sentence_radius+inset, 0, out);
|
||||
return out;
|
||||
}
|
||||
$(document).ready(function () {
|
||||
function change_word(str) {
|
||||
if (the_big_word && the_big_word.e) { $(the_big_word.e).remove(); }
|
||||
the_big_word = interpret_input(str);
|
||||
$('svg').append(the_big_word.e);
|
||||
}
|
||||
change_word($('input').val());
|
||||
$('input').change(function() { change_word($(this).val()); });
|
||||
$('input').keyup(function() { change_word($(this).val()); });
|
||||
$('svg').append(the_big_word.e);
|
||||
|
||||
$('#sounds_list').text(Object.keys(lookup).join(", "));
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function ns_elem () { if (typeof arguments[0] === "undefined") { console.log('There was an error in the element assist function. Called with no valid tag name!');} var elem; if (typeof arguments[1] === "string") { elem = document.createElementNS(arguments[1], arguments[0]); for (var i=2; i<arguments.length; i+=2) { if (typeof arguments[i+1] === "undefined") { for (var key in arguments[i]) { elem.setAttribute(key, arguments[i][key]); } break; } else { for (var key in arguments[i]) { elem.setAttributeNS(arguments[i+1], key, arguments[i][key]); } } } } else { elem = document.createElement(arguments[0]); for (var i=1; i<arguments.length; i+=2) { if (typeof arguments[i+1] === "undefined") { for (var key in arguments[i]) { elem.setAttribute(key, arguments[i][key]); } break; } else { for (var key in arguments[i]) { elem.setAttributeNS(arguments[i+1], key, arguments[i][key]); } } } } return elem;}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
162
articles/circle_script/circle_setter.html
Normal file
162
articles/circle_script/circle_setter.html
Normal file
@ -0,0 +1,162 @@
|
||||
<html>
|
||||
<head>
|
||||
<script src="../../static/jquery.min.js" type="text/javascript"></script>
|
||||
<link href="../../static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
|
||||
<link href="../../static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css">
|
||||
<link href="../../static/shoofle.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<style type="text/css">
|
||||
svg circle, svg path { fill: none; }
|
||||
svg .glyph { stroke: #600; fill: none; }
|
||||
svg .vowel { stroke: #044; }
|
||||
svg .radical { stroke: #004; }
|
||||
svg circle.radical { fill: black; }
|
||||
svg circle { stroke: #044; }
|
||||
.highlit { fill: red; }
|
||||
.veryhighlit { fill: green; }
|
||||
.clicked { fill: darkgreen; }
|
||||
|
||||
svg .enclosure { stroke: #000; }
|
||||
</style>
|
||||
<div class="row-fluid">
|
||||
<div class="span6 offset3">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="400px" preserveAspectRatio="xMidYMax" id="arena" viewBox="-105 -105 210 210">
|
||||
<defs>
|
||||
<path id="mound" d="M-10,0 H-8 A9,8 0,0,1 8,0 H10" class="glyph"></path>
|
||||
<g id="mound2">
|
||||
<path d="M-10,0 H-8 A9,8 0 0,1 8,0 H10" class="glyph"></path>
|
||||
<path d="M-6,0 A7,6 0,0,1 6,0" class="glyph"></path>
|
||||
</g>
|
||||
<path id="omega" d="M-10,0 H-4 A7,7 0,1,1 4,0 H10" class="glyph"></path>
|
||||
<g id="omega2">
|
||||
<path d="M-10,0 H-4 A7,7 0,1,1 4,0 H10" class="glyph"></path>
|
||||
<path d="M-1,-1 A4.5,4.5 0,1,1 1,-1" class="glyph"></path>
|
||||
</g>
|
||||
<path id="angle" d="M-10,0 H-6 L0,-8 L6,0 H10" class="glyph"></path>
|
||||
<g id="angle2">
|
||||
<path d="M-10,0 H-6 L0,-8 L6,0 H10" class="glyph"></path>
|
||||
<path d="M-4,0 L0,-5.3333 L4,0" class="glyph"></path>
|
||||
</g>
|
||||
<path id="chalice" d="M-10,0 H-6 A15,15 0,0,1 -10,-6 A15,10 0,0,0 10,-6 A15,15 0,0,1 6,0 H10" class="glyph"></path>
|
||||
<g id="chalice2">
|
||||
<path d="M-10,0 H-6 A15,15 0,0,1 -10,-6 A15,10 0,0,0 10,-6 A15,15 0,0,1 6,0 H10" class="glyph"></path>
|
||||
<path d="M-8.5,-3 A 14,9 0,0,0 8.5,-3" class="glyph"></path>
|
||||
</g>
|
||||
<path id="loop" d="M-10,0 H-8 C6,0 6,-10 0,-10 C-6,-10 -6,0 6,0 H10" class="glyph"></path>
|
||||
<g id="loop2">
|
||||
<path d="M-10,0 H-8 C6,0 6,-10 0,-10 C-6,-10 -6,0 6,0 H10" class="glyph"></path>
|
||||
<circle r="2" cx="0" cy="-6" class="glyph"></circle>
|
||||
</g>
|
||||
<path id="weird_up" d="M -4,-4 A 4,6 0,0,0 0,-8 A 4,6 0,0,0 4,-4" class="vowel"></path>
|
||||
<path id="weird_down" d="M -4,-8 A 4,6 0,0,0 0,-4 A 4,6 0,0,0 4,-8" class="vowel"></path>
|
||||
</defs>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<input type="text" value="shoof~l ihs ~ bihg dohrk" />
|
||||
<h3>Available Sounds:</h3>
|
||||
<p id="sounds_list"></p>
|
||||
<script type="text/javascript">
|
||||
function ns_elem () { if (typeof arguments[0] === "undefined") { console.log('There was an error in the element assist function. Called with no valid tag name!');} var elem; if (typeof arguments[1] === "string") { elem = document.createElementNS(arguments[1], arguments[0]); for (var i=2; i<arguments.length; i+=2) { if (typeof arguments[i+1] === "undefined") { for (var key in arguments[i]) { elem.setAttribute(key, arguments[i][key]); } break; } else { for (var key in arguments[i]) { elem.setAttributeNS(arguments[i+1], key, arguments[i][key]); } } } } else { elem = document.createElement(arguments[0]); for (var i=1; i<arguments.length; i+=2) { if (typeof arguments[i+1] === "undefined") { for (var key in arguments[i]) { elem.setAttribute(key, arguments[i][key]); } break; } else { for (var key in arguments[i]) { elem.setAttributeNS(arguments[i+1], key, arguments[i][key]); } } } } return elem;}
|
||||
|
||||
function svg_from_dom(point, svg) {
|
||||
const pt = svg.createSVGPoint();
|
||||
pt.x = point.x;
|
||||
pt.y = point.y;
|
||||
|
||||
return pt.matrixTransform(svg.getScreenCTM().inverse());
|
||||
}
|
||||
function point_from_circle(circle) {
|
||||
return {x:parseFloat(circle.attr('cx')), y:parseFloat(circle.attr('cy'))};
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
var svg_ns = "http://www.w3.org/2000/svg";
|
||||
var xlink_ns = "http://www.w3.org/1999/xlink";
|
||||
var svg;
|
||||
|
||||
var current_selection = null;
|
||||
$(document).ready(function() {
|
||||
svg = $('svg')[0];
|
||||
});
|
||||
|
||||
function norm (vector) {
|
||||
var norm = Math.sqrt(vector.x*vector.x + vector.y*vector.y);
|
||||
return {x: vector.x / norm, y: vector.y / norm};
|
||||
}
|
||||
function len (vector) {
|
||||
return Math.sqrt(vector.x*vector.x + vector.y*vector.y);
|
||||
}
|
||||
function sub (a, b) { return {x: a.x-b.x, y: a.y-b.y}; }
|
||||
function add (a, b) { return {x: a.x+b.x, y: a.y+b.y}; }
|
||||
function mul (a, b) {
|
||||
if ("x" in a) { return {x: a.x*b, y: a.y*b}; }
|
||||
return a*b;
|
||||
}
|
||||
|
||||
const selection_thresh = 10;
|
||||
const major_radius = 60;
|
||||
var angles = [0, 1.5, 4];
|
||||
var points = $.map(angles, function(elem, index) {
|
||||
return {x:major_radius * Math.cos(elem), y:major_radius * Math.sin(elem)};
|
||||
});
|
||||
console.log('points!', points);
|
||||
const circles = $.map(points, function(point, index) {
|
||||
return $(ns_elem('circle', svg_ns)).attr('cx', point.x).attr('cy', point.y).attr('r', 10);
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
$.each(circles, function(idx, circ) {
|
||||
$(svg).append(circ);
|
||||
})
|
||||
});
|
||||
|
||||
function highlight_nearest(mouse) {
|
||||
var testmag = 900000000;
|
||||
var closest_idx = 0;
|
||||
|
||||
$.each(circles, function(idx, circ) {
|
||||
const mag = len(sub(point_from_circle(circ), mouse));
|
||||
if (mag < testmag) {
|
||||
testmag = mag;
|
||||
closest_idx = idx;
|
||||
}
|
||||
});
|
||||
|
||||
$.each(circles, function(idx, circle) {
|
||||
$(circle).removeClass('highlit').removeClass('veryhighlit');
|
||||
});
|
||||
|
||||
current_selection = null;
|
||||
|
||||
if (testmag < selection_thresh) {
|
||||
$(circles[closest_idx]).attr('class', 'veryhighlit');
|
||||
current_selection = circles[closest_idx];
|
||||
} else {
|
||||
$(circles[closest_idx]).attr('class', 'highlit');
|
||||
}
|
||||
}
|
||||
|
||||
$(document).mousemove(function(event) {
|
||||
const mouse_position = {x:event.clientX, y:event.clientY};
|
||||
var s_position = svg_from_dom(mouse_position, svg);
|
||||
// get the position inside the svg tag for the mouse
|
||||
|
||||
highlight_nearest(s_position);
|
||||
});
|
||||
|
||||
$(document).on('mousedown', function(event) {
|
||||
if (current_selection) {
|
||||
$(current_selection).attr('class', 'clicked');
|
||||
}
|
||||
});
|
||||
$(document).on('dragstop', function(event) {
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -4,9 +4,9 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Projects, by Shoofle</title>
|
||||
<link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
|
||||
<link href="/static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css">
|
||||
<link href="/static/shoofle.css" rel="stylesheet" type="text/css">
|
||||
<link href="./static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
|
||||
<link href="./static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css">
|
||||
<link href="./static/shoofle.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="row-fluid">
|
||||
|
Loading…
Reference in New Issue
Block a user