From: ndame <emacsuser@freemail.hu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "stefan@marxist.se" <stefan@marxist.se>,
"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Nicer looking Info - html manual +css
Date: Sun, 19 Jan 2020 15:53:31 +0000 (GMT) [thread overview]
Message-ID: <AyNZiA.sBvWzQCGvkJF.4hYsEuRwuoMEacNHO66I@freemail.hu> (raw)
In-Reply-To: <83a76jzdd2.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2127 bytes --]
> What is the markup to which you allude here? Please elaborate,
> because I don't think I understand what you mean.
I just checked the source and output files. Here's an example.
This an example code in the orignal texinfo file:
In this example, point is between the @samp{a} and the @samp{c}.
@example
@group
---------- Buffer: foo ----------
Gentlemen may cry ``Pea@point{}ce! Peace!,''
but there is no peace.
---------- Buffer: foo ----------
@end group
@group
(string (preceding-char))
@result{} "a"
(string (following-char))
@result{} "c"
@end group
@end example
This is the HTML output and as you can see the example markup is kept
here in the form of a pre+class:
<pre class="example">
---------- Buffer: foo ----------
Gentlemen may cry ``Pea-!-ce! Peace!,''
but there is no peace.
---------- Buffer: foo ----------
(string (preceding-char))
⇒ "a"
(string (following-char))
⇒ "c"
</pre>
Here's the emacs info version, no trace of the example tag here:
In this example, point is between the ‘a’ and the ‘c’.
---------- Buffer: foo ----------
Gentlemen may cry ``Pea★ce! Peace!,''
but there is no peace.
---------- Buffer: foo ----------
(string (preceding-char))
⇒ "a"
(string (following-char))
⇒ "c"
So if I'm not mistaken when the emacs info files are created, the
@example tag is dropped completely from the output. If this is the
case then it could be better to keep the @example tags in some form in
the emacs info output too and hide them with a face, for example.
If the tag is kept then the source code examples in the info
documentation can get a face, so their appearance can be
customized. Without the tag it's not possible, because there is no
info in the file about where the code examples begin and end.
[-- Attachment #2: Type: text/html, Size: 3049 bytes --]
next prev parent reply other threads:[~2020-01-19 15:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-17 15:51 Nicer looking Info - Re: html manual +css ndame
2020-01-18 1:04 ` Jean-Christophe Helary
2020-01-18 17:32 ` Nicer looking Info - " ndame
2020-01-18 19:18 ` Stefan Kangas
2020-01-19 6:04 ` ndame
2020-01-19 15:15 ` Eli Zaretskii
2020-01-19 15:53 ` ndame [this message]
2020-01-19 16:38 ` Eli Zaretskii
2020-01-19 18:48 ` ndame
2020-01-19 19:13 ` Eli Zaretskii
2020-01-19 17:27 ` Yuan Fu
2020-01-19 17:39 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AyNZiA.sBvWzQCGvkJF.4hYsEuRwuoMEacNHO66I@freemail.hu \
--to=emacsuser@freemail.hu \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=stefan@marxist.se \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).