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: 368048 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 5C0C3140080 for ; Wed, 9 Jul 2014 11:54:25 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:cc:content-type; q=dns; s=default; b=p2kXf6DeHmgLfygOAlm307O245wk3brfVIW+uhsndO8 ganhmfkZqzdRnpgGd4OA3nHpARGCpXV+E4huzCpDZ5qBvRyQO5cJUQVEfeZozg/r SniumB2ewOJkUgELICIj4Y2rFfd20RtBPyd9Kg+RvaM2U8aOi6Swd5D1yJuAgkOY = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:cc:content-type; s=default; bh=teU05ReVz/wB0EGxAW7P4xVYkTg=; b=gVfBJrOHOWcvyFCMo LFFaYhvanny4393d12uFUiG82Ee/VxI3rP5gYmW/C2Yfqx+a8UfxTPrAD7SXu6kh sS2k7LDQTDHmKnoTC8JBhxeGBxJeb9OQGw6B8MvU7zSJXzaaJQomhv3Jr+nSAndT uAfzyJYp9KJexf0/ZBNMnIutyg= Received: (qmail 29028 invoked by alias); 9 Jul 2014 01:53:52 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 28213 invoked by uid 89); 9 Jul 2014 01:53:45 -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=ham version=3.3.2 X-HELO: mail-qc0-f180.google.com Received: from mail-qc0-f180.google.com (HELO mail-qc0-f180.google.com) (209.85.216.180) 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-f180.google.com with SMTP id r5so6080844qcx.11 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;