Csound Csound-dev Csound-tekno Search About

[Fwd: Re: [Csnd] Amsterdam Catalog 1.2 from Csound Book fixed]

Date2007-10-28 00:28
FromPMA
Subject[Fwd: Re: [Csnd] Amsterdam Catalog 1.2 from Csound Book fixed]
P.S.  Now seeing that dots before things other than "txt"
        are at issue too, I've opted instead for the alternate
        fix as follows -- no file edits, only filename changes.

        As before, rename contents.html to Contents.html.
        But then from ./instruments/accci run :

        for EXT in txt orc sco gif
        do
            for I in 01 02 03 10 15 20 33 40 43 45 50 60 70 80 88 text admin
            do
                cd $I
                for J in `ls -1 *${EXT}.html`
                do
                    K=`echo $J | sed 's/${EXT}\.html/.${EXT}.html/g'`
                    mv $J $K
                done
                cd ..
            done
        done

        All my ACCCI links are now working.

PA

-------- Original Message --------
Subject: Re: [Csnd] Amsterdam Catalog 1.2 from Csound Book fixed
Date: Sat, 27 Oct 2007 15:57:29 -0400
From: PMA 
To: csound@lists.bath.ac.uk
References: <11259188.post@talk.nabble.com>

With Csound Book CD 1 copied into my Linux system,
I've found a quick fix covering a lot of these links.

Can't swear by this yet -- please, anybody trying it,
make backups first.

1) Under ./instruments/accci/text/, change filename
         "contents.html" to 'Contents.html"

2) Edit that file to remove the dot separating "index"
	from "txt" in each instance of "index.txt".  So,
	"index.txt" becomes "indextxt".  Leave all the
	other dots.

3) Then in each of the parallel numbered directories,
	edit -indextxt.html to remove a similar dot
	from every href spec.  Here more generally it is
	the dot just preceding _any_ instance of "txt".
	So, each ".txt.html" will become
	"txt.html".

Alternatively, leaving these file innards alone, you could
change all the referenced basenames instead, stuffing
in the critical dot (which I presume they were originally
meant to have).  But the above struck me as easier.

Cheers,
PA

rasputin wrote:
> You can access this great resource at 
> http://www.music.buffalo.edu/hiller/accci/ Amsterdam Csound Instrument
> Catalog v.1.2 
> But I wanted to be able to use it without accessing the internet on my
> dedicated music PC. (Yeah, I know I'm a dinosaur.) But the catalog as
> supplied on CD 1 that comes with the Boulanger Csound Book seemed to have
> most of the html filenames broken. I wrote a python tool to fix them, and
> rewrapped the whole thing into a zip file which is about 12 MB. I doubt that
> I could or should upload a 12 MB file to this list. If anyone is interested
> in it drop a note.
> I think it's a great pedagogical and research tool but the instruments are
> interesting to use in their own right.
> Just trying to give back in some tiny way.
> Adios.