This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: How to access html and pdf help from xfig
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: cygwin-xfree at cygwin dot com
- Date: Tue, 23 Sep 2003 22:16:56 -0400 (EDT)
- Subject: Re: How to access html and pdf help from xfig
- References: <FAC87D7C874EAB46A847604DA4FD5A64DA16E8@crtsmail.corp.riotinto.org>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree at cygwin dot com
On Wed, 24 Sep 2003, Billinghurst, David (CALCRTS) wrote:
> Thanks for xfig.
>
> The following changes will enable access to html and pdf help,
> using internet explorer and win32 acrobat reader. The path to
> the windows applications will need to match your local setup.
>
> 1. Create a helper script /usr/local/bin/acroread
>
> #!/bin/sh
> ACROREAD="/cygdrive/c/Program Files/Adobe/Acrobat/Reader/AcroRd32.exe"
> exec "${ACROREAD}" `cygpath -w $1`
>
> 2. Create a helper script /usr/local/bin/iexplore
>
> #!/bin/sh
> IEXPLORE="/cygdrive/c/Program Files/Internet Explorer/iexplore.exe"
> exec "${IEXPLORE}" `cygpath -w $1`
>
> 3. Change /etc/X11/app-defaults/Fig
>
> $ diff -u Fig.orig Fig
> --- Fig.orig 2003-09-24 10:44:13.507721200 +1000
> +++ Fig 2003-09-24 10:50:57.411386200 +1000
> @@ -20,7 +20,7 @@
> ! This is for viewing the xfig html reference.
> ! For netscape, this command will open the help pages in a running netscape,
> ! or start a new netscape if one isn't already running
> -Fig.browser: netscape -remote 'openFile(%f)' || netscape %f
> +Fig.browser: iexplore %f
>
> ! pdfviewer - put your favorite pdf viewer here.
> ! This is for viewing the xfig how-to guide and man pages
>
> There may be a better may, but this works work me.
Try "cygstart %f" for both HTML and PDF, with no helper scripts. ;-)
This will do the path translation automatically and open the application
associated with each of the extensions in Explorer (just like
double-clicking).
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton