From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30895 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: Changing colons to full-stops in titles Date: Fri, 1 Jul 2022 15:34:49 +0000 Message-ID: References: <78df697a-50f5-46d0-b0b8-29a2cbc9509an@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_f440b082946148b884b45ed1a3421de4unibech_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7434"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBBG5I7SKQMGQE6RNFAIQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jul 01 17:34:55 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f63.google.com ([209.85.208.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o7IfX-0001jO-HR for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 01 Jul 2022 17:34:55 +0200 Original-Received: by mail-ed1-f63.google.com with SMTP id n8-20020a05640205c800b00434fb0c150csf1970326edx.19 for ; Fri, 01 Jul 2022 08:34:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656689695; cv=pass; d=google.com; s=arc-20160816; b=AxlJ/oio37wZqTeVhRuzJz5S0MFFnkbhdHRtB968WwL0q1MhcFxlop4RD79ps/O+mK rlPM8NE2iIwhEch8SyvQ4El0SKPnwwvc2Xc/e3byRSq7z22WGjD0nHAYnO09RAzzGH5u VS9LWrJjkH579TAvssIY5ntHS1uQCaD2hGC7xhxaMp1qa/vQyvf7sxgcDnFyH187yBf3 P92Yu02u/cbvGwarA+7F3UN0ak4cbMmHn5PMWxe8rkTQcp7gxD5nXAoO8j6xFeqtbVu5 XZ7lRZdm+x7MaxCYipQlL0nLbuQ5tOIxH6AwvFGgvcf2xlRHT1GrvSfY8qf5T61mmjZy a/TQ== 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-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:sender :dkim-signature; bh=79B5JRZmPMTkQvXYcmLV9OCHLNJ9j+l9tXfayUVQkRY=; b=NRXr9ouQano8sGsHKTX+CSAPqUjedsAahY4gpUNeM6iFvDfIE16YsfZsOLpuCuLAPJ 3n/V1NjNlGb7DkccYA39kZCDt93VDnTXRpqZbytzY6wRIkmqZ+dRdvXoZOn9TIRzmSAC 2rabAmCTsV2EWVbjpkHfM3+Bw9jIkxLOu7z/i05ZbnYTiSMGwLuCayzbS/ofazqa9DBg zdGCDuOXVQvX74uvw4MTNM6daJeU019V9hZY3c+V+PbgaeXXwIsd51mErJy+JQeI4DID LcLciomDU9MXnLCTj8Le1umnvAZM3oCfo1SUZ6j6YjeMQI8u6AKjk4s5cguoO5qyz0wd yFZg== 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.82 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 :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=79B5JRZmPMTkQvXYcmLV9OCHLNJ9j+l9tXfayUVQkRY=; b=fwPacho4JaMnJoEHgaXsGd4DTuJOd/PHTKWupYCaVAbjhGCERA0gkDsnVDQoV8OiZn XkooV8JimiNvJGby150lYnvT/bl9MoFG0enDNdNIzFApFimowr5QIwAB918S1VbSdGMW 445u/eM/suGfVJWmeamPFv2nEb0u5nM0zLnXGlmYsBZmKG70k0j6NHJYDGOjSy3TWKB2 JGyN8YZkVCd6fcc4l8XVBYEzpsgPBAWqrrboUVFcQZsnThVgmFe7U2fzjy6ALXqOfEL9 gcvK14wPJTZq/RsSEcLJ/XGxooErn2+KUOvqMzPcDLlMydiPoSs2nnVeXQ5QZbSDgu+E 5SPg== 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: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=79B5JRZmPMTkQvXYcmLV9OCHLNJ9j+l9tXfayUVQkRY=; b=hupSNEcvpU+XnxS1OYrcg05Rk1ZxKM1pVEwJTYsyzCTcwf/LAYeilQWQVsj0ayfIEV HSSfvNy6kq7F2V3CmoDWglGjjUoN+NaGeDC0tBDfSQ4w7BMOtTNdvxCqaE6LNKXb8Ewp WhcrMZtdm4IbC6dvSpPhLl6cXHB85HyphKbc0pGweipfvMfPvKcWLcpiwgrR0fNsC7Tw l8hSXpPokmrVwkQpYNjYkfsF3PYx+XL4dKi6ijtW8uGGX2F3tVN/1voajrgQ+rXNK5b4 mMwGtXxgFbBIutubOEPrKz8AQUqfYMZ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora/aWkbcGjiTE+v4qfoZM06EjdE2/7O6OVAs7LGb1GDYbmJDsfd7 XWtj5pxD8qHWmZrn0gSjO0I= X-Google-Smtp-Source: AGRyM1t1cRGHNBwmNaQ3jQF8ZrWzj3nrCiwoq8g6rxz1wXvTXT3fn+Vgb0dajOLiyx5DHDSZ0mvfDA== X-Received: by 2002:a05:6402:2684:b0:435:afac:3670 with SMTP id w4-20020a056402268400b00435afac3670mr20798040edd.262.1656689694987; Fri, 01 Jul 2022 08:34:54 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:907:a42b:b0:726:cbdd:466d with SMTP id sg43-20020a170907a42b00b00726cbdd466dls4549566ejc.9.gmail; Fri, 01 Jul 2022 08:34:50 -0700 (PDT) X-Received: by 2002:a17:906:5d04:b0:722:f46c:b891 with SMTP id g4-20020a1709065d0400b00722f46cb891mr15228215ejt.4.1656689690780; Fri, 01 Jul 2022 08:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656689690; cv=none; d=google.com; s=arc-20160816; b=IC+cgI7d/MqCfjPyYye11i/n6riGqDuO4/XMd3xz17p5Yd0ugQOsvE1QvYvHiUSqt6 wEwTJyAs3FL/xDeHtPNzn4dsH+Fy9sVDJYajxmDQjbDFNaqPwjorHOxpla0iN/h8Wb/p gdiO0VKDxmRExey5tIE82Tp86yUvPIjUoXtj/SBdVnGYVN+oPOvzzyWvckhbV+DDuQ8V WmWBUExTwB9Rfs2RP8+F8kyGMV6FPC6/TOnplkroSAKg+y+QJb8WbYMXZ+Tl8zQHxahQ TNuUC27kCdV9CNvUdOsUJSnCngCN9fwG4UZvGmBRrx5fgE7IJibToQ1/xTEftIfRh9HK PvLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from; bh=pekO8LHVAJQrAR3TVywmVoBRc+t4siIw+KxtkQw9EXI=; b=WNoOYmNm6hgk1oXHlwFMM5gzhe2Bx2Nmm5p2JRvc+Xly+ma9Qg0i+P6k/YvfwEwNIW ygWKBGwuV/Zo1A8nU+5HnioDfMvQ18DSwPHd3c0Rc33kvpxGjfImHtISY9NyWihGlqjl cGTzUfx2g+YbQmUNTRj+ERuTftBUHGbx3jVnBBeLFKxf82Jtdy3yEMg8NOb5wge/bnab IkTVWFiDOSpjhiClTe4P+p3U/H8GDfT2T8x6D0KWn06Ky7ERQl/cCBfRMZbFswfTqRSB CYMN3K5DtHWaJ4ykkgmY1K2Pkbhlkic+IML01KsFzlDfOLq4wxyYG2mzEkSPjWWx0Uj7 Ws3w== 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.82 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-lb1.unibe.ch (mailhub-lb1.unibe.ch. [130.92.0.82]) by gmr-mx.google.com with ESMTPS id jx1-20020a170907760100b0072a6696083bsi248645ejc.2.2022.07.01.08.34.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Jul 2022 08:34:50 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.82 as permitted sender) client-ip=130.92.0.82; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-03.campus.unibe.ch [130.92.13.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb1.unibe.ch (Postfix) with ESMTPS id 7E440500069 for ; Fri, 1 Jul 2022 17:34:49 +0200 (CEST) Original-Received: from aai-mail-07.campus.unibe.ch (130.92.13.43) by AAI-EDGE-03.campus.unibe.ch (130.92.13.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.9; Fri, 1 Jul 2022 17:34:44 +0200 Original-Received: from aai-mail-03.campus.unibe.ch (130.92.13.41) by aai-mail-07.campus.unibe.ch (130.92.13.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.9; Fri, 1 Jul 2022 17:34:48 +0200 Original-Received: from aai-mail-03.campus.unibe.ch ([172.18.73.17]) by aai-mail-03.campus.unibe.ch ([172.18.73.17]) with mapi id 15.01.2507.009; Fri, 1 Jul 2022 17:34:49 +0200 Thread-Topic: Changing colons to full-stops in titles Thread-Index: AQHYjVhIsMIE8s9IhE2lBYWP9lHO8a1pnTTw In-Reply-To: <78df697a-50f5-46d0-b0b8-29a2cbc9509an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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.82 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:30895 Archived-At: --_000_f440b082946148b884b45ed1a3421de4unibech_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes, that=E2=80=99s a known issue... There are a couple of possible solutions : 1. use biblatex databases and patch pandoc so it will concat title and subt= itle fields using periods. (line 667 https://github.com/jgm/pandoc/blob/mas= ter/src/Text/Pandoc/Citeproc/BibTeX.hs) 2. I think pandoc=E2=80=99s citeproc will just treat every unknown variable= as a string variable (see https://github.com/jgm/citeproc/blob/3f94424db46= 9c804cf2dac2d22dc7a18b614f43e/src/Citeproc/Types.hs#L1054 and https://githu= b.com/jgm/citeproc/blob/3f94424db469c804cf2dac2d22dc7a18b614f43e/src/Citepr= oc/Types.hs#L901), so you should be able to use =C2=ABsubtitle=C2=BB in sty= les. (This will give you warnings when using the style with Zotero and it w= on=E2=80=99t work reliably across implementations, but anyway ...) 3. if you=E2=80=99re using Zotero, you can leverage Zotero BBT=E2=80=99s po= stscript feature to manipulate the JSON after exporting. E.g., this one : if (Translator.BetterCSL && item.title) { reference.title =3D reference.title.replace(/ : /g, '. ') } Not bullet-proof, but simple. You will want to choose a better separator, m= aybe a double-bar or so. 4. Doing the with lua should also be possible... The question is: do you have the subtitle in a distinct field or is it just= in the title field? Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im A= uftrag von John Carter Wood Gesendet: Freitag, 1. Juli 2022 16:39 An: pandoc-discuss Betreff: Changing colons to full-stops in titles I have one final (for now...) issue in setting up a CSL file (which I use w= ith pandoc/citeproc and references in a json file). I'm not sure whether this is a CSL issue or whether it's an issue that can = be solved via using a filter (or some other solution) in pandoc, but I thou= ght there might be some people here who might have faced a similar issue. The house style for here (German-based publisher) wants a full-stop/period = between main title and subtitle in citations / bibliographies; US/UK standa= rd is a colon between main title and subtitle. And reference managers like = Zotero -- IIUC -- save titles as single fields (at least they are in my ver= sion of Zotero). So it doesn't seem like it is possible to control what del= imiter is used between them via CSL. I have found various discussions of relevant title/subtitle division issues= -- some going back quite a few years -- in forums on Zotero: https://forums.zotero.org/discussion/8077/separate-fields-for-title-and-sub= title/ ...and CSL: https://discourse.citationstyles.org/t/handling-main-sub-title-splits-citep= roc-js/1563/11 However, these were in part discussions among developers about possible cha= nges, and I'm not sure of the current status of this issue or whether there= is a way to handle it. Would it be possible to automate turning colons in titles into full-stops v= ia using a filter? If so is there such a filter already around? Can this be= done via CSL? Or is this, as of now, impossible? (Or is there a real simple solution that I have, as usual, overlooked...) -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/78df697a-50f5-46d0-b0b8-29a2cbc9509an%40googlegroups.com. --=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/f440b082946148b884b45ed1a3421de4%40unibe.ch. --_000_f440b082946148b884b45ed1a3421de4unibech_ Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Yes, that=E2=80=99s a known issue...

There are a couple of possible solutions :

 

1. use biblatex databases and patch pandoc so it will concat title an= d subtitle fields using periods. (line 667 https://github.com/jgm/pandoc/blob/master/src/Text/Pandoc/Citepr= oc/BibTeX.hs)<= o:p>

&nbs= p;

2. I thin= k pandoc=E2=80=99s citeproc will just treat every unknown variable as a str= ing variable (see https://github.com/jg= m/citeproc/blob/3f94424db469c804cf2dac2d22dc7a18b614f43e/src/Citeproc/Types= .hs#L1054 and https://github.com/jgm/citeproc/blob/3f94424db469c804cf2dac2d22dc7a18b614f4= 3e/src/Citeproc/Types.hs#L901), so you should be able to use =C2=ABsubt= itle=C2=BB in styles. (This will give you warnings when using the style wit= h Zotero and it won=E2=80=99t work reliably across implementations, but anyway ...)

 

3. if you=E2=80=99re using Zotero, you can leverage Zotero BBT=E2=80= =99s postscript feature to manipulate the JSON after exporting.<= /span>

E.g., this one :

if (Translator.BetterCSL && item.title) {

  reference.title =3D reference.title.replace(/ : /g, '. ')=

}

Not bullet-proof, but simple. You will want to choose a better separa= tor, maybe a double-bar or so.

 

4. Doing = the with lua should also be possible...

&nbs= p;

The quest= ion is: do you have the subtitle in a distinct field or is it just in the t= itle field?

&nbs= p;

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von John Carter Wood
Gesendet: Freitag, 1. Juli 2022 16:39
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Changing colons to full-stops in titles

 

I have one final (for now...) issue in setting up a = CSL file (which I use with pandoc/citeproc and references in a json file).

 

I'm not sure whether this is a CSL issue or whether = it's an issue that can be solved via using a filter (or some other solution= ) in pandoc, but I thought there might be some people here who might have f= aced a similar issue.

 

The house style for here (German-based publisher) wa= nts a full-stop/period between main title and subtitle in citations / bibliog= raphies; US/UK standard is a colon between main title and subtitle. And reference managers like Z= otero -- IIUC -- save titles as single fields (at least they are in my vers= ion of Zotero). So it doesn't seem like it is possible to control what deli= miter is used between them via CSL.


I have found various discussions of relevant title/subtitle division issues= -- some going back quite a few years -- in forums on Zotero:

https://forums.zotero.org/discussion/8077/separate-field= s-for-title-and-subtitle/

...and CSL:

https://discourse.citationstyles.org/t/handling-= main-sub-title-splits-citeproc-js/1563/11

 

However, these were i= n part discussions among developers about possible changes, and I'm not sure of the current status of this iss= ue or whether there is a way to handle it.

Would it be possible to automate turning colons in t= itles into full-stops via using a filter? If so is there such a filter alre= ady around? Can this be done via CSL?

 

Or is this, as of now, impossible?

(Or is there a real simple solution that I have, as usual, overlooked...) <= o:p>

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-d= iscuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/78df697a-50f5-46d0-b0b8-29= a2cbc9509an%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc= -discuss/f440b082946148b884b45ed1a3421de4%40unibe.ch.
--_000_f440b082946148b884b45ed1a3421de4unibech_--