{"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":"CREATE"},{"name":"READ"},{"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":"UPDATE"},{"name":"CREATE"},{"name":"READ"},{"name":"DELETE"}]},{"resourceType":"PIN","capabilities":[{"name":"UPDATE"},{"name":"CREATE"},{"name":"READ"},{"name":"DELETE"}]}],"modStatus":"MODERATOR","subStatus":"NORMAL","groupUrl":"groups.yahoo.com","intlCode":"us"},"comscore":"pageview_candidate","ygData":{"userId":261302706,"authorName":"anthony baldwin","from":"anthony baldwin &lt;anthony@baldwinlinguas.com&gt;","profile":"photodharma","replyTo":"LIST","senderId":"G15UMrgzTgEmut-hfNd5urns4lEr9RCUv9boyZ_REvL2q3r8CxopVwPiZ41kuFhmYKvhRb2oUGVVc3AebjZLNgi6Aw2-E4vm3HiPXmItJ0jX2nY","spamInfo":{"isSpam":false,"reason":"12"},"subject":"Re: [OmT] OmegaT and GoogleTranslate","postDate":"1203878736","msgId":9660,"canDelete":true,"contentTrasformed":false,"systemMessage":false,"headers":{"messageIdInHeader":"PDQ3QzFCQjUwLjEwMDA2MDhAYmFsZHdpbmxpbmd1YXMuY29tPg==","inReplyToHeader":"PDQ3QzFCMDk0LjQwMDA1MDJAbWFyY3ByaW9yLmRlPg==","referencesHeader":"PGZwcG1qdCs2bms4QGVHcm91cHMuY29tPiA8NDdDMENEMUYuOTA0MDEwNUBiYWxkd2lubGluZ3Vhcy5jb20+IDw0N0MxMUVCMS41MDIwNzA3QG1hcmNwcmlvci5kZT4gPDQ3QzEyODVBLjcwNDA2MDhAYmFsZHdpbmxpbmd1YXMuY29tPiA8NDdDMTUxODQuMjA5MDAwMUBtYXJjcHJpb3IuZGU+IDw0N0MxQTZCNy45MDkwMzA1QGJhbGR3aW5saW5ndWFzLmNvbT4gPDQ3QzFCMDk0LjQwMDA1MDJAbWFyY3ByaW9yLmRlPg=="},"prevInTopic":9659,"nextInTopic":9661,"prevInTime":9659,"nextInTime":9661,"topicId":9624,"numMessagesInTopic":32,"msgSnippet":"... Yah, the http function is grabbing it, but not rendering it in human readable format in the textbox. You see all the html code, not just the relevant","rawEmail":"Return-Path: &lt;anthony@baldwinlinguas.com&gt;\r\nX-Sender: anthony@baldwinlinguas.com\r\nX-Apparently-To: omegat@yahoogroups.com\r\nX-Received: (qmail 17477 invoked from network); 24 Feb 2008 18:45:39 -0000\r\nX-Received: from unknown (66.218.67.96)\n  by m44.grp.scd.yahoo.com with QMQP; 24 Feb 2008 18:45:39 -0000\r\nX-Received: from unknown (HELO QMTA06.emeryville.ca.mail.comcast.net) (76.96.30.56)\n  by mta17.grp.scd.yahoo.com with SMTP; 24 Feb 2008 18:45:39 -0000\r\nX-Received: from OMTA05.emeryville.ca.mail.comcast.net ([76.96.30.43])\n\tby QMTA06.emeryville.ca.mail.comcast.net with comcast\n\tid tWBM1Y00D0vp7WLA601h00; Sun, 24 Feb 2008 18:45:13 +0000\r\nX-Received: from [192.168.1.103] ([71.234.192.212])\n\tby OMTA05.emeryville.ca.mail.comcast.net with comcast\n\tid tWld1Y00B4bR3XK8R00000; Sun, 24 Feb 2008 18:45:38 +0000\r\nX-Authority-Analysis: v=1.0 c=1 a=o8meOYmdAAAA:8 a=jLfpXq6zAAAA:8\n a=hoKdFVL9AAAA:8 a=IQ3L2ocAFKKah_yMAIcA:9 a=TvTMtWsEovrF5AIjzcMA:7\n a=Z2LV2pbvNVUyRA6p5z5JBneJ3tkA:4 a=UxOgjkskmtEA:10 a=vNGxQsTWjH8A:10\r\nMessage-ID: &lt;47C1BB50.1000608@baldwinlinguas.com&gt;\r\nDate: Sun, 24 Feb 2008 13:45:36 -0500\r\nUser-Agent: Thunderbird 2.0.0.9 (X11/20071031)\r\nMIME-Version: 1.0\r\nTo: OmegaT@yahoogroups.com\r\nReferences: &lt;fppmjt+6nk8@eGroups.com&gt; &lt;47C0CD1F.9040105@baldwinlinguas.com&gt; &lt;47C11EB1.5020707@marcprior.de&gt; &lt;47C1285A.7040608@baldwinlinguas.com&gt; &lt;47C15184.2090001@marcprior.de&gt; &lt;47C1A6B7.9090305@baldwinlinguas.com&gt; &lt;47C1B094.4000502@marcprior.de&gt;\r\nIn-Reply-To: &lt;47C1B094.4000502@marcprior.de&gt;\r\nContent-Type: text/plain; charset=ISO-8859-1; format=flowed\r\nContent-Transfer-Encoding: 7bit\r\nX-Originating-IP: 76.96.30.56\r\nX-eGroups-Msg-Info: 1:12:0:0:0\r\nFrom: anthony baldwin &lt;anthony@baldwinlinguas.com&gt;\r\nSubject: Re: [OmT] OmegaT and GoogleTranslate\r\nX-Yahoo-Group-Post: member; u=261302706; y=UOkq34fTbATtGclthjJRv6SLHkZD3mpDmC5Hax6xGG-2sphUhzA\r\nX-Yahoo-Profile: photodharma\r\n\r\nMarc Prior wrote:\n&gt; anthony baldwin schrieb:\n&gt; \n&gt;&gt;&gt; You don&#39;t need a browser. You need an http client.\n&gt;&gt; See? This is how much of an expert I am...I&#39;m kind of\n&gt;&gt; fuzzy on the difference here.\n&gt; \n&gt; An http client just goes onto the &#39;net and delivers info back.\n&gt; An html rendering engine takes html code (from any source) and displays \n&gt; it nicely. And a browser combines both functions.\n\nYah, the http function is grabbing it, but not rendering it\nin &quot;human readable&quot; format in the textbox.\nYou see all the html code, not just the relevant text.\n\n&gt; \n&gt;&gt; I was thinking about trying to find the parts of Hv3 or BrowseX that\n&gt;&gt; grab stuff from the web and write it.\n&gt; \n&gt; If you&#39;re thinking of exploiting an existing, highly integrated app and \n&gt; just taking the code you need from it, well... good luck. I thought I \n&gt; could do that at first, but there was no way that I could understand the \n&gt; code of experienced programmers. It&#39;s like taking a BMW and trying to \n&gt; make a bicycle out of it. But you seem to have made more progress with \n&gt; Tcl/Tk in three months than I have in five years, so what do I know. :-)\n\nThree months?\nI just started writing Tcl in January.\nI think it&#39;s been less than a month.\n\n&gt; \n&gt;&gt; My undertanding of the widget is that it can display web contenct in\n&gt;&gt; a widget, kind of like a textbox.\n&gt; \n&gt; You should have no trouble embedding tkhtml in your own UI.\n\nshould...perhaps, we&#39;ll see.\nI tried working with tkhtml a bit last night and it was\na bit rough...\n\n&gt; \n&gt;&gt; I&#39;m not sure how that would work with grabbing results from several\n&gt;&gt; resources at once, though, unless it opened multiple widgets, which\n&gt;&gt; seems a bit cumbersome.\n&gt; \n&gt; I&#39;d think more in terms of creating a single html page and loading the \n&gt; results from the different sources into it, and then displaying it in a \n&gt; tkhtml widget. But you could probably do it with multiple widgets as well.\n\nit&#39;s funny, but, I think I would need to sharpen my html skills\nto make such a page.\nI think to grab text from other pages and post it in a page\nI would need a java script or rss, no?\n(see what we&#39;re working with here?)\n\n&gt; \n&gt;&gt;&gt; - Query several dictionaries at the same time, and display the results \n&gt;&gt;&gt; in a single window\n&gt;&gt;&gt; - Only display the query results, and not all the other junk displayed \n&gt;&gt;&gt; on the page\n&gt;&gt;&gt; - With a minimum of keystrokes, modify your query and relaunch it\n&gt;&gt;&gt; - Kill the display window with Escape\n&gt;&gt;&gt;\n&gt;&gt;&gt; All this can be implemented easily by modifying Ondiloto&#39;s text widget.\n&gt;&gt; I thought it would need a htmlwidget.\n&gt;&gt; If all it needs is a text widget, well, then it&#39;s a piece of cake.\n&gt; \n&gt; None of the above needs an html widget. You only need an html widget if \n&gt; you want to display html. How important is that to you? Personally, all \n&gt; I&#39;m interested in is displaying textual information: terms, their \n&gt; translations, perhaps some associated grammatical or lexical \n&gt; information. I don&#39;t need any fancy layout or colours. Like OmegaT&#39;s \n&gt; panes (glossary, match, source file list etc.).\n\nYeah, but http is not extracting the text, so, the entire webpage&#39;s\nhtml source is shown in the text widget.\nI think it needs rendering.\n\n&gt; \n&gt;&gt;&gt; If all you want is a keyboard shortcut which uses the primary selection \n&gt;&gt;&gt; (highlighted text) to query an online dictionary and simply displays the \n&gt;&gt;&gt; results in a browser window, whether Firefox, konqueror, Hv3 or \n&gt;&gt;&gt; whatever, you don&#39;t need Ondiloto or Tcl/Tk at all. You can simply pipe \n&gt;&gt;&gt; Klipper output to a browser using a couple of lines of bash script.\n&gt;&gt; Could probably even pipe that to a textbox in zenity or kdialog, now you\n&gt;&gt; mention it.\n&gt; \n&gt; I don&#39;t know what zenity or kdialog do, but the &quot;browser&quot; is both the \n&gt; http client and the rendering engine. What your script is doing is \n&gt; forming a URL on the fly from the highlighted text, then launching the \n&gt; browser with the URL which it has created as an argument.\n&gt; \n&gt; Marc\n&gt; \n&gt; \nzenity or kdialog just make little dialogs (info, error, message, textbox).\n\nI used zenity to gui-ify the tmx2txt script and stuck it on Linguas OS, \neven.\n\nMy daughter is eating hotdogs and playing on clubpenguin.com and waiting \nfor me, now that lunch out is no longer an option, to take her to the \npark and build a snowman...\n\nI&#39;ll be back later.\n\n/tony\n\n-- \nAnthony Baldwin\nhttp://www.BaldwinLinguas.com\nTranslation & Interpreting\nhttp://www.TransProCalc.org\nFree project mgmt software for translators and LSPs\nhttp://www.LinguasOS.org\nLinux for Translators\n\n\n"}}