<div dir="ltr">Hi Brian,<div><br></div><div>You are right. Using regular expressions in other editors is much easier and more controlled. Thanks for the great advice!</div><div><br></div><div>Best,</div><div>Elnaz<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><span style="font-size:19.0pt;font-family:"Brush Script MT";color:#00386c">Elnaz
Kia, Ph.D</span><span style="font-size:18.0pt;font-family:"Brush Script MT";color:#00386c">.</span><span style="font-size:12.0pt;font-family:"Brush Script MT";color:#00386c"> </span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#00386c">(she,
her, hers)</span></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><i><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black"><a href="https://l2trec.utah.edu/about/staff-directory.php" target="_blank" class="docs-creator">Post-Doctoral Research
Associate</a></span></i></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><a href="https://l2trec.utah.edu/" target="_blank" class="docs-creator"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0d0d0d">Second Language Teaching and Research
Center (L2TReC)</span></a><span><span style="font-size:12.0pt;color:#0d0d0d"></span></span></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black">University of Utah</span></span></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><a href="https://www.linkedin.com/in/elnaz-kia?lipi=urn%3Ali%3Apage%3Ad_flagship3_profile_view_base_contact_details%3B%2FResGVF2SMGMAxhocdPnRw%3D%3D" target="_blank" class="docs-creator"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0d0d0d">LinkedIn</span></a><span><span style="color:#0d0d0d"></span></span></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><a href="https://elnazkia.weebly.com/" target="_blank" class="docs-creator"><span style="font-size:12.0pt;font-family:"Times New Roman",serif">Personal
Website</span></a><span><span style="color:#0d0d0d"></span></span></p><p class="MsoNormal" style="margin-bottom:0in;line-height:normal"><img src="https://docs.google.com/uc?export=download&id=1-im6hnX4Kj15S9S-Fy7_gMFj4Nn-RGP_&revid=0B56lCp579fCjaXhEQlhaSndZdjgxWDRrRk8wMWFHN0wydGFZPQ"></p></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 11, 2021 at 6:48 PM Brian Macwhinney <<a href="mailto:macw@andrew.cmu.edu">macw@andrew.cmu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">These changes seem okay. I use regex expression changes in BBEdit instead of relying on CHSTRING for things like this, because it gives you fuller control. Similar options are Atom, Sublime Text and so on.<br>
<br>
— Brian<br>
<br>
> On Aug 11, 2021, at 8:17 PM, Elnaz Kia <<a href="mailto:ek325@nau.edu" target="_blank">ek325@nau.edu</a>> wrote:<br>
> <br>
> Dear Leonid,<br>
> <br>
> I have one more question about my recent inquiry. Per Brian's and your advice, I am in the process of changing the participant IDs and making other necessary revisions. In order to change the transcriptions from form A to form B (see below), I created the following commands. I couldn't find a more dignified path. :-) <br>
> Form A<br>
> @Begin<br>
> @Languages: fra<br>
> @Participants: F0001 IDf0001 Student<br>
> @ID: fra|corpus|F0001|0;00.00|male|||Student|||<br>
> @Media: f0001c05ri4_1, audio<br>
> @Transcriber: Matteo Fiorini<br>
> @Comment: euh signals hesitation<br>
> @Situation: Introductions<br>
> *F0001: je m' appelle (..) NAME NAME (.) euh (.) . <br>
> *F0001: NAME c' est mon dernier nom [:: nom de famille] . <br>
> *F0001: et ça vienne <de> [/] de Allemagne parce que mon maman <et> [/] et<br>
> mon papa est Allemagne [:: allemands] . <br>
> *F0001: <et alors je> [//] euh (.) alors mon dernier nom<br>
> [:: nom de famille] NAME est Allemagne [:: allemand] . <br>
> @End<br>
> <br>
> Form B<br>
> @Begin<br>
> @Languages: fra<br>
> @Participants: STU IDf0001 Student<br>
> @ID: fra|mussel|STU|0;00.00|male|||Student||IDf0001|<br>
> @Media: f0001c05ri4_1, audio<br>
> @Transcriber: Matteo Fiorini<br>
> @Comment: euh signals hesitation<br>
> @Situation: Introductions<br>
> *STU: je m' appelle (..) NAME NAME (.) euh (.) . <br>
> *STU: NAME c' est mon dernier nom [:: nom de famille] . <br>
> *STU: et ça vienne <de> [/] de Allemagne parce que mon maman <et> [/] et<br>
> mon papa est Allemagne [:: allemands] . <br>
> *STU: <et alors je> [//] euh (.) alors mon dernier nom<br>
> [:: nom de famille] NAME est Allemagne [:: allemand] . <br>
> @End<br>
> <br>
> 1. To change the participant ID in the main lines in chat & text files (applies to all languages):<br>
> chstring +re +w +t* +l +s"\**:" "\*STU:" *.cha<br>
> ren +re -f *.chstr.cex *.cha<br>
> <br>
> chstring +re +w +y +s"\**:" "\*STU:" *.txt<br>
> ren +re -f *.chstr.cex *.txt<br>
> <br>
> 2. To change the corpus name and the next field in line @ID in chat & text files (applies to all languages):<br>
> chstring +re +w +t@ +s"|corpus|*|" "|mussel|STU|" *.cha<br>
> ren +re -f *.chstr.cex *.cha<br>
> <br>
> chstring +re +w +y +s"|corpus|*|" "|mussel|STU|" *.txt<br>
> ren +re -f *.chstr.cex *.txt<br>
> <br>
> 3. To change the optional speaker name (last field) in line @ID<br>
> *Note: These commands has to be run separately for each folder, since the ID changes in each folder.<br>
> chstring +re +w +t@ +s"|Student|||" "|Student||IDc0002|" *.cha<br>
> ren +re -f *.chstr.cex *.cha<br>
> <br>
> chstring +re +w +y +s"|Student|||" "|Student||IDc0002|" *.txt<br>
> ren +re -f *.chstr.cex *.txt<br>
> <br>
> 4. To change the 1st field in line @Participant<br>
> *Note: These commands have to be run separately for each folder, since the ID changes in each folder.<br>
> Tried this command and a few others, no chance!<br>
> chstring +w +d +s"F0010 IDf0010 Student" "STU IDf0010 Student" *.cha<br>
> <br>
> Questions:<br>
> a) how can I achieve the last change (4)?<br>
> b) I am using batch to run the commands in 1 and 2 (highlighted in yellow). Is it possible to create the search strings for 3 and 4 in a way that it is not dependent on specific IDs so I could run all the commands in batch for all the directories and subdirectories instead of running them on individual folders?<br>
> <br>
> I am so sorry for asking so many questions. I spend hours digging in the manuals and playing with the commands before asking you. :-(<br>
> <br>
> Thank you so much for your help!<br>
> Elnaz<br>
> <br>
> <br>
> Elnaz Kia, Ph.D. (she, her, hers)<br>
> Post-Doctoral Research Associate<br>
> Second Language Teaching and Research Center (L2TReC)<br>
> University of Utah<br>
> LinkedIn<br>
> Personal Website<br>
> <br>
> <br>
> -- <br>
> You received this message because you are subscribed to the Google Groups "chibolts" group.<br>
> To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:chibolts%2Bunsubscribe@googlegroups.com" target="_blank">chibolts+unsubscribe@googlegroups.com</a>.<br>
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/CAOwOJY%3Df6JUMXRFvKkshZ609pnWUq1tNHRsQbX_VKm8q7WxNuw%40mail.gmail.com" rel="noreferrer" target="_blank">https://groups.google.com/d/msgid/chibolts/CAOwOJY%3Df6JUMXRFvKkshZ609pnWUq1tNHRsQbX_VKm8q7WxNuw%40mail.gmail.com</a>.<br>
<br>
-- <br>
You received this message because you are subscribed to the Google Groups "chibolts" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:chibolts%2Bunsubscribe@googlegroups.com" target="_blank">chibolts+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/AB2BBD34-2F3C-43A9-89AF-2C1E9F27C383%40andrew.cmu.edu" rel="noreferrer" target="_blank">https://groups.google.com/d/msgid/chibolts/AB2BBD34-2F3C-43A9-89AF-2C1E9F27C383%40andrew.cmu.edu</a>.<br>
</blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "chibolts" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:chibolts+unsubscribe@googlegroups.com">chibolts+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/chibolts/CAOwOJYkgKFt4CnrOM%3DWKm5o_7TZq4nD1UEzMCvKDNz4tej86JQ%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/chibolts/CAOwOJYkgKFt4CnrOM%3DWKm5o_7TZq4nD1UEzMCvKDNz4tej86JQ%40mail.gmail.com</a>.<br />