From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.help Subject: Re: Emacs as a translator's tool Date: Thu, 17 Sep 2020 17:36:21 +0200 Message-ID: References: <871rn35lqc.fsf@mbork.pl> <87zh9r45ad.fsf@mbork.pl> <87h7vz2m5g.fsf@ebih.ebihd> <87zh9qr67n.fsf@ericabrahamsen.net> <3DBA2692-28A0-4AC3-B884-78763A9C7B16@traduction-libre.org> <87tuzyr474.fsf@ericabrahamsen.net> <87h7rwtov7.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34994"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Jean-Christophe Helary , help-gnu-emacs , Emanuel Berg , Yuri Khan To: Eric Abrahamsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 17 17:46:13 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 1kIw6v-0008yw-CK for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 17 Sep 2020 17:46:13 +0200 Original-Received: from localhost ([::1]:33706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIw6u-0001wV-DL for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 17 Sep 2020 11:46:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIvxa-0000qX-BU for help-gnu-emacs@gnu.org; Thu, 17 Sep 2020 11:36:34 -0400 Original-Received: from mail-vi1eur05olkn2084.outbound.protection.outlook.com ([40.92.90.84]:36704 helo=EUR05-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIvxX-0007yu-C2 for help-gnu-emacs@gnu.org; Thu, 17 Sep 2020 11:36:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NmbShT2XUKkcWVKJlYL7o8szL21Zdfnbyn5jmuanhVfKWJLS5Y1X7epT8rP2VDAM/SuD+a8HeSIUcwVdfdM58ODH0qNjNhOmQdAnQsuA+dh5R8Z2gabdTn2Uhy6IDoPXVe+HBzJXWrXBxwdXTwEbmgaFmuCe/ecoXaAVd97wLr5FutHorKhocWH1QI1MRuzZnsVryKOM5xgkejA8AvL9fSgkEaITpzLY0oHb11maWkzdXApDOcfjIQ4OeEzt+NOA/ZyW7PMN8tOohOQIkc46NGBZtUaHcIG8eDWqj/2DsiHffAIdzg96gZ5mOZiQ5thr15wpmUSxxUDp8UIr45tbJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WC9mbMjAbJsb05bVcxh+jTb62Ik6mEz4GZ6G0olvBWw=; b=HdNHbmVGS3RKXpP+uNlc8J9t7hU5gXJI5X/ibhToxhRRnoQW+hEFV9PmhmfMj9T5Mp44ozC8SixGZnoRTonuHrB+Qol6qYKxd3CoqYeEm7jXebI6qaKVv4nuijONPSzRprggxVc8+I9PnStUUnM7sSuq3f0iDjzHS9YNOWiB/BK4yS6ETCVJ3N74OHIZW0bpFd+OfMrvNnmo8ZEh3iT/U3C+fnwbJ528HBtrt0NVKayBldun8rhcOZHx//f3o/h8cJIVBipbM6B2BlKbHxCciYFl1K4sdogwzPG7H3V1gJwJtna0U7snCEQI5jrKVjnxKcgqgNWPwYaqs9yJ5TEhrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WC9mbMjAbJsb05bVcxh+jTb62Ik6mEz4GZ6G0olvBWw=; b=D//6U/ofbV4gGNOqXj8NXYNtvSOuZ+NYXyxOwaVn61mDISJltArcPPAzQ/zZDaBeR8hcjR5KdQ88V1CUMXrZrTTlfxjKey4R966w3tXs+xwaWQoiOKJnJt8A40ZW0Iu5e0wa2Zuw+RaOjbcp454smt5WA1YYqM15UQCflbMHIU+wGO7BPfzD2KTukDcKO97PjYcY3Lpr1k7A0Ni1LIW0OmyGPb29ovjod2rQQFe02c/qVghnqAxjTpZlMFVVhvLy8M9IWbe0qorXlAci4Iy5hNpjcE96bHMLVDEPOVdZ2f6wXCV3fhEO5cI47MOSYG29MjLEIQn0CpYKCnQC5kDuJg== Original-Received: from VI1EUR05FT050.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::4a) by VI1EUR05HT022.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Thu, 17 Sep 2020 15:36:23 +0000 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com (2a01:111:e400:fc12::4a) by VI1EUR05FT050.mail.protection.outlook.com (2a01:111:e400:fc12::291) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.15 via Frontend Transport; Thu, 17 Sep 2020 15:36:23 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:93216FF68DE8005552A66F5E4748001DC271C7ACE0AEDCB10A59B94ECDECBFC4; UpperCasedChecksum:E3271F32F849F568F08155EE53DB30DFF104853EC75401F924BE474A23315200; SizeAsReceived:7916; Count:47 Original-Received: from VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::b547:51cd:16c5:4487]) by VI1PR06MB4526.eurprd06.prod.outlook.com ([fe80::b547:51cd:16c5:4487%7]) with mapi id 15.20.3370.019; Thu, 17 Sep 2020 15:36:23 +0000 In-Reply-To: <87h7rwtov7.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 17 Sep 2020 08:16:44 -0700") X-ClientProxiedBy: AM7PR03CA0018.eurprd03.prod.outlook.com (2603:10a6:20b:130::28) To VI1PR06MB4526.eurprd06.prod.outlook.com (2603:10a6:803:ac::17) X-Microsoft-Original-Message-ID: <87wo0sh0ui.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM7PR03CA0018.eurprd03.prod.outlook.com (2603:10a6:20b:130::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.14 via Frontend Transport; Thu, 17 Sep 2020 15:36:22 +0000 X-Microsoft-Original-Message-ID: <87wo0sh0ui.fsf@live.com> X-TMN: [7tvx80VsR/lSSpHRR9vX2fJLmVlIw03L] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: b2cb6f13-cc7a-436b-4f00-08d85b1f6e56 X-MS-TrafficTypeDiagnostic: VI1EUR05HT022: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vcCVF63prP4BwyUcJG+LCMMm1oMfm7Orml8VjrN8NnlUKCXA6GZm6oVzGGi84PAI15q3CVks2VXMxLxO4l339dAhOWp7Ox2cPDQOgXNdKgXwZMPeMwiWoG6o8qA0oTks4x+HGKk/hUj2Q/hWEl83ijrqgzzWDxO6EK1g+1LqKSrFWs85nxyxxdLguVy/PUW0ubg0tcQHOMB9+KUf5pviFLghKqHSmG2IM4FcGs8AqVJ058r5sOgYr1xTZowaFrcS X-MS-Exchange-AntiSpam-MessageData: IWFlcdYSFbEAhI5Gy2LZl9UYlg0RRTN57bJ6UVTfLc9Nd2UtSSv3O0mRruLc16X3tnUVd6IUmlsr40NuzS+dB4Ox+cFk4jsjJq+eoH50SihU2sNcIh6chd6NBD3x6m+J861uFRgvsyeQHpcbZfrP0w== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2cb6f13-cc7a-436b-4f00-08d85b1f6e56 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2020 15:36:22.9887 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR05FT050.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR05HT022 Received-SPF: pass client-ip=40.92.90.84; envelope-from=arthur.miller@live.com; helo=EUR05-VI1-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/17 11:36:24 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] 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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:124072 Archived-At: Eric Abrahamsen writes: > Eric Abrahamsen writes: > >> Jean-Christophe Helary > > [...] > >>>> 2. Link terms in the translation to a glossary pulled from the original. >>>> This would be character names, places, special terms, etc. They might >>>> not always be translated the same way, but I need to know how I've >>>> handled them earlier in the document. Glossary terms would be >>>> highlighted in the source text, and when you came to the equivalent >>>> spot in the translation, you'd use a command like >>>> insert-translation-term that would prompt for the translation, >>>> offering completion on earlier translations, and then insert that >>>> term into the translated text with a link to the original in the >>>> glossary. There would also be two multi-occur commands: one that >>>> prompted for a translation and showed all the places in the source >>>> text where it came from, and another that did the opposite: prompted >>>> for an original glossary term and showed all the places in the >>>> translation where it was translated. >>> >>> Very nice ideas. >> >> Maybe this will inspire me to write some code! The nice thing about the >> glossary is that it wouldn't have to just be vocabulary. You could just >> as easily use it for "every time the car crash is referenced", or >> something like that. You'd just have to manually mark the passage in the >> original, rather than automated marking by text search. > > Okay, I've finally implemented this, and pushed a version 0 of a package > called org-translate to ELPA. You can see the code here: > > https://git.savannah.gnu.org/gitweb/?p=emacs/elpa.git;a=blob_plain;f=packages/org-translate/org-translate.el;hb=HEAD > > I'm going to fool with it a bit longer, then make a real release. > > It basically does what I was describing up-thread: basic segmentation, > tracking of correspondences between source and translation text, and > maintenance of a glossary for automatic translation. > > Comments very welcome! I hope it will eventually be used by more people > than just me :) > > Eric I am currently translating a book; and have 1/3rd left. I am using my own (simplistic) org solution; but I would definitely like to test it. I have just downloaded it and took a quick look, but I don't have time to test it today; will be interesting to try it tomorrow. best regards