* Re: pxref
2005-10-26 16:46 ` pxref Richard M. Stallman
@ 2005-10-26 18:29 ` Robert J. Chassell
2005-10-26 18:34 ` pxref Robert J. Chassell
2005-10-26 19:02 ` pxref Robert J. Chassell
2 siblings, 0 replies; 39+ messages in thread
From: Robert J. Chassell @ 2005-10-26 18:29 UTC (permalink / raw)
Cc: emacs-devel
Today's GNU Emacs CVS snapshot, Wed, 2005 Oct 26 17:49 UTC
GNU Emacs 22.0.50.6 (i686-pc-linux-gnu, GTK+ Version 2.6.10)
started with `emacs -Q -D'
I installed a fix I think is correct.
The change for Info looks right to me. I added more test lines to
foo.texi and they all look right in the default Emacs Info.
However, I also checked the DVI version, created by `texi2dvi'.
Unfortunately, that makes a capitalized `See' when the preceding text
with a colon and is not followed by a blank line.
In DVI as viewed with xdvi:
Here is another @xref, no parentheses; this ends with a colon and
is not followed by a blank line: See Musings on fossil fuels.
But in the default Info display:
Here is another @xref, no parentheses; this ends with a colon and
is not followed by a blank line: see Musings on fossil fuels.
Here is the test file I used:
\input texinfo.tex @c -*-texinfo-*-
@comment %**start of header
@setfilename foo.info
@settitle Texinfo Test
@smallbook
@comment %**end of header
@ignore
## Summary of shell commands to create various output formats:
pushd /u/texinfo/
## Info output
makeinfo --force --fill-column=70 --no-split --paragraph-indent=0 \
--verbose foo.texi
## ;; (kill-buffer "*info*")
## ;; (info "/u/texinfo/foo.info" nil)
## DVI output
texi2dvi foo.texi
## View DVI output
## xdvi foo.dvi &
## HTML output
makeinfo --no-split --html foo.texi
## Plain text output
makeinfo --fill-column=70 --no-split --paragraph-indent=0 \
--verbose --no-headers --output=foo.txt \
foo.texi
## DocBook output
makeinfo --docbook --no-split --paragraph-indent=0 \
--verbose foo.texi
## XML output
makeinfo --xml --no-split --paragraph-indent=0 \
--verbose foo.texi
popd
@end ignore
@titlepage
@sp 6
@center @titlefont{Test document}
@sp 4
@center by Robert J. Chassell
@page
@vskip 0pt plus 1filll
@end titlepage
@contents
@ifnottex
@node Top, Chapter One, (dir), (dir)
@top Test Top
@end ifnottex
@menu
* Chapter One::
* Musings on fossil fuels::
@end menu
@node Chapter One, Musings on fossil fuels, Top, Top
@chapter Chapter One
Contents of chapter 1.
See
@url{http://www.rattlesnake.com/notions/Choice-and-Constraint.html},
which is intended as a description of `what is'
@dots{} not the `what is' that most often concern citizens,
politicians, and political scientists, but a `what is' that reflects
the current world and of `what can be done'.
Here is an @@pxref (@pxref{Musings on fossil fuels}) in a sentence.
Here is a standalone xref within parentheses:
(@xref{Musings on fossil fuels}.)
Here is another @@xref, no parentheses; this ends with a colon and
is followed by a blank line:
@xref{Musings on fossil fuels}.
Here is another @@xref, no parentheses; this ends with a period and
is followed by a blank line.
@xref{Musings on fossil fuels}.
Here is another @@xref, no parentheses; this ends with a colon and
is not followed by a blank line: @xref{Musings on fossil fuels}.
Here is another @@xref, no parentheses; this ends with a period and
is not followed by a blank line. @xref{Musings on fossil fuels}.
Here is a standalone xref within parentheses, no blank line:
(@xref{Musings on fossil fuels}.)
More contents of chapter 1.
@node Musings on fossil fuels, , Chapter One, Top
@chapter Musings on Fossil Fuels
More than three decades ago, some modern people I knew tried to
replace fossil fuels with alternate sources of energy.
@bye
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-26 16:46 ` pxref Richard M. Stallman
2005-10-26 18:29 ` pxref Robert J. Chassell
@ 2005-10-26 18:34 ` Robert J. Chassell
2005-10-26 19:02 ` pxref Robert J. Chassell
2 siblings, 0 replies; 39+ messages in thread
From: Robert J. Chassell @ 2005-10-26 18:34 UTC (permalink / raw)
Cc: emacs-devel
Today's GNU Emacs CVS snapshot, Wed, 2005 Oct 26 17:49 UTC
GNU Emacs 22.0.50.6 (i686-pc-linux-gnu, GTK+ Version 2.6.10)
started with `emacs -Q -D'
I installed a fix I think is correct.
The change for Info looks right to me. I added more test lines to
foo.texi and they all look right in the default Emacs Info.
However, I also checked the DVI version, created by `texi2dvi'.
Unfortunately, that makes a capitalized `See' when the preceding text
with a colon and is not followed by a blank line.
In DVI as viewed with xdvi:
Here is another @xref, no parentheses; this ends with a colon and
is not followed by a blank line: See Musings on fossil fuels.
But in the default Info display:
Here is another @xref, no parentheses; this ends with a colon and
is not followed by a blank line: see Musings on fossil fuels.
Here is the test file I used:
% \input /usr/local/src/texinfo-4.8/doc/texinfo.tex @c -*-texinfo-*-
\input texinfo.tex @c -*-texinfo-*-
@comment %**start of header
@setfilename foo.info
@settitle Texinfo Test
@smallbook
@comment %**end of header
@ignore
## Summary of shell commands to create various output formats:
pushd /u/texinfo/
## Info output
makeinfo --force --fill-column=70 --no-split --paragraph-indent=0 \
--verbose foo.texi
## ;; (kill-buffer "*info*")
## ;; (info "/u/texinfo/foo.info" nil)
## DVI output
texi2dvi foo.texi
## View DVI output
## xdvi foo.dvi &
## HTML output
makeinfo --no-split --html foo.texi
## Plain text output
makeinfo --fill-column=70 --no-split --paragraph-indent=0 \
--verbose --no-headers --output=foo.txt \
foo.texi
## DocBook output
makeinfo --docbook --no-split --paragraph-indent=0 \
--verbose foo.texi
## XML output
makeinfo --xml --no-split --paragraph-indent=0 \
--verbose foo.texi
popd
@end ignore
@titlepage
@sp 6
@center @titlefont{Test document}
@sp 4
@center by Robert J. Chassell
@page
@vskip 0pt plus 1filll
@end titlepage
@contents
@ifnottex
@node Top, Chapter One, (dir), (dir)
@top Test Top
@end ifnottex
@menu
* Chapter One::
* Musings on fossil fuels::
@end menu
@node Chapter One, Musings on fossil fuels, Top, Top
@chapter Chapter One
Contents of chapter 1.
@sp 1
@ifnotinfo
@noindent
See
@noindent
@url{http://www.rattlesnake.com/notions/Choice-and-Constraint.html},
@noindent
which is intended as a description of `what is'
@dots{} not the `what is' that most often concern citizens,
politicians, and political scientists, but a `what is' that reflects
the current world and of `what can be done'.
@sp 1
Here is an @@pxref (@pxref{Musings on fossil fuels}) in a sentence.
Here is a standalone xref within parentheses:
(@xref{Musings on fossil fuels}.)
Here is another @@xref, no parentheses; this ends with a colon and
is followed by a blank line:
@xref{Musings on fossil fuels}.
Here is another @@xref, no parentheses; this ends with a period and
is followed by a blank line.
@xref{Musings on fossil fuels}.
Here is another @@xref, no parentheses; this ends with a colon and
is not followed by a blank line: @xref{Musings on fossil fuels}.
Here is another @@xref, no parentheses; this ends with a period and
is not followed by a blank line. @xref{Musings on fossil fuels}.
Here is a standalone xref within parentheses, no blank line:
(@xref{Musings on fossil fuels}.)
@sp 1
More contents of chapter 1.
@node Musings on fossil fuels, , Chapter One, Top
@chapter Musings on Fossil Fuels
More than three decades ago, some modern people I knew tried to
replace fossil fuels with alternate sources of energy.
@bye
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
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 ` Robert J. Chassell
2005-10-26 20:55 ` pxref Robert J. Chassell
2005-10-26 20:57 ` pxref Karl Berry
2 siblings, 2 replies; 39+ messages in thread
From: Robert J. Chassell @ 2005-10-26 19:02 UTC (permalink / raw)
Cc: karl, emacs-devel
Today's GNU Emacs CVS snapshot, Wed, 2005 Oct 26 17:49 UTC
GNU Emacs 22.0.50.6 (i686-pc-linux-gnu, GTK+ Version 2.6.10)
started with `emacs -Q -D'
"Richard M. Stallman" <rms@gnu.org> wrote,
I installed a fix I think is correct.
The change for Info looks correct to me. I added more test lines to
foo.texi and they all look right in the default Emacs Info.
(When I set `Info-hide-note-references' to nil, as I do customarily,
the cross references are shown by `*note' and `*Note' in a manner that
is correct.)
However, using `xdvi', I also checked the DVI version that was created
with `texi2dvi' (GNU Texinfo 4.8) 1.34. Unfortunately, the typeset
output displays a capitalized `See' when the preceding text both ends
with a colon and is not followed by a blank line.
Karl Berry, what do you see?
In DVI as viewed with xdvi:
Here is another @xref, no parentheses; this ends with a colon and
is not followed by a blank line: See Musings on fossil fuels.
(Note also the one space before the `See'; this is correct for
typesetting according to my copy of the Chicago Manual of Style,
although when I type, I tend to put in two spaces. The Texinfo source
has two spaces.)
But in the default Info display:
Here is another @xref, no parentheses; this ends with a colon and
is not followed by a blank line: see Musings on fossil fuels.
(Note the two spaces before the `see', which looks right to me.)
Here is the test file I used:
\input texinfo.tex @c -*-texinfo-*-
@comment %**start of header
@setfilename foo.info
@settitle Texinfo Test
@smallbook
@comment %**end of header
@ignore
## Summary of shell commands to create various output formats:
pushd /u/texinfo/
## Info output
makeinfo --force --fill-column=70 --no-split --paragraph-indent=0 \
--verbose foo.texi
## ;; (kill-buffer "*info*")
## ;; (info "/u/texinfo/foo.info" nil)
## DVI output
texi2dvi foo.texi
## View DVI output
## xdvi foo.dvi &
## HTML output
makeinfo --no-split --html foo.texi
## Plain text output
makeinfo --fill-column=70 --no-split --paragraph-indent=0 \
--verbose --no-headers --output=foo.txt \
foo.texi
## DocBook output
makeinfo --docbook --no-split --paragraph-indent=0 \
--verbose foo.texi
## XML output
makeinfo --xml --no-split --paragraph-indent=0 \
--verbose foo.texi
popd
@end ignore
@titlepage
@sp 6
@center @titlefont{Test document}
@sp 4
@center by Robert J. Chassell
@page
@vskip 0pt plus 1filll
@end titlepage
@contents
@ifnottex
@node Top, Chapter One, (dir), (dir)
@top Test Top
@end ifnottex
@menu
* Chapter One::
* Musings on fossil fuels::
@end menu
@node Chapter One, Musings on fossil fuels, Top, Top
@chapter Chapter One
Contents of chapter 1.
@sp 1
@ifnotinfo
@noindent
@end ifnotinfo
See
@ifnotinfo
@noindent
@end ifnotinfo
@url{http://www.rattlesnake.com/notions/Choice-and-Constraint.html},
@ifnotinfo
@noindent
@end ifnotinfo
which is intended as a description of `what is'
@dots{} not the `what is' that most often concern citizens,
politicians, and political scientists, but a `what is' that reflects
the current world and of `what can be done'.
@sp 1
Here is an @@pxref (@pxref{Musings on fossil fuels}) in a sentence.
Here is a standalone xref within parentheses:
(@xref{Musings on fossil fuels}.)
Here is another @@xref, no parentheses; this ends with a colon and
is followed by a blank line:
@xref{Musings on fossil fuels}.
Here is another @@xref, no parentheses; this ends with a period and
is followed by a blank line.
@xref{Musings on fossil fuels}.
Here is another @@xref, no parentheses; this ends with a colon and
is not followed by a blank line: @xref{Musings on fossil fuels}.
Here is another @@xref, no parentheses; this ends with a period and
is not followed by a blank line. @xref{Musings on fossil fuels}.
Here is a standalone xref within parentheses, no blank line:
(@xref{Musings on fossil fuels}.)
@sp 1
More contents of chapter 1.
@node Musings on fossil fuels, , Chapter One, Top
@chapter Musings on Fossil Fuels
More than three decades ago, some modern people I knew tried to
replace fossil fuels with alternate sources of energy.
@bye
--
Robert J. Chassell
bob@rattlesnake.com GnuPG Key ID: 004B4AC8
http://www.rattlesnake.com http://www.teak.cc
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-26 19:02 ` pxref Robert J. Chassell
@ 2005-10-26 20:55 ` Robert J. Chassell
2005-10-26 20:57 ` pxref Karl Berry
1 sibling, 0 replies; 39+ messages in thread
From: Robert J. Chassell @ 2005-10-26 20:55 UTC (permalink / raw)
Oops! I did not mean to send so many messages on pxref and am not
sure what happened. Please refer to the one for 19:02:50 UTC, the
last one, which has a CC to Karl Berry.
Quick summary: the Info fix looks good
I discovered a problem with texi2dvi
My apologies.
--
Robert J. Chassell
bob@rattlesnake.com GnuPG Key ID: 004B4AC8
http://www.rattlesnake.com http://www.teak.cc
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-26 19:02 ` pxref Robert J. Chassell
2005-10-26 20:55 ` pxref Robert J. Chassell
@ 2005-10-26 20:57 ` Karl Berry
2005-10-27 12:20 ` pxref Robert J. Chassell
1 sibling, 1 reply; 39+ messages in thread
From: Karl Berry @ 2005-10-26 20:57 UTC (permalink / raw)
Cc: rms, emacs-devel
output displays a capitalized `See' when the preceding text both ends
with a colon and is not followed by a blank line.
I don't understand why you expect anything else. @xref always produces
a capitalized "See" in TeX output. It's documented that way and been
that way forever. I'm sure you know this perfectly well, so I'm
confused as to what you have in mind.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-26 20:57 ` pxref Karl Berry
@ 2005-10-27 12:20 ` Robert J. Chassell
2005-10-27 14:03 ` pxref Karl Berry
2005-10-28 3:47 ` pxref Richard M. Stallman
0 siblings, 2 replies; 39+ messages in thread
From: Robert J. Chassell @ 2005-10-27 12:20 UTC (permalink / raw)
Cc: rms, emacs-devel
output displays a capitalized `See' when the preceding text both ends
with a colon and is not followed by a blank line.
I don't understand why you expect anything else. @xref always produces
a capitalized "See" in TeX output. It's documented that way and been
that way forever. I'm sure you know this perfectly well, so I'm
confused as to what you have in mind.
The new default Info and TeX sometimes produce different outputs,
uncapitalized and capitalized.
Specifically, in the new Info default, @xref does not always produce a
capitalized "See". This means a change in documentation.
(Personally, I prefer the older way, but that is neither here nor
there. The older way means the author makes the decision, not the
computer. The new default means that the computer makes the decision,
but, currently, only in Info. Except for tests, I do not see the new
Info default but set Info-hide-note-references to nil.)
--
Robert J. Chassell
bob@rattlesnake.com GnuPG Key ID: 004B4AC8
http://www.rattlesnake.com http://www.teak.cc
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-27 12:20 ` pxref Robert J. Chassell
@ 2005-10-27 14:03 ` Karl Berry
2005-10-27 15:03 ` pxref Robert J. Chassell
2005-10-27 19:06 ` pxref Eli Zaretskii
2005-10-28 3:47 ` pxref Richard M. Stallman
1 sibling, 2 replies; 39+ messages in thread
From: Karl Berry @ 2005-10-27 14:03 UTC (permalink / raw)
Cc: rms, emacs-devel
Specifically, in the new Info default, @xref does not always produce a
capitalized "See". This means a change in documentation.
Sorry, I have no background for and don't understand any of this. How
can such a fundamental thing about Texinfo be changed? Who did it and
why? Why should "Info" (do you mean info.el?) be downcasing/upcasing
"See" (last I knew it was *[nN]ote" in Info, anyway, not "[sS]ee"])?
As far as I know neither makeinfo nor texinfo.tex have changed in this
regard. Also, it is not feasible to change texinfo.tex in any such way,
if I'm understanding right. (Messing with stuff based on surrounding
text.)
karl
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-27 14:03 ` pxref Karl Berry
@ 2005-10-27 15:03 ` Robert J. Chassell
2005-10-27 15:29 ` pxref Karl Berry
2005-10-27 19:06 ` pxref Eli Zaretskii
1 sibling, 1 reply; 39+ messages in thread
From: Robert J. Chassell @ 2005-10-27 15:03 UTC (permalink / raw)
Cc: rms, emacs-devel
... (last I knew it was *[nN]ote" in Info, anyway, not "[sS]ee"])?
This has changed in the default Info display.
Now the default display (which as I said, I do not see normally) is
"[sS]ee"]. As far as I know, this has been the case for more than a
year. (The earlist vc-annotate change date that seems relevant is
08-Apr-04.)
As far as I know neither makeinfo nor texinfo.tex have changed in
this regard.
True. (I have been using Texinfo version 4.8 for both makeinfo and
texi2dvi with the texinfo.tex saying version 2003-07-16.18.) The
change is to the online display, as shown in a current default Emacs
from CVS.
Thus, using today's GNU Emacs CVS snapshot, Thu, 2005 Oct 27 12:31 UTC
GNU Emacs 22.0.50.7 (i686-pc-linux-gnu, GTK+ Version 2.6.10) started
with
emacs/src/emacs -q
we see this in Info:
Here is another @xref, no parentheses; this ends with a colon and
is not followed by a blank line: see Musings on fossil fuels.
not `*Note'.
When you set
(setq Info-hide-note-references nil)
then you see `*Note' in your display. `*Note' is also what is copied
between different instances of Emacs, even when the display of the
source shows `see'.
A copy of Emacspeak with Emacspeak code from 24 May 2005 speaks
`*Note' but visually shows `See' with a capital `S'.
--
Robert J. Chassell
bob@rattlesnake.com GnuPG Key ID: 004B4AC8
http://www.rattlesnake.com http://www.teak.cc
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-27 15:03 ` pxref Robert J. Chassell
@ 2005-10-27 15:29 ` Karl Berry
2005-10-27 17:32 ` pxref Robert J. Chassell
0 siblings, 1 reply; 39+ messages in thread
From: Karl Berry @ 2005-10-27 15:29 UTC (permalink / raw)
Cc: rms, emacs-devel
this has been the case for more than a year.
Not in any released version, which is why I've never seen it.
Here is another @xref, no parentheses; this ends with a colon and
is not followed by a blank line: see Musings on fossil fuels.
not `*Note'.
Anyway, the original source is wrong if it uses @xref in that context.
@xref is specified precisely to output a capital "See", always.
If/Since Emacs Info now changes it to "see" sometimes, then yes, that
will certainly cause incorrect output and should be changed. I hope
whoever made the change in info.el can deal with it. I see nothing to
change in Texinfo itself in this regard. I certainly don't think we
should change the specification of @xref.
Karl
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-27 15:29 ` pxref Karl Berry
@ 2005-10-27 17:32 ` Robert J. Chassell
2005-10-27 23:07 ` pxref Karl Berry
2005-10-29 20:34 ` pxref Richard M. Stallman
0 siblings, 2 replies; 39+ messages in thread
From: Robert J. Chassell @ 2005-10-27 17:32 UTC (permalink / raw)
Cc: rms, emacs-devel
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
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-27 17:32 ` pxref Robert J. Chassell
@ 2005-10-27 23:07 ` Karl Berry
2005-10-28 8:28 ` pxref Eli Zaretskii
2005-10-28 17:32 ` pxref Robert J. Chassell
2005-10-29 20:34 ` pxref Richard M. Stallman
1 sibling, 2 replies; 39+ messages in thread
From: Karl Berry @ 2005-10-27 23:07 UTC (permalink / raw)
Cc: rms, emacs-devel
If `*Note' is to replaced by `[Ss]ee',
A dubious desire in the first place, IMHO.
Karl, I am becoming more and more convinced that you should do nothing.
Good. That is my plan :).
Or else they should re-write Emacs Info to use Texinfo files when they
And not call it Info. Info should remain as it is.
Doing such a thing has been suggested in other contexts. It amounts to
a new Texinfo parser, so that any changes to the language have to be
propagated there.
A better alternative would be to use the Texinfo XML output, which is
not dependent on the exact Texinfo language, but (is intended to)
preserve(s) all the semantics, so that it can be displayed as desired.
There are some projects doing this now, amazingly enough.
Here is an @@pxref parenthetically (@ref{Musings on fossil fuels})
I think you used @ref where you meant @pxref. FWIW, my recollection
(not checked) is that @pxref produces *note, not *Note.
Best,
k
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-27 23:07 ` pxref Karl Berry
@ 2005-10-28 8:28 ` Eli Zaretskii
2005-10-29 2:24 ` pxref Luc Teirlinck
2005-10-28 17:32 ` pxref Robert J. Chassell
1 sibling, 1 reply; 39+ messages in thread
From: Eli Zaretskii @ 2005-10-28 8:28 UTC (permalink / raw)
Cc: bob, emacs-devel
> Date: Thu, 27 Oct 2005 18:07:50 -0500
> From: karl@freefriends.org (Karl Berry)
> Cc: rms@gnu.org, emacs-devel@gnu.org
>
> A better alternative would be to use the Texinfo XML output
That has the disadvantage that one needs to install 2 sets of manuals:
one in XML for Emacs, the other in Info for the stand-alone reader and
other Info readers out there (since on a typical multi-user machine,
the admins cannot make sure only one reader is used).
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-28 8:28 ` pxref Eli Zaretskii
@ 2005-10-29 2:24 ` Luc Teirlinck
2005-10-29 19:47 ` pxref Juri Linkov
0 siblings, 1 reply; 39+ messages in thread
From: Luc Teirlinck @ 2005-10-29 2:24 UTC (permalink / raw)
Cc: bob, emacs-devel, karl
Eli Zaretskii wrote:
That has the disadvantage that one needs to install 2 sets of manuals:
one in XML for Emacs, the other in Info for the stand-alone reader and
other Info readers out there (since on a typical multi-user machine,
the admins cannot make sure only one reader is used).
I guess that if, some time in the future, Emacs were able to read the
XML format, info.el would need to remain in the Emacs distribution to
read Info files for which no XML version exists. Since the XML format
would be available for those who find a modern browser look so very
important, info.el could then once again become free of unfixable bugs
and could once again be a true Info reader instead of a buggy would-be
formatter that attempts to do the impossible: format plain text.
Disk space is getting cheaper and cheaper so I guess most admins would
elect to install both. But if some would only install the Info files,
users would still have access to exactly the same documentation. The
only problem (if they consider it one) is that they get presented with
something that looks less "modern", less like a browser and less colorful.
To me it seems obvious that making Emacs able to read the Info files
in XML format would be very desirable. The main problem right now is
simple: Emacs currently quite simply can not read the XML output.
Another problem could be that many Emacs maintainers do not know XML
or do not know it well enough. (I myself do not know XML, although I
could always sooner or later learn it.)
Sincerely,
Luc.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-29 2:24 ` pxref Luc Teirlinck
@ 2005-10-29 19:47 ` Juri Linkov
2005-11-08 20:59 ` pxref Kevin Rodgers
0 siblings, 1 reply; 39+ messages in thread
From: Juri Linkov @ 2005-10-29 19:47 UTC (permalink / raw)
Cc: bob, eliz, karl, emacs-devel
> To me it seems obvious that making Emacs able to read the Info files
> in XML format would be very desirable. The main problem right now is
> simple: Emacs currently quite simply can not read the XML output.
Emacs already can read the XML output. Just try, for example, after:
makeinfo --xml -o info.xml info.texi
to evaluate:
(xml-parse-file "info.xml")
`xml-parse-file' is a top-level autoloaded function, so you will see
its output, which is just a simple Lisp structure.
So the main problem is not reading the XML output, but rendering such
Lisp structure into the final representation. This could be achieved
most easily with using DSSSL-like rules.
--
Juri Linkov
http://www.jurta.org/emacs/
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-29 19:47 ` pxref Juri Linkov
@ 2005-11-08 20:59 ` Kevin Rodgers
2005-11-09 9:34 ` pxref Juri Linkov
0 siblings, 1 reply; 39+ messages in thread
From: Kevin Rodgers @ 2005-11-08 20:59 UTC (permalink / raw)
Juri Linkov wrote:
> Emacs already can read the XML output. Just try, for example, after:
>
> makeinfo --xml -o info.xml info.texi
>
> to evaluate:
>
> (xml-parse-file "info.xml")
>
> `xml-parse-file' is a top-level autoloaded function, so you will see
> its output, which is just a simple Lisp structure.
>
> So the main problem is not reading the XML output, but rendering such
> Lisp structure into the final representation. This could be achieved
> most easily with using DSSSL-like rules.
The alternative would be to use XSLT directives. But you've then got to
implement a DSSSL or XSLT processor in Emacs Lisp, for a reasonable
subset of the chosen stylesheet language.
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-11-08 20:59 ` pxref Kevin Rodgers
@ 2005-11-09 9:34 ` Juri Linkov
2005-11-09 19:27 ` pxref Kevin Rodgers
0 siblings, 1 reply; 39+ messages in thread
From: Juri Linkov @ 2005-11-09 9:34 UTC (permalink / raw)
Cc: emacs-devel
>> So the main problem is not reading the XML output, but rendering such
>> Lisp structure into the final representation. This could be achieved
>> most easily with using DSSSL-like rules.
>
> The alternative would be to use XSLT directives. But you've then got to
> implement a DSSSL or XSLT processor in Emacs Lisp, for a reasonable
> subset of the chosen stylesheet language.
XSLT is a poor man's Lisp, and DSSSL uses Scheme syntax.
I meant rather using their semantics, but to write rules in Emacs Lisp.
--
Juri Linkov
http://www.jurta.org/emacs/
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-11-09 9:34 ` pxref Juri Linkov
@ 2005-11-09 19:27 ` Kevin Rodgers
2005-11-10 1:39 ` pxref Miles Bader
0 siblings, 1 reply; 39+ messages in thread
From: Kevin Rodgers @ 2005-11-09 19:27 UTC (permalink / raw)
Juri Linkov wrote:
>>>So the main problem is not reading the XML output, but rendering such
>>>Lisp structure into the final representation. This could be achieved
>>>most easily with using DSSSL-like rules.
>>
>>The alternative would be to use XSLT directives. But you've then got to
>>implement a DSSSL or XSLT processor in Emacs Lisp, for a reasonable
>>subset of the chosen stylesheet language.
>
> XSLT is a poor man's Lisp, and DSSSL uses Scheme syntax.
XSLT is a rich man's CSS, and it is actively evolving. DSSSL is dead.
And given xml-parse-file, Scheme syntax has little advantage over XML
syntax.
> I meant rather using their semantics, but to write rules in Emacs Lisp.
DSSSL and XSLT are not just stylesheet languages but transformation
languages, with complex semantics that are difficult to implement.
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-11-09 19:27 ` pxref Kevin Rodgers
@ 2005-11-10 1:39 ` Miles Bader
0 siblings, 0 replies; 39+ messages in thread
From: Miles Bader @ 2005-11-10 1:39 UTC (permalink / raw)
Cc: emacs-devel
2005/11/10, Kevin Rodgers <ihs_4664@yahoo.com>:
> And given xml-parse-file, Scheme syntax has little advantage over XML
> syntax.
Er, well it does have a few advantages: (1) It's less ugly than XML,
(2) It can be edited more Easily in emacs (because Emacs does a very
good job with lisp-like syntaxes), and (3) It's not a
buzzword-of-the-week.
-Miles
--
Do not taunt Happy Fun Ball.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-27 23:07 ` pxref Karl Berry
2005-10-28 8:28 ` pxref Eli Zaretskii
@ 2005-10-28 17:32 ` Robert J. Chassell
1 sibling, 0 replies; 39+ messages in thread
From: Robert J. Chassell @ 2005-10-28 17:32 UTC (permalink / raw)
Cc: rms, emacs-devel
Karl Berry wrote
A better alternative would be to use the Texinfo XML output, which is
not dependent on the exact Texinfo language, but (is intended to)
preserve(s) all the semantics, so that it can be displayed as desired.
There are some projects doing this now, amazingly enough.
Yes, that is an excellent idea. It moves a great deal forward,
including DebianDoc. Which, if any, of the projects are in Emacs?
However, Eli Zaretskii has a point: without educating all users,
including guests, this means that system adminstrators will need to
install 2 sets of manuals.
Here is an @@pxref parenthetically (@ref{Musings on fossil fuels})
I think you used @ref where you meant @pxref.
Yes, my mistake.
FWIW, my recollection (not checked) is that @pxref produces *note,
not *Note.
Yes, you are right. I just checked. Also, in the default Info
display in CVS GNU Emacs, it produces `see', as does `texi2dvi'.
@pxref displays correctly in the two versions of the Info display and
with xdvi (and presumably others).
--
Robert J. Chassell
bob@rattlesnake.com GnuPG Key ID: 004B4AC8
http://www.rattlesnake.com http://www.teak.cc
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-27 17:32 ` pxref Robert J. Chassell
2005-10-27 23:07 ` pxref Karl Berry
@ 2005-10-29 20:34 ` Richard M. Stallman
1 sibling, 0 replies; 39+ messages in thread
From: Richard M. Stallman @ 2005-10-29 20:34 UTC (permalink / raw)
Cc: emacs-devel, karl
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.
That last seems to be a bug in Texinfo. Why does it indent that space?
(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.)
It is correct to write "see" before @ref; that is necessary to get
the right output in DVI.
This change in Emacs should prevent Emacs from displaying a second "see".
Does it work right for you?
*** info.el 26 Oct 2005 12:35:51 -0400 1.454
--- info.el 29 Oct 2005 16:05:29 -0400
***************
*** 3741,3747 ****
;; an end of sentence
(skip-syntax-backward " ("))
(setq other-tag
! (cond ((memq (char-before) '(nil ?\. ?! ??))
"See ")
((save-match-data
(save-excursion
--- 3741,3749 ----
;; an end of sentence
(skip-syntax-backward " ("))
(setq other-tag
! (cond ((save-match-data (looking-back "see "))
! "")
! ((memq (char-before) '(nil ?\. ?! ??))
"See ")
((save-match-data
(save-excursion
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-27 14:03 ` pxref Karl Berry
2005-10-27 15:03 ` pxref Robert J. Chassell
@ 2005-10-27 19:06 ` Eli Zaretskii
1 sibling, 0 replies; 39+ messages in thread
From: Eli Zaretskii @ 2005-10-27 19:06 UTC (permalink / raw)
Cc: bob, rms, emacs-devel
> Date: Thu, 27 Oct 2005 09:03:40 -0500
> From: karl@freefriends.org (Karl Berry)
> Cc: rms@gnu.org, emacs-devel@gnu.org
>
> Specifically, in the new Info default, @xref does not always produce a
> capitalized "See". This means a change in documentation.
>
> Sorry, I have no background for and don't understand any of this. How
> can such a fundamental thing about Texinfo be changed? Who did it and
> why? Why should "Info" (do you mean info.el?) be downcasing/upcasing
> "See" (last I knew it was *[nN]ote" in Info, anyway, not "[sS]ee"])?
>
> As far as I know neither makeinfo nor texinfo.tex have changed in this
> regard. Also, it is not feasible to change texinfo.tex in any such way,
> if I'm understanding right. (Messing with stuff based on surrounding
> text.)
Karl, you are absolutely right: there's no need to change anything in
Texinfo. There's a huge misunderstanding here, mainly due to the fact
that Bob insists on saying that some ``new Info default'' changed what
@xref produces.
The reality is that @xref still produces the same output as it did
_in_the_Info_file, except that the Emacs Info reader displays the
leading "*Note" as "[Ss]ee", and hides the explicit reference to the
Info node and file, leaving just the reference name. This was done to
make the cross-references look more like hyperlinks in other GUI
applications.
This is only a display trickery; info.el does not change the text read
from the Info file, it just uses the Emacs display features to display
certain text as a something different. Thus, if one copies from the
buffer to another one, they will still see the same "*Note" and the
full cross-reference as makeinfo produces.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: pxref
2005-10-27 12:20 ` pxref Robert J. Chassell
2005-10-27 14:03 ` pxref Karl Berry
@ 2005-10-28 3:47 ` Richard M. Stallman
1 sibling, 0 replies; 39+ messages in thread
From: Richard M. Stallman @ 2005-10-28 3:47 UTC (permalink / raw)
Cc: emacs-devel, karl
Specifically, in the new Info default, @xref does not always produce a
capitalized "See". This means a change in documentation.
It should always produce "See" _when used properly_.
That is, at the beginning of a sentence.
If you find an example when it does not produce "See"
when used properly, that is a bug, so please report it.
As for what happens when it is used improperly, that is
user error, not a bug.
^ permalink raw reply [flat|nested] 39+ messages in thread