Received: from mail-yw0-f61.google.com ([209.85.213.61]:56220) by stodi.digitalkingdom.org with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) (envelope-from ) id 1R9prt-00054m-T9; Fri, 30 Sep 2011 20:04:09 -0700 Received: by ywm3 with SMTP id 3sf3309140ywm.16 for ; Fri, 30 Sep 2011 20:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:message-id:in-reply-to:references:date :subject:from:to:user-agent:mime-version:x-priority:importance :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=9+glqMU24+ZSlBW1ZEbPk8xXXPdgKAbUCGUiOcdtCvE=; b=nwX1XOzpjg13UKHfBgBrSLayDB8R6l+lo3pKCxEFNOAaDhFRhcTOzDsgHuz/7vn+fr KDZx+oaRtyskH3dJASANUzE+ZpUyy0BIrnNnQdkSuFLOQ1OKxbxUUueuXyXA+5CHgcfp 1VXq16z3MirbI1FBdVGUj2PiFwMhf21RcAuoE= Received: by 10.146.240.17 with SMTP id n17mr2487749yah.13.1317438232943; Fri, 30 Sep 2011 20:03:52 -0700 (PDT) X-BeenThere: lojban@googlegroups.com Received: by 10.90.67.18 with SMTP id p18ls13186250aga.2.gmail; Fri, 30 Sep 2011 20:03:51 -0700 (PDT) Received: by 10.236.80.69 with SMTP id j45mr367901yhe.2.1317438231371; Fri, 30 Sep 2011 20:03:51 -0700 (PDT) Received: by 10.236.80.69 with SMTP id j45mr367900yhe.2.1317438231361; Fri, 30 Sep 2011 20:03:51 -0700 (PDT) Received: from questmail.futurequest.net (questmail.futurequest.net. [69.5.6.251]) by gmr-mx.google.com with ESMTPS id z72si2204532yhg.0.2011.09.30.20.03.51 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 30 Sep 2011 20:03:51 -0700 (PDT) Received-SPF: neutral (google.com: 69.5.6.251 is neither permitted nor denied by best guess record for domain of lojban707@fagricipni.com) client-ip=69.5.6.251; Received: (qmail 29508 invoked by uid 12318); 1 Oct 2011 03:03:50 -0000 Received: from 67.58.190.131 (SquirrelMail authenticated user lojban707@fagricipni.com) by QuestMail.FutureQuest.net with HTTP; Fri, 30 Sep 2011 23:03:50 -0400 Message-ID: <9c2f26424f4f8fbc5ffb0d0c167d4858.squirrel@QuestMail.FutureQuest.net> In-Reply-To: References: Date: Fri, 30 Sep 2011 23:03:50 -0400 Subject: Re: [lojban] Consonant Clusters? From: "fagricipni" To: lojban@googlegroups.com User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 X-Priority: 3 (Normal) Importance: Normal X-Original-Sender: lojban707@fagricipni.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 69.5.6.251 is neither permitted nor denied by best guess record for domain of lojban707@fagricipni.com) smtp.mail=lojban707@fagricipni.com; domainkeys=pass header.From=lojban707@fagricipni.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: text/plain; charset=ISO-8859-1 X-Spam-Score: -0.7 (/) X-Spam_score: -0.7 X-Spam_score_int: -6 X-Spam_bar: / OK, I've gone ahead and done all three, they are called: is_lujvo_triple(), is_cmene_triple(), is_init_triple() . Since the following functions are the fundamental core of my consonant and consonant pair type quizzing programs, and will serve the same function in my consonant triple type quizzing program; I'm asking any programmers to look over this code and make sure that I have not done anything stupid in these functions. I'll put up the full code on my web site when I am done writing the triple _quizzing_ part; based on my experience with writing the other quizzing parts that should be done by Monday evening _at the very latest_. If anyone wants to be emailed the full Python code when the program is complete, send a request to lojban707@fagricipni.com requesting the complete program. def is_unvoiced(letter): return (letter in ("c","f","k","p","s","t","x")) def is_voiced(letter): return (letter in ("b","d","g","j","v","z")) def is_syllabic(letter): return (letter in ("l","m","n","r")) def is_permiss_pair(pair): if ( is_voiced(pair[0]) and is_unvoiced(pair[1]) ) or \ ( is_unvoiced(pair[0]) and is_voiced(pair[1]) ): return False if pair[0]==pair[1]: return False if pair in ("cs","sc","jz","zj","cx","kx","xc","xk","mz"): return False return True def is_init_pair(pair): return (pair in ("bl","br","cf","ck","cl","cm","cn","cp","cr", "ct","dj","dr","dz","fl","fr","gl","gr","jb", "jd","jg","jm","jv","kl","kr","ml","mr","pl", "pr","sf","sk","sl","sm","sn","sp","sr","st", "tc","tr","ts","vl","vr","xl","xr","zb","zd", "zg","zm","zv")) def is_lujvo_triple(triple): if triple in ("ndj","ndz","ntc","nts"): return False if is_permiss_pair(triple[:2]) and is_init_pair(triple[1:]): return True return False def is_cmene_triple(triple): if is_permiss_pair(triple[:2]) and is_permiss_pair(triple[1:]): return True return False def is_init_triple(triple): if is_init_pair(triple[:2]) and is_init_pair(triple[1:]): return True return False -- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/lojban?hl=en.