diff mbox

[texi2pod.pl] Handle command @t and embedded form @dfn{@sc{}}

Message ID CADNgcExUEHc4sJSUDK-HGWkpeOta3uoYXzHo4YWipVjRAP0-yA@mail.gmail.com
State New
Headers show

Commit Message

Mingjie Xing July 9, 2014, 1:53 a.m. UTC
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

Comments

Joseph Myers July 25, 2014, 8:42 p.m. UTC | #1
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.
diff mbox

Patch

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;