On 7/1/21 3:33 PM, Eli Zaretskii wrote:
Cc: jos...@codesourcery.com, gcc@gcc.gnu.org, gcc-patc...@gcc.gnu.org
From: Martin Liška <mli...@suse.cz>
Date: Thu, 1 Jul 2021 14:44:10 +0200
It helps some, but not all of the issues disappear. For example,
stuff like this is still hard to read:
To select this standard in GCC, use one of the options -ansi
-----
-std.‘=c90’ or -std.‘=iso9899:1990’
---- ----
If I understand the notes correct, the '.' should be also hidden by e.g. Emacs.
No, it doesn't. The actual text in the Info file is:
*note -std: f.‘=iso9899:1990’
and the period after " f" isn't hidden. Where does that "f" come from
and what is its purpose here? can it be removed (together with the
period)?
It's name of the anchor used for the @ref. The names are automatically generated
by makeinfo. So there's an example:
This is the warning level of @ref{e,,-Wshift-overflow3} and …
becomes in info:
This is the warning level of *note -Wshift-overflow3: e. and …
I can ask the question at Sphinx, the Emacs script should hide that.
About ‘=iso9899:1990’, yes, it's a :samp: and how it's wrapper by Sphinx by
default.
Why is it a separate :samp:? IMO, the correct markup is to make the
entire string -std=iso9899:1990 have the same typeface. In Texinfo,
I'd use
@option{-std=iso9899:1990}
We can adjust 'emph' formatting to nil, what do you think?
Something like that, yes. But the problem is: how will you format it
instead? The known alternatives, _foo_ and *foo* both use punctuation
characters, which will get in the way similarly to the quotes. Can
you format those in caps, like makeinfo does?
You are fully right, info is very simple format and it uses wrapping for the
formatting
purpose (by default * and _). So, I don't have any elegant solution.
Well, it sounds from another mail that you did find a solution: to
up-case the string in @var.
I don't know. Some of them can be e.g. keywords and using upper-case does not
seem
to me feasible.
Note also that nodes are now called by the same name as the section,
which means node names generally got much longer. Is that really a
good idea?
Well, I intentionally removed these and used simple TOC tree links
which take display text for a section title.
I would suggest to discuss these decisions first, perhaps on the
Texinfo mailing list? I'm accustomed to these short descriptions, but
I'm not sure how important they are for others.
Well, it was decision done during the transition of texinfo files into Sphinx.
I don't see why it should be discussed in Texinfo community.
This actually raises a more general issue with this Sphinx porting
initiative: what will be the canonical style guide for maintaining the
GCC manual in Sphinx, or more generally for writing GNU manuals in
Sphinx? For Texinfo, we have the Texinfo manual, which both documents
the language and provides style guidelines for how to use Texinfo for
producing good manuals. Contributors to GNU manuals are using those
guidelines for many years. Is there, or will there be, an equivalent
style guide for Sphinx? If not, how will the future contributors to
the GCC manuals know what are the writing and style conventions?
No, I'm not planning any extra style guide. We will you standard Sphinx RST
manual and one can find many tutorials about how to do it.
That is why I recommended to discuss this on the Texinfo list: that's
the place where such guidelines are discussed, and where we have
experts who understand the effects and consequences of using this or
that style. The current style in GNU manuals is to have the menus as
we see them in the existing GCC manuals: with a short description.
Maybe there are good reasons to deviate from that style, but
shouldn't this be at least presented and discussed, before the
decision is made? GCC developers are not the only ones who will be
reading the future GCC manuals.
That seems to me a subtle adjustment and it's standard way how people generate
TOC in Sphinx. See e.g. the Linux kernel documentation:
https://www.kernel.org/doc/html/latest/
Martin