Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
ASCII85 encoding of named resources and a new LTO tape label example
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
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:
Follow-up To:
Add Cc | Add Follow-up 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 that you hear
 
Terry Burton  
View profile   Translate to Translated (View Original)
 More options 13 Oct, 15:59
From: Terry Burton <t...@terryburton.co.uk>
Date: Tue, 13 Oct 2009 15:59:16 +0100
Local: Tues 13 Oct 2009 15:59
Subject: ASCII85 encoding of named resources and a new LTO tape label example
Hi,

I've recently changed the packaging format for the PostScript named
resource delivery method [1] for BWIPP so that the resource files are
now ASCII85 encoded. This makes them a lot more suitable for copying
and pasting into PS documents.

They now look something like this:

% uk.co.terryburton.bwipp/code39
currentfile /ASCII85Decode filter cvx exec
06:]HE+*6lBl7Q+GA(Q.AKZ>=Df?h/F`MM6DKKi+@r#drB-;;:F_)\:ATVm"@r#drB71n:AdU78
A8,Oq+:;Y%E$-fSASu<uDIm6s+CoV6+>7kQ/n8fPFCfK5H"(o:FDl%L@WuO*E$/b,DIdd!F)Q2A
...
A9Di6Ci<`m+>7kQ/n8fPFCfK5H"(o:FDl%L@WuO*E$/\&Anc-oEb0<1F`Lu'+E27<$>"*c$86I3
FDtYuCM@[!+EqL1Eb-A?E,T\<F(KH4@:O(eDJ+A?Bk@\~>

As you can see (with a monospace font) these procedure blocks are
neatly delimited and have a regular line length which makes them
appear very neat when combined with other code.

I have added an example of one such direct use of a named resource to
the repository [2]. The ltoltapelabel.ps script includes the necessary
resource definitions from BWIPP and creates a sheet of
consecutively-numbered tape label suitable for LTO tapes. Thanks to
Matthew Newton [3] for the original code from which this example is
derived.

[1] http://postscriptbarcode.googlecode.com/svn/branches/resource/
[2] http://postscriptbarcode.googlecode.com/svn/scripts/Examples/PostScri...
[3] http://www.newtoncomputing.co.uk

Thanks,

Terry

----

P.S. Despite looking somewhat opaque there's nothing cryptic about the
resource block. They can be trivially decoded into plain ASCII with a
simple bit of PostScript...

File decode.ps:

%!PS
/in (%stdin) (r) file /ASCII85Decode filter def
/out (%stdout) (w) file def
{in read {out exch write} {exit} ifelse} loop
out closefile
in closefile

Invoked from a shell as:

$ cat infile.ps | gs -q -dNOPAUSE -dBATCH -sDEVICE=nullpage decode.ps


    Reply    Reply to author    Forward  
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.
Terry Burton  
View profile   Translate to Translated (View Original)
 More options 12 Nov, 17:37
From: Terry Burton <t...@terryburton.co.uk>
Date: Thu, 12 Nov 2009 17:37:51 +0000
Local: Thurs 12 Nov 2009 17:37
Subject: Re: ASCII85 encoding of named resources and a new LTO tape label example

On Tue, Oct 13, 2009 at 2:59 PM, Terry Burton <t...@terryburton.co.uk> wrote:
> I've recently changed the packaging format for the PostScript named
> resource delivery method [1] for BWIPP so that the resource files are
> now ASCII85 encoded. This makes them a lot more suitable for copying
> and pasting into PS documents.

Hi,

Thanks to some excellent work by Chapman Flack, in the form of
net.anastigmatix.Packager [1], the named resource delivery format for
BWIPP [2] is now more compact and contains DSC compliant comments,
which means that it should be more digestible for document management
software.

> I have added an example of one such direct use of a named resource to
> the repository... The ltoltapelabel.ps script includes the necessary
> resource definitions from BWIPP and creates a sheet of
> consecutively-numbered tape label suitable for LTO tapes. Thanks to
> Matthew Newton ... for the original code from which this example is
> derived.

I've refreshed this example [3].

> P.S. Despite looking somewhat opaque there's nothing cryptic about the
> resource block. They can be trivially decoded into plain ASCII with a
> simple bit of PostScript...

You should now use the following script [4] if you would ever like to
unpack the resource files.

[1] http://www.anastigmatix.net/postscript/Packager.html
[2] http://postscriptbarcode.googlecode.com/svn/branches/resource/
[3] http://postscriptbarcode.googlecode.com/svn/scripts/Examples/PostScri...
[4] http://www.anastigmatix.net/postscript/resource.html#ups

Have fun,

Terry


    Reply    Reply to author    Forward  
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.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google