{"ygPerms":{"resourceCapabilityList":[{"resourceType":"GROUP","capabilities":[{"name":"UPDATE"},{"name":"READ"},{"name":"WELCOME_MSG"},{"name":"PENDING_COUNT"},{"name":"ACTIVITY_LOGS"}]},{"resourceType":"PHOTO","capabilities":[{"name":"READ"},{"name":"READ"},{"name":"UPLOAD"},{"name":"UPDATE"},{"name":"DELETE"},{"name":"COPY"},{"name":"MOVE"},{"name":"APPROVE"},{"name":"UPLOADTEMP"},{"name":"GROUPCOVER"}]},{"resourceType":"FILE","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"UPDATE"},{"name":"DELETE"},{"name":"AUTO_SEND"}]},{"resourceType":"MEMBER","capabilities":[{"name":"READ"},{"name":"READ"},{"name":"EDIT_MODERATOR"},{"name":"DELETE"},{"name":"CREATE"},{"name":"UPDATE"},{"name":"BAN"}]},{"resourceType":"LINK","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"UPDATE"},{"name":"DELETE"},{"name":"MOVE_LINK"}]},{"resourceType":"CALENDAR","capabilities":[{"name":"READ"}]},{"resourceType":"DATABASE","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"READ_DATA"}]},{"resourceType":"POLL","capabilities":[{"name":"READ"},{"name":"VOTE"},{"name":"UPDATE"},{"name":"CREATE"},{"name":"DELETE"},{"name":"CLOSE"}]},{"resourceType":"MESSAGE","capabilities":[{"name":"CREATE"},{"name":"READ"},{"name":"DELETE"}]},{"resourceType":"PENDING_MESSAGE","capabilities":[{"name":"READ"},{"name":"UPDATE"},{"name":"DELETE"}]},{"resourceType":"ATTACHMENTS","capabilities":[{"name":"READ"},{"name":"DELETE"}]},{"resourceType":"PHOTOMATIC_ALBUMS","capabilities":[{"name":"READ"},{"name":"UPLOAD"}]},{"resourceType":"MEMBERSHIP_TYPE","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"DELETE"},{"name":"UPDATE"}]},{"resourceType":"POST","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"UPDATE"},{"name":"DELETE"}]},{"resourceType":"PIN","capabilities":[{"name":"READ"},{"name":"CREATE"},{"name":"UPDATE"},{"name":"DELETE"}]}],"modStatus":"MODERATOR","subStatus":"NORMAL","groupUrl":"groups.yahoo.com","intlCode":"us"},"comscore":"pageview_candidate","ygData":{"userId":207968719,"authorName":"Robert Tucker","from":"&quot;Robert Tucker&quot; &lt;roberttucker@fastmail.fm&gt;","profile":"roberttucker","replyTo":"LIST","senderId":"xqBBYY4Bx2UkWWg8s5rb_DXW5PQDKjMZAFviyMOqYZCJSZHqOOq8xAYPNWvgPclesFVgEIVjkQEbUlzG8lSwjryM089Btqi_n4KdecymdlLI","spamInfo":{"isSpam":false,"reason":"12"},"subject":"Re: [OmT] Aligning existing translations","postDate":"1129802214","msgId":3175,"canDelete":true,"contentTrasformed":false,"systemMessage":false,"headers":{"messageIdInHeader":"PGRqN3BsNitranMzQGVHcm91cHMuY29tPg==","inReplyToHeader":"PGRqN292NCs4cGJpQGVHcm91cHMuY29tPg=="},"prevInTopic":3174,"nextInTopic":3176,"prevInTime":3174,"nextInTime":3176,"topicId":3164,"numMessagesInTopic":16,"msgSnippet":"... The indents in my edited version of the aligner script did not show in the post as displayed by Yahoo (though they did in my email notification and when I","rawEmail":"Return-Path: &lt;roberttucker@fastmail.fm&gt;\r\nX-Sender: roberttucker@fastmail.fm\r\nX-Apparently-To: OmegaT@yahoogroups.com\r\nReceived: (qmail 31957 invoked from network); 20 Oct 2005 09:57:49 -0000\r\nReceived: from unknown (66.218.66.167)\n  by m23.grp.scd.yahoo.com with QMQP; 20 Oct 2005 09:57:49 -0000\r\nReceived: from unknown (HELO n6.bulk.dcn.yahoo.com) (216.155.201.59)\n  by mta6.grp.scd.yahoo.com with SMTP; 20 Oct 2005 09:57:49 -0000\r\nComment: DomainKeys? See http://antispam.yahoo.com/domainkeys\r\nReceived: from [216.155.201.64] by n6.bulk.dcn.yahoo.com with NNFMP; 20 Oct 2005 09:56:56 -0000\r\nReceived: from [66.218.66.59] by mailer1.bulk.dcn.yahoo.com with NNFMP; 20 Oct 2005 09:56:56 -0000\r\nReceived: from [66.218.66.92] by mailer8.bulk.scd.yahoo.com with NNFMP; 20 Oct 2005 09:56:56 -0000\r\nDate: Thu, 20 Oct 2005 09:56:54 -0000\r\nTo: OmegaT@yahoogroups.com\r\nMessage-ID: &lt;dj7pl6+kjs3@eGroups.com&gt;\r\nIn-Reply-To: &lt;dj7ov4+8pbi@eGroups.com&gt;\r\nUser-Agent: eGroups-EW/0.82\r\nMIME-Version: 1.0\r\nContent-Type: text/plain; charset=&quot;ISO-8859-1&quot;\r\nContent-Transfer-Encoding: quoted-printable\r\nX-Mailer: Yahoo Groups Message Poster\r\nX-Yahoo-Newman-Property: groups-compose\r\nX-Originating-IP: 216.155.201.59\r\nX-eGroups-Msg-Info: 1:12:0:0\r\nX-Yahoo-Post-IP: 213.162.106.173\r\nFrom: &quot;Robert Tucker&quot; &lt;roberttucker@fastmail.fm&gt;\r\nSubject: Re: [OmT] Aligning existing translations\r\nX-Yahoo-Group-Post: member; u=207968719; y=UtEnx0pNAeQ3czr8mRW7iomsTyGheytrIZ0RJFsW4GI6Y1FH1ti9\r\nX-Yahoo-Profile: roberttucker\r\n\r\n--- In OmegaT@yahoogroups.com, &quot;Robert Tucker&quot; &lt;roberttucker@f...&gt; wrote:\n\n=\r\n&gt; \n&gt; So if you paste the following into your text editor (I hope the\n&gt; inde=\r\nntations come out in the post - they need to be there):\n&gt; \n&gt; \n\nThe indents =\r\nin my edited version of the aligner script did not show in\nthe post as disp=\r\nlayed by Yahoo (though they did in my email\nnotification and when I switche=\r\nd to reply) so I re-post here with\nasterisks representing spaces (that is y=\r\nou will need to replace each\nasterisk by a space for the script to work):\n\n=\r\nimport sys\nimport re\n\n\n\ndef safestring(s):\n\n****return (s.replace(&quot;&lt;&quot;, &quot;&lt=\r\n;&quot;)).replace(&quot;&gt;&quot;, &quot;&gt;&quot;)\n\npartext1 =3D raw_input(&quot;Name of first file (with=\r\n path): &quot;)\npartext2 =3D raw_input(&quot;Name of second file (with path): &quot;)\ntmxn=\r\name=3Draw_input(&quot;Name of tmx (with path): &quot;)\n\n\n\nfonto=3Dfile(partext1, &quot;r&quot;)=\r\n\n\ntradukajxo=3Dfile(partext2, &quot;r&quot;)\n\nftxt=3Dfonto.readlines()\n\nfonto.close()=\r\n\n\nttxt=3Dtradukajxo.readlines()\n\ntradukajxo.close()\n\nfntlng =3D raw_input(&quot;=\r\nSource Language: &quot;)\n\ncellng =3D raw_input(&quot;Target Language: &quot;)\n\n\n\nif len(ft=\r\nxt) !=3D len(ttxt):\n\n****print(&quot;Error! Paragraph quantities in source and t=\r\narget texts do\nnot match - unable to proceed&quot;)\n\n****sys.exit(0)\n\n\n\ntmxfile=\r\n=3Dfile(tmxname, &quot;w&quot;)\n\ntmxfile.write(r&#39;&lt;?xml version=3D&quot;1.0&quot; encoding=3D&quot;UT=\r\nF-8&quot;?&gt;&#39; + &quot;&#92;n&quot; +\nr&#39;&lt;!DOCTYPE tmx SYSTEM &quot;tmx11.dtd&quot;&gt;&#39; + &quot;&#92;n&quot; + r&#39;&lt;tmx versi=\r\non=3D&quot;1.1&quot;&gt;&#39; +\n&quot;&#92;n&quot; + r&quot;  &lt;header&quot; + &quot;&#92;n&quot; + r&#39;    creationtool=3D&quot;org.omega=\r\nt.OmegaT&quot;&#39; +\n&quot;&#92;n&quot; + r&#39;    creationtoolversion=3D&quot;1&quot;&#39; + &quot;&#92;n&quot; + r&#39;   \nsegtype=\r\n=3D&quot;paragraph&quot;&#39; + &quot;&#92;n&quot; + r&#39;    o-tmf=3D&quot;org.omegat.OmegaT TMX&quot;&#39; +\n&quot;&#92;n&quot; + r&#39;=\r\n    adminlang=3D&quot;&#39; + fntlng +&#39;&quot;&#39; + &quot;&#92;n&quot; + r&#39;    srclang=3D&quot;&#39; +\nfntlng +&#39;&quot;&#39; =\r\n+ &quot;&#92;n&quot; + r&#39;    datatype=3D&quot;plaintext&quot;&#39; + &quot;&#92;n&quot; + r&#39;  &gt;&#39; +\n&quot;&#92;n&quot; + r&#39;  &lt;/heade=\r\nr&gt;&#39; + &quot;&#92;n&quot; + r&#39;  &lt;body&gt;&#39; + &quot;&#92;n&quot;)\n\n\n\nfor x in ftxt:\n\n****if x.isspace():\n\n**=\r\n******pass\n\n****elif x.strip() =3D=3D ttxt[(ftxt.index(x))].strip():\n\n*****=\r\n***pass\n\n****else:\n\n********tmxfile.write(r&#39;    &lt;tu&gt;&#39; + &quot;&#92;n&quot; + r&#39;      &lt;tuv=\r\n lang=3D&quot;&#39; +\nfntlng + r&#39;&quot;&gt;&#39; + &quot;&#92;n&quot; + r&#39;        &lt;seg&gt;&#39; + safestring(x.strip(=\r\n)) +\nr&#39;&lt;/seg&gt;&#39; + &quot;&#92;n&quot;+ r&#39;      &lt;/tuv&gt;&#39; + &quot;&#92;n&quot; + r&#39;      &lt;tuv lang=3D&quot;&#39; +\nce=\r\nllng + &#39;&quot;&gt;&#39; + &quot;&#92;n&quot;+ r&#39;        &lt;seg&gt;&#39; +\nsafestring(ttxt[(ftxt.index(x))].str=\r\nip()) + r&#39;&lt;/seg&gt;&#39; + &quot;&#92;n&quot; + r&#39;    \n &lt;/tuv&gt;&#39; + &quot;&#92;n&quot; + r&#39;    &lt;/tu&gt;&#39; + &quot;&#92;n&quot;)\n\n\n=\r\n\ntmxfile.write(r&#39;  &lt;/body&gt;&#39; + &quot;&#92;n&quot; + r&#39;&lt;/tmx&gt;&#39;)\n\ntmxfile.close()\n\nprint(&quot;Fi=\r\nnished&quot;)\n\n\n\n\n\n\n\n\n\n"}}