From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id YBZ0OEoL32UVgAAA62LTzQ:P1 (envelope-from ) for ; Wed, 28 Feb 2024 11:30:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id YBZ0OEoL32UVgAAA62LTzQ (envelope-from ) for ; Wed, 28 Feb 2024 11:30:35 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=noidIpfl; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709116234; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=t7TiC/oaBuerapAoZuV1cshBy1o4DmRiviMWALWG8gc=; b=WXoKUihdUNfKZtkRma7micLNyvpgr6EkLoyBoEL83VlpAWMG6Fwyhf3KbdbOHTCCUUsQJ8 7hW0aU3vh4TM8y3eQ2tjQbwRcR7HanMd9u4MFqtEghLq/vuT8WfYQd0KmKEeFTRjB8fiDo GXfrHoL2fbT+KrEAGAoICT5X9mOo8jrLuJNkxM+6samI115ZfogxgXgJGklgJru0DDxakn fNei/03DlUPcKZ39QUa2T9wh4IB/JrcDOaSEoLW5uKsLxIbeQl+iKjQ6G1o/oceJfO51Ex MowCFhfun0LKRqEWgaEIJ0wguFpuT2kXpAbvn7jVtSmeRvj24et06eICxQK8iw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=noidIpfl; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709116234; a=rsa-sha256; cv=none; b=V0teHhdCq6dpymvQH8wVygpd2lV9Y/kkzSzuvZ8YYz/es+qFeCtSE3a7W6/KLu1eT8pZWd HW1IRDguNVRE0sU/ldO1JtNdAxigOA9Pop/6O1XIQ2ZHKTmKcZxiMHCNIqPpKxUvTkLqtf UIIPEv+MuprkAY5hEtHsPBC1te38aA/WCfpk9KKDRu/miHLOemZfIp+mwQqqSRwPzDNpQG Gsv6iVe1Iqnl0EcbsNpwtZfKTELwg/9KKfTtxMVRRhkkXvFvUWBx51VFR4WssXEehvjzjB kxLt+5WROEKZE7SHd1HdPbC2Io5rpRCLlvtQceNXj6pDU1yVTD6AbroY2W8W2w== 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 A1CA347B36 for ; Wed, 28 Feb 2024 11:30:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfHC4-0007cn-VT; Wed, 28 Feb 2024 05:29:44 -0500 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 1rfHC2-0007ZW-VH for emacs-orgmode@gnu.org; Wed, 28 Feb 2024 05:29:42 -0500 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rfHC1-0004Of-4d for emacs-orgmode@gnu.org; Wed, 28 Feb 2024 05:29:42 -0500 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2d094bc2244so64377601fa.1 for ; Wed, 28 Feb 2024 02:29:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709116177; x=1709720977; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=t7TiC/oaBuerapAoZuV1cshBy1o4DmRiviMWALWG8gc=; b=noidIpflGboU1nnDlA3lIPXH2TwhbPSU6OQOYPjzU+gFry6NEJiFtN2Ug6CK8wLlbX 6Ri70TpqrJxL1Nadm1aRubj5xw1XreOwq6qSxNGwq92iP6iW27yK5O2sCTf/1wxvMsLb 7wnmK1J+sFUGlEkPHuSgRZ0bhNqNyGHNGEHmxBcn1Xy/y+LjORsctkZeFSKhACoib7pB B13v4cxkjE4YygIDrgd/e7HlzgwYw07YwyKp4ENZhbg5Fa3TEShcc8lXGU4jEpsve5WJ /s2XWow2yO3kPokBQHS4CSL8OabC+uEAwS+r1yaVTmTUoZ4BeEGfx7friGBmW/KwAQwl oLHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709116177; x=1709720977; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=t7TiC/oaBuerapAoZuV1cshBy1o4DmRiviMWALWG8gc=; b=SNQKC5Hr+n+1E4QIMtd1ps8z6/zPlD68xT7KW9XxQDwoIuagASixxTNPHKgD6eGUAV YFmvrhOJlFjOzqIViwauMTtn3r4+8jWf4rFb4LbqBTLpP8uFBjoiI63611VvNWAyF7wy FinoM7x/YyhZaubr7QLiWPlijKgQ/y+8zf+QFxpidJmNnfDOIOGQTkIYg8u6bGo0TXUb h07rnpfbJQI6rM0T6g39uddowm6GwxKQ4zp6f8kgrHsPVJxk1444FlM1vD47mBb9HqU8 M2bNdvdoyTjpjObceqfnPsgmUQ/CMc53FFjvhet9srsXNG5dzxM/ocSJBXurJagzjLcZ k78A== X-Gm-Message-State: AOJu0YyplJBc0Nd1rljci2E/EIzSzPw7rWmruy5svJBfUZqc24/W+Pa0 fSJjHBLNSnD0uUzvcsQAudxxZh1PLEeFbHFoUHGjl9jfvO5qIRlX X-Google-Smtp-Source: AGHT+IGSLFVwD74VLTU2ptsNywOTt1CHk48nINHxgqOajvUenvMXM8tlYmNtnbGg30raLReBUHNhyw== X-Received: by 2002:a2e:9395:0:b0:2d2:a8d5:1daa with SMTP id g21-20020a2e9395000000b002d2a8d51daamr1961544ljh.25.1709116176917; Wed, 28 Feb 2024 02:29:36 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id j18-20020a2e8012000000b002d0b63b16a4sm1576724ljg.28.2024.02.28.02.29.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Feb 2024 02:29:36 -0800 (PST) Message-ID: Date: Wed, 28 Feb 2024 17:29:34 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [proof of concept] inline language blocks Content-Language: en-US, ru-RU To: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= Cc: orgmode References: <87msrudgcn.fsf@posteo.net> <8734tmmcnv.fsf@localhost> <87edd6ytiy.fsf@posteo.net> <87sf1mrpr6.fsf@localhost> <87a5nuyo4w.fsf@posteo.net> <87frxmrmjb.fsf@localhost> <875xyhzyzl.fsf@posteo.net> <87le7dihaj.fsf@posteo.net> <87h6i1ifp7.fsf@posteo.net> From: Max Nikulin Mail-Followup-To: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= , orgmode In-Reply-To: <87h6i1ifp7.fsf@posteo.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=manikulin@gmail.com; helo=mail-lj1-x234.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , 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 X-Migadu-Spam-Score: -2.77 X-Spam-Score: -2.77 X-Migadu-Queue-Id: A1CA347B36 X-Migadu-Scanner: mx11.migadu.com X-TUID: O9f/eYGF2XBC On 22/02/2024 06:02, Juan Manuel Macías wrote: > Samuel Wales writes: >> :fr{some text in French} >> >> being expressed as >> >> $[lang :fr "bonjour"] > > To expand a little more... Another problem I see in your example is > nesting. In my proposal, the blocks can be nested: > > :fr{text in French and :it{text in Italian}} > > But I would find this difficult to read: > > $[lang :fr "text in French and $[lang :it "text in italian"]"] Juan Manuel your ":fr{}" and similar objects is a domain-specific language that is quite different from a generic element proposed by Samuel. Do you think it makes sense to modify your inline special block patch to allow creation of concise DSL? Juan Manuel Macías. [testing patch] inline-special-block with full implementation for LaTeX backend. Fri, 23 Feb 2024 23:50:52 +0000. https://list.orgmode.org/87ttlyloyr.fsf@posteo.net I mean &fr{bonjour} defined using "#+options:" or some new keyword or a special block. A definition of "fr" may be (using a bit different names) :latex_element "foreignlanguage" :latex_prefix "french" :html_element "span" :html_attr (:lang "fr") &fr{} is no heavier than :fr{}. The only drawback is necessity to define elements for each language used in the document. I do not think, even a dozen of declarations is a significant burden.