From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UIaUKzux0WPHGwEAbAwnHQ (envelope-from ) for ; Wed, 25 Jan 2023 23:46:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GNCrKjux0WPMGAEAG6o9tA (envelope-from ) for ; Wed, 25 Jan 2023 23:46:19 +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 62D8DFAD5 for ; Wed, 25 Jan 2023 23:46:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKoW2-0006yU-18; Wed, 25 Jan 2023 17:45:14 -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 1pKoVy-0006yL-NL for emacs-orgmode@gnu.org; Wed, 25 Jan 2023 17:45:10 -0500 Received: from mail-vs1-xe34.google.com ([2607:f8b0:4864:20::e34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pKoVw-0004jN-PK for emacs-orgmode@gnu.org; Wed, 25 Jan 2023 17:45:10 -0500 Received: by mail-vs1-xe34.google.com with SMTP id d66so217008vsd.9 for ; Wed, 25 Jan 2023 14:45:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=p6MYo5ehlbmSfzWyy+PNdhORoIycC/O7oiSTT+vku6o=; b=MKswacz3/plynHiuxaBlADS7Rkw9WVEyRno3jaDGXR6i9a1r/mKGDDcpGKaiATOlUd YKjRdhnc0ijpl+LtK2zAKtf0ebJe2W0szUDmXQO9WuPPtkx1jIYpf4E1RuvyfUGYNqyt unHY9zYh4BO/ZLYjp5ypOsddbAfxoDbpS9ukdasATiQjt9q8PsjSu7bpg7bEX9lFBUaU A8tHBsdFSLvpO0LIdj8SqV/Yl+aD9X6mjPEdJETOsZZJJexOBrRw6y8p26lKrrJ/iWv6 fAnk0Hl3G16vcEcYmEpMrzaqTLpLn96ZMw4Q+/dZ1621S0wyXmjafkecZMQFSkXWLkHk IcNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p6MYo5ehlbmSfzWyy+PNdhORoIycC/O7oiSTT+vku6o=; b=IZqKxCBxUm6F2O5j9Xa2BZFMl7hDIwnafBF4J9sa7PtBXSGuvor4YZ1J5VwwtgDukc 6QVFTLdwg8QTO3h+N3VLzJWBYyD+BE5h00AtREwvhZgpc00BG3XDo/2X2FFPbguDAhhX KHnnSNEWCayGevFSLSj5542X5JmPSY9kUQNyFJKNc5prCpO/SsooToJNggLwskpiBOe3 Wh1Iy8hTjl583CtsNs5JCbRPDYMK/SYpGrB3H20pZawQtuPDY/7lPE6e4ArEZQnRtw0A IXBS4N9OZnJX0cMgdFn1IG0GAvOPau0Z4s94CwGYuPt8k2oeM8AkixDLUJ3tu3CNKalr AqDg== X-Gm-Message-State: AO0yUKUgqLceDPMLrLKUS/RNZEqE7jMcsTqrOp4nSnKkZEtMvgueZK1M bqsOd1FQ5mXuSDe2eBF2ueNO10u9u9EjQFdW4I0= X-Google-Smtp-Source: AK7set9VtYPU6oy8HsD3g/HjiJtPd71bSnBLpVsr/caJBCAitGEfZdYUltmg6Cj6VVXE/lBTuhR5Tl9twQFJH/NTT68= X-Received: by 2002:a05:6102:3b0b:b0:3e7:baf0:313e with SMTP id x11-20020a0561023b0b00b003e7baf0313emr752586vsu.64.1674686707654; Wed, 25 Jan 2023 14:45:07 -0800 (PST) MIME-Version: 1.0 References: <87r0ytoqi6.fsf@localhost> <87k04dlvie.fsf@localhost> <87zgd87di9.fsf@localhost> <87zgauqzb8.fsf@guelker.eu> <87ilh889bz.fsf@localhost> <87wn5isz00.fsf@guelker.eu> <87a62ex22h.fsf@guelker.eu> In-Reply-To: <87a62ex22h.fsf@guelker.eu> From: =?UTF-8?Q?Andr=C3=A1s_Simonyi?= Date: Wed, 25 Jan 2023 23:44:54 +0100 Message-ID: Subject: Re: [PATCH][oc-csl] Improve reference parsing To: =?UTF-8?Q?Andr=C3=A1s_Simonyi?= , Ihor Radchenko , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::e34; envelope-from=andras.simonyi@gmail.com; helo=mail-vs1-xe34.google.com 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, RCVD_IN_DNSWL_NONE=-0.0001, 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: , 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-Seal: i=1; s=key1; d=yhetil.org; t=1674686779; a=rsa-sha256; cv=none; b=ErMl2InFJ4ISV0EAd8+yPn1IOhr3VnkamtVNCFcepGoecbncvF7jFUfa77pJgK4BEMAOTT xF9kxXdLuhYVPsdYJQChwaXYOUEqLWNmuDo9ilE0unUHFOykQzLuFXE/EuA5rhnBh/SH5I Ee4qGz8z4SjCCTXKmqnCs7N49vsdM/vuCcTYhOjbbi7Ni6FbPXGvTvlq0QR9I+bR45c1pV WUixBkz1q/Pmb3F2FAjL4zrrX2IWPvfi46Kat4pVr/Zn6BcHkPHFBjODXghbKlRpjdw2QC D9WfCUvZFieIELd6Zr5u3pcdttXIJw6Q4MXbY0t64QkAUMlp4DdH2HhsIkyArQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674686779; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=p6MYo5ehlbmSfzWyy+PNdhORoIycC/O7oiSTT+vku6o=; b=lZmyJBBWBIGTEXEQRJULwhXR6QVHivifI2tH/jDEqxeEo+V2pZ9Lhlu5pt8TK8lwbL+vnE DVx+e6h+Xvu6QAwo+1mh8tkC1+P753df7xdryovd2tzLSwnlvDSey4qeU0lqWKb5ZusNbh lvX5ZMTkstW3hh0xkYySXR0JzY9QePkEHoikuIeiKyCTg7oNVqegqbTxDGBT9wWmnVn7kP POzELoN7C6EsJ9rU8kFbePsoqOlgYXE3bO8i2fc+js3RGuB7t4awSi1lmpGW4P5a9yjWxM XHpJY9ZSBH/xxHrQEOMhAej3GJSZb5jKSLR/TglNqLBpDG3TbpliPfQpND1YkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MKswacz3; 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=gmail.com X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -7.75 X-Spam-Score: -7.75 X-Migadu-Queue-Id: 62D8DFAD5 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MKswacz3; 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=gmail.com X-TUID: vWi4AWBMorwK Dear All, On Thu, 19 Jan 2023 at 11:15, M. =E2=80=98quintus=E2=80=99 G=C3=BClker wrote: > That is, the macro has to work both in a citation and in> normal text. Ev= en if a @@csl: construct would be ignored in normal text,> I cannot see how= to write the macro then, because something like > > #+MACRO: name @@csl:$1@@@@latex:\textsc{$1}@@@@html:$1@@ > > would still transfer the @@latex: and @@html: constructs into the > footnote. They would have to be expressly ignored by the citation > processor. If we take the approach I suggested the macro definition you suggested should work correctly both for LaTeX and HTML export combined with the CSL citation processor, because in the case of citation locators and affixes Citeproc would receive only the output produced by the planned CSL ox backend, which would remove the non-CSL export snippets and keep only the content of the csl snippet. Citeproc would parse the produced text into the appropriate small-caps CSL representation and then format the citation with small-caps using the Citeproc formatter corresponding to the export format. best wishes, Andr=C3=A1s > > -quintus > > -- > Dipl.-Jur. M. G=C3=BClker | https://mg.guelker.eu | PGP: Siehe Webseite > Passau, Deutschland | kontakt@guelker.eu | O<