public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Tetex-2.0.2-13: texdoc bug/suggestion
@ 2004-12-20 17:48 Igor Pechtchanski
  2004-12-20 18:07 ` Jan Nieuwenhuizen
  0 siblings, 1 reply; 7+ messages in thread
From: Igor Pechtchanski @ 2004-12-20 17:48 UTC (permalink / raw)
  To: cygwin

Hi,

I've attempted to run "texdoc color", and got a netscape page with 'Your
search "-remote openURL(/usr/share/texmf/doc/help/Catalogue/entries/color.html)"
returned no results.'.  A better way of looking at a local .html file is
"cygstart '%s'".  Is this something that can be changed in the future
versions of the package?
Thanks,
	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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Tetex-2.0.2-13: texdoc bug/suggestion
  2004-12-20 17:48 Tetex-2.0.2-13: texdoc bug/suggestion Igor Pechtchanski
@ 2004-12-20 18:07 ` Jan Nieuwenhuizen
  2004-12-21 15:01   ` Igor Pechtchanski
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Nieuwenhuizen @ 2004-12-20 18:07 UTC (permalink / raw)
  To: cygwin

Igor Pechtchanski writes:

> I've attempted to run "texdoc color", and got a netscape page with 'Your
> search "-remote openURL(/usr/share/texmf/doc/help/Catalogue/entries/color.html)"
> returned no results.'.  A better way of looking at a local .html file is
> "cygstart '%s'".  Is this something that can be changed in the future
> versions of the package?

It seems that texdoc uses

    : ${TEXDOCVIEW_html='x-terminal-emulator -e see %s &'}

why does that not work?  Otherwise, TEXDOCVIEW_html="'cygstart %'"
could be added to /etc/profile.d/tetex.sh or something.

Jan.

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Tetex-2.0.2-13: texdoc bug/suggestion
  2004-12-20 18:07 ` Jan Nieuwenhuizen
@ 2004-12-21 15:01   ` Igor Pechtchanski
  2004-12-21 16:05     ` Jan Nieuwenhuizen
  0 siblings, 1 reply; 7+ messages in thread
From: Igor Pechtchanski @ 2004-12-21 15:01 UTC (permalink / raw)
  To: Jan Nieuwenhuizen; +Cc: cygwin

On Mon, 20 Dec 2004, Jan Nieuwenhuizen wrote:

> Igor Pechtchanski writes:
>
> > I've attempted to run "texdoc color", and got a netscape page with
> > 'Your search "-remote
> > openURL(/usr/share/texmf/doc/help/Catalogue/entries/color.html)"
> > returned no results.'.  A better way of looking at a local .html file
> > is "cygstart '%s'".  Is this something that can be changed in the
> > future versions of the package?
>
> It seems that texdoc uses
>
>     : ${TEXDOCVIEW_html='x-terminal-emulator -e see %s &'}
>
> why does that not work?  Otherwise, TEXDOCVIEW_html="'cygstart %'"
> could be added to /etc/profile.d/tetex.sh or something.

AFAIK, there's no "see" under Cygwin.  It would probably be best to use
cygstart in any case.  FWIW, the same goes for both _pdf and _ps.
BTW, why not patch texdoc?
	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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Tetex-2.0.2-13: texdoc bug/suggestion
  2004-12-21 15:01   ` Igor Pechtchanski
@ 2004-12-21 16:05     ` Jan Nieuwenhuizen
  2004-12-21 17:47       ` Igor Pechtchanski
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Nieuwenhuizen @ 2004-12-21 16:05 UTC (permalink / raw)
  To: cygwin

Igor Pechtchanski writes:

> AFAIK, there's no "see" under Cygwin.  It would probably be best to use
> cygstart in any case.  FWIW, the same goes for both _pdf and _ps.

Ok.

> BTW, why not patch texdoc?

Because that's not the right fix?  There's no platform specific code
in texdoc, so upstream won't take a Cygwin specfic patch.

The right fix seems to be adding /usr/bin/see that executes cygstart?

Jan.

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Tetex-2.0.2-13: texdoc bug/suggestion
  2004-12-21 16:05     ` Jan Nieuwenhuizen
@ 2004-12-21 17:47       ` Igor Pechtchanski
  2004-12-22 12:08         ` Dr. Volker Zell
  0 siblings, 1 reply; 7+ messages in thread
From: Igor Pechtchanski @ 2004-12-21 17:47 UTC (permalink / raw)
  To: Jan Nieuwenhuizen; +Cc: cygwin

On Tue, 21 Dec 2004, Jan Nieuwenhuizen wrote:

> Igor Pechtchanski writes:
>
> > AFAIK, there's no "see" under Cygwin.  It would probably be best to use
> > cygstart in any case.  FWIW, the same goes for both _pdf and _ps.
>
> Ok.
>
> > BTW, why not patch texdoc?
>
> Because that's not the right fix?

It is for Cygwin...  Could this be part of the Cygwin-specific patch?

> There's no platform specific code in texdoc, so upstream won't take a
> Cygwin specfic patch.

I'd say that

: ${TEXDOCVIEW_html='netscape -remote openURL'"'(%s)'"' 2>/dev/null || netscape %s &'}

is no less platform-specific than 'cygstart %s'...  The code could at
least check whether netscape is available on the system.  FWIW, teTeX used
to do this -- the /usr/bin/texdoc from my tetex-1.0.7 installation on
RedHat 9 has

if [ -x /usr/bin/galeon ]
then
        : ${TEXDOCVIEW_html='galeon %s &'}
elif [ -x /usr/bin/mozilla ]
then
        : ${TEXDOCVIEW_html='mozilla file://%s &'}
else
        : ${TEXDOCVIEW_html='netscape %s &'}
fi

> The right fix seems to be adding /usr/bin/see that executes cygstart?

This won't fix the _ps and _pdf cases.  I still think that fixing texdoc
itself is the right way (as the user's environment sometimes gets
truncated), however, you're the maintainer.  If you decide to set them in
/etc/profile.d/tetex.sh, please also set TEXDOCVIEW_ps and TEXDOCVIEW_pdf
to the same value.

BTW, I just downloaded the 2.0.2 sources from
<ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/>, and
it has no mention of either "see" or "x-terminal-emulator"...  There's no
Cygwin-specific README in the tetex package, so I don't know if the above
is the canonical package page.  Am I missing something?
	Igor
P.S. the current texdoc is also very space-in-filename-unfriendly, but
AFAIU, the files it accesses should be in the standard package locations,
so this isn't as much of a problem.
-- 
				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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Tetex-2.0.2-13: texdoc bug/suggestion
  2004-12-21 17:47       ` Igor Pechtchanski
@ 2004-12-22 12:08         ` Dr. Volker Zell
  2004-12-22 20:36           ` Igor Pechtchanski
  0 siblings, 1 reply; 7+ messages in thread
From: Dr. Volker Zell @ 2004-12-22 12:08 UTC (permalink / raw)
  To: cygwin

>>>>> Igor Pechtchanski writes:

    > This won't fix the _ps and _pdf cases.  I still think that fixing texdoc
    > itself is the right way (as the user's environment sometimes gets
    > truncated), however, you're the maintainer.  If you decide to set them in
    > /etc/profile.d/tetex.sh, please also set TEXDOCVIEW_ps and TEXDOCVIEW_pdf
    > to the same value.

The current version seems to have the following entries:

: ${TEXDOCVIEW_dvi='xdvi %s &'}
: ${TEXDOCVIEW_pdf='acroread %s &'}
: ${TEXDOCVIEW_ps='ghostview %s &'}
: ${TEXDOCVIEW_html='netscape -remote openURL'"'(%s)'"' 2>/dev/null || netscape %s &'}
: ${TEXDOCVIEW_txt="${PAGER-more} %s"}
: ${TEXDOCVIEW_="${PAGER-more} %s"} # no extension, default to pager

I would at least patch it for cygwin to read:

: ${TEXDOCVIEW_dvi='xdvi %s &'}
: ${TEXDOCVIEW_pdf='xpdf %s &'}
: ${TEXDOCVIEW_ps='gv %s &'}
: ${TEXDOCVIEW_html='netscape -remote openURL'"'(%s)'"' 2>/dev/null || netscape %s &'}
: ${TEXDOCVIEW_txt="${PAGER-more} %s"}
: ${TEXDOCVIEW_="${PAGER-more} %s"} # no extension, default to pager

We already have xpdf and gv in the distro. Maybe netscape/mozilla gets
ported one day.

Ciao
  Volker


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Tetex-2.0.2-13: texdoc bug/suggestion
  2004-12-22 12:08         ` Dr. Volker Zell
@ 2004-12-22 20:36           ` Igor Pechtchanski
  0 siblings, 0 replies; 7+ messages in thread
From: Igor Pechtchanski @ 2004-12-22 20:36 UTC (permalink / raw)
  To: Dr. Volker Zell; +Cc: cygwin

On Wed, 22 Dec 2004, Dr. Volker Zell wrote:

> >>>>> Igor Pechtchanski writes:
>
> > This won't fix the _ps and _pdf cases.  I still think that fixing
> > texdoc itself is the right way (as the user's environment sometimes
> > gets truncated), however, you're the maintainer.  If you decide to set
> > them in /etc/profile.d/tetex.sh, please also set TEXDOCVIEW_ps and
> > TEXDOCVIEW_pdf to the same value.
>
> The current version seems to have the following entries:
>
> : ${TEXDOCVIEW_dvi='xdvi %s &'}
> : ${TEXDOCVIEW_pdf='acroread %s &'}
> : ${TEXDOCVIEW_ps='ghostview %s &'}
> : ${TEXDOCVIEW_html='netscape -remote openURL'"'(%s)'"' 2>/dev/null || netscape %s &'}
> : ${TEXDOCVIEW_txt="${PAGER-more} %s"}
> : ${TEXDOCVIEW_="${PAGER-more} %s"} # no extension, default to pager
>
> I would at least patch it for cygwin to read:
>
> : ${TEXDOCVIEW_dvi='xdvi %s &'}
> : ${TEXDOCVIEW_pdf='xpdf %s &'}
> : ${TEXDOCVIEW_ps='gv %s &'}
> : ${TEXDOCVIEW_html='netscape -remote openURL'"'(%s)'"' 2>/dev/null || netscape %s &'}
> : ${TEXDOCVIEW_txt="${PAGER-more} %s"}
> : ${TEXDOCVIEW_="${PAGER-more} %s"} # no extension, default to pager
>
> We already have xpdf and gv in the distro. Maybe netscape/mozilla gets
> ported one day.

I think this would introduce unnecessary dependencies for the tetex
package.  For a variety of reasons, I, personally, use the Windows
utilities (gsview32 and acroread) instead of their X counterparts (and I
use FireFox instead of Netscape)...  I think that for Cygwin, the
"cygstart" solution is best (especially since one can easily associate
.pdf files with 'xpdf' and .ps files with 'gv' at the Windows level).
Having a README that mentions these variables and their possible values
would also help (all the READMEs in the tetex-* packages currently contain
one line: "teTeX texmf tree for Cygwin -- nothing to be seen here, move
along.").  I'd suggest making "cygstart %s" the default for .dvi, .ps,
.pdf, and .html, and use your lines above as suggestions, either commented
out in the /etc/profile.d script, or in the README.
	Igor
P.S. The official tetex-bin-2.0.2-15 sources also contain the 'netscape'
line above.  I don't know where the 'x-terminal-emulator' line came from.
-- 
				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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-12-22 20:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-20 17:48 Tetex-2.0.2-13: texdoc bug/suggestion Igor Pechtchanski
2004-12-20 18:07 ` Jan Nieuwenhuizen
2004-12-21 15:01   ` Igor Pechtchanski
2004-12-21 16:05     ` Jan Nieuwenhuizen
2004-12-21 17:47       ` Igor Pechtchanski
2004-12-22 12:08         ` Dr. Volker Zell
2004-12-22 20:36           ` Igor Pechtchanski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).