[PD] Correcting help windows on Mac OS X

Adam T. Lindsay atl at comp.lancs.ac.uk
Thu Nov 14 15:10:03 CET 2002


Hi Mac PDers,

The normal pd help files don't render very cleanly on MacOSX. There are
three things that typically go wrong: the window can be wedged up at the
top of the screen (and not be movable), the window can extend past the
bottom of the screen (and not be resizable), and the text can be mis-
aligned. I believe the following shell/awk script fixes all three. It
creates backups of all the files as it goes.

Use it by moving into the directory with the help.pd files you want to
change (like pd/doc/5.reference), and calling the script with:
 source path/to/fix-doc-windows.sh

I'd appreciate it if some adventurous types gave it a try.

#/bin/csh

foreach f (*.pd)
    cp $f $f~
# You can change the '928' value to your (y.resolution-96) here ___ ___
    awk '$2 ~ /canvas/ {print $1, $2, $3,($4>22?$4:22), $5,
($6>928?928:$6), ($7=="12;"?"10;":$7), $8, $9} \
         $2 !~ /canvas/ {print $0}' $f~ > $f
end

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay                      atl at comp.lancs.ac.uk
 Computing Dept, Lancaster University   +44(0)1524/594.537
 Lancaster, LA1 4YR, UK             Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 268 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20021114/db3a9ba6/attachment.obj>


More information about the Pd-list mailing list