From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25540 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: getting characters Date: Wed, 25 Jan 2006 10:42:44 +0100 Message-ID: <36A98D55-BD2D-4D23-AC9D-08AD651688D8@science.uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1138182296 29604 80.91.229.2 (25 Jan 2006 09:44:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2006 09:44:56 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 25 10:44:49 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1F1hCf-0002wr-3Y for gctc-ntg-context-518@m.gmane.org; Wed, 25 Jan 2006 10:44:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B8A24127EE; Wed, 25 Jan 2006 10:44:36 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09247-08; Wed, 25 Jan 2006 10:44:34 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0CB17127BF; Wed, 25 Jan 2006 10:44:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 04034127BF for ; Wed, 25 Jan 2006 10:44:32 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09385-03 for ; Wed, 25 Jan 2006 10:44:31 +0100 (CET) Original-Received: from smtp.science.uva.nl (smtp.science.uva.nl [146.50.4.84]) by ronja.ntg.nl (Postfix) with SMTP id 18BF7127BC for ; Wed, 25 Jan 2006 10:44:02 +0100 (CET) Original-Received: from 118-206.uva.surfnetthuis.nl [145.98.118.206] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id k0P9hx924147; Wed, 25 Jan 2006 10:43:59 +0100 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ Original-To: NTG ConTeXt X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25540 Archived-At: While fiddling with character strings I found the \getfirstcharacter macro which is very handy. However, I am consuming a character string character by character. Although I have a macro for that, I think it is a good policy to stay as much as possible within the ConTexT framework when concocting macro's to be used under ConTeXt. Now for the question. \getfirstcharacter puts the first character in \firstcharacter. I looked for a macro containing the rest of the string but could not find one. Something like: \getfirstcharacter{abc} then \firstcharacter = a \lastcharacters = bc This will make it possible to process a string character by character, in the same way as \processcommalist does with comma separated strings. But possibly this is already somewhere in the code and I overlooked it. yours sincerely, dr. H. van der Meer