From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30595 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: Divergent styling when using CSL in pandoc(?) Date: Fri, 20 May 2022 18:45:47 +0000 Message-ID: References: <0daa1a20-d847-47f5-a465-708c7875ff8an@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13676"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBBXWDT6KAMGQEL5XMRJI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri May 20 20:45:55 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f58.google.com ([209.85.167.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ns7dK-0003Li-Hg for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 20 May 2022 20:45:54 +0200 Original-Received: by mail-lf1-f58.google.com with SMTP id p36-20020a05651213a400b004779d806c13sf4727838lfa.10 for ; Fri, 20 May 2022 11:45:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653072354; cv=pass; d=google.com; s=arc-20160816; b=RzcX6aFmpQEweKYaMYNp9esHv/tAFIsXsaFAP8q/5UYYZpGiS2B2w2vXd/7/rF5DYU ANq25515Zq38URx+7KAEiuBjf19izFnCKL59IIT/ZFSOls2m9oUiAPiUXMgQv00xDOFF xggHEJbRGHyy+qpht0QsJ1llHX0v8eptAb2qTOEctH6aChOgUsUVLvnFLpEgCZwLlPgW 66HXAt8Qwyvi6lfSayvZWtw6Ry24LFgubXdu3v5ql6ddpeJ1nQmdtmW5B4Ds7DeU2HXx Y2t96+Ffy5RpEBX9McnuqfrTDJTq2U/GuOhvk2Up23mtR6XbHpLBdyh5kt2RZL9I3pOs ncsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from:sender:dkim-signature; bh=BhNoDIyCUg7hGodvQkCtz59h59Xrg/QzewgNdn5CDP0=; b=WG8qp0pWunrBjnxvaiU4aB6yuE9axL994baBe2tg+sd6xNVSnRrJthGm4LQpsGovCY T4Ak4LchBO8zUe3Q6AO+17UXLYpl0NdZ6T5tppFl5aMgVoi03V/NPRrlZfITGHiQnvMw H15mqpcMdUEhGATCUEID1YWMEVpdNpBY++4fRd9DqqERniJFGmu0ysYDA65Rcbh4aQ4y Qlehs36DS5+LCSJ7wHlpPkJMdhmuyiafxCKxPHO3oLJ4bAIyCeQ9uCH62aGm/qRcGhW2 CuIu+bi254Uy4z0ZPxOoUXleH8FoHkOAHj5PeLQ10y0nLuqZ9sekaBOpDnumfmKzfwn9 Qniw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:thread-topic:thread-index:date:message-id :references:in-reply-to:accept-language:content-language :content-transfer-encoding:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=BhNoDIyCUg7hGodvQkCtz59h59Xrg/QzewgNdn5CDP0=; b=rX2/0UlWA/yxJCSOje5v/n2AQ26qXoUIKEynEVo8Z8llxfcHSpPaSr6hBR+LPqx+xS 1t3W1ct81PGEg1YBqL5ti/aUN0ZJ/wPX57h/tK7A6EOn4RonBfoCn61QNQ6cLRfuGOr7 ZI7tEETWa/kjJ2Zn+ppd7DYBniiAeirrwGWDsbBHSm61H2rMJbsoIb9Q7dP65EV7mISR 2vdoc82FsTBBRT45OqkgY5ePwUWw24TvXytGt0aP6sm83vu2ejnwpPKhp7RnrQraSFa5 EibsU9tDAhp0Sgv6Zn6m9jwriLhfEqOnT9uQrQIiFhvYAWvrPa X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:thread-topic:thread-index :date:message-id:references:in-reply-to:accept-language :content-language:content-transfer-encoding:mime-version :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=BhNoDIyCUg7hGodvQkCtz59h59Xrg/QzewgNdn5CDP0=; b=XR0yYcqH9w1kFRqXjMOt28BBXUDww4C4qI74BgNHSIA8GleyR03mPbJ/DRNII2+FSv 5Xhim2QL8RLfA8nbXmLTO+0PEMF4hRrHzzp++/ssuAeAVoFdCCRLag0dNEyuNrFkrYvp Yf21Fs1ZUy9OohXZkaGhPlkNhKNfB9zyhKk+k2vIyfxcS5uyiu5+/nc7/7OR1VsSn60Z Swg2fa4keemG1JxRxo40mXCAzZ/7YWWYjTNoRRjCr9JK3swzUaPvZcISTMcSncc7UgZD judrn Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530s2jqB5lhtbCcwP+M8v1jo6djzxsgF/mKZyoQuS29Y8V4Ty6NF 55hxww50jC4GPyX+IXTbORw= X-Google-Smtp-Source: ABdhPJzmRmIzP/p9GaT1BVpe+zq5hCeBveA+XfUWVu2QOcwKf/iED4qQsHLJ89hkBGsmHFQ5rnvKvA== X-Received: by 2002:a05:6512:3e15:b0:477:a28b:3fcf with SMTP id i21-20020a0565123e1500b00477a28b3fcfmr7913733lfv.476.1653072354000; Fri, 20 May 2022 11:45:54 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:3b0e:b0:477:a45c:ee09 with SMTP id f14-20020a0565123b0e00b00477a45cee09ls2139291lfv.3.gmail; Fri, 20 May 2022 11:45:49 -0700 (PDT) X-Received: by 2002:a05:6512:3f13:b0:464:f55f:7806 with SMTP id y19-20020a0565123f1300b00464f55f7806mr8057810lfa.598.1653072349672; Fri, 20 May 2022 11:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653072349; cv=none; d=google.com; s=arc-20160816; b=UfBkEXVOhh8XqPtvSOAhALhnZKFOE4bwlKouT0pVs0KjchMWZhO29c7Sj/IhFmCovo DojcCmzNUm0L21yuwEyY+B7khfxwyCrj1R4Sb097m6w1JnpTpayhWpGQW9iDHnwTNc5v NOA2FHnWdu9KT0O2Pz4fgGmgoCZubCrT+AXTAe+hvmF4Ua080cc/MzskDKQ6UVvWFduM +bOWK3lB2LtgaOvqoDZR5SPBTSN3VOr+6Kh025/nT/vdA1+HidrNzGfvnT83e/jvWUAz yourWMBp27eAnG8skX4BQWLicorl/FFf83O6bq3V3N9vfJDzVPdqix/lRCKDcrBvpFyl FxGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:to:from; bh=Ko63nP+0mqcAO4psaB4XYWxIo/32S/PxYdHe9JhsK4U=; b=uwPqQziFewEtNK68yxfkMI0+Hu9qH3CaTAxwv32Ull8e4hLC8PCWQs9dQyHVnSa5Ip QTwfTC8A8CU3uy8qmNd0C8IsnkUiDN4QqCxOfY5be1N314QQc+92uTjRI8IBun5bVnsR r9xjkLuY2FXSa+3x6/iwv7MZe0XT0UL2CBGhuDu/ME/xDGqrZiHEoLJahjGdShQIbxMW WJTD0An4RlWSiVSxX5W9P3yWygkGrPTym7Rfv790DxHSBuoV6ovjeeaXl4/QGJ11hJqh i+8OHwEk/+nsqWhVeyQrX5LASYSYclMqYX+RWOxUJ183ww/JvEIoHXb/yZt1dmNt0wQq +XPQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from mailhub-lb2.unibe.ch (mailhub-lb2.unibe.ch. [130.92.0.83]) by gmr-mx.google.com with ESMTPS id m2-20020a0565120a8200b00473b906027fsi311657lfu.4.2022.05.20.11.45.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 11:45:49 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) client-ip=130.92.0.83; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-02.campus.unibe.ch [130.92.13.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb2.unibe.ch (Postfix) with ESMTPS id 2EE485000BF for ; Fri, 20 May 2022 20:45:48 +0200 (CEST) Thread-Topic: Divergent styling when using CSL in pandoc(?) Thread-Index: AQHYbDjihMB6Uii56E23JjqNZrfiNK0npPkAgABzaCA= In-Reply-To: Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [172.18.72.2] X-Original-Sender: denis.maier-NSENcxR/0n0@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:30595 Archived-At: > -----Urspr=C3=BCngliche Nachricht----- > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Bastien DUMONT > Gesendet: Freitag, 20. Mai 2022 15:43 > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Betreff: Re: Divergent styling when using CSL in pandoc(?) >=20 > [...] On the other hand, > the specification does not define the expected behaviour for all cases. T= he > issue documented by your first screenshot is a good example of that. The > "title" macro is called on l.=C2=A0332 with the attribute text-case=3D"ti= tle", but the > element on l.=C2=A0117 included in this macro has text-case=3D"low= ercase": > which one should have the precedence? Unless I have missed something, the > CSL specification does not define that, so Pandoc applies the attribute v= alue > set on the upper-most element and citeproc-js that of the inner-most > element. Neither is wrong, so the only solution is to avoid such conflict= s in > your stylesheet (e.g.=C2=A0by removing the attribute on l.=C2=A0332). Good catch. I'll open an issue on the CSL schema repo. But concerning prece= dence have a look at https://docs.citationstyles.org/en/stable/specificatio= n.html#inheritable-name-options where you'll find: > When an inheritable name attribute is set on cs:style, cs:citation or cs:= bibliography, its value is used for all cs:names elements within the scope = of the element carrying the attribute. If an attribute is set on multiple h= ierarchical levels, the value set at the lowest level is used. That's about inheritable name attributes, sure. But I'd infer from that tha= t there seems to be a preference for settings at lower levels. Maybe we should prohibit the use of styles and text-casing with macros as t= hese run somewhat against the purpose of macros... Denis --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/ae5227d7f2574c9ea33550a84d6e03e9%40unibe.ch.