[CHANGESET] updated print.m

Ben Abbott bpabbott at mac.com
Thu Apr 23 19:07:56 CDT 2009


On Apr 23, 2009, at 3:31 PM, Ben Abbott wrote:

> On Thursday, April 23, 2009, at 06:51AM, "Ben Abbott" <bpabbott at mac.com 
> > wrote:
>>
>> On Apr 22, 2009, at 9:53 PM, John W. Eaton wrote:
>>
>>> On 22-Apr-2009, Ben Abbott wrote:
>>>
>>> | I've made the switch from ImageMagick's "convert" to  
>>> Ghostscript. In
>>> | addition, support for Windows printing has been added (I don't  
>>> have
>>> | access to a box to test this change, so some assistance would be
>>> | helpful), and improved printing on Unix systems. The "help" has  
>>> been
>>> | modified to reflect the changes.
>>>
>>> OK.  I can't test printing on Windows either, so I hope someone else
>>> will do that and report back.
>>>
>>> | I'll delay pushing to give time for testing. If I get no  
>>> feedback in
>>> | the next day or two, I'll push this change.
>>>
>>> I haven't tried it, but I have one comment:
>>>
>>> | +function name = ghostscript_binary ()
>>> | +  if (isunix ())
>>> | +    name = "gs";
>>> | +  elseif (ispc ())
>>> | +    name = "gswin23c";
>>> | +  endif
>>> | +endfunction
>>>
>>> It seems to me that it would be best if there was some way for users
>>> to choose the name of the ghostscript interpreter to use.
>>
>> Ok, I'll use something like the above to set the default, and add an
>> option for setting the name of the ghostscript binary.
>>
>> Ben
>
> I check MS's online reference for their command line. The "lpr"  
> command does exist, but has a slighly different syntax.
>
> Updated changeset attached.
>
> Ben
>
> <changeset-print_using_gs.patch>

I've pushed this changeset. If anyone has trouble printing let me know  
(particularly on Windows).

Ben



More information about the Octave-maintainers mailing list