<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Annabelle,<div><br><div> I assume that your basic CHSTRING command is something like this:</div><div><br></div><div><span class="Apple-style-span" style="font-family: 'Arial Unicode MS'; ">chstring +s" teddy bear " " teddy+bear " filename.cha +1 -w</span></div><div><font class="Apple-style-span" face="'Arial Unicode MS'"><br></font></div><div><font class="Apple-style-span" face="'Arial Unicode MS'">This should work within lines, but when you hit the carriage return, that blocks it. <span class="Apple-style-span" style="font-family: Helvetica; ">To deal with this, I use the LONGTIER program first. LONGTIER removes the carriage returns on main tiers and puts the whole sentence on one line. Whenever doing data cleaning stuff like this, it is a useful first step. The +d switch in CHSTRING is supposed to leave these long lines in place, but it doesn't seem to do that. So, that means that you will have to keep running LONGTIER before each change. I use BBEdit to makes these changes, although even then I run LONGTIER first. However, the advantage in BBEdit is that it doesn't undo the LONGTIER format. If you are going to stick with CHSTRING, since it is otherwise working, just remember to keep using LONGTIER. To avoid getting too many file generations from all of this, you can use the +1 switch, but when you use that, make sure that you copy your whole folder on occasion, in case you make a mistake.</span></font></div><div><br></div><div>Good luck.</div><div><br></div><div>-- Brian MacWhinney</div><div><br></div><div><div><div>On Jun 11, 2009, at 12:14 PM, Annabelle David wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Hi everyone<br><br>I am hoping someone can help me. I have been changing a number of<br>words using the chstring command. I am mostly turning words that were<br>originally transcribed as two items into one compound with the + sign<br>in between. So for example, teddy bear becomes teddy+bear. However,<br>chstring does not seem to work when the words are on separate line.<br>For example:<br>*MOT: do you want to play with your doll or your teddy<br>bear today?<br><br>So I am left with a lot of cases to change manually. Is there a switch<br>I could use to avoid the manual changes? I have tried several but with<br>no success.<br><br>Thanks in advance<br><br>Annabelle<br><br><br><br><br></div></blockquote></div><br></div></div><br>
--~--~---------~--~----~------------~-------~--~----~<br>
You received this message because you are subscribed to the Google Groups "chibolts" group. <br> To post to this group, send email to chibolts@googlegroups.com <br> To unsubscribe from this group, send email to chibolts+unsubscribe@googlegroups.com <br> For more options, visit this group at http://groups.google.com/group/chibolts?hl=en<br>
-~----------~----~----~----~------~----~------~--~---<br>
</body></html><br>