From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kHKxMnVpXGHVQwAAgWs5BA (envelope-from ) for ; Tue, 05 Oct 2021 17:04:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mClRLnVpXGEaYwAAbx9fmQ (envelope-from ) for ; Tue, 05 Oct 2021 15:04:21 +0000 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 367C022327 for ; Tue, 5 Oct 2021 17:04:21 +0200 (CEST) Received: from localhost ([::1]:49410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXlzQ-0008C6-2Y for larch@yhetil.org; Tue, 05 Oct 2021 11:04:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXleQ-0005n5-4g for emacs-orgmode@gnu.org; Tue, 05 Oct 2021 10:42:38 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:40788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXleO-0002X1-HQ for emacs-orgmode@gnu.org; Tue, 05 Oct 2021 10:42:37 -0400 Received: by mail-pl1-x634.google.com with SMTP id j15so2465850plh.7 for ; Tue, 05 Oct 2021 07:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:references:user-agent:in-reply-to:message-id :mime-version; bh=9x51+d5VIHs5ZHe31DJBIvxWS8iKSiz9T3piqf0HE0g=; b=No+/64c/YJHYglZapxKzWuITfkBpuUummCg7Vgg9z/zvk7TA1txuKBhJ0rWkZ1mp1m J25bGeAcnjHBZC9I/7NcC8fc0wf3BBPgbGfFNYdnbpOF6bPpOy4nTDFi6DQCyuq1czJ1 QNjB5Hn73DphM75hrW5PP/M+OoA178PELgI4jzxNRVrrelw8lll5cpbj/UVrE9jjdnGV H0lvojmU7YMgRADEcuBt4DT4Iy3m0BPbchKroCqsdF9Mejwktc70JPbwPRM23Qb4CYpi 81wMtX4/BouL+8sIBzM1JL7R9Bq2Dgiw5MmEQTvQhWQ9iZSVOOq8RDul6sexzCjUCzf8 iEYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=9x51+d5VIHs5ZHe31DJBIvxWS8iKSiz9T3piqf0HE0g=; b=IOR8BjAY2k11OwCLimb5F6gxXEi0UEkZoGllI7sBdaM3yNKfqqs4ZJVAQ+gCK7Cn/2 2kjufdjtuz106Cb9SbDsiE+OkgiXwGAK0ISRkLzv23u7ygunqPU3J3mtsfyF3pAH7fme 2kDYxinjn6PoebvJmKMAO0bIK3VJY+V6wZ6U2feuVtnklw0c07Qn8xKl8XkGhcvnV6gr rIYYBTGbV9TI9SjqIOdYIKhQ4C0YES+LebhOJR4vrb3ZySt8j+ATCHa0yrRslR0s/5JP CllBTZQQmQQ9VLfhOLA1HIHSfXn4eEqN24spvAms/YD1yldrYcBdHvbLmx7xkvyZFwB/ GbtA== X-Gm-Message-State: AOAM532l1YRC/upovZ0JG9iKpPJcBOFHZf1gKx+zEDpoV5AmHiJB9CpZ /Ns6TiwVDTga0DRJ4E0FZor8uLmviDk= X-Google-Smtp-Source: ABdhPJy7Rkizgp3kLGVr+jDr+FRsQH9wDITG9BUwItgq6RjcMSLaZEdP8KbnBGC1Leu6bLkzdrXl/w== X-Received: by 2002:a17:902:b68b:b0:13a:1239:b8d9 with SMTP id c11-20020a170902b68b00b0013a1239b8d9mr5580158pls.25.1633444952978; Tue, 05 Oct 2021 07:42:32 -0700 (PDT) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id i128sm8525203pfc.47.2021.10.05.07.42.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 07:42:32 -0700 (PDT) From: Timothy To: Org Mode List Subject: Re: Bare oc-csl author variants? Date: Tue, 05 Oct 2021 22:41:30 +0800 References: <87ilycghkh.fsf@gmail.com> User-agent: mu4e 1.6.5; emacs 28.0.50 In-reply-to: <87ilycghkh.fsf@gmail.com> Message-ID: <87ee8zh6sq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=tecosaur@gmail.com; helo=mail-pl1-x634.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.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633446261; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9x51+d5VIHs5ZHe31DJBIvxWS8iKSiz9T3piqf0HE0g=; b=qSt+wDK/QELCsYdW+bQWTpVXnIOSYXT+D2UuuRXwDYI8E9BAfs+7ilOqv3bnHr/aQ3LkYv XM7FZQ7cckf5bh5GrP4w2B9jJcgDovgWm1fYapuyGjhN5fzuf3VifmXAYZIcxSt/BKi1QY MWDoi6y4QG1E+rl7tt6xY8D+FvcC5ESJL0OpG31mmh1eGCeQr2x3jKw9CjOlHLNNlErlD/ yNTlEyavkmB8LyECJJDr8l7CRL3FhCYKo7iSNLhVMCaBQAHr51TeCb7o0i6jzy0BCuBnEj qo0hJdYv6LmhsL6LHGH04rmGIPIvpAYHjlc/r+J1JlVwP412sf2TJClk+s19GA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633446261; a=rsa-sha256; cv=none; b=O87X37sNAAQm13BLFgzsmWfQeI9FymrAGvjMB/zp2vFL79cgzf746yG/Ojby5D07VIpLQ2 1YD96SJQTOweygjhy/OIwYDxrne73zxvj+pRWs3cpOvmiWKq+u5RMjasA0S+/jUek9wUm4 4LtfyP6dIQ+TukmIfzzeZJ+qyCbQzMf4dNF4RYBozroER/JSo87KHIX7BLmiDJrQYcm+cS 7lqRGZeq0QVxpcuAeQsRoueF04AXFV3OV1tzseVdsytpbtrcfM805/U3EExm9sWe9BXlD5 8IOJDpP0ju4i5Q8ctfkbBK1U1JmTcMZAs4bKpOEoBVC/aJBidxWOVWSsraSPKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="No+/64c/"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="No+/64c/"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 367C022327 X-Spam-Score: -2.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: f5p2pJ3QlV/F --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi All, Sounds like the general attitude is =E2=80=9Cwhy not?=E2=80=9D. So I=E2=80= =99ve turned my snippet into a patch and unless any concerns are raised in the next few days I=E2=80=99ll = push it to main. All the best, Timothy --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-oc-csl-Support-bare-author-citations.patch >From 88f8bb7bc8726c20f3cdd4e8d47d1b487b1c2cd7 Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 5 Oct 2021 22:36:13 +0800 Subject: [PATCH] oc-csl: Support bare author citations * lisp/oc-csl.el (org-cite-csl--create-structure-params): Add support for bare (b), bare-caps (bc), bare-full (bf), and bare-caps-full (bcf) author citation styles. --- lisp/oc-csl.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/oc-csl.el b/lisp/oc-csl.el index 3d1388075..3d8f8ed03 100644 --- a/lisp/oc-csl.el +++ b/lisp/oc-csl.el @@ -300,9 +300,13 @@ (defun org-cite-csl--create-structure-params (citation info) ;; "author" style. (`(,(or "author" "a") . ,variant) (pcase variant + ((or "bare" "b") '(:mode author-only :suppress-affixes t)) ((or "caps" "c") '(:mode author-only :capitalize-first t)) ((or "full" "f") '(:mode author-only :ignore-et-al t)) + ((or "bare-caps" "bc") '(:mode author-only :suppress-affixes t :capitalize-first t)) + ((or "bare-full" "bf") '(:mode author-only :suppress-affixes t :ignore-et-al t)) ((or "caps-full" "cf") '(:mode author-only :capitalize-first t :ignore-et-al t)) + ((or "bare-caps-full" "bcf") '(:mode author-only :suppress-affixes t :capitalize-first t :ignore-et-al t)) (_ '(:mode author-only)))) ;; "noauthor" style. (`(,(or "noauthor" "na") . ,variant) -- 2.33.0 --=-=-=--