all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Robert J. Chassell" <bob@rattlesnake.com>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: pxref
Date: Thu, 27 Oct 2005 17:32:46 +0000 (UTC)	[thread overview]
Message-ID: <m1EVBcM-0004RGC@rattlesnake.com> (raw)
In-Reply-To: <200510271529.j9RFTgl23038@f7.net> (karl@freefriends.org)

The problem for @xref and @ref is that the Info output format reduces
information.

`texi2dvi' works from the Texinfo source.
For display, the current CVS Emacs works from the Info output format.

If `*Note' is to replaced by `[Ss]ee', then the display must do
something in Emacs Lisp to choose whether or not to capitalize.  This
can only be done by emulating in code what a human does when choosing
@xref and @ref.

Karl, I am becoming more and more convinced that you should do
nothing.  But those who think `Info-hide-note-references' should be
set to a non-nil value (not me; I set the value to nil) should figure
out a good display algorithm.

Or else they should re-write Emacs Info to use Texinfo files when they
are available rather than Info files, being sure the new Info looks
good on slow connections, on text based terminals, and the various
window systems, such as X.

Or else they should follow my suggestion mentioned below for single
input/multiple output.

To see the issue, add the following to the Texinfo source test file.
(This text is indented in the source as shown.)

    Here is an @@xref as a sentence.  @xref{Musings on fossil fuels}.

    Here is an @@ref in a sentence, see @ref{Musings on fossil fuels}.

    Here is an @@pxref parenthetically (@ref{Musings on fossil fuels})
    in a sentence.

The Texinfo source produces this in the Info output format.  (This
output is not indented four spaces; I did that for this message.)

    Here is an @xref as a sentence.  *Note Musings on fossil fuels::.

    Here is an @ref in a sentence, see *Note Musings on fossil fuels::.

    Here is an @pxref parenthetically (*Note Musings on fossil fuels::)
     in a sentence.

Note the `see' from the source for the @ref and the one space
indentation of the `in' for the @pxref.  (Perhaps the source should
not be written with `see'.  I have left it because many make this
mistake although the Texinfo manual counsels against it.)

Here is the default Info display using today's CVS Emacs snapshot:

    Here is an @xref as a sentence.  See Musings on fossil fuels::.

    Here is an @ref in a sentence, see see Musings on fossil fuels::.

    Here is an @pxref parenthetically (see Musings on fossil fuels::)
     in a sentence.

Note the doubled `see' and the one space indentation of the `in'.

Here is the DVI output from texi2dvi 4.8 as seen using xdvi version 22.40v:

    Here is an @xref as a sentence. See Chapter 2 [Musings on fossil
    fuels], page 2.

    Here is an @ref in a sentence, see Chapter 2 [Musings on fossil
    fuels], page 2.

    Here is an @pxref parenthetically (Chapter 2 [Musings on fossil
    fuels], page 2) in a sentence.

W3M mode in GNU Emacs displays this:

    Here is an @xref as a sentence. See Musings on fossil fuels.

    Here is an @ref in a sentence, see Musings on fossil fuels.

    Here is an @pxref parenthetically (Musings on fossil fuels) in a sentence.

Both the DVI and the HTML display look correct to me (except for the
single space between sentences).

As far as I can see, the best result comes from writing Texinfo source
so the output looks good in Info (both with and without
`Info-hide-note-references' set to nil), in DVI (or PostScript or PDF;
I think they all display the same), in HTML, in plain text, and
listened to.  Texinfo is, after all, a single input format that
provides multiple outputs.

    http://www.rattlesnake.com/notions/single-multiple.html

But this depends on the virtue of the author ...

Or else, we should make it quick to update Info displays in Emacs;
then tell people to use an Emacs/Emacspeak that shows the high
resolution printed, the Web, and the two Info displays, and also
provides input for text-to-speech generation, which comes from Info.
Several years ago I wrote a prototype but it did not update Info
quickly and was a failure.

--
    Robert J. Chassell
    bob@rattlesnake.com                         GnuPG Key ID: 004B4AC8
    http://www.rattlesnake.com                  http://www.teak.cc

  reply	other threads:[~2005-10-27 17:32 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <17238.44739.179203.166568@kahikatea.snap.net.nz>
2005-10-20  9:29 ` pxref Eli Zaretskii
2005-10-20 11:16   ` pxref Juri Linkov
2005-10-20 12:41     ` pxref Eli Zaretskii
2005-10-20 16:46       ` pxref Juri Linkov
2005-10-20 19:35         ` pxref Eli Zaretskii
2005-10-23  4:42           ` pxref Richard M. Stallman
2005-10-23  7:27             ` pxref Eli Zaretskii
2005-10-23 13:43               ` pxref Robert J. Chassell
2005-10-23 16:14                 ` pxref Eli Zaretskii
2005-10-23 20:20                   ` pxref Robert J. Chassell
2005-10-23 22:45                     ` pxref Eli Zaretskii
2005-10-24 13:38                       ` pxref Richard M. Stallman
2005-10-24 20:17                         ` pxref Robert J. Chassell
2005-10-26 16:46                           ` pxref Richard M. Stallman
2005-10-26 18:29                             ` pxref Robert J. Chassell
2005-10-26 18:34                             ` pxref Robert J. Chassell
2005-10-26 19:02                             ` pxref Robert J. Chassell
2005-10-26 20:55                               ` pxref Robert J. Chassell
2005-10-26 20:57                               ` pxref Karl Berry
2005-10-27 12:20                                 ` pxref Robert J. Chassell
2005-10-27 14:03                                   ` pxref Karl Berry
2005-10-27 15:03                                     ` pxref Robert J. Chassell
2005-10-27 15:29                                       ` pxref Karl Berry
2005-10-27 17:32                                         ` Robert J. Chassell [this message]
2005-10-27 23:07                                           ` pxref Karl Berry
2005-10-28  8:28                                             ` pxref Eli Zaretskii
2005-10-29  2:24                                               ` pxref Luc Teirlinck
2005-10-29 19:47                                                 ` pxref Juri Linkov
2005-11-08 20:59                                                   ` pxref Kevin Rodgers
2005-11-09  9:34                                                     ` pxref Juri Linkov
2005-11-09 19:27                                                       ` pxref Kevin Rodgers
2005-11-10  1:39                                                         ` pxref Miles Bader
2005-10-28 17:32                                             ` pxref Robert J. Chassell
2005-10-29 20:34                                           ` pxref Richard M. Stallman
2005-10-27 19:06                                     ` pxref Eli Zaretskii
2005-10-28  3:47                                   ` pxref Richard M. Stallman
2005-10-25  8:05                         ` pxref Eli Zaretskii
2005-10-25 20:29                           ` pxref Richard M. Stallman
2005-10-24  1:01               ` pxref Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1EVBcM-0004RGC@rattlesnake.com \
    --to=bob@rattlesnake.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.