texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Gavin D. Smith
Date: Mon, 15 Aug 2022 09:00:26 -0400 (EDT)

branch: master
commit c9408d38e623a838a09243b5f081a4a590961633
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Mon Aug 15 12:49:28 2022 +0100

    Index format documentation
    
    * doc/texinfo.texi (Other Customization Variables)
    <INDEX_SPECIAL_CHARS_WARNING>: Do not describe colons in
    menu entries as "invalid".
    (Info Format Printindex): State that most of the index entry
    should occur on a single line.  Say that colons may occur in
    the entry text, and explain how to read these.
---
 ChangeLog        | 11 +++++++++++
 TODO             |  1 -
 doc/texinfo.texi | 34 ++++++++++++++++++++++++----------
 3 files changed, 35 insertions(+), 11 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9f10631016..680c980277 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2022-08-15  Gavin Smith  <gavinsmith0123@gmail.com>
+
+       Index format documentation
+
+       * doc/texinfo.texi (Other Customization Variables)
+       <INDEX_SPECIAL_CHARS_WARNING>: Do not describe colons in
+       menu entries as "invalid".
+       (Info Format Printindex): State that most of the index entry
+       should occur on a single line.  Say that colons may occur in
+       the entry text, and explain how to read these.
+
 2022-08-15  Gavin Smith  <gavinsmith0123@gmail.com>
 
        * TODO: Remove part about allowing : in node names, as this
diff --git a/TODO b/TODO
index 93924f6203..afb8de31e6 100644
--- a/TODO
+++ b/TODO
@@ -78,7 +78,6 @@ If you are interested in working on any of these, email 
bug-texinfo@gnu.org.
   - Display images when running under X, as Emacs 22+ can.
   - Handle M-n, C-u m, and C-u g like Emacs Info (opening new windows).
 
-
 * install-info:
   - replace dir file atomically in case install-info is interrupted
     (Pedrum Mohageri,
diff --git a/doc/texinfo.texi b/doc/texinfo.texi
index b904985bc5..c36321162e 100644
--- a/doc/texinfo.texi
+++ b/doc/texinfo.texi
@@ -16874,8 +16874,8 @@ If set, spaces are ignored after an @@-command that 
takes braces.
 Default true, matching the @TeX{} behavior.
 
 @item INDEX_SPECIAL_CHARS_WARNING
-If set, warn about @samp{:} in index entry, as it leads to invalid entries in
-index menus in output Info files.  For Info and plaintext only.  Default false,
+If set, warn about @samp{:} in index entry, as not all Info readers may
+be able to process these.  For Info and plaintext only.  Default false,
 because parsing problems there don't prevent navigation; readers can still
 relatively easily find their way to the node in question.
 
@@ -24035,9 +24035,9 @@ The format does not prescribe the choice between 
displaying the
 
 @cindex Indices, in Info format
 
-Indices in Info format are generally written as a menu
-(@pxref{Indices}), but with an additional directive at the beginning
-marking this as an index node:
+Indices in Info format are a kind of menu.
+An additional directive at the beginning of a node marks it as an index node,
+followed by the menu:
 
 @example
     <printindex> =
@@ -24053,14 +24053,28 @@ the entries occurs in the text:
 
 @example
     <index entry> =
-* <entry text>: <entry node>. <lparen>line <lineno><rparen>
+* <entry text>: <entry node>. <line-spec>
+
+    <line-spec> =
+<lparen>line <lineno><rparen>
 @end example
 
 @noindent
-The @t{<entry text>} is the index term.  The @t{<lineno>} is an
-unsigned integer, given relative to the start of the @t{<entry node>}.
-There may be arbitrary whitespace after the colon and period, as usual
-in menus, and may be broken across lines.  Here is an example:
+
+The initial part, @samp{<entry text>: <entry node>.}, should be on a
+single line.  The @t{<entry text>} is the index term.
+
+Even though @t{<entry text>} is followed by a colon, it may itself
+contain colons, so Info readers should try to include as much of the
+line as possible in the @t{<entry text>}.  (However, @t{<entry text>}
+may not contain the @t{<del>} characters that may occur
+around @t{<entry-node>}.)
+
+@t{<lineno>} is an unsigned integer, given relative to the start
+of the @t{<entry node>}.  An optional line break may occur before
+@samp{<line-spec>}.
+
+Here is an example:
 
 @example
 ^@@^H[index^@@^H]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]