Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #2149

kshow for real?

Newsgroups comp.lang.postscript
Date 2015-01-24 00:30 -0800
Message-ID <286efe0f-a657-49e2-8a77-be536ef28e67@googlegroups.com> (permalink)
Subject kshow for real?
From luser- -droog <mijoryx@yahoo.com>

Show all headers | View raw


I've only ever used kshow for stupid tricks like color-changing
letters and stair-step effects. I know I'm not using it 
properly because my proc always begins `pop pop`.

So what does "properly" look like?

My only thought (so far) is to encode the two chars so the
table can use a single key for pairs. That might look sthg like

/pair {256 mul add} def
/pairs <<
    (l) 0 get (l) 0 get pair some-number
    (l) 0 get (i) 0 get pair some-other-number-or-the-same-maybe
>> def

50 100 moveto
(lullali-lililullulalala) {
    pair pairs exch 2 copy known {
        get 0 rmoveto
    }{
        pop pop
    } ifelse
} kshow

It's got to be scaled with the fontsize, right?
And probably tuned to a specific face, right?

Back to comp.lang.postscript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

kshow for real? luser- -droog <mijoryx@yahoo.com> - 2015-01-24 00:30 -0800
  Re: kshow for real? Ross Presser <rpresser@gmail.com> - 2015-01-24 00:44 -0800
    Re: kshow for real? luser- -droog <mijoryx@yahoo.com> - 2015-01-24 15:01 -0800
      Re: kshow for real? Dan Coby <adcoby@earthlink.net> - 2015-01-24 15:36 -0800
        Re: kshow for real? luser- -droog <mijoryx@yahoo.com> - 2015-01-24 22:08 -0800
  Re: kshow for real? Phyl <psexton19@gmail.com> - 2015-01-24 16:56 -0800
    Re: kshow for real? luser- -droog <mijoryx@yahoo.com> - 2015-01-25 20:57 -0800
      Re: kshow for real? Phyl <psexton19@gmail.com> - 2015-01-26 06:13 -0800
        Re: kshow for real? luser- -droog <mijoryx@yahoo.com> - 2015-01-26 12:55 -0800

csiph-web