| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Save as text file...</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 |
Save as text file... |
| 13 |
</b></font></table></table> |
| 14 |
<p>One of the commands in the <a href="Save_menu.html">Save menu</a>.</p> |
| 15 |
<h2>Availability</h2> |
| 16 |
<p>You can choose this command after selecting one or more <a href="objects.html">objects</a>.</p> |
| 17 |
<h2>Behaviour</h2> |
| 18 |
<p>The Objects window will ask you for a file name. After you click OK, the objects will be written to a text file on disk.</p> |
| 19 |
<h2>File format</h2> |
| 20 |
<p>If you selected a single object, e.g., of type Pitch, the file will start with the lines:</p> |
| 21 |
<code> File type = "ooTextFile"<br></code> |
| 22 |
<code> Object class = "Pitch"<br></code> |
| 23 |
<p>After this, the pitch data will follow.</p> |
| 24 |
<dl> |
| 25 |
<dd style="position:relative;padding-left:1em;text-indent:-2em">If you selected more than one object, e.g., “Pitch hallo” and “Polygon kromme”, the file will look like:</dd> |
| 26 |
</dl> |
| 27 |
<code> File type = "ooTextFile"<br></code> |
| 28 |
<code> Object class = "Collection"<br></code> |
| 29 |
<code> size = 2<br></code> |
| 30 |
<code> item []:<br></code> |
| 31 |
<code> item [1]:<br></code> |
| 32 |
<code> class = "Pitch"<br></code> |
| 33 |
<code> name = "hallo"<br></code> |
| 34 |
<code> (pitch data...)<br></code> |
| 35 |
<code> item [2]:<br></code> |
| 36 |
<code> class = "Polygon"<br></code> |
| 37 |
<code> name = "kromme"<br></code> |
| 38 |
<code> (polygon data...)<br></code> |
| 39 |
<p>The file can be read again with <a href="Read_from_file___.html">Read from file...</a>, which, by the way, does not need the verbosity of the above example. The following minimal format will also be read correctly:</p> |
| 40 |
<code> "ooTextFile"<br></code> |
| 41 |
<code> "Collection" 2<br></code> |
| 42 |
<code> "Pitch" "hallo" (pitch data...)<br></code> |
| 43 |
<code> "Polygon" "kromme" (polygon data...)<br></code> |
| 44 |
<p>Thus, all text that is not a free-standing number and is not enclosed in double quotes or < >, is considered a comment, as is all text following an exclamation mark (“!”) on the same line.</p> |
| 45 |
<h3>Links to this page</h3> |
| 46 |
<ul> |
| 47 |
<li><a href="ExperimentMFC_2_9__How_an_experiment_proceeds.html">ExperimentMFC 2.9. How an experiment proceeds</a> |
| 48 |
<li><a href="Intro_7__Annotation.html">Intro 7. Annotation</a> |
| 49 |
<li><a href="OT_learning_2_2__Inside_the_grammar.html">OT learning 2.2. Inside the grammar</a> |
| 50 |
<li><a href="OT_learning_2_3__Defining_your_own_grammar.html">OT learning 2.3. Defining your own grammar</a> |
| 51 |
<li><a href="Save_as_short_text_file___.html">Save as short text file...</a> |
| 52 |
<li><a href="Sound.html">Sound</a> |
| 53 |
<li><a href="TableOfReal.html">TableOfReal</a> |
| 54 |
<li><a href="TextGrid_file_formats.html">TextGrid file formats</a> |
| 55 |
<li><a href="Unicode.html">Unicode</a> |
| 56 |
</ul> |
| 57 |
<hr> |
| 58 |
<address> |
| 59 |
<p>© ppgb 20110129</p> |
| 60 |
</address> |
| 61 |
</body> |
| 62 |
</html> |