From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +EcgJ5ESsWD5eAEAgWs5BA (envelope-from ) for ; Fri, 28 May 2021 17:56:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WLNoIpESsWDlHgAAB5/wlQ (envelope-from ) for ; Fri, 28 May 2021 15:56:01 +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 E31C81099F for ; Fri, 28 May 2021 17:56:00 +0200 (CEST) Received: from localhost ([::1]:37618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmeq8-000772-1I for larch@yhetil.org; Fri, 28 May 2021 11:56:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmeop-00070K-9A for emacs-orgmode@gnu.org; Fri, 28 May 2021 11:54:39 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:15977) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmeoi-0003PM-6j for emacs-orgmode@gnu.org; Fri, 28 May 2021 11:54:39 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 913E024000B; Fri, 28 May 2021 15:54:28 +0000 (UTC) From: Nicolas Goaziou To: "Bruce D'Arcus" Subject: Re: [wip-cite-new] Initial implementation of `csl' citation processor References: <87y2c1dym9.fsf@nicolasgoaziou.fr> Mail-Followup-To: "Bruce D'Arcus" , Org Mode List , =?utf-8?Q?Andr=C3=A1s?= Simonyi Date: Fri, 28 May 2021 17:54:27 +0200 In-Reply-To: (Bruce D'Arcus's message of "Thu, 27 May 2021 08:59:13 -0400") Message-ID: <875yz2c0r0.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.193; envelope-from=mail@nicolasgoaziou.fr; helo=relay1-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , Cc: Org Mode List , =?utf-8?Q?Andr=C3=A1s?= Simonyi 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=1622217361; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=bd6whBeHt04bIlFFUrHhvLylljjTxS6CseLyofvhKhU=; b=EqWdWCfyqPpSqauD0FCAhXbZchMr5l6thHILdYsKrSkdzFR3rODeCgusUUF+Y5nQf7sdry 2I3jngGOFKajBdshycdWu7RdwF0Ff9DMX85i/WSRWBP3/+GxCnahyF2R99TYAJPYKPbED9 JGxk7xk0NN5B2HFvGk4ubCAIzy9iDvIeTgJOrZnCvEYrNmCONW6XfU/+JedPLzeExOb58T MaeRr+mC4ZC5fjH1IKmw+zmJ3EiyM/l09+FZzs6SvBRiakK2QW7zptWjOxxncXrpN5xAH7 yJb1+QkVITU3gSmbcJGmivFWhVxLMLHJTkMQ6iS79TRcu85cqtsnC6+olDpc3w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622217361; a=rsa-sha256; cv=none; b=Ty1Ke+6qcXOpqohQ57MCcO+PwiLjlydy4oBvugFmhVf5iRsQzH/9Tn5ozL06yfF98QlC55 P8Tc3AOl2vlGh+gmHc4I8yaywbuospGPNj0uQsZGrBjj6Z4cK/jxiyKZ9x1DnVuWotMjb/ yZp7zUTDXZBzRgqwIdE3lSh84dLWpfqLO/c6V8TwB3Cof58u/cxgsiiUnmtxpjGwAoYm0i tCGzR3CXajKwVfbnumYfPMX47pJpNMFbVhcZ4Cdt92Zu5q8cIyAcJaFZGN8Mrdi2K/ARqx tRfD5tcgXlQDpA4tq8YWFUm5wzVha8+8Ffd7YDMKTfiC48nX3VJ0/qxamDHdOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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.43 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: E31C81099F X-Spam-Score: -2.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: s02EwQU8mmMU Hello, "Bruce D'Arcus" writes: > On Wed, May 26, 2021 at 4:39 PM Nicolas Goaziou wrote: > >> The processor uses the "en-US" CSL locale file shipped with Org for rendering >> localized dates and terms in the references, independently of the language >> settings of the Org document. Additional CSL locales can be made available >> by setting `org-cite-csl-locales-dir' to a directory containing the locale >> files in question (see >> for such files). The directory must contain at least the "en-US" CSL locale. > > So if I setup a separate directory for different locales files, I also > have to include the default locale that's already shipped with org? > > That seems a bit odd. Yes, it seems so. I think I fixed it. You may want to update. > Related, could we also have a `org-cite-csl-styles-dir' defcustom, to > avoid having to specify the full path? Good idea. Also implemented. > > And/or alternately just `org-cite-csl-dir' for both locales and > styles? I'd rather keep the two directories separate. > Also, is it possible for me to set things up so that export to latex > runs through the oc-biblatex processor, but otherwise it uses oc-csl, > where I have (obviously) different styles for each? It is not possible to set export processor per export back-end, but you can set your more common processor in `org-cite-export-processor' and use a different "cite_proc" keyword when you need it (and comment it when you don't). Is that tolerable? Regards, -- Nicolas Goaziou