From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Takesi Ayanokoji Newsgroups: gmane.emacs.help Subject: Emacs as a translator's tool Date: Fri, 29 May 2020 23:28:20 +0900 Message-ID: References: <871rn35lqc.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="36820"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs mailing list To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 29 16:28:47 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jeg06-0009SR-TM for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 29 May 2020 16:28:46 +0200 Original-Received: from localhost ([::1]:42896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeg05-0007pM-Qn for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 29 May 2020 10:28:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jefzj-0007mg-5O for help-gnu-emacs@gnu.org; Fri, 29 May 2020 10:28:23 -0400 Original-Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]:42446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jefzi-0003UN-6d for help-gnu-emacs@gnu.org; Fri, 29 May 2020 10:28:22 -0400 Original-Received: by mail-io1-xd35.google.com with SMTP id d5so2509795ios.9 for ; Fri, 29 May 2020 07:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zOXnIPBqeFmVQUPMm3fRRIr5mAlhECbmggKL7AC/DzE=; b=Wx4lpZM9f651SnW5r4hQ2bdiipROuUQ3sGVx5dhMeMCpKdn+UVH9CkE/WJIOVnR4TI GyFgyDI9hHFP6k1x+rTcHboD034lbWDB+Sn/cmkz0PBg9qZkomCFn7IfQN1d0RQTnLTP hV8Ori68MpUVrgHDiwCiS4Ukv2JAxFbXXlZ9Q0iskAoeoDAADFll0JaOOFT5+XMbkZOb Jq5MBzMCHqea/vBZIEtnM3QVjO7nfn9qziiQPQLiytdy1rVwvR7I5KGiV4t9QYMAqAL2 CYBA13NhhHplAFOLPcQM0WiCKbD9FDJG5erV6nhTdwd15kioimcEUUnrZWwEyMZ1xN2g ht7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zOXnIPBqeFmVQUPMm3fRRIr5mAlhECbmggKL7AC/DzE=; b=PGvGs6MxXsAJZXK7x/AK4kjUuj8kzcwlrt4HjrnhwJE4+V2Etoyj+cXRmfSHMhEB0b jO6r502h7mmjJMZHTScCf3JLMQV2YzPLY7MMqs9MM8mc09u4n6tmCYt0Oe0JxSNvICg8 PaFhnGlZ2GqJjkZJziLDuJgzv2UQHSDaiyCvtgpzLQJOo6lyhLDq7SmiBVg7SSaWI+Yq LO6Qlkfbml/Ko01/fbjW3vmn8CvTeXeliByrcS2XP50C9QgC6R67LrG8/Pq7o+4lyNpc RaIMSBgvEtJ2Ygq28YB3Rm2E7JxnNIMme6bcm6yGdXXoGQ7tbA7fLQqOiszLrq9vs9PG Cbcw== X-Gm-Message-State: AOAM530PSY1RuKrOecbuFZkCprhR74jJvPBIMXVUPwyjXX+xho8fDkUU gao2TXvYTdsoUM96oypyhVOvhNOfiGdDAUPkcgex5Q== X-Google-Smtp-Source: ABdhPJwjqoGHRkvVmqyOU3YLwHUp64uzAUjqJSkQHVX0nFnh5JHQeK+B1uO/EkvdyTBd+2h1726KFZYJfR+29xquOtU= X-Received: by 2002:a02:2a47:: with SMTP id w68mr7282420jaw.76.1590762500734; Fri, 29 May 2020 07:28:20 -0700 (PDT) Original-Received: by 2002:a6b:917:0:0:0:0:0 with HTTP; Fri, 29 May 2020 07:28:20 -0700 (PDT) In-Reply-To: <871rn35lqc.fsf@mbork.pl> Received-SPF: pass client-ip=2607:f8b0:4864:20::d35; envelope-from=ayanokoji.takesi@gmail.com; helo=mail-io1-xd35.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123180 Archived-At: Hi,Marcin > does anyone here perform translations within Emacs? I am translating Emacs' info manuals using Emacs' po-mode and Po4a program. --- "Why Po4a?" starts here. I use PO format as translation memory because it is major format for *nix i18n nowadays. PO format is used gettext's tool-chain programs, but some tools in gettext is limited for translating messages in various program sources. These tools process source files includes messages convert/reflect to/from translation memories. For this reason, I use Po4a tools for generating po files from files written in various formats, and vise versa. --- "Why Po4a?" ends here. > The first thing I would need is a way to highlight the "currently > translated sentence" in the other window, where I would keep the > original text, with an easy way to highlight the next/previous In the po-mode, strings are highlighted "currently processing msgid". Msgid is strings before translating. These strings' range (sentence, paragraph, page, ...) is defined by Po4a when extracting from original document files, and Po4a semms define msgid as a paragraph. For example, belows are 'Anti news' in Emacs manual before and after translating. before: https://raw.githubusercontent.com/ayatakesi/emacs-24.5-doc-emacs/d826fbbb960688a04f46cec4e8e0131d2c39e218/anti.texi.po after: https://raw.githubusercontent.com/ayatakesi/emacs-24.5-doc-emacs/b0506307007fc3d36e8168c2f84bd125e97484fe/anti.texi.po And in po4a, there are many commands operates on a msgid/msgstr. Best,