[pmwiki-users] Abc notation

Patrick R. Michaud pmichaud at pobox.com
Mon Apr 3 16:00:36 CDT 2006


On Mon, Apr 03, 2006 at 09:53:15PM +0100, Hans wrote:
> Monday, April 3, 2006, 7:49:21 PM, Patrick wrote:
> > Ghostscript (as placed in the abcmusic.php file) converts the
> > .ps into a .ppm, and ppmtogif then converts that into a .gif.
> 
> Thank you!
> Something in this chain does not work for me, and I find it hard to
> check. I am not used to command line calls, absolute file paths in php
> etc. So please give me some hints if you can, so I can check what may
> be broken.
> 
> Here is my config.php entry:
> 
> $ABCProgs['gs']='"C:/Program Files/Ghostscript/gs8.53/bin/gswin32c.exe"';
> $ABCProgs['ppmtogif']='"C:/Program Files/GnuWin32/bin/ppmtogif.exe"';
> $ABCProgs['abcm2ps'] = '$FarmD/../programs/abcm2ps.exe';
> $ABCProgs['abc2midi'] = 'D:/www/softflow/programs/abc2midi.exe';
> include_once("$FarmD/cookbook/abcmusic.php");
> 
> This results in healthy abc, ps and midi files in the cache directory,
> and a zero byte gif file.
> On the wiki page I got an alternative title text instead of the image,
> and working links to abc, ps and midi files.
> The system is Windows XP.

Maybe Windows can't handle the pipe that occurs in $ABCGifCmdFmt,
(in which case we'll need more intermediate files, and to rework
the logic of abcmusic.php a bit).

Should I try installing ghostscript and netpbm onto my windows
host and see if I can get it to work...?

Pm




More information about the pmwiki-users mailing list