From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80448 Path: news.gmane.org!not-for-mail From: Jaroslav Hajtmar Newsgroups: gmane.comp.tex.context Subject: \processcommalist with any separator Date: Thu, 24 Jan 2013 21:35:56 +0100 Message-ID: <51019B2C.1080002@gyza.cz> Reply-To: hajtmar@gyza.cz, mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1359059771 12053 80.91.229.3 (24 Jan 2013 20:36:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jan 2013 20:36:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 24 21:36:30 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TyTXB-0008Qq-Hq for gctc-ntg-context-518@m.gmane.org; Thu, 24 Jan 2013 21:36:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 29E8A10228; Thu, 24 Jan 2013 21:36: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 uHs8LYsfeOx7; Thu, 24 Jan 2013 21:36:06 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 19F33101FE; Thu, 24 Jan 2013 21:36:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F013C101FE for ; Thu, 24 Jan 2013 21:36:04 +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 nbM2K9Fjs5Ps for ; Thu, 24 Jan 2013 21:36:02 +0100 (CET) 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 44FD9101FC for ; Thu, 24 Jan 2013 21:36:02 +0100 (CET) Original-Received: from h1.cmg1.smtp.forpsi.com (h1.cmg1.smtp.forpsi.com [81.2.195.162]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0OKa0bD018613 for ; Thu, 24 Jan 2013 21:36:01 +0100 Original-Received: from [192.168.20.101] ([88.103.230.14]) by cmg1.smtp.forpsi.com with bizsmtp id rwbz1k0010KHK6001wc09W; Thu, 24 Jan 2013 21:36:00 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=81.2.195.162; country=CZ; latitude=49.7500; longitude=15.5000; http://maps.google.com/maps?q=49.7500,15.5000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TIPUA1fP - e019057e4caa - 20130124 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:80448 Archived-At: Hello ConTeXist. I use the \processcommalist command and at this point I would like to see if there is any possibility of using a similar command but with the custom separator. Not to me to use a comma as a separator, because I need to have a comma as a character in the processed item list. Thanks Jaroslav Hajtmar Here is my inspirative minimal example: \def\setmyownparameter#1#2{% \global\def\myparameter{#2}#1% }%% \def\processmylist[#1]#2% {\processcommalist[#1]{\setmyownparameter{#2}}} \startbuffer[mybuffer] Here I use my parameter \myparameter.\par \stopbuffer \starttext \processmylist[firstparameter, secondparameter, thirdparameter]{ \getbuffer[mybuffer] } % I would like use for example * as list separator (best option to choose any character). %\processmylist[Hello, He said.*Here is comma, used too.* And here is comma, too.]{ %\getbuffer[mybuffer] %} \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________