From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86573 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:54:42 +0100 Message-ID: References: <5316ABF3.5050302@rik.users.panix.com> <5316DF28.3070300@wxs.nl> <53173D9E.1050907@rik.users.panix.com> <5678BF45-446A-4769-851C-1F587D37701C@gmail.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="===============1325021641==" X-Trace: ger.gmane.org 1394034906 15883 80.91.229.3 (5 Mar 2014 15:55:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2014 15:55:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 05 16:55:16 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 1WLEA8-0008LA-Fu for gctc-ntg-context-518@m.gmane.org; Wed, 05 Mar 2014 16:55:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 75568101F2; Wed, 5 Mar 2014 16:55:15 +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 4pTumXYusyz0; Wed, 5 Mar 2014 16:55:13 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CE896101E3; Wed, 5 Mar 2014 16:55:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5754D101E3 for ; Wed, 5 Mar 2014 16:55:12 +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 DwPdHDw1Iex7 for ; Wed, 5 Mar 2014 16:55:11 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 832F0101E1 for ; Wed, 5 Mar 2014 16:55:01 +0100 (CET) Original-Received: from mail-bk0-x234.google.com (mail-bk0-x234.google.com [IPv6:2a00:1450:4008:c01::234]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s25FsomO017100 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 5 Mar 2014 16:55:01 +0100 Original-Received: by mail-bk0-f52.google.com with SMTP id my13so478830bkb.25 for ; Wed, 05 Mar 2014 07:54:50 -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=xqKteSUP4FSbNyugQ1b5KEVB2lXlG2YeEUDBfTP1zqU=; b=vwFMuXOrG74REL6ehaGzd4QMPwBELcwHj58RN0wBJBJ8gN6ZPZkQn+zznDZS1rPXMZ 9ALX7jpuMXXR5PnYOM+r+LsN+tVQvXEFY849j/M5GibyPY/FpIMxJS+SJm11JbFsAogx SDhKWKolLFzPQYI41xOljaF3UyQ6Oe2B5WcS1Ay4zZmSTAGWMZzR+jsgy5kIs2qsQrTO qiHacZAYp/XW6mpvIMiBXL5/ppgr9k+OTsOABcwa3rWKeM0ydGskKSmzkr7a4jSrneVG 6CizD6A1R2DkBG41FJFkoMGhd6S+aP476pr/SxbYR8XWIxWaVrOpDX7Q3+lIOUlfEJdG Od6w== X-Received: by 10.204.102.129 with SMTP id g1mr958647bko.39.1394034890545; Wed, 05 Mar 2014 07:54:50 -0800 (PST) Original-Received: from keima.localdomain (x2f21f47.dyn.telefonica.de. [2.242.31.71]) by mx.google.com with ESMTPSA id v12sm5508196bko.17.2014.03.05.07.54.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Mar 2014 07:54:48 -0800 (PST) In-Reply-To: <5678BF45-446A-4769-851C-1F587D37701C@gmail.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::234; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07LxPSOMJ - 241f0f4f3275 - 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:86573 Archived-At: --===============1325021641== Content-Type: multipart/alternative; boundary="Apple-Mail=_3AAC3895-D345-4CEE-8C94-B17324DFC170" --Apple-Mail=_3AAC3895-D345-4CEE-8C94-B17324DFC170 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 05.03.2014 um 16:18 schrieb Wolfgang Schuster = : >=20 > Am 05.03.2014 um 16:07 schrieb Rik Kabel = : >=20 >>> 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? >=20 > The name of the function is =93strings.striplong=94. This should be =93utilities.strings.striplong=94 but it has no effect = because when take a look at the saved string in Lua you can see that blank lines are removed from = the text. Wolfgang --Apple-Mail=_3AAC3895-D345-4CEE-8C94-B17324DFC170 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252


= --Apple-Mail=_3AAC3895-D345-4CEE-8C94-B17324DFC170-- --===============1325021641== 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 ___________________________________________________________________________________ --===============1325021641==--