Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion shfill: /ShadingType 2, computed parameters
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Olle  
View profile  
 More options Mar 10 2010, 3:55 pm
Newsgroups: comp.lang.postscript
From: Olle <olavi.sak...@gmail.com>
Date: Wed, 10 Mar 2010 12:55:04 -0800 (PST)
Local: Wed, Mar 10 2010 3:55 pm
Subject: Re: shfill: /ShadingType 2, computed parameters
On Mar 9, 4:16 pm, jdaw1 <jdawise...@gmail.com> wrote:

> Of course by “strong” I meant “string”.

Well, using cvs is pretty straightforward, you just have to check that
your argument is a number.

Something like this might work for you:

% integer/real  *CeeVeeEss*  string true
%        other  *CeeVeeEss*  other false
/CeeVeeEss
{
  dup type dup /integertype eq exch /realtype eq or
  {20 string cvs true}{false}
  ifelse

}

bind def

/ConcatenateOverflowErrorsSuppressed false def
/Concatenate
{
  CeeVeeEss {( ) Concatenate} if exch
  CeeVeeEss {( ) Concatenate} if exch
  2 copy type exch type
  ...

If an argument was converted to a string a space will be appended to
it.

Thanks,

Olle


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.