From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2Hd9FG16DWRviQAASxT56A (envelope-from ) for ; Sun, 12 Mar 2023 08:08:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iM5OFG16DWQZ0gAAauVa8A (envelope-from ) for ; Sun, 12 Mar 2023 08:08:29 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EBA0E25CA6 for ; Sun, 12 Mar 2023 08:08:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbFnk-0006yG-0N; Sun, 12 Mar 2023 03:07:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbFni-0006xW-4Q for emacs-orgmode@gnu.org; Sun, 12 Mar 2023 03:07:26 -0400 Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbFng-0001gd-9Y for emacs-orgmode@gnu.org; Sun, 12 Mar 2023 03:07:25 -0400 Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id ec9d5bcd (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 12 Mar 2023 07:07:19 +0000 (UTC) References: <87jzzncfbq.fsf@mat.ucm.es> User-agent: mu4e 1.8.14; emacs 30.0.50 To: Uwe Brauer Cc: emacs-orgmode@gnu.org Subject: Re: bi-lingual text Date: Sun, 12 Mar 2023 14:07:17 +0800 In-reply-to: <87jzzncfbq.fsf@mat.ucm.es> Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Ruijie Yu From: Ruijie Yu via "General discussions about Org-mode." Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678604909; a=rsa-sha256; cv=none; b=t5t2Ezdh1F9Ha5o0HunFokAzgKUcu4pZ35nyowFieitcPXd97Ztp/3X2O8qkOqXCtcGJ3I lhuPvoEGbr9SamKi6BXOZ8jTD+eqSFmXw4srVc73CFPVYfz3FUVFukOp1ss3NbqEYReROj cGlCfPa61eKorf/EiDPbxtVyD1WKWq4rEnA7Y5ZAyQsXU8QH2/xAJ6sM7hdtq2fbTXPy0n 7f68RmWJp7DmAuV1AmFChet/Ad6ss5AG3+s0jeBJEkC6GBQ4+0yL+U1YQUe12wpV0/7pJY nOrXO5GV/yRjVifx+WZM548DnU8CwYMHYUta5Mlh3bQWHnLfk5U5aqp0WTCOGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678604909; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=J/tJlULw+NjlCGoz4uVAU1Q3TuldHGLHObRHEWlssEE=; b=rBTuRiTAITrEujqPkYJ52sUsaqMm68qE6Cf0EtgvE5LknBBi0TZbkaoB+ceuwzk5z31+zJ 4RBu4yHEb2HMh8/fbzCHi71BmyY6DbOtuRjyylSO5cEKifnFKIeKDiMH2jthm7YRbijWHE TPksNmPWi2mfgb2PugXrcLs//kHIjawODRbj8PLV8tHvqJiNtZC/HyFj7YnZaZeXrtLeQw IK6JYsE6BrJwMZBW7edZfqwoOyw/7HiCMoOP+sjwNr7Hmsv0B5pE7y2Br47Lavuzsnnhl4 prpD9tkuemP2gJBWY0/O/yjj1PaCqLZgEDFTlW2TyPVb/AuoqytEOQlRhbi6wg== X-Migadu-Spam-Score: -3.51 X-Spam-Score: -3.51 X-Migadu-Queue-Id: EBA0E25CA6 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-TUID: 6oOtwTtsk5Yt Uwe Brauer writes: > Hi > > I would like to have a sort of side by side, paragraph based, > representation of text in two languages, say Spanish and English, best > would be org based of course. > > It does not to have to be anything fancy like inter-linear, I could use > a simple table but that looks cumbersome. > > I searched the package system but could not really find anything. `2C-mode' might be what you want. Be warned, though, that it might be confusing when first using it, and that there might be missing information since I have just begun to explore it because of your message. (Also, there doesn't seem to be much documentation on 2C at all, except for in its source code?) Two caveats: 1. Whenever you split using s (M-x 2C-split RET), the split will happen at the current column, while *consuming* the previous char. You can experiment with the command and see what I mean. 2. Currently, when you use 1 (M-x 2C-merge RET), the associated buffer is only minimised at the right side. If a user wants to reuse the same assoc buffer when typing s again, the user first has to hide the buffer (at least in my experience). What I tried: In "bilingual.org", type the following: --8<---------------cut here---------------start------------->8--- * Bilingual Hello world.|! Good night. --8<---------------cut here---------------end--------------->8--- Here, "!" its not a character but means the cursor; "|" is the character before point, and will be used as the separator for the buffers. Then, run s (M-x 2C-split RET). There should now be two buffers side-by-side. Go to the right buffer and start typing. --8<---------------cut here---------------start------------->8--- Bienvenue tout le monde. Bonne nuit. --8<---------------cut here---------------end--------------->8--- Then (in either buffer) run 1 (M-x 2C-merge RET). Now the remaining buffer should read: --8<---------------cut here---------------start------------->8--- * Bilingual Hello world. |Bienvenue tout le monde. Good night. |Bonne nuit. --8<---------------cut here---------------end--------------->8--- Hopefully this helps -- not only for you, but for those who, like me an hour ago, accidentally discovered 2C-mode but did not understand how to use it. -- Best, RY