* [texi2pod.pl] Handle command @t and embedded form @dfn{@sc{}}
@ 2014-07-09 1:53 Mingjie Xing
2014-07-25 20:53 ` Joseph S. Myers
0 siblings, 1 reply; 2+ messages in thread
From: Mingjie Xing @ 2014-07-09 1:53 UTC (permalink / raw)
To: gcc-patches; +Cc: gdb-patches, Pedro Alves, Eli Zaretskii, brobecker
[-- Attachment #1: Type: text/plain, Size: 536 bytes --]
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
[-- Attachment #2: texi2pod.patch --]
[-- Type: text/x-patch, Size: 813 bytes --]
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [texi2pod.pl] Handle command @t and embedded form @dfn{@sc{}}
2014-07-09 1:53 [texi2pod.pl] Handle command @t and embedded form @dfn{@sc{}} Mingjie Xing
@ 2014-07-25 20:53 ` Joseph S. Myers
0 siblings, 0 replies; 2+ messages in thread
From: Joseph S. Myers @ 2014-07-25 20:53 UTC (permalink / raw)
To: Mingjie Xing
Cc: gcc-patches, gdb-patches, Pedro Alves, Eli Zaretskii, brobecker
On Wed, 9 Jul 2014, Mingjie Xing wrote:
> 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.
OK.
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-25 20:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-09 1:53 [texi2pod.pl] Handle command @t and embedded form @dfn{@sc{}} Mingjie Xing
2014-07-25 20:53 ` Joseph S. Myers
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).