Original Author Paul Laughton, 2011
Page 137
De Re BASIC!
If the beginning of the source string matches the test string, the first element of the result array will be
an empty string. This differs from the WORD$() function, which strips leading and trailing occurrences of
the test string from the source string before splitting.
Two adjacent occurrences of the test expression in the source expression result in an empty element
somewhere in the result array. The Split command discards these empty strings if they occur at the end
of the result array. To keep these trailing empty strings, use the Split.all command.
Example:
string$ = "a:b:c:d"
delimiter$ = ":"
SPLIT result$[], string$, delimiter$
ARRAY.LENGTH length, result$[]
FOR i = 1 TO length
PRINT result$[i] + " ";
NEXT i
PRINT ""
Prints:
a b c d
Note: The <test_sexp> is actually a Regular Expression. If you are not getting the results that you expect
from the <test_sexp> then you should examine the rules for Regular Expressions at:
Speech Conversion
Text To Speech
Your program can synthesize speech from text, either for immediate playback with the TTS.speak
command or to create a sound file with TTS.speak.toFile.
Your device may come with the text-to-speech engine already enabled and configured, or you may need
to set it up yourself in the Android Settings application. The details vary between different devices and
versions of Android. Typically, the menu navigation looks like one of these:
Settings
Voice input & output
Text-to-speech settings
Settings
Language & input
Text-to-speech output
Unless you set an output language in the text-to-speech settings, the speech generated will be spoken in
the current default language of the device. The menu path for setting the default language usually looks
like one of these:
Settings
Language and keyboard
Select language
Settings
Language & input
Language