From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66976 Path: news.gmane.org!not-for-mail From: Florian Wobbe Newsgroups: gmane.comp.tex.context Subject: lang-wrd.lua - howto count 1-, 2-, and 3-letter words? Date: Mon, 14 Mar 2011 12:56:36 +0100 Message-ID: <29C2D648-7DB7-44BA-BC03-392C14A6B35D@awi.de> 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 1300103833 4252 80.91.229.12 (14 Mar 2011 11:57:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 11:57:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 14 12:57:09 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 1Pz6Ob-0002n0-5F for gctc-ntg-context-518@m.gmane.org; Mon, 14 Mar 2011 12:57:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DD4E4CAB1B; Mon, 14 Mar 2011 12:57: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 jiE-UfNFcL5s; Mon, 14 Mar 2011 12:57:06 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 44C42CAB0F; Mon, 14 Mar 2011 12:57:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03346CAB0F for ; Mon, 14 Mar 2011 12:57:05 +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 x9U71qHm-uWC for ; Mon, 14 Mar 2011 12:57:03 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id E492BCAB0B for ; Mon, 14 Mar 2011 12:57:02 +0100 (CET) Original-Received: from mails3.awi.de (mails3.awi.de [134.1.2.14]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2EBv1AL023476 for ; Mon, 14 Mar 2011 12:57:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mails3.awi.de (Postfix) with ESMTP id 2B652115E84 for ; Mon, 14 Mar 2011 12:56:59 +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 QFFV1mStpQTz for ; Mon, 14 Mar 2011 12:56:54 +0100 (MET) Original-Received: from msg.awi.de (msg.awi.de [134.1.3.16]) by mails3.awi.de (Postfix) with ESMTP id 607E4115B68 for ; Mon, 14 Mar 2011 12:56:37 +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 <0LI100LYFQID0UA0@msg.awi.de> for ntg-context@ntg.nl; Mon, 14 Mar 2011 12:56:37 +0100 (MET) 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: 0dEiXV1Ng - 1903ed39f3c3 - 20110314 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:66976 Archived-At: Hi, I'd like to ask an early question again in a different way: I need to count every word in a document but lang-wrd.lua counts only words with 4+ letters. So I tried to set "words.threshold = 4" in context/base/lang-wrd.lua to smaller values but this does not change anything. I don't know where to start looking. Also I am searching for a non-global solution without changing the core files. Thanks! 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 ___________________________________________________________________________________