This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Share options between info and man page
- From: Mingjie Xing <mingjie dot xing at gmail dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, gdb-patches at sourceware dot org
- Date: Tue, 24 Jun 2014 15:08:29 +0800
- Subject: Re: [patch] Share options between info and man page
- Authentication-results: sourceware.org; auth=none
- References: <CADNgcEyi=PBbjzgK3MA=FM8QjWXz_jv-KuXYe5b4-pu+LUY6xA at mail dot gmail dot com> <831tuy2kzi dot fsf at gnu dot org> <CADNgcExfk1A=EWKGDD4dPD0E0+H5=_a+ssV1qV4-xzXO3OSDyg at mail dot gmail dot com> <83ioo91nnk dot fsf at gnu dot org> <CADNgcEwweARHgsH5ppJEY=Q8UrtKK7xi8mU6BN7EbjUs=ic1xg at mail dot gmail dot com> <8338fc1wed dot fsf at gnu dot org> <53983FFA dot 6020909 at redhat dot com> <CADNgcEwURN4xMTdMxqhb_poZ=mttgD5FmDNBeezumQgsagaUMw at mail dot gmail dot com> <53A82F8B dot 7080507 at redhat dot com>
2014-06-23 21:45 GMT+08:00 Pedro Alves <palves@redhat.com>:
>
> Should we re-define it as a macro under ifset man ?
>
> @ifset man
> @macro t{text}
> \text\
> @end macro
> @end ifset
>
> (I don't actually know whether possible.)
This does not work. Add a following command in texi2pod.pl can fix the problem:
s/\@t\{([^\}]*)\}/$1/g;
> Those three dashes are rendered as an em dash in texinfo:
>
> http://www.gnu.org/software/texinfo/manual/texinfo/html_node/Conventions.html
>
> I'd assume the man page should end up with \(em instead of literal ---.
>
> Should we have a macro for this too?
>
I think this is also what texi2pod.pl should do.
Best regards,
Mingjie