Compare commits
3 Commits
175efbe96d
...
d372ebe189
Author | SHA1 | Date |
---|---|---|
Alex Kotov | d372ebe189 | |
Alex Kotov | 5d9609e113 | |
Alex Kotov | b317fb2443 |
|
@ -29,6 +29,7 @@ fun StringToSoundSequence(s : String) : List<SoundTypes> {
|
|||
|
||||
val first = when(s[0]) {
|
||||
' ' -> listOf(SoundTypes.WORD_SPACE)
|
||||
// Letters
|
||||
'A' -> listOf(
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DAH,
|
||||
|
@ -197,6 +198,7 @@ fun StringToSoundSequence(s : String) : List<SoundTypes> {
|
|||
SoundTypes.DAH,
|
||||
SoundTypes.LETTER_SPACE
|
||||
)
|
||||
// Digits
|
||||
'1' -> listOf(
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DAH,
|
||||
|
@ -269,6 +271,7 @@ fun StringToSoundSequence(s : String) : List<SoundTypes> {
|
|||
SoundTypes.DIT,
|
||||
SoundTypes.LETTER_SPACE
|
||||
)
|
||||
// Punctuation
|
||||
'.' -> listOf(
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DAH,
|
||||
|
@ -389,6 +392,52 @@ fun StringToSoundSequence(s : String) : List<SoundTypes> {
|
|||
SoundTypes.DIT,
|
||||
SoundTypes.LETTER_SPACE
|
||||
)
|
||||
// Nonstandard punctuation
|
||||
'!' -> listOf(
|
||||
SoundTypes.DAH,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DAH,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DAH,
|
||||
SoundTypes.DAH,
|
||||
SoundTypes.LETTER_SPACE
|
||||
)
|
||||
'&' -> listOf(
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DAH,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.LETTER_SPACE
|
||||
)
|
||||
';' -> listOf(
|
||||
SoundTypes.DAH,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DAH,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DAH,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.LETTER_SPACE
|
||||
)
|
||||
'_' -> listOf(
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DAH,
|
||||
SoundTypes.DAH,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DAH,
|
||||
SoundTypes.LETTER_SPACE
|
||||
)
|
||||
'$' -> listOf(
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DAH,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DIT,
|
||||
SoundTypes.DAH,
|
||||
SoundTypes.LETTER_SPACE
|
||||
)
|
||||
else -> { listOf(SoundTypes.LETTER_SPACE) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue