Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 42 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ html {
state.selectedWord == word ? undefined : word)
"
>{{
word.plaintext == "" ? "[" + word.toPhonetic() + "]" : word
word.plaintext == "" ? "/" + word.toPhonetic() + "/" : word
}}</span
>
{{ " " }}
Expand Down
92 changes: 51 additions & 41 deletions src/glyphs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class Word {
toPhonetic = () =>
this.glyphs
.map(g => g.toPhonetic())
.join(" ");
.join('');

toString() {
if (this.plaintext.trim() != "") return this.plaintext;
Expand Down Expand Up @@ -164,55 +164,65 @@ const lines = [

const phonemes = {
out: [
{ mask: 0b0001_0000_0001_0011, text: "a" },
{ mask: 0b0001_0000_0001_0001, text: "o" },
{ mask: 0b0000_1100_0000_0000, text: "i" },
{ mask: 0b0001_1100_0001_0000, text: "e" },
{ mask: 0b0001_0100_0001_0000, text: "u" },
{ mask: 0b0000_0000_0000_0011, text: "ae" },

{ mask: 0b0001_1100_0001_0001, text: "ee" },
{ mask: 0b0001_0100_0001_0011, text: "uu" },
{ mask: 0b0001_1100_0001_0010, text: "r" },
{ mask: 0b0001_1000_0001_0011, text: "or" },
{ mask: 0b0000_1100_0000_0011, text: "ar" },
{ mask: 0b0001_1000_0001_0001, text: "er" },

{ mask: 0b0000_0000_0000_0001, text: "ei" },
{ mask: 0b0000_0000_0000_0010, text: "ai" },
{ mask: 0b0000_0100_0000_0000, text: "-?-" },
{ mask: 0b0000_1000_0000_0000, text: "ou" },
{ mask: 0b0001_1100_0001_0011, text: "oh" },
{ mask: 0b0001_1000_0001_0000, text: "eir" },
{ mask: 0b0000_0000_0000_0011, text: "ʌ" },
{ mask: 0b0001_0000_0001_0001, text: "ɔ" },
{ mask: 0b0001_0100_0001_0000, text: "ʊ" },
{ mask: 0b0001_0100_0001_0011, text: "u" },

{ mask: 0b0001_0000_0001_0011, text: "æ" },
{ mask: 0b0000_1100_0000_0000, text: "ɪ" },
{ mask: 0b0001_1100_0001_0000, text: "ɛ" },
{ mask: 0b0001_1100_0001_0001, text: "i" },

{ mask: 0b0000_1100_0000_0011, text: "ɑɹ" },
{ mask: 0b0001_1000_0001_0011, text: "ɔɹ" },
{ mask: 0b0001_1100_0001_0010, text: "əɹ" },
{ mask: 0b0001_1000_0001_0000, text: "ɛɹ" },
{ mask: 0b0001_1000_0001_0001, text: "ɪɹ" },

{ mask: 0b0000_0000_0000_0010, text: "aɪ" },
{ mask: 0b0000_0100_0000_0000, text: "ɔɪ" },
{ mask: 0b0000_0000_0000_0001, text: "eɪ" },

{ mask: 0b0000_1000_0000_0000, text: "aʊ" },
{ mask: 0b0001_1100_0001_0011, text: "oʊ" },
],
in: [
{ mask: 0b0000_0011_0000_0000, text: "m" },
{ mask: 0b0000_0011_0000_0100, text: "n" },
{ mask: 0b0010_0011_1010_1100, text: "n" },
{ mask: 0b0000_0011_0000_0000, text: "m" },

{ mask: 0b0010_0011_1010_1100, text: "ŋ" },

{ mask: 0b0010_0010_1010_0000, text: "h" },
{ mask: 0b0010_0000_1010_1000, text: "ɹ" },
{ mask: 0b0010_0000_1010_0100, text: "j" },
{ mask: 0b0000_0000_0000_1100, text: "w" },

{ mask: 0b0010_0000_1010_0000, text: "l" },

{ mask: 0b0010_0000_1000_1100, text: "t" },
{ mask: 0b0000_0011_1010_0000, text: "d" },

{ mask: 0b0010_0000_1000_1000, text: "p" },
{ mask: 0b0000_0010_1010_0000, text: "b" },
{ mask: 0b0010_0000_1000_1100, text: "t" },

{ mask: 0b0000_0011_1010_0000, text: "d" },
{ mask: 0b0000_0010_1010_1000, text: "k" },
{ mask: 0b0010_0010_1000_1000, text: "g" },
{ mask: 0b0000_0001_1010_0000, text: "j" },
{ mask: 0b0010_0000_1000_0100, text: "ch" },
{ mask: 0b0010_0001_1000_1000, text: "f" },

{ mask: 0b0010_0001_1000_1000, text: "f" },
{ mask: 0b0000_0010_1010_0100, text: "v" },
{ mask: 0b0010_0000_1010_1100, text: "?th?" },
{ mask: 0b0010_0011_1010_0000, text: "th" },
{ mask: 0b0010_0001_1010_1000, text: "ss" },
{ mask: 0b0010_0010_1010_0100, text: "s." },
{ mask: 0b0010_0011_1000_1100, text: "sh" },

{ mask: 0b0000_0011_1010_1100, text: "zh" },
{ mask: 0b0010_0010_1010_0000, text: "h" },
{ mask: 0b0010_0000_1010_1000, text: "r" },
{ mask: 0b0010_0000_1010_0100, text: "y" },
{ mask: 0b0000_0000_0000_1100, text: "w" },
{ mask: 0b0010_0000_1010_0000, text: "l" },
{ mask: 0b0010_0001_1010_1000, text: "s" },
{ mask: 0b0010_0010_1010_0100, text: "z" },

{ mask: 0b0010_0011_1000_1100, text: "ʃ" },
{ mask: 0b0000_0011_1010_1100, text: "ʒ" },

{ mask: 0b0010_0011_1010_0000, text: "ð" },
{ mask: 0b0010_0000_1010_1100, text: "θ" },

{ mask: 0b0010_0000_1000_0100, text: "t͡ʃ" },
{ mask: 0b0000_0001_1010_0000, text: "d͡ʒ" },
],
};

Expand Down Expand Up @@ -330,8 +340,8 @@ export class Glyph {
: outCode == 0
? inner
: reverse
? `${outer}_${inner}`
: `${inner}_${outer}`;
? outer + inner
: inner + outer;
}

toString() {
Expand Down