|
One of the types of objects in Praat. Represents an ordered list of strings.
The difficult way is to create a Strings object from a generic Praat text file:
"ooTextFile"
"Strings"
5 ! number of strings
"Hello"
"Goodbye"
"Auf wiedersehen"
"Tsch\u""ss"
"Arrivederci"
In this example, we see that a double quote within a string should be written twice; the fourth string will therefore be read as Tsch\u"ss, and will be shown in info messages or in graphical text as Tschüss (see special symbols). This file can be read simply with the generic Read from file... command from the Open menu.
An easier way is to use the special command Read Strings from raw text file.... The file can then simply look like this:
Hello
Goodbye
Auf wiedersehen
Tsch\u"ss
Arrivederci
In this example, all the strings are in the generic system-independent ASCII format that is used everywhere in Praat (messages, graphical text) for special symbols. You could also have supplied the strings in a native format, which is ISO-Latin1 encoding on Unix and Windows computers, or Mac encoding on Macintosh computers. The file would then have simply looked like:
Hello
Goodbye
Auf wiedersehen
Tschüss
Arrivederci
To convert this into the generic system-independent ASCII format, use the Genericize command.
You can also create a Strings object from a directory listing or from some other objects:
© ppgb, November 10, 2004