From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32226 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Where is the locator attribute in my Citation element? Date: Thu, 23 Feb 2023 10:10:23 +0000 Message-ID: References: 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="26329"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBE7X3SPQMGQEQQDV2IA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Feb 23 11:10:31 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f63.google.com ([209.85.167.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pV8YZ-0006ce-CY for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 23 Feb 2023 11:10:31 +0100 Original-Received: by mail-lf1-f63.google.com with SMTP id b1-20020a196701000000b004d5aee356dcsf3107822lfc.5 for ; Thu, 23 Feb 2023 02:10:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677147030; cv=pass; d=google.com; s=arc-20160816; b=neCnBshwSvowqUH61umt8+W0TAUXvEe+2DpyMD5tcdvnIR2y8BOHfB3f1SHHUqw5BQ Hmm+ncLo0R+yR/NTewcKvH8UaGepsPwdIP5K0rs2gjIpHSMXGsxoIwHZk5Bq1D60BsmR fFlZGt240zdyB/juN3RimTmLo3c1lL0i6DomauNnSZvdTF36SU/sXu57KyWwEit6FMmW OSJz4oXvPIdt4OafR5MFuAM9HIi7tfGDwwGOYP0WdPM6Bx3EbdbFN6LrqNoDizpZfk9I F7Ld+p7XrnypTt+31asacBtN9GBazPAxg8XBy1EshI1X71Z3ggQUuQ65+SNFTDQWTZxk TlUQ== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=PswCjtOmjG3GPpYFOL9pYf6c/YR3KU/rByJnb6/jbSA=; b=LOCwOKgUS8hMoZr3FsstGq8SuNm/QG+WA/G0oYMqsBdsDCNZdNJzjWjPDIp+g0fEgO 2I6dgigfwgwyrAam+r03F2W9fO9o6y41I7dDUN9ceAvEqxEjGNQ/ftO9NtRt1ICIhO9M cADD41x0ZBRrYUENWppAMayS1Flfd3LkTQRyyZfDrYIpzt1AncE5VhUKSCDgEN4rcYb2 ozPh8VECctVpARM8BZJRcOyQ8ORwpzlMbWsQx9NnzsoqdK/Yvp04DGLo8kuJa32fu6VQ DTNlCgWZHxi8iSjJOiRBmmj1CJfcQbnLjmRXrrBlpxbk9CugoV/1hvAha8HY3sjFGYmA Rs6g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=GEFve4PI; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=PswCjtOmjG3GPpYFOL9pYf6c/YR3KU/rByJnb6/jbSA=; b=kTitQjUVfylPdEIpsIZbsBsgp++3AwqW8t0j1mYYIMUoKw8L49GPFbEOHP7DTgL/qA ewZCMcftDnx1Mr830RO/skSzjDx07V4e5YKq+WS76Jl0RQBxrDwzqZhUhH3oHLelXFMG KLQl2abFLwAOBsfvhwPiN0abtmj13j2z0v+bBoFzoL/8zYbHyB0mc2vU2ejv65NIN26j ue/UMgXljRfyr7zzfTlNcrofSjJj5WIFYsl6r/eli6jJGKuWcbaRwGdQbbPETEgpa/Hr TFMpaN1cD/6RJAhgsDO33QsOPa/xlidRx4WxuiQP7C7i9 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=PswCjtOmjG3GPpYFOL9pYf6c/YR3KU/rByJnb6/jbSA=; b=mFvoi1aCZ8i+HUhH7g5lStIYY1nzh9fn6WOIGdj0KFPdiUl/0YuNke+GXY2sSJ69G6 M6010njxVWvHnAOe4XlVCfCa/1CYL8KCXMsovOuUU8RhVAy6vKJxFpruTWMqvkKS/1vT WkzPFm4syI97h4Q9xJHmNVuV0u9rWeL+tloNXxafv0/arV88Y2mnjYY/oxSlGPhsDVXu cnn5KYWuUd8YnQlKUrNLazrlKSRlSOzbtfotPCbR4DlPp7KImAMRFLlbIZsJrCbXO8QZ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKWVQR2E3WSO5hH1u9F2u4lRdP/PuEu66H3kp59azLUYGolUk8FD fN4+7Kxsm+pudMGSHfUhC8Y= X-Google-Smtp-Source: AK7set8vFrl3F0qzJGXt0Op4yu1xxNoUg+LaNQ/Ys+OqD2RHAYuIEY7ZRPWRe5BSMPf+ZHjqLCa2Mw== X-Received: by 2002:a05:651c:2010:b0:293:2d4e:ae22 with SMTP id s16-20020a05651c201000b002932d4eae22mr3405309ljo.7.1677147030446; Thu, 23 Feb 2023 02:10:30 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:e84:b0:4db:51a5:d2e8 with SMTP id bi4-20020a0565120e8400b004db51a5d2e8ls1556032lfb.2.-pod-prod-gmail; Thu, 23 Feb 2023 02:10:25 -0800 (PST) X-Received: by 2002:a05:6512:3e1b:b0:4db:5123:c271 with SMTP id i27-20020a0565123e1b00b004db5123c271mr4738114lfv.29.1677147025887; Thu, 23 Feb 2023 02:10:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677147025; cv=none; d=google.com; s=arc-20160816; b=iNsZEH8ddzXG1wMOWCIrlT0g+NlH5920hfBHJZHnT7blafzvXQuCunoOR9pUOtjzke enspAP97vswWMmRBfnQ9sEOs3CoKHqZ1tkfdTSeOZQVffELhpeR1U0Mh+/qdjQW9MSJg KNaN2XPOcAJDkMOxTmfzshnZjIM0Rj3nSuQ315Vp+TKEhmSqEdKA/CQr3ZShFuPkjIGf Fq0J7RLxfFSuLID6/zahqzllV4ifw7jMcbJm5Y53E1OnYGGsMjIsptJOLcefnWCeazk/ ouDL657PwSH4+87TOm81skv6esQzV1wFhucdtjJnmwya3HGOnbvSUlsffsvM6JB3wcEw og5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=TR1gDMbYwsDzB4FyVf7HuqDUfBFqnJ7mgVT1+jtCpFM=; b=hQ3t4WfTbGq0RAs5due3l3Od8fV6rMjbdqrYRhVLl6+BHcfO6o8un3BY7xtsuJCOZ0 KOBwsqZpYFZwDwc1VfjkG3eJNj0/h8h7PxGDkFkMWbzfV47p9LDoBIZPfVLkjwIZ+LXY +h03na8F39xhKLk/J3LWqffVLVRJxiLGZ0DwZFEql6sr5BTr7AugSyCYB6IDpJXhTQ25 SXTgVM9Rzd1rHc3nV3mBVvMni6VnhFErT/TnWpSzIr63Fxs2VOz8W+W7/z7yYZwNXxxx hBoEK4JLABvR9a6yeg7aJHkag5gY3qKFWN0E4iEw7M502Z2cbee43W/8IcUK3ZBtMSSE NchQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=GEFve4PI; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id h5-20020a056512054500b004dd7665b536si431029lfl.1.2023.02.23.02.10.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 02:10:25 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C933524041F for ; Thu, 23 Feb 2023 11:10:24 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PMpgN39Ygz6tsJ for ; Thu, 23 Feb 2023 11:10:24 +0100 (CET) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=GEFve4PI; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:32226 Archived-At: There are two levels of processing: representing the text in Pandoc's AST v= ia the reader for your input format and formatting the citation via citepro= c. Extracting the locator from the suffix belongs to the latter level. I gu= ess that you already know it, but just in case, the AST is better described= here: https://pandoc.org/lua-filters.html Le Thursday 23 February 2023 =C3=A0 10:51:41AM, A A a =C3=A9crit : > According to the [1]docs >=20 > Citation items may optionally include a prefix, a locator, and a suff= ix. In >=20 > Blah blah [see @doe99, pp. 33-35 and *passim*; @smith04, chap. 1]. >=20 > the first item (doe99) has prefix see, locator pp. 33-35, and suffix = and > *passim*. > The second item (smith04) has locator chap. 1 and no prefix or suffix= . >=20 > So I made markdown file test.md containing only the following: > [see @doe99, pp. 33-35 and *passim*] >=20 > When I run pandoc --from markdown --to native test.md I get the following= : >=20 > [ Para > [ Cite > [ Citation > { citationId =3D "doe99" > , citationPrefix =3D [ Str "see" ] > , citationSuffix =3D > [ Str "," > , Space > , Str "pp.\160\&33-35" > , Space > , Str "and" > , Space > , Emph [ Str "passim" ] > ] > , citationMode =3D NormalCitation > , citationNoteNum =3D 1 > , citationHash =3D 0 > } > ] > [ Str "[see" > , Space > , Str "@doe99," > , Space > , Str "pp." > , Space > , Str "33-35" > , Space > , Str "and" > , Space > , Str "*passim*]" > ] > ] > ] >=20 > I was expecting a locator attribute somewhere containing pp. 33-35, howev= er > this is not the case and the locator and suffix as mentioned by the docs = are > basically all mixed together inside a suffix attribute. >=20 > Is there such a thing as a locator? If not why does the documentation men= tion > it? >=20 >=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= email > to [2]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [3]https://groups.google.com/d/m= sgid/ > pandoc-discuss/ > CAMwawgPvbd2kYqD2B%3DFt6fPzUsWOCAAabJuzD%2BU%2B8X%2BgSP%2BMfQ%40mail.gmai= l.com. >=20 > References: >=20 > [1] https://pandoc.org/MANUAL.html#citation-syntax > [2] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [3] https://groups.google.com/d/msgid/pandoc-discuss/CAMwawgPvbd2kYqD2B%3= DFt6fPzUsWOCAAabJuzD%2BU%2B8X%2BgSP%2BMfQ%40mail.gmail.com?utm_medium=3Dema= il&utm_source=3Dfooter --=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/Y/c7jxMzmnNe%2BbiS%40localhost.