-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9230c1c
commit 2503895
Showing
8 changed files
with
137 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pbɓtdɗʈɖcɟʄȶȡkɡɠqɢʛʡʔmɱnɳɲȵŋɴʙⱱrɾɽʀɸβfvθðszʃʒʂʐçʝɕʑxɣχʁħʕʜʢhɦʍwɥʋɹɻjɰɬɮꞎlɫɭʎȴʟɺɧʘǀǃǂǁʦʣʧʤʨʥꭧꭦ | ||
iyɨʉɯuɪʏʊeøɘɵɤoəɛœɜɞʌɔɐæɶaɑɒɚɝ | ||
˩˨˧˦˥↓↑↗↘ | ||
◌̊◌̈◌̽◌̃◌͊◌͋◌̚◌ᵊ◌͡◌◌ː◌ˑ◌̆◌ʰ◌˭◌ʼ◌ⁿ◌ˡ◌ʷ◌ʲ◌ˤ◌ˠ◌ˀ◌̥◌̬◌̤◌̰◌͓◌̨◌̹◌̜◌̮◌̼◌̪◌̺◌̻◌̟◌̠◌̩◌̯◌͜◌◌̙◌̘◌̞◌̝◌̴◌˞◌̋◌́◌̄◌̀◌̏◌᷈◌᷅◌᷄◌̂◌̌ | ||
ˈˌ/[]∅|‖.‿⟨⟩ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extends Button | ||
class_name IPAButton | ||
|
||
signal _ipa_key_pressed | ||
|
||
func _pressed(): | ||
_ipa_key_pressed.emit(text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
extends Control | ||
|
||
const IPA_CHARACTERS_FILE_LOCATION = "res://ipa_characters.txt" | ||
|
||
func _ready(): | ||
var load_file = FileAccess.open(IPA_CHARACTERS_FILE_LOCATION, FileAccess.READ) | ||
var lines = load_file.get_as_text() | ||
|
||
var diacritic = false | ||
|
||
for char in lines: | ||
# Ignore whitespace chars | ||
if char.strip_edges(true, true).is_empty(): | ||
continue | ||
|
||
if char == "◌": | ||
diacritic = true | ||
continue | ||
|
||
if diacritic: | ||
diacritic = false | ||
if char == "͡" or char == "͜": | ||
create_button("◌" + char + "◌") | ||
continue | ||
create_button("◌" + char) | ||
else: | ||
create_button(char) | ||
|
||
|
||
func create_button(c: String): | ||
var b = IPAButton.new() | ||
b.text = c | ||
b._ipa_key_pressed.connect(_button_pressed) | ||
$Keyboard.add_child(b) | ||
|
||
func _button_pressed(c: String): | ||
$TextEdit.text += c.replace("◌","") |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="font_data_dynamic" | ||
type="FontFile" | ||
uid="uid://bcp48nqyj4gjt" | ||
path="res://.godot/imported/NotoSans-Regular.ttf-a831e082a52645a3e688e40ab8539031.fontdata" | ||
|
||
[deps] | ||
|
||
source_file="res://textures/NotoSans-Regular.ttf" | ||
dest_files=["res://.godot/imported/NotoSans-Regular.ttf-a831e082a52645a3e688e40ab8539031.fontdata"] | ||
|
||
[params] | ||
|
||
Rendering=null | ||
antialiasing=1 | ||
generate_mipmaps=false | ||
disable_embedded_bitmaps=true | ||
multichannel_signed_distance_field=false | ||
msdf_pixel_range=8 | ||
msdf_size=48 | ||
allow_system_fallback=true | ||
force_autohinter=false | ||
hinting=1 | ||
subpixel_positioning=1 | ||
oversampling=0.0 | ||
Fallbacks=null | ||
fallbacks=[] | ||
Compress=null | ||
compress=true | ||
preload=[] | ||
language_support={} | ||
script_support={} | ||
opentype_features={} |