From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69111 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: measuring alphabet length Date: Mon, 13 Jun 2011 14:34:34 +0200 Message-ID: References: <2BAEF00E-F2AE-4E30-9F86-548BB2A7B918@fiee.net> <4DD261BD.60309@wxs.nl> <23BF6F68-2A11-45A8-936A-1CBA0536CDE0@fiee.net> <4DF5FF7B.1000400@tu-harburg.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/mixed; boundary="===============0162880277==" X-Trace: dough.gmane.org 1307968492 23357 80.91.229.12 (13 Jun 2011 12:34:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2011 12:34:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 13 14:34:48 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 1QW6Lw-00031g-DT for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jun 2011 14:34:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 80EE3CADAC; Mon, 13 Jun 2011 14:34:47 +0200 (CEST) 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 DOV55XnsVDSo; Mon, 13 Jun 2011 14:34:43 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 88800CADA1; Mon, 13 Jun 2011 14:34:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C7D9ECADA1 for ; Mon, 13 Jun 2011 14:34:41 +0200 (CEST) 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 eyFb0iJ2VQsv for ; Mon, 13 Jun 2011 14:34:39 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 5C2D8CADA0 for ; Mon, 13 Jun 2011 14:34:39 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5DCYca4016346 for ; Mon, 13 Jun 2011 14:34:38 +0200 Original-Received: by bwz17 with SMTP id 17so5664527bwz.14 for ; Mon, 13 Jun 2011 05:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:mime-version:content-type:subject:date :in-reply-to:to:references:message-id:x-mailer; bh=h/luzOpbLz8ITXvhTsAdNW+Bv1WO6hCwuGbJgYHfZwM=; b=UWgoL/A6sbO+d9On2skxqa9t2tldFV0GMC2ZFlB1jr6K4QHT1uDAnE2b7chcrn8CKK w26mGtt4RPuK5dxWxTn1BVlqLzYgZVp2YfMLRzvAb+RYLXwoTtCt8GcWqhon32o9dBNZ BoMz2lPYBzid5ukYrYerGxK5HiQ8UmmIdJPFY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=LmRN1swGGz7yHB5fnHlE9TvD7YJAX5ziC2xltxMv2oKldyePAX/yUrGnUkuDufqD/h uMtbtNyK4Ap56lBJCu182fPVM2eQaE0mayxaQs5kTLPSVcJ/vfuAacdHIMx3ZrhsWq9g dsQliLn6bMUZlLVjcG1D/HgM4MnMFmsjKBR2U= Original-Received: by 10.204.74.70 with SMTP id t6mr1845967bkj.21.1307968478195; Mon, 13 Jun 2011 05:34:38 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B0EE88E.dip.t-dialin.net [91.14.232.142]) by mx.google.com with ESMTPS id r19sm1511368bkr.14.2011.06.13.05.34.36 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Jun 2011 05:34:37 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rEToyC0b - 128ecd53d855 - 20110613 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:69111 Archived-At: --===============0162880277== Content-Type: multipart/alternative; boundary=Apple-Mail-10--1051207410 --Apple-Mail-10--1051207410 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 13.06.2011 um 14:30 schrieb luigi scarso: >> How can I do the same thing in ConTeXt? > plain TeX is ok, for example, > \newdimen\AlphaBet > \bgroup \setbox10=3D\hbox{abcdefghijklmnopqrstuvwxyz} > \global\AlphaBet=3D\wd10\egroup > \the\AlphaBet \starttext \dowithnextbox {\edef\AlphabetLength{\the\nextboxwd}}% \hbox{abcdefghijklmnopqrstuvwxyz} \AlphabetLength \stoptext Hans wrote also a command for this but it never went into core: = http://archive.contextgarden.net/message/20070314.120612.adab0a8b.en.html Wolfgang --Apple-Mail-10--1051207410 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
How can I do the same thing in = ConTeXt?
plain TeX is ok, for = example,
\newdimen\AlphaBet
\bgroup = \setbox10=3D\hbox{abcdefghijklmnopqrstuvwxyz}
\global\AlphaBet=3D\wd10\= egroup
\the\AlphaBet

\startte= xt

\dowithnextbox
  {\edef\Al= phabetLength{\the\nextboxwd}}%
   = \hbox{abcdefghijklmnopqrstuvwxyz}

\AlphabetLength=

\stoptext

Hans = wrote also a command for this but it never went into core: http://archive.contextgarden.net/message/20070314.120612.adab0a8b= .en.html

Wolfgang

= = --Apple-Mail-10--1051207410-- --===============0162880277== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0162880277==--