From patchwork Wed Jul 9 01:53:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mingjie Xing X-Patchwork-Id: 1957 Received: (qmail 29274 invoked by alias); 9 Jul 2014 01:53:54 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 28429 invoked by uid 89); 9 Jul 2014 01:53:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=unavailable version=3.3.2 X-HELO: mail-qc0-f177.google.com Received: from mail-qc0-f177.google.com (HELO mail-qc0-f177.google.com) (209.85.216.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 09 Jul 2014 01:53:44 +0000 Received: by mail-qc0-f177.google.com with SMTP id r5so5938842qcx.8 for ; Tue, 08 Jul 2014 18:53:42 -0700 (PDT) X-Received: by 10.140.20.247 with SMTP id 110mr62052874qgj.49.1404870822027; Tue, 08 Jul 2014 18:53:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.83.72 with HTTP; Tue, 8 Jul 2014 18:53:21 -0700 (PDT) From: Mingjie Xing Date: Wed, 9 Jul 2014 09:53:21 +0800 Message-ID: Subject: [texi2pod.pl] Handle command @t and embedded form @dfn{@sc{}} To: gcc-patches Cc: gdb-patches@sourceware.org, Pedro Alves , Eli Zaretskii , brobecker@adacore.com X-IsSubscribed: yes 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 * 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;