From lojban+bncCMLaiI6rCBCOnMDnBBoEF0WWHg@googlegroups.com Fri Nov 26 11:44:31 2010 Received: from mail-vw0-f61.google.com ([209.85.212.61]) by chain.digitalkingdom.org with esmtp (Exim 4.72) (envelope-from ) id 1PM4DY-0002FB-2W; Fri, 26 Nov 2010 11:44:30 -0800 Received: by vws1 with SMTP id 1sf939141vws.16 for ; Fri, 26 Nov 2010 11:44:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:mime-version :received:received:date:x-ip:user-agent:x-http-useragent:message-id :subject:from:to:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-transfer-encoding; bh=xgs+tU37jwFPxlOZrfv3ibiMOQd6MNnhcuW4YeKXoS0=; b=yPHpbTpwXsGMb3oJID+Vk9YF3kCXENjpJKGslZUxG4kCryl0kaAnOI4zHwnNYCBK0+ tFm7M9klvm5S21pe+71TAVy1Nh13t+6x2EOQAd+npqmsye28bh+EkS78sZUllh/BuERj fbUOzquGp0s0L526AG0s/A9qx2KsUJWMeY92g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:mime-version:date:x-ip:user-agent:x-http-useragent :message-id:subject:from:to:x-original-sender:reply-to:precedence :mailing-list:list-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; b=WJgihE/NtwxIzZH1LnmoqXDeh5I1lQz7Gd6Cl0HoHmJZPpafyF0bkV5wg5tWehOcwa vo1sGqz/4twLwql32Aw8r0skpc9mSHPnjjksySRIvhRjjsS9B5VQX9wataZZwGwdd3VQ MTdNK4mVGFUYYqRXXR9Y0hYJ1kYGMnCfWt26Y= Received: by 10.220.178.6 with SMTP id bk6mr43843vcb.59.1290800654331; Fri, 26 Nov 2010 11:44:14 -0800 (PST) X-BeenThere: lojban@googlegroups.com Received: by 10.220.158.5 with SMTP id d5ls305900vcx.2.p; Fri, 26 Nov 2010 11:44:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.177.67 with SMTP id bh3mr82090vcb.47.1290800652540; Fri, 26 Nov 2010 11:44:12 -0800 (PST) Received: by k13g2000vbq.googlegroups.com with HTTP; Fri, 26 Nov 2010 11:44:12 -0800 (PST) Date: Fri, 26 Nov 2010 11:44:12 -0800 (PST) X-IP: 87.206.36.220 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Ubuntu/10.10 Chromium/7.0.517.44 Chrome/7.0.517.44 Safari/534.7,gzip(gfe) Message-ID: <8dddf364-04fc-4857-8415-564d3d0444a8@k13g2000vbq.googlegroups.com> Subject: [lojban] Simple script making easier to read Lojban From: ianek To: lojban X-Original-Sender: janek37@gmail.com Reply-To: lojban@googlegroups.com Precedence: list Mailing-list: list lojban@googlegroups.com; contact lojban+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: lojban@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable coi I wrote a very simple script: http://janek37.pastebin.pl/31200 It's used with one parameter =96 the url of a page in Lojban. It reads the page and adds titles to all recognized Lojban words. (and prints the resulting HTML to stdout) A sample output: http://students.mimuw.edu.pl/~js/lpp/lpp.html Hover on any word and you'll see it's definition from jbovlaste. It's very simple, so it has some faults: it doesn't recognize javascript, so don't even try it on pages with embed javascript. Also, it ignores markup, so you'll see all $x_{1}$ etc. Apparently it also messes with unicode and breaks the =AB=BB quotes. It uses a module jbovlaste.py, which contains only one variable, 'definitions', which is a tuple of pairs (word, definition). You can download both files at http://students.mimuw.edu.pl/~js/lpp/titlete= st.zip I don't have very much time to play with it, so any contributions are welcome :) It would be nice if it looked more like hover tips in jbovlaste, and it would be extra nice if it showed definitions for each rafsi in unrecognized lujvo. mu'o mi'e ianek --=20 You received this message because you are subscribed to the Google Groups "= lojban" group. To post to this group, send email to lojban@googlegroups.com. To unsubscribe from this group, send email to lojban+unsubscribe@googlegrou= ps.com. For more options, visit this group at http://groups.google.com/group/lojban= ?hl=3Den.