From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mAhIJiB0YGG9IgAAgWs5BA (envelope-from ) for ; Fri, 08 Oct 2021 18:38:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 0Ob0ISB0YGEKXgAA1q6Kng (envelope-from ) for ; Fri, 08 Oct 2021 16:38:56 +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 F2B672EDA4 for ; Fri, 8 Oct 2021 18:38:55 +0200 (CEST) Received: from localhost ([::1]:34184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYsta-0007ot-1v for larch@yhetil.org; Fri, 08 Oct 2021 12:38:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYst4-0007oj-3b for emacs-orgmode@gnu.org; Fri, 08 Oct 2021 12:38:22 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:15858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1mYst1-0004zd-N9 for emacs-orgmode@gnu.org; Fri, 08 Oct 2021 12:38:21 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4HQv4w3n5TzQjcN for ; Fri, 8 Oct 2021 18:38:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=guelker.eu; s=MBO0001; t=1633711086; h=from:from: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; bh=MO3Ne6dpWyVPDs2HPtj4bDTqHsavyl4EpO74Op02wGU=; b=jNT2vJIkcrY9zj7SSL23X/kWuuGtT9DgXZFhnT53B9hQA5m7kjHhIlLFH1qjRIbkXrglQE d3jzf8JzNmIXeds+8I/CEQrD/8xsdSFcamSke5eJrfCuNg0roRvsd2Q5SK0h/Kd9OSUKRL unVnkTuympoBXW53ApHlMOo4cJ9vVtpa+b8E3F2JIUmOCmZEBTiP9+2p/bLxu6qFLkjfMu FvDCCcGHUZkTnGmkDLuH3uYnDUvaOgqwJKUMkYVXeUkbtRTPu0fks5mqb0A9Ir3tPnJpp5 Wd7knRpnWtZ+GigNaTHcI/JQW83r2sNk1jtjbHCCI0Ah+7kwTkUC42t2tBKyQA== From: M. =?utf-8?B?4oCYcXVpbnR1c+KAmSBHw7xsa2Vy?= To: emacs-orgmode@gnu.org Subject: Citations: Locale specific adaptions? Mail-Followup-To: emacs-orgmode@gnu.org Date: Fri, 08 Oct 2021 18:37:56 +0200 Message-ID: <8735pbh3q3.fsf@atlantis> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 311E6881 Received-SPF: pass client-ip=80.241.56.151; envelope-from=post+orgmodeml@guelker.eu; helo=mout-p-101.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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: , 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=1633711136; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=MO3Ne6dpWyVPDs2HPtj4bDTqHsavyl4EpO74Op02wGU=; b=iZr9u/BzH18JEQ3a8WJ1eX1Ykc9iJ7vsCvZL/KPOOn1Vmfs9PKhNemA5LXYEccgjty6+o9 5RRREOU0jOWeiE615j/zfY+szEqVM7ncPl37ab619YPGDA2sx4X0FJJNj0xuftCdXNr1JX AgB+17HFNGhDDUfVpBCI4M2PLJFdsyLfD/DrOR694Nkpr8CwEAsehyCZLfAk0dTnC+JjJJ /WKifaurdjXt/8Uy3qYdDctB4IM1mAXCZfHEkK0PcOc0GfCMqm43ryyDrphOf4JsqsRgaR 4aYEOg4GEMPKlXv1YFb9hx1/ZJA+PxCilJuZi+f5jwkgR/hLjBXuJ3GjW9TPWw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633711136; a=rsa-sha256; cv=none; b=qmJ96S+NOAV815Hx0KmPVZQ+0fu0y+IFquj3dKkCQMg6nUgmbspjV/W8dHKPAfBQVAORNi yL01z7bj7oPSXkQCvjCE8gSpdNcFxtInSLf+wKnISryIyXtPLjY2tkmgG7JznD0LXsozTZ 308gS43+hWhp792HJ88v6qzgxWHAAiNqJnJYslyZC2dvvECgQ2U2z/SCNlXy/Aba59mGv5 O+ZkJEKm5qEx6w5DB913JZxwp4PymKcHXjB7s7JRP9BMw7pH3GJaYrCLA1whMq35DjVNAC EoLuEYAKIYhfjdwfMqrYorH/k/3lJmHD2Q2FpJ1IwwWjip4SKw0+mex0BvYbow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=guelker.eu header.s=MBO0001 header.b=jNT2vJIk; 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: -0.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=guelker.eu header.s=MBO0001 header.b=jNT2vJIk; 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: F2B672EDA4 X-Spam-Score: -0.71 X-Migadu-Scanner: scn1.migadu.com X-TUID: nTaN/LaEWkpC Dear list, CSL has a concept of locales, where things like specific terms or the date format are drawn from locale files (see https://docs.citationstyles.org/en/1.0.1/specification.html#locale). I am not entirely sure if this is supported yet by the new citations functionality. Take this test document test.org: #+TITLE: Test #+LANGUAGE: de #+AUTHOR: Testauthor #+bibliography: /tmp/test/test.bib #+cite_export: csl /tmp/test/juristische-zitierweise.csl Das ist ein Test. [cite: @boehme-ne=C3=9Fler2017unscharfes-recht-digita= l p. 3033] Zweiter Satz. Noch ein Test. [cite: @akbarian2020oeffentliche-raeume] #+print_bibliography: Where /tmp/test/test.bib looks like this: @Article{boehme-ne=C3=9Fler2017unscharfes-recht-digital, author =3D {Volker Boehme-Ne=C3=9Fler}, title =3D {Die Macht der Algorithmen und die Ohnmacht des Rechts}, shortjournal =3D {NJW}, journaltitle =3D {Neue Juristische Wochenschrift}, year =3D {2017}, pages =3D {3031-3037}, langid =3D {ngerman} } @online{akbarian2020oeffentliche-raeume, author =3D "Samira Akbarian", title =3D "An einen, der vor=C3=BCberfuhr", language =3D "de", date =3D "2020-12-14", url =3D "https://verfassungsblog.de/an-einen-der-voruberfuhr/", urldate =3D "2021-01-02" } juristische-zitierweise.csl is a style for longer judicial works and available from the CSL repository at https://github.com/citation-style-lang= uage/styles/blob/e22b8a566bad9b4c7f52720f60dd875057a5d210/juristische-zitie= rweise.csl. Given that test.org spefies =E2=80=9C#+LANGUAGE: de=E2=80=9D, I would expec= t that exporting uses the German terms and date format. However, exporting e.g. to HTML gives this in the bibliography: Akbarian, Samira, An einen, der vor=C3=BCberfuhr, Stand: December 14, 2020, https://verfassungsblog.de/an-einen-der-voruberfuhr/ (accessed 01/02/2021). The correctly German word =E2=80=9CStand=E2=80=9D is hardcoded in juristische-zitierweise.el, so ignore that one for a moment. Other than that, you will notice that the date format is US English. This should not be the case. For comparison, here is the same document in Pandoc Markdown: --- title: Test author: Testauthor lang: de --- Das ist ein Test. [@boehme-ne=C3=9Fler2017unscharfes-recht-digital, p. = 3033] Zweiter Satz. Noch ein Test. [@akbarian2020oeffentliche-raeume] If this is exported with pandoc -o test-pandoc.html -s --toc -C --csl=3Djuristische-zitierweise.= csl --bibliography=3Dtest.bib test.md then the cited entry in the bibliography correctly reads Akbarian, Samira, An einen, der vor=C3=BCberfuhr, Stand: 14. Dezember 2020, https://verfassungsblog.de/an-einen-der-voruberfuhr/ (besucht am 02.01.2021). You see how the date format changed for both the long and the numeric format and how the translated string "besucht am" is used. I am not entirely sure if this is a bug, a missing feature (if so, I would like to request it), or a user error on my side. Please enlighten me. I used org 9.5 from MELPA with citeproc.el from the Git repository at 34e66583d95a8d80fb5b9f2960f3382ca0e6d3ab. -quintus --=20 Dipl.-Jur. M. G=C3=BClker | https://mg.guelker.eu | PGP: Siehe Webseite Passau, Deutschland | kontakt@guelker.eu | O<