-
-
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.
Merge pull request #5 from jogrimst/master
#1 Match sound with first sound in words
- Loading branch information
Showing
28 changed files
with
173 additions
and
41 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
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
25 changes: 25 additions & 0 deletions
25
app/src/main/java/org/literacyapp/soundcards/util/IpaToAndroidResourceConverter.java
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,25 @@ | ||
package org.literacyapp.soundcards.util; | ||
|
||
/** | ||
* Helper class for converting IPA values into a format allowed in an Android file name: [a-z], [0-9], [_] | ||
*/ | ||
public class IpaToAndroidResourceConverter { | ||
|
||
public static String getAndroidResourceName(String ipaValue) { | ||
String resourceName = ipaValue; | ||
|
||
// The number 2 indicates that the X-SAMPA value is upper-case (e.g. 'A' instead of 'a') | ||
if ("ɑ".equals(ipaValue)) { | ||
// X-SAMPA: '}' | ||
resourceName = "ae"; | ||
} else if ("ɑ".equals(ipaValue)) { | ||
// X-SAMPA: 'A' | ||
resourceName = "a2"; | ||
} else if ("ɛ".equals(ipaValue)) { | ||
// X-SAMPA: 'E' | ||
resourceName = "e2"; | ||
} | ||
|
||
return resourceName; | ||
} | ||
} |
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
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,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:duration="500" | ||
android:interpolator="@android:interpolator/overshoot" | ||
android:propertyName="pathData" | ||
android:repeatCount="1" | ||
android:repeatMode="reverse" | ||
android:valueFrom="@string/u1f603_mouth_neutral" | ||
android:valueTo="@string/u1f603_mouth_i" | ||
android:valueType="pathType" /> |
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,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:duration="500" | ||
android:interpolator="@android:interpolator/overshoot" | ||
android:propertyName="pathData" | ||
android:repeatCount="1" | ||
android:repeatMode="reverse" | ||
android:valueFrom="@string/u1f603_mouth_neutral" | ||
android:valueTo="@string/u1f603_mouth_t" | ||
android:valueType="pathType" /> |
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,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:duration="500" | ||
android:interpolator="@android:interpolator/overshoot" | ||
android:propertyName="pathData" | ||
android:repeatCount="1" | ||
android:repeatMode="reverse" | ||
android:valueFrom="@string/u1f603_mouth_neutral" | ||
android:valueTo="@string/u1f603_mouth_w" | ||
android:valueType="pathType" /> |
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
14 changes: 14 additions & 0 deletions
14
app/src/main/res/drawable/animated_emoji_u1f603_mouth_ae.xml
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,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:drawable="@drawable/emoji_u1f603"> | ||
|
||
<target | ||
android:name="left_eye" | ||
android:animation="@animator/u1f603_left_eye_laughing" /> | ||
<target | ||
android:name="right_eye" | ||
android:animation="@animator/u1f603_right_eye_laughing" /> | ||
<target | ||
android:name="mouth" | ||
android:animation="@animator/u1f603_mouth_ae" /> | ||
</animated-vector> |
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
14 changes: 14 additions & 0 deletions
14
app/src/main/res/drawable/animated_emoji_u1f603_mouth_e2.xml
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,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:drawable="@drawable/emoji_u1f603"> | ||
|
||
<target | ||
android:name="left_eye" | ||
android:animation="@animator/u1f603_left_eye_laughing" /> | ||
<target | ||
android:name="right_eye" | ||
android:animation="@animator/u1f603_right_eye_laughing" /> | ||
<target | ||
android:name="mouth" | ||
android:animation="@animator/u1f603_mouth_e2" /> | ||
</animated-vector> |
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
14 changes: 14 additions & 0 deletions
14
app/src/main/res/drawable/animated_emoji_u1f603_mouth_w.xml
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,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:drawable="@drawable/emoji_u1f603"> | ||
|
||
<target | ||
android:name="left_eye" | ||
android:animation="@animator/u1f603_left_eye_laughing" /> | ||
<target | ||
android:name="right_eye" | ||
android:animation="@animator/u1f603_right_eye_laughing" /> | ||
<target | ||
android:name="mouth" | ||
android:animation="@animator/u1f603_mouth_w" /> | ||
</animated-vector> |
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
Binary file added
BIN
+523 KB
app/src/main/res/raw-sw/which_of_these_words_starts_with_the_sound.wav
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<resources> | ||
<string name="u1f603_mouth_u">M44.469,82.373 C43.776,83.08 43.642,84.322 53.856,85.23 C45.492,92.214 54.273,96.664 65.027,96.664 C76.661,96.664 73.291,91.673 74.42,85.228 C84.563,84.408 84.383,83.45 83.482,82.708 C80.996,80.663 75.871,83.14 65.408,83.14 C54.542,83.141 47.27,79.518 44.469,82.373 z</string> | ||
<string name="app_name">Kadi ya sauti</string> | ||
|
||
<string name="which_word_begins_with_this_sound">Ni neno lipi linaanza kwa sauti hii?</string> | ||
</resources> |
Oops, something went wrong.