From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66997 Path: news.gmane.org!not-for-mail From: "Reviczky, Adam" Newsgroups: gmane.comp.tex.context Subject: Re: lang-wrd.lua - howto count 1-, 2-, and 3-letter words? Date: Mon, 14 Mar 2011 19:21:09 +0000 Message-ID: <7B4626C28B06A7418E938BF73D6DEE18F9E71DB68A@KCL-MAIL05.kclad.ds.kcl.ac.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300130496 19367 80.91.229.12 (14 Mar 2011 19:21:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 19:21:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 14 20:21:31 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PzDKa-0001EG-P0 for gctc-ntg-context-518@m.gmane.org; Mon, 14 Mar 2011 20:21:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D80B0CAAFE; Mon, 14 Mar 2011 20:21:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3n8IdNd6slOX; Mon, 14 Mar 2011 20:21:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 43B30CAB01; Mon, 14 Mar 2011 20:21:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 603F3CAB01 for ; Mon, 14 Mar 2011 20:21:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id NSQeN8+AdQVl for ; Mon, 14 Mar 2011 20:21:12 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 22EBCCAAFE for ; Mon, 14 Mar 2011 20:21:12 +0100 (CET) Original-Received: from mail72.messagelabs.com (mail72.messagelabs.com [193.109.255.147]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2EJLBGZ023405 for ; Mon, 14 Mar 2011 20:21:11 +0100 X-VirusChecked: Checked X-Env-Sender: adam.reviczky@kcl.ac.uk X-Msg-Ref: server-4.tower-72.messagelabs.com!1300130471!48052755!1 X-StarScan-Version: 6.2.9; banners=-,-,- X-Originating-IP: [137.73.2.214] Original-Received: (qmail 23001 invoked from network); 14 Mar 2011 19:21:11 -0000 Original-Received: from outbound.kcl.ac.uk (HELO outbound.kcl.ac.uk) (137.73.2.214) by server-4.tower-72.messagelabs.com with DHE-RSA-AES256-SHA encrypted SMTP; 14 Mar 2011 19:21:11 -0000 Original-Received: from ml-relay1.kcl.ac.uk ([137.73.2.230] helo=hazel) by outbound.kcl.ac.uk outbound with esmtp (TLSv1:DHE-RSA-AES256-SHA:256) id 1PzDKI-0003i2-9w for ntg-context@ntg.nl; Mon, 14 Mar 2011 19:21:10 +0000 Original-Received: from [194.83.7.204] (helo=KCL-ETS01.ds.kcl.ac.uk) by hazel mlmx with esmtp id 1PzDKI-0003ht-3M for ntg-context@ntg.nl; Mon, 14 Mar 2011 19:21:10 +0000 Original-Received: from KCL-HTS04.kclad.ds.kcl.ac.uk (10.12.7.211) by KCL-ETS01.ds.kcl.ac.uk (10.12.4.20) with Microsoft SMTP Server (TLS) id 8.1.375.2; Mon, 14 Mar 2011 19:21:09 +0000 Original-Received: from KCL-MAIL05.kclad.ds.kcl.ac.uk ([193.63.72.94]) by KCL-HTS04.kclad.ds.kcl.ac.uk ([10.12.7.211]) with mapi; Mon, 14 Mar 2011 19:21:09 +0000 Thread-Topic: lang-wrd.lua - howto count 1-, 2-, and 3-letter words? Thread-Index: AQHL4nz5RLHsMxJrWUqQ4O7LAPZogw== Accept-Language: en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=193.109.255.147; country=GB; latitude=54.0000; longitude=-2.0000; http://maps.google.com/maps?q=54.0000,-2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0xEj7lbcz - facdcad90133 - 20110314 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:66997 Archived-At: >> So I tried to set "words.threshold = 4" in context/base/lang-wrd.lua to smaller values but this does not change anything. You have to regenerate the formats too, after you changed the value. Otherwise you could use directly in your document: \ctxlua{languages.words.threshold=1} Adam ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________