| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Strings</title> |
| 3 |
<style> |
| 4 |
td { padding-left: 5pt; padding-right: 5pt; } |
| 5 |
th { padding-left: 5pt; padding-right: 5pt; } |
| 6 |
code { white-space: pre-wrap; } |
| 7 |
dd { white-space: pre-wrap; } |
| 8 |
</style> |
| 9 |
</head><body bgcolor="#FFFFFF"> |
| 10 |
|
| 11 |
<table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 |
Strings |
| 13 |
</b></font></table></table> |
| 14 |
<p>One of the <a href="Types_of_objects.html">types of objects</a> in Praat. Represents an ordered list of strings.</p> |
| 15 |
<h2>Creation</h2> |
| 16 |
<p>The difficult way is to create a <b>Strings</b> object from a generic Praat text file (if there are non-ASCII symbols, use UTF-8 or UTF-16 format):</p> |
| 17 |
<code> "ooTextFile"<br></code> |
| 18 |
<code> "Strings"<br></code> |
| 19 |
<code> 5 ! number of strings<br></code> |
| 20 |
<code> "Hello"<br></code> |
| 21 |
<code> "Goodbye"<br></code> |
| 22 |
<code> "Auf wiedersehen"<br></code> |
| 23 |
<code> "Tschüss"<br></code> |
| 24 |
<code> "Arrivederci"<br></code> |
| 25 |
<p>In this example, we see that a double quote within a string should be written twice; the fourth string will therefore be read as <b>Tschüss</b>. This file can be read simply with the generic <a href="Read_from_file___.html">Read from file...</a> command from the <b>Open</b> menu.</p> |
| 26 |
<p>An easier way is to use the special command <a href="Read_Strings_from_raw_text_file___.html">Read Strings from raw text file...</a>. The file can then simply look like this:</p> |
| 27 |
<code> Hello<br></code> |
| 28 |
<code> Goodbye<br></code> |
| 29 |
<code> Auf wiedersehen<br></code> |
| 30 |
<code> Tschüss<br></code> |
| 31 |
<code> Arrivederci<br></code> |
| 32 |
<p>You can also create a <b>Strings</b> object from a folder listing or from some other objects:</p> |
| 33 |
<dl> |
| 34 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Create_Strings_as_file_list___.html">Create Strings as file list...</a></dd> |
| 35 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="Distributions__To_Strings___.html">Distributions: To Strings...</a></dd> |
| 36 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="OTGrammar__Generate_inputs___.html">OTGrammar: Generate inputs...</a></dd> |
| 37 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">• <a href="OTGrammar___Strings__Inputs_to_outputs___.html">OTGrammar & Strings: Inputs to outputs...</a></dd> |
| 38 |
</dl> |
| 39 |
<h3>Links to this page</h3> |
| 40 |
<ul> |
| 41 |
<li><a href="Create_Strings_as_folder_list___.html">Create Strings as folder list...</a> |
| 42 |
<li><a href="Create_Strings_from_tokens___.html">Create Strings from tokens...</a> |
| 43 |
<li><a href="Index__To_Permutation___.html">Index: To Permutation...</a> |
| 44 |
<li><a href="OT_learning_2_9__Output_distributions.html">OT learning 2.9. Output distributions</a> |
| 45 |
<li><a href="OT_learning_3_1__Data_from_a_pair_distribution.html">OT learning 3.1. Data from a pair distribution</a> |
| 46 |
<li><a href="OT_learning_3_2__Data_from_another_grammar.html">OT learning 3.2. Data from another grammar</a> |
| 47 |
<li><a href="OT_learning_4__Learning_an_ordinal_grammar.html">OT learning 4. Learning an ordinal grammar</a> |
| 48 |
<li><a href="OT_learning_5__Learning_a_stochastic_grammar.html">OT learning 5. Learning a stochastic grammar</a> |
| 49 |
<li><a href="OT_learning_7__Learning_from_overt_forms.html">OT learning 7. Learning from overt forms</a> |
| 50 |
<li><a href="PairDistribution__To_Stringses___.html">PairDistribution: To Stringses...</a> |
| 51 |
<li><a href="Strings___Permutation__Permute_strings.html">Strings & Permutation: Permute strings</a> |
| 52 |
<li><a href="Strings__To_Distributions.html">Strings: To Distributions</a> |
| 53 |
<li><a href="Strings__To_Index.html">Strings: To Index</a> |
| 54 |
<li><a href="Strings__To_Permutation___.html">Strings: To Permutation...</a> |
| 55 |
<li><a href="WordList.html">WordList</a> |
| 56 |
</ul> |
| 57 |
<hr> |
| 58 |
<address> |
| 59 |
<p>© ppgb 20201226</p> |
| 60 |
</address> |
| 61 |
</body> |
| 62 |
</html> |