From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sOjoBQ83SGLWFgAAgWs5BA (envelope-from ) for ; Sat, 02 Apr 2022 13:44:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wJs3Aw83SGIB9AAA9RJhRA (envelope-from ) for ; Sat, 02 Apr 2022 13:44:15 +0200 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 A14E612444 for ; Sat, 2 Apr 2022 13:44:14 +0200 (CEST) Received: from localhost ([::1]:56980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nacAu-0005mQ-EK for larch@yhetil.org; Sat, 02 Apr 2022 07:44:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nac8I-0005mH-7m for emacs-orgmode@gnu.org; Sat, 02 Apr 2022 07:41:30 -0400 Received: from ciao.gmane.io ([116.202.254.214]:55654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nac8G-0003cA-An for emacs-orgmode@gnu.org; Sat, 02 Apr 2022 07:41:29 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nac8C-0003U4-2t for emacs-orgmode@gnu.org; Sat, 02 Apr 2022 13:41:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: org-cite, CSL styles and space before citation Date: Sat, 2 Apr 2022 18:41:15 +0700 Message-ID: References: <87wngosqvm.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648899854; 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; bh=4ixQgOv7rHu8kjtZVSmeigSh7Sp3R2g0suJ1zIeV9/I=; b=tTf4aHeiaBW8/beuYio9YUxwPo6qO8HW6T5BfMwjwpga1WguC/YJbxSxTYsYvfR12FUjq7 TaEQRiihFt59f5v1gSkOa0jFd3uHQnWiYIZwTJRsOihI2HNdcvpHwOAMwb97p22FDXBsyN 3yef8yTxGnKLcd3dphzOFeT8O4Ek8Sdk9dAzsNb5jrHfUEibjPcpHZf+GPhcbTlydKPKQ1 WH878fWDVDw468LmieSi8pkE6iYSkWRMhAU7IZEqUKr1uD6BGWc/+37B6Ivo5c0vOTdclH SU2j3aWrXR2J5w9mKTAdeh2Rph6Tbif0meluxqGT8I/UgiF35hNd6Dl6+9r+4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648899854; a=rsa-sha256; cv=none; b=Sky3g2SSLPQ/s0hltIa+FLczeRS/CwxaIBT1mR4a7Yn2WQdY+9y2JXPyO2FE6CPuyWFxmz C0n21aizYFLuSbMYvJ3tyVZoWszmTGYwVzM8+DH8FGEWLjXvgShtEnrlpCP56eRNGuysiY 6H852yrGaJ4YCB/iN0T4ED8YMy3Y8zG3ZjIGfoA8AaO1u36YzYbJlp2DRRKpeTC3T3+3PG tecRKGniR8zAuFafGGKkefYGwT8i8cv1pnNTaPoDBVskaXYXHItBd6CI9YYYrILY77HT95 ld9/hG3IV1kj/yw2y4F3txWTKw9g5pXHKqz+0UHIeXWah1brTZQZ4jPGKI3zQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 2.62 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: A14E612444 X-Spam-Score: 2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: rsKiA3VPZYas On 01/04/2022 00:27, Bruce D'Arcus wrote: > On Thu, Mar 31, 2022 at 11:27 AM Max Nikulin wrote: > >>>> Emphasis and bold markers may appear in plain text export. Behavior of styles is >>>> not uniform in respect to adding (unbreakable?) space before citation. >>> >>> Sorry; not following here again. Isn't the space before a citation >>> determined by the user? >> >> I was lucky enough to pick a couple of styles having different behavior. >> Notice additional unbreakable space before "[1]" in the second example. >> I have checked a couple of IEEE papers and they have spaces before >> citations, so to switch from IEEE to APS style it is necessary to remove >> spaces before citations. > > The latter style includes a non-breaking space in the citation definition ... > > https://github.com/citation-style-language/styles/blob/21e2177295be5b98ef49b00dd4b8cc7e68d2143d/american-physics-society.csl#L96 > > ... which strikes me as odd, though would explain what you see. I grepped the directory with CSL styles for "prefix" and tried annales.csl. It removes regular spaces before citations (if they exist) but preserves non-breakable one. Since the project has enormous amount of styles, it is hard to ensure that they have uniform quality and behavior e.g. in respect to responsibility for a space before citations. A test sample and result of rendering for it with a check list for style authors may help, but they will evolve in time. It is unlikely that accidental contributors of styles will manage to maintain compliance to current edition of tests. However it would be great for various tools dealing with styles. P.S. After all, it is necessary to change style when e.g. a journal declined a paper. It may mean that the quality of the paper is not high enough. Adjusting the text for another style is a burden that makes it harder to just send it to another journal and thus reduces number of low quality papers. And such efforts are negligible in comparison with attempts to mane the content better. So some oddities with particular styles are not a serious issue.