From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69122 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: break strings Date: Mon, 13 Jun 2011 15:58:34 +0200 Message-ID: References: <81BCF9A8-D19A-4DD3-91EE-C552023AA86E@st.estfiles.de> <8EA8D5E8-2692-4D13-881A-4D8E499BF803@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1307973532 21595 80.91.229.12 (13 Jun 2011 13:58:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2011 13:58:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 13 15:58: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 1QW7fD-0002Bc-Tr for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jun 2011 15:58:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25BC7CADAC; Mon, 13 Jun 2011 15:58: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 6LrQh3MIhO1Z; Mon, 13 Jun 2011 15:58:43 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2C9E9CAD90; Mon, 13 Jun 2011 15:58:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 44080CAD90 for ; Mon, 13 Jun 2011 15:58: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 GZknNSG0QbGb for ; Mon, 13 Jun 2011 15:58:39 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 11999CACF3 for ; Mon, 13 Jun 2011 15:58:39 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5DDwcw2022439 for ; Mon, 13 Jun 2011 15:58:38 +0200 Original-Received: by fxm18 with SMTP id 18so3863841fxm.14 for ; Mon, 13 Jun 2011 06:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=SbkQx7rcptTTAg/idctsTXp/V7MnYk5IgC9DIJUNkUQ=; b=t46fNYB4sQFxU1Im9sS5+OXhZDlIfZ/9hD+CPF3MkE7yUsboKmN6QSLj2vmVyc5Rae oA2PrCiedrH2hdV4s4wyWe8xIXyESJCKx7Mru23zMTQmC1qjgCSQkf0tve9QqCRxBUAE l4NaPAibHxkrWRHuH131RC9CYr+9/6h196Yag= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=TWo9zdT5tnGcNcpTxcWi1DcdaFWak82XFxgevyrvT+BpoHswoRr3oIP/dD+9Vozc50 g7cWYzinXMqEO09uRCL6xtbWARzD84RoqDyZ2Fq/V+G67tF+/3BMPXNDhK8o0hzpaESr 4Q81LtuMeRpWuQmtuWInzfbkxYbU3c6gQVowg= Original-Received: by 10.223.127.213 with SMTP id h21mr5188703fas.45.1307973518184; Mon, 13 Jun 2011 06:58: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 l26sm2083203fah.38.2011.06.13.06.58.36 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Jun 2011 06:58:36 -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.161.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: 0bETpWCfi - e4cc38f100ed - 20110613 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:69122 Archived-At: Am 13.06.2011 um 15:40 schrieb luigi scarso: > Where is the difference ? The TeX solution is faster. \define[1]\ThisHelps {\handletokens#1\with{\hskip 0pt plus .1pt\firstofoneargument}} \define[1]\ThisHelpsLuigi {\startluacode s='#1' s= string.gsub(s,'(.)',"\%1\\hskip 0sp plus .1pt") context(s) \stopluacode} \showframe \starttext \testfeatureonce{10000}{\ThisHelps {abcde123xyz}}% \testfeatureonce{10000}{\ThisHelpsLuigi{abcde123xyz}} \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________