From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86571 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Trimming strings and Lua string.trim question Date: Wed, 5 Mar 2014 16:18:29 +0100 Message-ID: <5678BF45-446A-4769-851C-1F587D37701C@gmail.com> References: <5316ABF3.5050302@rik.users.panix.com> <5316DF28.3070300@wxs.nl> <53173D9E.1050907@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: multipart/mixed; boundary="===============1316401978==" X-Trace: ger.gmane.org 1394032730 18726 80.91.229.3 (5 Mar 2014 15:18:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2014 15:18:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 05 16:18:58 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WLDay-0004gN-Rt for gctc-ntg-context-518@m.gmane.org; Wed, 05 Mar 2014 16:18:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7EF21101F6; Wed, 5 Mar 2014 16:18:56 +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 eIv7zXoqzX3f; Wed, 5 Mar 2014 16:18:50 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8F65E101E3; Wed, 5 Mar 2014 16:18:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2D9E3101E3 for ; Wed, 5 Mar 2014 16:18:49 +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 P3PvsO3GjWNc for ; Wed, 5 Mar 2014 16:18:47 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id E22D4101E1 for ; Wed, 5 Mar 2014 16:18:38 +0100 (CET) Original-Received: from mail-bk0-x22a.google.com (mail-bk0-x22a.google.com [IPv6:2a00:1450:4008:c01::22a]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s25FIacJ031343 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 5 Mar 2014 16:18:37 +0100 Original-Received: by mail-bk0-f42.google.com with SMTP id mx12so479587bkb.29 for ; Wed, 05 Mar 2014 07:18:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=lKSbUV1Op/PBmqibQmUW6fhXwhZHwCoRhpTsZalVqJo=; b=JBv4h0rYOLNWfMII/dRweW/yz0YVzicWwhsLyGigfPAf3uEdfTSJpnFxbMMnFYtc9K CyZb59zJhIINxSFAu9ds4tOsVAs1lvDf2skOI1jLK7cd+7J2kQW2b937DIBzHJn0xOpn 7EsVUwvENSdqc2MoEXgss6AUrWIe6pAq7+dbVPcVEDeWxwRR+qY3Ry4zP3/RYs+3/crx GfWPc38euK7deEWq7pSBZDd7eBQ8P7t+TXMdkDii7UBDfxlHZR7GIcc6JiLjMTjuTkyh tYTg7K5MA6DYlZ6I22rzGkpejQoUDgUroTrFWP70lXKl0dBDjOn7J8xnVRAGiG52zRcK s9jQ== X-Received: by 10.204.197.202 with SMTP id el10mr2192776bkb.24.1394032716856; Wed, 05 Mar 2014 07:18:36 -0800 (PST) Original-Received: from keima.localdomain (x2f21f47.dyn.telefonica.de. [2.242.31.71]) by mx.google.com with ESMTPSA id bh9sm5355542bkb.16.2014.03.05.07.18.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Mar 2014 07:18:35 -0800 (PST) In-Reply-To: <53173D9E.1050907@rik.users.panix.com> X-Mailer: Apple Mail (2.1874) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::22a; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VLxPiBk7 - 965f2dcb2ebf - 20140305 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86571 Archived-At: --===============1316401978== Content-Type: multipart/alternative; boundary="Apple-Mail=_33A0AF6C-24EB-4B36-B0CC-5516C438B9FC" --Apple-Mail=_33A0AF6C-24EB-4B36-B0CC-5516C438B9FC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 05.03.2014 um 16:07 schrieb Rik Kabel : >> striplong=20 >>=20 >=20 > It would be nice if striplong worked, but the example fails when = string.striplong is used in place of string.strip. The log says: >=20 > ! LuaTeX error [string "\directlua "]:1: attempt to call field = 'striplong' (a nil value) > stack traceback: > [string "\directlua "]:1: in main chunk. > Is the format of the call different than shown in the wiki, or is a = different mechanism required to quote a potentially long string? The name of the function is =93strings.striplong=94. Wolfgang --Apple-Mail=_33A0AF6C-24EB-4B36-B0CC-5516C438B9FC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252


= --Apple-Mail=_33A0AF6C-24EB-4B36-B0CC-5516C438B9FC-- --===============1316401978== 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 ___________________________________________________________________________________ --===============1316401978==--