This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[texi2pod.pl] Handle command @t and embedded form @dfn{ at sc{}}
- From: Mingjie Xing <mingjie dot xing at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: gdb-patches at sourceware dot org, Pedro Alves <palves at redhat dot com>, Eli Zaretskii <eliz at gnu dot org>, brobecker at adacore dot com
- Date: Wed, 9 Jul 2014 09:53:21 +0800
- Subject: [texi2pod.pl] Handle command @t and embedded form @dfn{ at sc{}}
- Authentication-results: sourceware.org; auth=none
Hello,
As discussed in
https://sourceware.org/ml/gdb-patches/2014-07/msg00145.html, I'd like
to put the patch for texi2pod.pl here. The patch is necessary to
output the gdb man manual correctly for such cases,
G@{++}
and
@dfn{@sc{gdb/mi} interface}
contrib/ChangeLog
2014-07-09 Mingjie Xing <mingjie.xing@gmail.com>
* texi2pod.pl (postprocess): Move command process for '@sc' to the
front of '@dfn'. Add a new command process for '@t{...}', just print
the content.
Is it OK?
Best regards,
Mingjie
Index: contrib/texi2pod.pl
===================================================================
--- contrib/texi2pod.pl (revision 212380)
+++ contrib/texi2pod.pl (working copy)
@@ -389,15 +389,16 @@
# Formatting commands.
# Temporary escape for @r.
s/\@r\{([^\}]*)\}/R<$1>/g;
+ s/\@sc\{([^\}]*)\}/\U$1/g;
s/\@(?:dfn|var|emph|cite|i)\{([^\}]*)\}/I<$1>/g;
s/\@(?:code|kbd)\{([^\}]*)\}/C<$1>/g;
s/\@(?:samp|strong|key|option|env|command|b)\{([^\}]*)\}/B<$1>/g;
- s/\@sc\{([^\}]*)\}/\U$1/g;
s/\@acronym\{([^\}]*)\}/\U$1/g;
s/\@file\{([^\}]*)\}/F<$1>/g;
s/\@w\{([^\}]*)\}/S<$1>/g;
s/\@(?:dmn|math)\{([^\}]*)\}/$1/g;
s/\@\///g;
+ s/\@t\{([^\}]*)\}/$1/g;
# keep references of the form @ref{...}, print them bold
s/\@(?:ref)\{([^\}]*)\}/B<$1>/g;