| 1 | /* manual_annotation.cpp |
| 2 | * |
| 3 | * Copyright (C) 1992-2011,2014-2017,2019,2021-2023,2025 Paul Boersma |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | * See the GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #include "ManPagesM.h"cxx . . $ `<file>/sys/ManPagesM.h`/ |
| 20 | |
| 21 | void manual_annotation_initcxx . . $ manual_annotation_init(e57bd08652fa63a5). (ManPagescxx . . $ ManPages# me); |
| 22 | void manual_annotation_initcxx . . $ manual_annotation_init(e57bd08652fa63a5). (ManPagescxx . . $ ManPages# me) { |
| 23 | |
| 24 | MAN_BEGINcxx . . $ `sys/ManPagesM.h:33:9`! (U"Create TextGrid...", U"ppgb", 20101228) // 2025 |
| 25 | INTROcxx . . $ `sys/ManPagesM.h:35:9`! (U"A command to create a @TextGrid from scratch.") |
| 26 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Settings") |
| 27 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Start time (s)") |
| 28 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"the start time, usually 0 seconds.") |
| 29 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##End time (s)") |
| 30 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"the end time in seconds, usually the duration.") |
| 31 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Tier names") |
| 32 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"a list of the names of the tiers that you want to create, separated by spaces.") |
| 33 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Point tiers") |
| 34 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"a list of the names of the tiers that you want to be %%point tiers%; " |
| 35 | "the rest of the tiers will be %%interval tiers%. " |
| 36 | "If you want to create no point tiers, you can leave this setting empty.") |
| 37 | MAN_ENDcxx . . $ `sys/ManPagesM.h:61:9`! |
| 38 | |
| 39 | MAN_BEGINcxx . . $ `sys/ManPagesM.h:33:9`! (U"PointProcess: To TextGrid...", U"ppgb", 19980113) // 2025 |
| 40 | INTROcxx . . $ `sys/ManPagesM.h:35:9`! (U"A command to create an empty @TextGrid from every selected @PointProcess.") |
| 41 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"The only information in the PointProcess that is used, is its starting and finishing times.") |
| 42 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Settings") |
| 43 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Tier names") |
| 44 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"a list of the names of the tiers that you want to create, separated by spaces.") |
| 45 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Point tiers") |
| 46 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"a list of the names of the tiers that you want to be %%point tiers%; " |
| 47 | "the rest of the tiers will be %%interval tiers%. " |
| 48 | "If you want to create no point tiers, you can leave this setting empty.") |
| 49 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Example") |
| 50 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"If ##Tier names# is \"a b c\", and ##Point tiers# is \"b\", " |
| 51 | "the resulting TextGrid object will contain an interval tier named \"a\", " |
| 52 | "a point tier named \"b\", and another interval tier named \"c\".") |
| 53 | MAN_ENDcxx . . $ `sys/ManPagesM.h:61:9`! |
| 54 | |
| 55 | MAN_BEGINcxx . . $ `sys/ManPagesM.h:33:9`! (U"PointProcess: To TextGrid (vuv)...", U"ppgb", 19980210) |
| 56 | INTROcxx . . $ `sys/ManPagesM.h:35:9`! (U"A command to create a @TextGrid with voiced/unvoiced information " |
| 57 | "from every selected @PointProcess.") |
| 58 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Settings") |
| 59 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Maximum period (s)") |
| 60 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"the maximum interval that will be consider part of a larger voiced interval.") |
| 61 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Mean period (s)") |
| 62 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"half of this value will be taken to be the amount to which a voiced interval " |
| 63 | "will extend beyond its initial and final points. ##Mean period# should be less than " |
| 64 | "##Maximum period#, or you may get intervals with negative durations.") |
| 65 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Example") |
| 66 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"If ##Maximum period# is 0.02 s, and ##Mean period# is 0.01 s, " |
| 67 | "and the point process is 0.1 seconds long, with points at 20, 28, 39, 61, and 72 milliseconds, " |
| 68 | "the resulting TextGrid object will contain an interval tier " |
| 69 | "with \"U\" intervals at [0 ms, 15 ms], [44 ms, 56 ms], and [77 ms, 100 ms], " |
| 70 | "and \"V\" intervals at [15 ms, 44 ms] and [56 ms, 77 ms].") |
| 71 | MAN_ENDcxx . . $ `sys/ManPagesM.h:61:9`! |
| 72 | |
| 73 | MAN_BEGINcxx . . $ `sys/ManPagesM.h:33:9`! (U"PointProcess: Up to TextGrid...", U"ppgb", 20101230) |
| 74 | INTROcxx . . $ `sys/ManPagesM.h:35:9`! (U"A command to promote every selected @PointProcess to a @TextGrid with a single text tier in it.") |
| 75 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Setting") |
| 76 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Text") |
| 77 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"the text that will be placed in every point.") |
| 78 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Behaviour") |
| 79 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"The times of all the points are trivially copied, and so is the time domain. " |
| 80 | "The text information will be the same for every point.") |
| 81 | MAN_ENDcxx . . $ `sys/ManPagesM.h:61:9`! |
| 82 | |
| 83 | MAN_BEGINcxx . . $ `sys/ManPagesM.h:33:9`! (U"Sound: To TextGrid...", U"ppgb", 19980730) // 2025 |
| 84 | INTROcxx . . $ `sys/ManPagesM.h:35:9`! (U"A command to create a @TextGrid without any labels, copying the time domain from the selected @Sound.") |
| 85 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Settings") |
| 86 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"%%Tier names") |
| 87 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"a list of the names of the tiers that you want to create, separated by spaces.") |
| 88 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"%%Point tiers") |
| 89 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"a list of the names of the tiers that you want to be %%point tiers%; " |
| 90 | "the rest of the tiers will be %%interval tiers%. " |
| 91 | "If you want to create no point tiers, you can leave this setting empty.") |
| 92 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Example") |
| 93 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"If ##Tier names# is \"a b c\", and ##Point tiers# is \"b\", " |
| 94 | "the resulting TextGrid object will contain an interval tier named \"a\", " |
| 95 | "a point tier named \"b\", and another interval tier named \"c\".") |
| 96 | MAN_ENDcxx . . $ `sys/ManPagesM.h:61:9`! |
| 97 | |
| 98 | MAN_BEGINcxx . . $ `sys/ManPagesM.h:33:9`! (U"SpellingChecker", U"ppgb", 20190616) |
| 99 | INTROcxx . . $ `sys/ManPagesM.h:35:9`! (U"One of the @@types of objects@ in Praat. For checking the spelling in texts and @TextGrid objects.") |
| 100 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"1. How to create a SpellingChecker object") |
| 101 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"You normally read in a SpellingChecker with @@Read from file...@ from the #Open menu.") |
| 102 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"2. How to check the spelling of a @TextGrid") |
| 103 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"A SpellingChecker object can be used fur purposes of spelling checking. In order " |
| 104 | "to check the spellings in a @TextGrid object, you first view the TextGrid in an editor window by selecting " |
| 105 | "the TextGrid together with the SpellingChecker object, and clicking ##View & Edit#. In most cases, you will also want " |
| 106 | "to select a @Sound or @LongSound object before clicking ##View & Edit#, so that a representation of the sound " |
| 107 | "is also visible (and audible) in the editor. Thus, you typically select three objects and click ##View & Edit#. " |
| 108 | "The editor then allows you to check the spellings " |
| 109 | "(commands ##Check spelling in tier# and ##Check spelling in interval# from the #Spell menu).") |
| 110 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"3. How to create a SpellingChecker object for the first time") |
| 111 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"If you are the maintainer of a word list for spelling checking, you will want " |
| 112 | "to convert this list to a SpellingChecker object that you can distribute among the transcribers of your corpus.") |
| 113 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"The first step is to create a @WordList object from your text file, as described on the @WordList man page. " |
| 114 | "Then you simply click ##To SpellingChecker#. A button labelled ##View & Edit...# appears. " |
| 115 | "This command allows you to set the following attributes of the SpellingChecker object:") |
| 116 | /*TERM (U"##Check matching parentheses") |
| 117 | DEFINITION (U"determines whether it is considered a spelling error if parentheses do not match, as in the string \"Hi) there\".")*/ |
| 118 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Allow all parenthesized") |
| 119 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"this flag determines whether text between parentheses is ignored in spelling checking. " |
| 120 | "This would allow the transcriber to mark utterances in foreign languages, which cannot be found in the lexicon.") |
| 121 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Separating characters") |
| 122 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"determines the set of characters (apart from the space character) that separate words. " |
| 123 | "The standard is \".,;:()\". If a string like \"error-prone\" should be considered two separate words, " |
| 124 | "you will like to change this to \".,;:()-\". " |
| 125 | "For the Corpus of Spoken Dutch (CGN), the hyphen is not a separator, since words like \"mee-eter\" should be checked as a whole. " |
| 126 | "If a string like \"Mary's\" should be considered two separate words, include the apostrophe.") |
| 127 | /*TERM (U"##Forbidden strings") |
| 128 | DEFINITION (U"this will mainly contain characters that are not allowed in your corpus. For the CGN, this is \": ; \\\" \".")*/ |
| 129 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Allow all names") |
| 130 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"determines whether all words that start with a capital are allowed. For the CGN, this is on, " |
| 131 | "since the lexicon does not contain many names.") |
| 132 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Name prefixes") |
| 133 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"a space-separated list that determines what small groups of characters can precede names. For the CGN, " |
| 134 | "this is \"'s- d' l'\", since names like %%'s-Gravenhage%, %%d'Ancona%, and %%l'H\\o^pital% should be ignored by the spelling checker.") |
| 135 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Allow all words containing") |
| 136 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"a space-separated list of strings that make a word correct even if not in the lexicon. " |
| 137 | "For the CGN, this is \"* xxx\", since words like %%keuje*d% and %%verxxxing% should be ignored by the spelling checker.") |
| 138 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Allow all words starting with") |
| 139 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"a space-separated list of prefixes that make a word correct even if not in the lexicon. " |
| 140 | "For the CGN, this is empty.") |
| 141 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Allow all words ending in") |
| 142 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"a space-separated list of suffixes that make a word correct even if not in the lexicon. " |
| 143 | "For the CGN, this is \"-\", since the first word in %%verzekerings- en bankwezen% should be ignored by the spelling checker.") |
| 144 | MAN_ENDcxx . . $ `sys/ManPagesM.h:61:9`! |
| 145 | |
| 146 | MAN_BEGINcxx . . $ `sys/ManPagesM.h:33:9`! (U"TextGrid", U"ppgb", 20110128 2025) |
| 147 | INTROcxx . . $ `sys/ManPagesM.h:35:9`! (U"One of the @@types of objects@ in Praat, used for %annotation (segmentation and labelling). " |
| 148 | "For tutorial information, see @@Intro 7. Annotation@.") |
| 149 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Description") |
| 150 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"A #TextGrid object consists of a number of %tiers. There are two kinds of tiers: " |
| 151 | "an %%interval tier% is a connected sequence of labelled intervals, with %boundaries in between. " |
| 152 | "A %%point tier% is a sequence of labelled points.") |
| 153 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"How to create a TextGrid") |
| 154 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"From scratch:") |
| 155 | LIST_ITEMcxx . . $ `sys/ManPagesM.h:38:9`! (U"@@Sound: To TextGrid...@ (takes the time domain from the Sound)") |
| 156 | LIST_ITEMcxx . . $ `sys/ManPagesM.h:38:9`! (U"@@LongSound: To TextGrid...@ (takes the time domain from the LongSound)") |
| 157 | LIST_ITEMcxx . . $ `sys/ManPagesM.h:38:9`! (U"@@PointProcess: To TextGrid...@ (takes the time domain from the PointProcess)") |
| 158 | LIST_ITEMcxx . . $ `sys/ManPagesM.h:38:9`! (U"@@PointProcess: To TextGrid (vuv)...@ (labels voiced and unvoiced intervals)") |
| 159 | LIST_ITEMcxx . . $ `sys/ManPagesM.h:38:9`! (U"@@Create TextGrid...@") |
| 160 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"From merging existing TextGrids with each other:") |
| 161 | LIST_ITEMcxx . . $ `sys/ManPagesM.h:38:9`! (U"@@TextGrids: Merge...@") |
| 162 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"How to edit a TextGrid") |
| 163 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"You select a TextGrid alone or together with a @Sound or @LongSound, and click ##View & Edit#. " |
| 164 | "A @TextGridEditor will appear on your screen, containing the TextGrid " |
| 165 | "and an optional copy of the Sound or LongSound.") |
| 166 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"How to draw a TextGrid") |
| 167 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"You can draw a TextGrid to the @@Picture window@ with:") |
| 168 | LIST_ITEMcxx . . $ `sys/ManPagesM.h:38:9`! (U"##TextGrid: Draw...") |
| 169 | LIST_ITEMcxx . . $ `sys/ManPagesM.h:38:9`! (U"##TextGrid & Sound: Draw...") |
| 170 | LIST_ITEMcxx . . $ `sys/ManPagesM.h:38:9`! (U"##TextGrid & Pitch: Draw...") |
| 171 | LIST_ITEMcxx . . $ `sys/ManPagesM.h:38:9`! (U"##TextGrid & Pitch: Draw separately...") |
| 172 | MAN_ENDcxx . . $ `sys/ManPagesM.h:61:9`! |
| 173 | |
| 174 | MAN_BEGINcxx . . $ `sys/ManPagesM.h:33:9`! (U"TextGrid: Count labels...", U"ppgb", 20140421) |
| 175 | INTROcxx . . $ `sys/ManPagesM.h:35:9`! (U"A command to ask the selected @TextGrid object how many of the specified labels " |
| 176 | "it contains in the specified tier.") |
| 177 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Settings") |
| 178 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Tier number") |
| 179 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"the number (1, 2, 3...) of the tier whose labels you want to investigate.") |
| 180 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Label text") |
| 181 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"the text on the labels that you want to count.") |
| 182 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Behaviour") |
| 183 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"The number of intervals or points with label %%Label text% in tier %%Tier number% " |
| 184 | "is written into the @@Info window@. If the specified tier does not exist, the number will be 0.") |
| 185 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Scripting") |
| 186 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"You can use this command to put the number into a script variable:") |
| 187 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"selectObject: \"TextGrid hallo\"") |
| 188 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"number_of_a = Count labels: 1, \"a\"") |
| 189 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"In this case, the value will not be written into the Info window.") |
| 190 | MAN_ENDcxx . . $ `sys/ManPagesM.h:61:9`! |
| 191 | |
| 192 | MAN_BEGINcxx . . $ `sys/ManPagesM.h:33:9`! (U"TextGrids: Merge", U"ppgb", 20101230) |
| 193 | INTROcxx . . $ `sys/ManPagesM.h:35:9`! (U"An obsolete command to merge all selected @TextGrid objects into a new @TextGrid.") |
| 194 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"The same as @@TextGrids: Merge...@ with “Equalize domains” set to false.") |
| 195 | MAN_ENDcxx . . $ `sys/ManPagesM.h:61:9`! |
| 196 | |
| 197 | MAN_BEGINcxx . . $ `sys/ManPagesM.h:33:9`! (U"TextGrids: Merge...", U"ppgb", 2025) |
| 198 | INTROcxx . . $ `sys/ManPagesM.h:35:9`! (U"A command to merge all selected @TextGrid objects into a new @TextGrid.") |
| 199 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"The time domain of the resulting TextGrid will be the union of the time domains " |
| 200 | "of the constituent TextGrids.") |
| 201 | TERMcxx . . $ `sys/ManPagesM.h:42:9`! (U"##Equalize time domains# (default: on)") |
| 202 | DEFINITIONcxx . . $ `sys/ManPagesM.h:46:9`! (U"If on, then the time domain of each tier will be made equal to the time domain of the resulting TextGrid. " |
| 203 | "If this leads to a change in the end time of an interval tier, a new empty interval will be added " |
| 204 | "between the original end time of the tier and its new end time (an analogous insertion could happen at the start of the tier, " |
| 205 | "though that is quite rare in practice, because usually all tiers start at 0 seconds).") |
| 206 | MAN_ENDcxx . . $ `sys/ManPagesM.h:61:9`! |
| 207 | |
| 208 | MAN_BEGINcxx . . $ `sys/ManPagesM.h:33:9`! (U"TextGridEditor", U"ppgb", 20210228) |
| 209 | INTROcxx . . $ `sys/ManPagesM.h:35:9`! (U"One of the @Editors in Praat, for editing a @TextGrid object.") |
| 210 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"You can optionally include a copy of a @Sound or @LongSound in this editor, " |
| 211 | "by selecting both the TextGrid and the Sound or LongSound before clicking ##View & Edit#. " |
| 212 | "The Sound or LongSound is shown in the upper part of the window, the tiers in the lower part. " |
| 213 | "A text window at the top shows the text of the %#selected interval or point, " |
| 214 | "i.e. the interval or point at the location of the cursor. " |
| 215 | "All tiers are visible, and if you do not zoom in, all boundaries, points, and texts are visible, too. " |
| 216 | "You can do many of the same things that you can do with a @SoundEditor or @LongSoundEditor.") |
| 217 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Positioning the cursor or the selection marks") |
| 218 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To position the cursor hair, @click in the #Sound, on a boundary, on a point, or inside an interval.") |
| 219 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To select any part of the time domain, use the @@time selection@ mechanism; " |
| 220 | "if you do this by clicking in a tier, " |
| 221 | "the selected time domain will snap to the nearest boundary or point.") |
| 222 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Creating new intervals, boundaries, points, or tiers") |
| 223 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To create a new interval, create a new boundary in an interval tier.") |
| 224 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To create a new boundary or point in a tier, @click inside the cursor circle in that tier, " |
| 225 | "or choose one of the commands in the Boundary/Point menu to insert a boundary at the cursor time " |
| 226 | "on the selected tier (shortcut: Enter) or on any tier (shortcuts: @@Keyboard shortcuts|Command-F1@ through @@Keyboard shortcuts|Command-F9@). The original text " |
| 227 | "in the interval that is split, is divided up between the two resulting intervals, depending on " |
| 228 | "the position of the text cursor in the text window.") |
| 229 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To create a new tier, choose ##Add interval tier# or ##Add point tier# from the #Tier menu.") |
| 230 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Playing an entire interval, or part of it") |
| 231 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"As in many other editors, you can play a stretch of sound by clicking in any of the rectangles " |
| 232 | "around the drawing area.") |
| 233 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To play an interval of an interval tier, you first @click inside it. This will make the interval %selected, " |
| 234 | "which means that the visible part of the interval will be drawn in yellow. The cursor will be positioned " |
| 235 | "at the start of the interval, and the time selection will comprise exactly the interval. This means that " |
| 236 | "you can use the Tab key to play the interval. If you press it while a sound is playing, " |
| 237 | "the Tab key will halt the playing sound, and the cursor will move to the time at which the sound stopped playing. " |
| 238 | "This helps you to divide up a long sentence into parts that you can remember long enough to write them " |
| 239 | "down.") |
| 240 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"The Tab key will play the selected interval.") |
| 241 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Editing the text in an interval or at a point") |
| 242 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To edit the label text of an interval or point:") |
| 243 | LIST_ITEMcxx . . $ `sys/ManPagesM.h:38:9`! (U"1. Select that interval or point by clicking in or on it. The text currently in the interval or point " |
| 244 | "will appear in the text window.") |
| 245 | LIST_ITEMcxx . . $ `sys/ManPagesM.h:38:9`! (U"2. Just type the text, and use the mouse and the arrow keys to navigate the text window. " |
| 246 | "Everything you type will become visible immediately in the text window as well as in the selected " |
| 247 | "interval or point.") |
| 248 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"You can use all the @@Special symbols@ " |
| 249 | "that you can use elsewhere in Praat, including mathematical symbols, Greek and Chinese letters, superscripts, " |
| 250 | "and phonetic symbols.") |
| 251 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Selecting a tier") |
| 252 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To select a tier, click anywhere inside it. Its number and name will be drawn in red, " |
| 253 | "and a pointing finger symbol (☞) will appear on its left.") |
| 254 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Selecting a boundary or point") |
| 255 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To select a boundary on an interval tier, @click in its vicinity or inside the following interval; " |
| 256 | "the boundary will be drawn in red. The text in the interval will appear in the text window.") |
| 257 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To select a point on a point tier, @click in its vicinity; it will be drawn in red. " |
| 258 | "The text of the point will appear in the text window.") |
| 259 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Moving one or more boundaries or points") |
| 260 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To move a boundary or point to another time position, @drag it with the mouse.") |
| 261 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To move all the boundaries and points with the same time (on different tiers) to another time position, " |
| 262 | "@@Shift-drag@ them.") |
| 263 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To move boundaries or points to the exact time position of a boundary or point on an other tier, " |
| 264 | "@drag them into that other tier and into the vicinity of that boundary or point.") |
| 265 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To move boundaries or points to the exact time position of the cursor, " |
| 266 | "@drag them into the vicinity of the cursor.") |
| 267 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Removing a boundary, point, or tier") |
| 268 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To remove a selected #boundary, choose #Remove from the #Boundary menu. " |
| 269 | "This creates a new interval which is the union of the two intervals originally adjoining the boundary; " |
| 270 | "the new text of this interval is the concatenation of the two original texts, " |
| 271 | "except if these were equal, in which case the new text equals both original texts.") |
| 272 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To remove a selected #point, choose #Remove from the #Point menu.") |
| 273 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To remove a selected #tier, choose ##Remove entire tier# from the #Tier menu.") |
| 274 | /*"To rename a selected tier, choose 'Rename...' from the 'Tier' menu. "*/ |
| 275 | /*"To remove all the boundaries and labels in a selected tier, " |
| 276 | " choose 'Clear entire tier' from the 'Tier' menu. "*/ |
| 277 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Extracting a part of the sound") |
| 278 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To copy the selected part of the Sound or LongSound as a Sound to the @@List of Objects@, " |
| 279 | "choose ##Extract sound selection# from the #File menu. You can specify whether you want " |
| 280 | "the time domain of the resulting Sound to match the starting and finishing times of the " |
| 281 | "selection or whether you want the time domain of the resulting Sound to start at zero seconds.") |
| 282 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"If you are viewing a LongSound, you can save the selected part of it to a 16-bit sound file " |
| 283 | "(AIFF, AIFC, WAV, NeXT/Sun, NIST) with a command from the File menu.") |
| 284 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Accelerations") |
| 285 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"To save the @TextGrid object as a text file without going to the @@Objects window@: " |
| 286 | "choose ##Save TextGrid as text file...# from the #File menu.") |
| 287 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Searching") |
| 288 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"The Search menu contains the command #Find (@@Keyboard shortcuts|Command-F@), which will allow you to specify " |
| 289 | "a text whose first occurrence will then be looked for in the currently selected tier " |
| 290 | "(starting from the currently selected text in the currently selected interval). " |
| 291 | "The command ##Find again# (@@Keyboard shortcuts|Command-G@) will search for the next occurrence of the same search text.") |
| 292 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"Checking the spelling") |
| 293 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"You can check the spelling of the intervals in your tiers by including a @SpellingChecker " |
| 294 | "object as you launch the editor: select TextGrid + (Long)Sound + SpellingChecker, " |
| 295 | "then click ##View & Edit#. The #Spell menu will contain the commands ##Check spelling in tier# (@@Keyboard shortcuts|Command-N@), and ##Check spelling in interval# " |
| 296 | "which will search for the next word in the tier or interval that does not occur in the lexicon.") |
| 297 | MAN_ENDcxx . . $ `sys/ManPagesM.h:61:9`! |
| 298 | |
| 299 | MAN_BEGINcxx . . $ `sys/ManPagesM.h:33:9`! (U"WordList", U"ppgb", 20190616) |
| 300 | INTROcxx . . $ `sys/ManPagesM.h:35:9`! (U"One of the @@types of objects@ in Praat. " |
| 301 | "An object of class WordList contains a sorted list of strings in a system-independent format. " |
| 302 | "WordList objects can be used for spelling checking after conversion to a @SpellingChecker object.") |
| 303 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"1. How to create a WordList object") |
| 304 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"You will normally create a WordList object by reading a binary WordList file. " |
| 305 | "You'll use the generic @@Read from file...@ command from the #Open menu.") |
| 306 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"See below under 3 for how to create such a file.") |
| 307 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"2. What you can do with a Wordlist object") |
| 308 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"The main functionality of a WordList is its ability to tell you whether it contains a certain string. " |
| 309 | "If you select a WordList, you can query the existence of a specific word by using the ##Has word# " |
| 310 | "command. You supply the word and press OK. If the WordList does contain the word, " |
| 311 | "the value \"1\" will be written to the Info window; otherwise, the value \"0\" will be written.") |
| 312 | ENTRYcxx . . $ `sys/ManPagesM.h:36:9`! (U"3. How to create a binary WordList file") |
| 313 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"You can create a binary WordList file from a simple text file that contains a long list of words. " |
| 314 | "Perhaps such a text file has been supplied by a lexicographic institution in your country; " |
| 315 | "because of copyright issues, such word lists cannot be distributed with the Praat program. " |
| 316 | "To convert the simple text file into a compressed WordList file, you basically take the following steps:") |
| 317 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"Read Strings from raw text file: \"lexicon.txt\"") |
| 318 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"Sort") |
| 319 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"To WordList") |
| 320 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"Save as binary file: \"lexicon.WordList\"") |
| 321 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"I'll explain these steps in detail. " |
| 322 | "For instance, a simple text file may contain the following list of words:") |
| 323 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cook") |
| 324 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cooked") |
| 325 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cookie") |
| 326 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cookies") |
| 327 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cooking") |
| 328 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cooks") |
| 329 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"Copenhagen") |
| 330 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"København") |
| 331 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"München") |
| 332 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"Munich") |
| 333 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"ångström") |
| 334 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"These are just 11 words, but the procedure will work fine if you have a million of them, " |
| 335 | "and enough memory in your computer.") |
| 336 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"You can read the file into a @Strings object with @@Read Strings from raw text file...@ " |
| 337 | "from the #Open menu in the Objects window. The resulting @Strings object contains 11 strings in the above order, " |
| 338 | "as you can verify by viewing them with @Inspect.") |
| 339 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"If you select the Strings, you can click the ##To WordList# button. " |
| 340 | "However, you will get the following complaint:") |
| 341 | CODE1cxx . . $ `sys/ManPagesM.h:51:9`! (U"String \"Copenhagen\" not sorted. Please sort first.") |
| 342 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"This complaint means that the strings have not been sorted in Unicode sorting order. " |
| 343 | "So you click #Sort, and the Strings object becomes:") |
| 344 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"Copenhagen") |
| 345 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"København") |
| 346 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"Munich") |
| 347 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"München") |
| 348 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cook") |
| 349 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cooked") |
| 350 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cookie") |
| 351 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cookies") |
| 352 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cooking") |
| 353 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cooks") |
| 354 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"ångström") |
| 355 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"The strings are now in Unicode sorting order, in which capitals come before lower-case letters, " |
| 356 | "and composite characters follow the latter.") |
| 357 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"Clicking ##To WordList# now succeeds, and a WordList object appears in the list. " |
| 358 | "If you save it to a text file (with the Save menu), you will get the following file:") |
| 359 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"File type = \"ooTextFile\"") |
| 360 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"Object class = \"WordList\"") |
| 361 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"") |
| 362 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"string = \"Copenhagen") |
| 363 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"København") |
| 364 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"Munich") |
| 365 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"München") |
| 366 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cook") |
| 367 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cooked") |
| 368 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cookie") |
| 369 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cookies") |
| 370 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cooking") |
| 371 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"cooks") |
| 372 | CODEcxx . . $ `sys/ManPagesM.h:50:9`! (U"ångström\\\" ") |
| 373 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"Note that any double quotes (\\\" ) that appear inside the strings, will be doubled, " |
| 374 | "as is done everywhere inside strings in Praat text files.") |
| 375 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"After you have created a WordList text file, you can create a WordList object just by reading this file " |
| 376 | "with @@Read from file...@ from the #Open menu.") |
| 377 | NORMALcxx . . $ `sys/ManPagesM.h:37:9`! (U"The WordList object has the advantage over the Strings object that it won't take up more " |
| 378 | "memory than the original word list. This is because the WordList is stored as a single string: " |
| 379 | "a contiguous list of strings, separated by new-line symbols.") |
| 380 | MAN_ENDcxx . . $ `sys/ManPagesM.h:61:9`! |
| 381 | |
| 382 | /* |
| 383 | longSound = selected ("LongSound") |
| 384 | longSoundNaam$ = selected$ ("LongSound") |
| 385 | textGrid = selected ("TextGrid") |
| 386 | select 'textGrid' |
| 387 | aantalIntervallen = Get number of intervals... 1 |
| 388 | for interval to aantalIntervallen |
| 389 | select 'textGrid' |
| 390 | begintijd = Get starting point... 1 interval |
| 391 | eindtijd = Get end point... 1 interval |
| 392 | select 'longSound' |
| 393 | Extract part... begintijd eindtijd no |
| 394 | Save as WAV file... C:\Geluiden\'longSoundNaam$'_'interval'.wav |
| 395 | Remove |
| 396 | endfor |
| 397 | |
| 398 | |
| 399 | # This is a Praat script that assumes that a single TextGrid is selected, |
| 400 | # and that the data in the first (or only) tier is in the form |
| 401 | # silence-text-silence-text and so on. The script will then write |
| 402 | # the durations of the silences and the texts into the Info window. |
| 403 | |
| 404 | form Tabulate speech and silences |
| 405 | comment Give the output file name: |
| 406 | text fileName c:\windows\desktop\kim\out.txt |
| 407 | endform |
| 408 | |
| 409 | # The following line provides the header, |
| 410 | # separated by tabs for easy inclusion in Excel. |
| 411 | echo Pause'tab$'Speech'tab$'Text |
| 412 | |
| 413 | # Every next line writes three pieces of data, |
| 414 | # separated by tabs again. |
| 415 | |
| 416 | # The following is a command from the Query menu |
| 417 | # that appears when you select a TextGrid object. |
| 418 | numberOfIntervals = Get number of intervals... 1 |
| 419 | |
| 420 | # The number of silence-speech pairs is half of that number, |
| 421 | # disregarding any silence at the end. |
| 422 | numberOfPairs = numberOfIntervals div 2 |
| 423 | |
| 424 | # Cycle through all the silence-speech pairs. |
| 425 | |
| 426 | for pair to numberOfPairs |
| 427 | silenceInterval = 2 * pair - 1 ; interval 1, 3, 5, and so on |
| 428 | speechInterval = 2 * pair ; interval 2, 4, 6, and so on |
| 429 | # Check that the silence interval is indeed empty. |
| 430 | silenceText$ = Get label of interval... 1 silenceInterval |
| 431 | if silenceText$ <> "" |
| 432 | exit Interval 'silenceInterval' should be a silence, but isn't. |
| 433 | endif |
| 434 | # Also check that the speech interval contains some text. |
| 435 | speechText$ = Get label of interval... 1 speechInterval |
| 436 | if speechText$ = "" |
| 437 | exit Interval 'speechInterval' should contain text, but doesn't. |
| 438 | endif |
| 439 | # So now we have checked that the intervals contain the data |
| 440 | # that Kim wanted them to contain. We're ready to write the data! |
| 441 | silenceBegin = Get starting point... 1 silenceInterval |
| 442 | silenceEnd = Get end point... 1 silenceInterval |
| 443 | silenceDuration_ms = (silenceEnd - silenceBegin) * 1000 |
| 444 | speechBegin = Get starting point... 1 speechInterval |
| 445 | speechEnd = Get end point... 1 speechInterval |
| 446 | speechDuration_ms = (speechEnd - speechBegin) * 1000 |
| 447 | printline 'silenceDuration_ms:0''tab$' |
| 448 | ...'speechDuration_ms:0''tab$' |
| 449 | ...'speechText$' |
| 450 | endfor |
| 451 | filedelete 'fileName$' |
| 452 | fappendinfo 'fileName$' |
| 453 | |
| 454 | */ |
| 455 | |
| 456 | } |
| 457 | |
| 458 | /* End of file manual_annotation.cpp */ |