From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50047 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Remove spaces from string Date: Wed, 6 May 2009 10:08:20 +0200 Message-ID: <007F2A33-2A07-439B-8C54-C0AE19B1B9AD@gmail.com> References: <528EF012-6A24-4E50-99BB-B3306DF7E108@gmail.com> <4A013D65.7000709@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241597386 20542 80.91.229.12 (6 May 2009 08:09:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 May 2009 08:09:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 06 10:09:37 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1M1cC8-0004f5-Qi for gctc-ntg-context-518@m.gmane.org; Wed, 06 May 2009 10:09:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5D5B61FD0A; Wed, 6 May 2009 10:09:36 +0200 (CEST) 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 25096-01; Wed, 6 May 2009 10:09:01 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3F5301FC74; Wed, 6 May 2009 10:09:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8B6731FC74 for ; Wed, 6 May 2009 10:09:00 +0200 (CEST) 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 17679-04-5 for ; Wed, 6 May 2009 10:08:52 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id AE64C1FC72 for ; Wed, 6 May 2009 10:08:52 +0200 (CEST) Original-Received: from mail-fx0-f176.google.com (mail-fx0-f176.google.com [209.85.220.176]) by filter1-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4688lck029166 for ; Wed, 6 May 2009 10:08:47 +0200 Original-Received: by fxm24 with SMTP id 24so5383851fxm.2 for ; Wed, 06 May 2009 01:08:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=58dN37ZsZfDPFpqGcwo7LfBiKfsaD1yk+oC+Co4YMWM=; b=acoBdIwH/tWc3IiMInwABDfXOWnZUX+kCjYhYsUZ+dacixT1qssnGor8oY4MXRQ0VU 8duI4qBo3K5L5bIwrJfrbalwp4/xjRmiZU4P4XAzFX28agceSqMzF1kBTil+tDwNgSl9 CiHVNYhAqRjczFoJ5d7PmDUrz6wiGHuuYQe3M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=o+ALuamZOGrtLre9MT/bgZgqAF3Z79Kh11qAFotddFvgLIdEDqmBrs1lSx578bGCWH r/SOlAoopc3CdLWZGLyvPFoDWa0iGhzaR/fMo3EjrwUhVFBULN9+k8qe7Sf+yn0ltql3 +oYnnATYTauFkF8s8/YRDVjvfH3GIRJ+fEatM= Original-Received: by 10.204.77.96 with SMTP id f32mr961121bkk.88.1241597326657; Wed, 06 May 2009 01:08:46 -0700 (PDT) Original-Received: from ?192.168.2.23? (p5B296071.dip.t-dialin.net [91.41.96.113]) by mx.google.com with ESMTPS id c28sm12836126fka.22.2009.05.06.01.08.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 06 May 2009 01:08:46 -0700 (PDT) In-Reply-To: <4A013D65.7000709@wxs.nl> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.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: 220005748 - b04c8318664f - 20090506 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:50047 Archived-At: Am 06.05.2009 um 09:33 schrieb Hans Hagen: > Wolfgang Schuster wrote: >> Hi, >> I'm looking for nice and short ways to remove spaces from strings >> with font names. I found the \unspacestring command in the core to >> do what I want but prefer a alternative solution or a few tips for >> the following code. >> \starttext >> \bgroup >> \catcode`\ =9 >> \definedfont[name:TeX Gyre Pagella Regular]text >> \egroup >> \stoptext > > Just enter TeXGyrePagellaRegular as mkiv will ignore spaces anyway I can make a note for other users to write the font name without spaces but I don't know where you mean MkIV will ignore spaces, this definitely not the case when I ask for a font. \starttext \definedfont[name:TeX Gyre Pagella Regular]text \stoptext In this example I get 'TeX Gyre Termes Regular' in the output and to prevent this I remove all spaces from the input (the given font name). Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________