From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69108 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: break strings Date: Mon, 13 Jun 2011 14:19:37 +0200 Message-ID: References: <81BCF9A8-D19A-4DD3-91EE-C552023AA86E@st.estfiles.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 1307967590 17878 80.91.229.12 (13 Jun 2011 12:19:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2011 12:19:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 13 14:19:46 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 1QW67N-0003aR-UZ for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jun 2011 14:19:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3C9D5CADA6; Mon, 13 Jun 2011 14:19:45 +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 5h9TciA9TX+n; Mon, 13 Jun 2011 14:19:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 137FCCAD9D; Mon, 13 Jun 2011 14:19:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20E00CAD68 for ; Mon, 13 Jun 2011 14:19:40 +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 rpd7YUmC5J4d for ; Mon, 13 Jun 2011 14:19:38 +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 584BCCAD9D for ; Mon, 13 Jun 2011 14:19:38 +0200 (CEST) Original-Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.216.176]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5DCJbFE028626 for ; Mon, 13 Jun 2011 14:19:37 +0200 Original-Received: by qyk30 with SMTP id 30so3050545qyk.14 for ; Mon, 13 Jun 2011 05:19:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=ANTIzbcLwo+rSWCE60SNC5nbVjLqsS/A9/ZcRMkMwoc=; b=VUO7M4mjvbfV5Yep+jnMSiO+Edg7IbYZtO0ZY0EIzr1Xdm0B46lRkLTgoNWzoCUQtd mYKp6zBaDvUnmIjhLGi+OSvk5LkuBtOdDUcRtfKt6OFy1xzezfrw6iTHA+12amg1caO8 MUCNSRJXKzyH0g/1n1ADTHgpYLPgoPiWsd/RU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=SW5zDmdqkp8T/dhKYbBezC4PqqGrLk7IuCaGTGEBRh1NRXkGwbsZC2a/cN0Kdro1On VJGdRJqbMAMxD6nGvn4DT/YUoX+Jlj1e1sZ1XABjagZrQPOTC+V4rJXovgRr4IK9Xjxf S/oFvq95A7vKI/JChsnIrKveNRlyKL5TpgaSY= Original-Received: by 10.229.126.129 with SMTP id c1mr3660376qcs.6.1307967577081; Mon, 13 Jun 2011 05:19:37 -0700 (PDT) Original-Received: by 10.229.247.7 with HTTP; Mon, 13 Jun 2011 05:19:37 -0700 (PDT) In-Reply-To: <81BCF9A8-D19A-4DD3-91EE-C552023AA86E@st.estfiles.de> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.176; 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: 0rETojBxU - 15daefd09095 - 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:69108 Archived-At: On Mon, Jun 13, 2011 at 2:12 PM, Steffen Wolfrum wrote: > Hi, > > say I have arbitrary string of alphanumeric characters: > > > \starttext > > \showframe > > 9769387937933hhgiuiuziuziduzid93739837fhieuhifeuhfeiu39739837938398zfhfdkuhfiufhz398739837r98z379dihhfiu > > \stoptext In mkiv make a lua script using gsub, i.e. something like s='9769387937933hhgiuiuziuziduzid93739837fhieuhifeuhfeiu39739837938398zfhfdkuhfiufhz398739837r98z379dihhfiu' s= string.gsub(s,'(.)',"%1\\hskip0sp") \starttext \startluacode s='9769387937933hhgiuiuziuziduzid93739837fhieuhifeuhfeiu39739837938398zfhfdkuhfiufhz398739837r98z379dihhfiu' s= string.gsub(s..s..s,'(.)',"%1\\hskip0sp") context(s) \stopluacode \stoptext -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________