From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67002 Path: news.gmane.org!not-for-mail From: Florian Wobbe Newsgroups: gmane.comp.tex.context Subject: Re: lang-wrd.lua - howto count 1-, 2-, and 3-letter words? Date: Mon, 14 Mar 2011 21:04:58 +0100 Message-ID: <2B1DA0FE-4305-4FAD-AB05-1039255057C6@awi.de> References: <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 1300133117 3538 80.91.229.12 (14 Mar 2011 20:05:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 20:05:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 14 21:05:13 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 1PzE0v-0005Ah-EZ for gctc-ntg-context-518@m.gmane.org; Mon, 14 Mar 2011 21:05:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4037CCAB01; Mon, 14 Mar 2011 21:05:13 +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 dZz1VIKumtZX; Mon, 14 Mar 2011 21:05:12 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5E0F3CAB04; Mon, 14 Mar 2011 21:05:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 86A80CAB04 for ; Mon, 14 Mar 2011 21:05:08 +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 a5lsP1R9K0gJ for ; Mon, 14 Mar 2011 21:05:06 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 72343CAB01 for ; Mon, 14 Mar 2011 21:05:06 +0100 (CET) Original-Received: from mails3.awi.de (mails3.awi.de [134.1.2.14]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2EK55nD005602 for ; Mon, 14 Mar 2011 21:05:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mails3.awi.de (Postfix) with ESMTP id 1C590118F82 for ; Mon, 14 Mar 2011 21:05:05 +0100 (MET) X-Virus-Scanned: amavisd-new at awi.de Original-Received: from localhost ([127.0.0.1]) by localhost (mails3.awi.de [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id nT1p3ebwBpZm for ; Mon, 14 Mar 2011 21:04:59 +0100 (MET) Original-Received: from msg.awi.de (msg.awi.de [134.1.3.16]) by mails3.awi.de (Postfix) with ESMTP id 90B83118F7A for ; Mon, 14 Mar 2011 21:04:59 +0100 (MET) Original-Received: from [192.168.22.100] ([unknown] [217.253.117.227]) by msg.awi.de (Sun Java(tm) System Messaging Server 7u3-12.01 64bit (built Oct 15 2009)) with ESMTPSA id <0LI2004RJD4BLL40@msg.awi.de> for ntg-context@ntg.nl; Mon, 14 Mar 2011 21:04:59 +0100 (MET) In-reply-to: <7B4626C28B06A7418E938BF73D6DEE18F9E71DB68A@KCL-MAIL05.kclad.ds.kcl.ac.uk> X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=134.1.2.14; country=DE; region=03; city=Bremerhaven; latitude=53.5500; longitude=8.5833; http://maps.google.com/maps?q=53.5500,8.5833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06Ej8559A - 8235b87db471 - 20110314 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:67002 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. I thought I did but obviously something went wrong. Now it works... > Otherwise you could use directly in your document: > \ctxlua{languages.words.threshold=1} Thanks, exactly what I need! Florian ___________________________________________________________________________________ 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 ___________________________________________________________________________________