Received: from mail-lb0-f184.google.com ([209.85.217.184]:41283) by stodi.digitalkingdom.org with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) (envelope-from ) id 1V3Bec-0005fj-O8 for lojban-list-archive@lojban.org; Sat, 27 Jul 2013 14:04:06 -0700 Received: by mail-lb0-f184.google.com with SMTP id t13sf49614lbd.11 for ; Sat, 27 Jul 2013 14:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:mime-version:in-reply-to:references:date:message-id :subject:from:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=QP8xLluxVaX7Ebd6JuQycUa9BA+bN++NDgQmrx2eAZk=; b=eJVDGgtw/3QHzlWWsix4WV0nOeGXIjZLfN9/niEa9C/MmjINaTKpnS4Cgj2AGajLa+ qnlvQp9fku89z75wsHG+2GS0qX3Utvj+sjDsPp+qhovdZbig4I3+wyD2q68oKtLz9qvB dm+0anhfODep4vxUWqrSLPiZ0TPtjylsV58aS5RGbJHCc7fh8PRsto8O6r2rFaA0BEoT qTdg1/11xl5Gr4soeybSkPR2gwkMJwaoyLbWYXtZwFOK6o4H70gtbNtx4KdlqlbhKEf1 +z8/pv3X3MPkD2Kr9ZqxKHP6cWDBqyPoVkGmk+j38xO+WKR+5dJRjUYZ53Gzeqv30BqL YXyQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-beenthere:mime-version:in-reply-to:references:date:message-id :subject:from:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=QP8xLluxVaX7Ebd6JuQycUa9BA+bN++NDgQmrx2eAZk=; b=w8BvtQyHHWRHZ+UtZ9IDU0eJqg8FXQthiVsQDq5QKnDTV6jLHx7MLJuldFoVwR0rye 3sKg2+OeYf7ZB0htMMIvWHbgdYvkSNPXXMPYmQ2CrCTSwUqLDef+oUMm1IRMa257x5KW vlFS20u7eznqqqUnH4DuvH641YXSFSnvJVCjBTJdvtNKj9BIMKbYeqYM+BfmcPJM+HXY Wo0Pcx2iHRA5Pzee8ufLKBRYfb8k7M9N5po5XomIYcCgVXaSVxL6qxx2dPUDPYxMfeIw R9BbzoRThXbEG3OQPnVHeNHi3wa3WuZGrAtYdquaZHx/sB7HEk4x+C71pCGaGKTTPME2 wvXA== X-Received: by 10.180.19.232 with SMTP id i8mr115601wie.11.1374959027046; Sat, 27 Jul 2013 14:03:47 -0700 (PDT) X-BeenThere: lojban@googlegroups.com Received: by 10.180.90.243 with SMTP id bz19ls406908wib.6.gmail; Sat, 27 Jul 2013 14:03:46 -0700 (PDT) X-Received: by 10.204.228.80 with SMTP id jd16mr2960602bkb.6.1374959026201; Sat, 27 Jul 2013 14:03:46 -0700 (PDT) Received: from mail-la0-x235.google.com (mail-la0-x235.google.com [2a00:1450:4010:c03::235]) by gmr-mx.google.com with ESMTPS id nl4si3303252bkb.2.2013.07.27.14.03.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 27 Jul 2013 14:03:46 -0700 (PDT) Received-SPF: pass (google.com: domain of eyeonus@gmail.com designates 2a00:1450:4010:c03::235 as permitted sender) client-ip=2a00:1450:4010:c03::235; Received: by mail-la0-x235.google.com with SMTP id el20so1010969lab.26 for ; Sat, 27 Jul 2013 14:03:46 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.112.135.99 with SMTP id pr3mr22683318lbb.23.1374959025812; Sat, 27 Jul 2013 14:03:45 -0700 (PDT) Received: by 10.114.180.36 with HTTP; Sat, 27 Jul 2013 14:03:45 -0700 (PDT) In-Reply-To: <02e2fb5e-cdf7-4a5c-8bb2-fe6f5fa1f036@googlegroups.com> References: <02e2fb5e-cdf7-4a5c-8bb2-fe6f5fa1f036@googlegroups.com> Date: Sat, 27 Jul 2013 15:03:45 -0600 Message-ID: Subject: Re: [lojban] Alec's lujvo creator written in python From: Jonathan Jones To: lojban@googlegroups.com X-Original-Sender: eyeonus@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of eyeonus@gmail.com designates 2a00:1450:4010:c03::235 as permitted sender) smtp.mail=eyeonus@gmail.com; dkim=pass header.i=@gmail.com Reply-To: lojban@googlegroups.com Precedence: list Mailing-list: list lojban@googlegroups.com; contact lojban+owners@googlegroups.com List-ID: X-Google-Group-Id: 1004133512417 List-Post: , List-Help: , List-Archive: Sender: lojban@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary=089e01182dee507a6d04e2849850 X-Spam-Score: -0.1 (/) X-Spam_score: -0.1 X-Spam_score_int: 0 X-Spam_bar: / --089e01182dee507a6d04e2849850 Content-Type: text/plain; charset=ISO-8859-1 I think the best way to test it is to compare the output of your Python script with the output of Jvozba http://jwodder.freeshell.org/lojban/jvozba.cgi On Sat, Jul 27, 2013 at 3:47 AM, Alec Lownes wrote: > Hey everyone, > > I'm relatively new to the lojban scene, but I decided to write a lujvo > creator in python to make adding lujvo easier. I tried my best to > understand and codify all of the rules for creating lujvo (although I might > have had some trouble understanding the tosmabru test). If people can > stress test my script to make sure it is working correctly, I would be very > thankful. I have attached the lujvo.py file. You also need to download > http://www.lojban.org/files/history/bothraf.txt into the same directory > as lujvo.py . Then just run lujvo.py and enter in lujvo components to get a > list of (hopefully) correct lujvo with their scores. > > Here is a sample run: > > Include a list of members of the lujvo separated by spaces. Example: >> bangu smuni >> bangu smuni >> 5847 bausmu >> 5878 bansmu >> 7917 bansmuni >> 8008 bangysmu >> 8986 baursmuni >> 10047 bangysmuni >> > > If you find any bugs, please post the lujvo components that gave you the > error, and why the returned lujvo are wrong, and I'll get right on it, > uploading a new version asap. > > Thanks everyone! > > -Alec > > -- > You received this message because you are subscribed to the Google Groups > "lojban" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to lojban+unsubscribe@googlegroups.com. > To post to this group, send email to lojban@googlegroups.com. > Visit this group at http://groups.google.com/group/lojban. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- mu'o mi'e .aionys. .i.e'ucai ko cmima lo pilno be denpa bu .i doi.luk. mi patfu do zo'o (Come to the Dot Side! Luke, I am your father. :D ) -- You received this message because you are subscribed to the Google Groups "lojban" group. To unsubscribe from this group and stop receiving emails from it, send an email to lojban+unsubscribe@googlegroups.com. To post to this group, send email to lojban@googlegroups.com. Visit this group at http://groups.google.com/group/lojban. For more options, visit https://groups.google.com/groups/opt_out. --089e01182dee507a6d04e2849850 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I think the best way to test it is to compare the output of your Python scr= ipt with the output of Jvozba http://jwodder.freeshell.org/lojban/jvozba.cgi

On Sat, Jul 27, 2013 at 3:47 AM, Alec Lownes <alec.lownes@gmail.com> wrote:
Hey everyone,

I'm relatively new to the lojban scene, but I deci= ded to write a lujvo creator in python to make adding lujvo easier. I tried= my best to understand and codify all of the rules for creating lujvo (alth= ough I might have had some trouble understanding the tosmabru test). If peo= ple can stress test my script to make sure it is working correctly, I would= be very thankful. I have attached the lujvo.py file. You also need to down= load
http://www.lojban.org/files/history/bothraf.txt into the same d= irectory as lujvo.py . Then just run lujvo.py and enter in lujvo components= to get a list of (hopefully) correct lujvo with their scores.

Here is a sample run:

Include a list of members of the lujvo separated by spaces. Example= :
bangu smuni
bangu smuni
5847=A0=A0=A0 bausmu
5878=A0=A0=A0 bansmu<= br>7917=A0=A0=A0 bansmuni
8008=A0=A0=A0 bangysmu
8986=A0=A0=A0 baursm= uni
10047=A0=A0 bangysmuni

If you find any bugs= , please post the lujvo components that gave you the error, and why the ret= urned lujvo are wrong, and I'll get right on it, uploading a new versio= n asap.

Thanks everyone!

= -Alec

--
You received this message because you are subscribed to the Google Groups &= quot;lojban" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to lojban+unsubscribe@googlegroups.com.
To post to this group, send email to lojban@googlegroups.com.
Visit this group at http://groups.google.com/group/lojban.
For more options, visit https://groups.google.com/groups/opt_out.
=A0
=A0



--
mu'o = mi'e .aionys.

.i.e'ucai ko cmima lo pilno be denpa bu .i doi= .luk. mi patfu do zo'o
(Come to the Dot Side! Luke, I am your father= . :D )

--
You received this message because you are subscribed to the Google Groups &= quot;lojban" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to lojban+unsubscribe@googlegroups.com.
To post to this group, send email to lojban@googlegroups.com.
Visit this group at http:= //groups.google.com/group/lojban.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
--089e01182dee507a6d04e2849850--