ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Remove spaces from string
@ 2009-05-05 21:37 Wolfgang Schuster
  2009-05-06  7:33 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2009-05-05 21:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Remove spaces from string
  2009-05-05 21:37 Remove spaces from string Wolfgang Schuster
@ 2009-05-06  7:33 ` Hans Hagen
  2009-05-06  8:08   ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2009-05-06  7:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Remove spaces from string
  2009-05-06  7:33 ` Hans Hagen
@ 2009-05-06  8:08   ` Wolfgang Schuster
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2009-05-06  8:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-06  8:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-05 21:37 Remove spaces from string Wolfgang Schuster
2009-05-06  7:33 ` Hans Hagen
2009-05-06  8:08   ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).