From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33475 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: iandol Newsgroups: gmane.text.pandoc Subject: Re: BibLaTeX data model using YAML syntax, possible? Date: Wed, 6 Dec 2023 16:47:45 -0800 (PST) Message-ID: References: <23908cfd-bd5e-46c0-b1e6-65c8a082dd1fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_26942_217669517.1701910065744" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35384"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC2PTEMIZYERBM5MYSVQMGQEJGM2ZMA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Dec 07 01:47:50 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f62.google.com ([209.85.210.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1rB2YQ-00090d-Cs for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 07 Dec 2023 01:47:50 +0100 Original-Received: by mail-ot1-f62.google.com with SMTP id 46e09a7af769-6d881430a74sf487170a34.2 for ; Wed, 06 Dec 2023 16:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1701910069; x=1702514869; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=sfV0YuZ6ZbQAlw7+W1PCTQhTYsdNYdqP1x/lPRCXS/Q=; b=k8R7Rv7/t8AH6Jr0QHbNM1tTko52i+7tub8fr0ZQyRsOncJmYWBlcJPhu/3J8StFV1 EtQ0FfQ6i5kaw51+mTD13lOMP0htW56uRUiHyQPXDvYOG6Rybd0mYzp6UIVg/rU5kiKI E/610ihXlesoj3b9WQ2jmXseSnWYuhoMZjgR+OpbNYnR41gF4oyGQo+yKmAsnsyvKHX3 7BKJGyDdSXamt8tsjlWcHB3vl7vpJnBL7FrBYuHhFvd3DAWAjiyWBoJVVe3ZA6bvPS2Z k/BUWM4+NxUyXQw6NpgqDriQHtj+4Dz66tCzEzLIgdW5tsXsLTPBzBgQGAb/4dX9yShz Gr4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701910069; x=1702514869; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=sfV0YuZ6ZbQAlw7+W1PCTQhTYsdNYdqP1x/lPRCXS/Q=; b=KBbvwkEdh/eIlw09ZX7onYyz1ZgMWOoMXXXJ13Ee8oe4wRv3pUn9BOSmg+noqCZHaz kcHJ57tVvc3jXQ9bHQofMaQmwGYqxXsBwthwpWD9hswL65hcPiS2ma1ImIF1Fm+qPY+J B5H0n411kvIfYwUY7P86PtHWasiThadXUwLQFMIamBBdSBOCQLyi9YwiOe0RlidDRCKA ZmVdxWnsCnn+Njo/3/XPRu02ePYj9VK51FC4SwbPgFbbDpaNOubzJQnRcwFSweOcFaSw TWIRD3v5LRvjQ0G8qNb5e2WR3kTvE4fGs4mCH0yimcGi3ZlMaQlktnPoCHKE8gyj/4+e mg1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701910069; x=1702514869; 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=sfV0YuZ6ZbQAlw7+W1PCTQhTYsdNYdqP1x/lPRCXS/Q=; b=Wozp4gebWoahmtvDUmqJwJv7jtCgB79YPfpDY2bzn/rWFC1BMxdR+ihPvxFrnZtKeN A3D4iJYjnBwYwOXrF8e1kdLiMTvbjBAnglgLNHsboU9U2FTLsMW9lPtJGeWn9mkbW/2A x49RsgvEMSZLBaiKclpvUBf03l7iMIqo6Rc3YlUx2T+ExiRt358x9BzDpoMx0ZthttR+ BX/hiVivUjWdVp7zy1YjhtJzwezVPJ90FJ9sT6kerCakuxq1ieYCITmbId9A3dH4UMVd 9xhH0x8npM/i0L/qvRcnmXdwRkmXaiZ26VpAfViGoE2/+JdqVx Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YxTXq0IymM8M2w8uIXvnrqkN2bDbyuF0v1EOi5lI6G0EQZJh9bJ orjs0a1V6QMF/DmVVKTVYsg= X-Google-Smtp-Source: AGHT+IFJxyg/7fuZBJaM+8QnUurigJmV7pvN7dB6Foxvv6PBQaTKkwLTr0kTKSwFJXcGq5F7o3ZQew== X-Received: by 2002:a05:6870:6487:b0:1fb:116a:13b with SMTP id cz7-20020a056870648700b001fb116a013bmr2010837oab.51.1701910069275; Wed, 06 Dec 2023 16:47:49 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:724d:b0:1fb:10f6:ea4b with SMTP id y13-20020a056870724d00b001fb10f6ea4bls734942oaf.2.-pod-prod-02-us; Wed, 06 Dec 2023 16:47:46 -0800 (PST) X-Received: by 2002:a05:6870:2052:b0:1fb:1ad8:1be8 with SMTP id l18-20020a056870205200b001fb1ad81be8mr2084236oad.2.1701910066333; Wed, 06 Dec 2023 16:47:46 -0800 (PST) In-Reply-To: <23908cfd-bd5e-46c0-b1e6-65c8a082dd1fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: iandol-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:33475 Archived-At: ------=_Part_26942_217669517.1701910065744 Content-Type: multipart/alternative; boundary="----=_Part_26943_674077525.1701910065744" ------=_Part_26943_674077525.1701910065744 Content-Type: text/plain; charset="UTF-8" I can't respond to your specific issue, but just to throw another potential into the mix, the Typst team made their own YAML bibliography format and toolset: https://github.com/typst/hayagriva They have a CLI to convert to BibLaTeX, which Pandoc can read, so that may be one solution depending on how you feel about the Hayagriva data model... Ian On Wednesday 6 December 2023 at 00:41:54 UTC+8 lucabal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > Hi, > > I'd like to use a YAML file format, which I consider easier to write > and more human-readable w.r.t. bib format, but using the biblatex data > model (defined in chapter 2 of BibLaTeX manual, found at ctan/biblatex), > which I prefer over CSL data model (defined in appendix III and IV of CSL > 1.0.2 specifications). > > As far as I understand, by default, pandoc expects (ref. pandoc/manual, > sec. Specifying bibliographic data) > > BibLaTeX data in a file formatted as .bib > BibTeX data in a file formatted as .bib (and and extension as .bibtex) > CSL data in a file formatted as JSON > CSL data in a file formatted as YAML > RIS data in a file formatted as .ris > > Is it a way to use BibLaTeX data model in a YAML formatted file? Is there > any caveats? There is a need of a Lua Filter? What does pandoc use to parse > .yaml or .bib files and to write those? Where should I begin? > > Thanks, > Luca > -- 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 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/eab2fe42-dc5d-4822-b7a8-b57260e66364n%40googlegroups.com. ------=_Part_26943_674077525.1701910065744 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I can't respond to your specific issue, but just to throw another potential= into the mix, the Typst team made their own YAML bibliography format and t= oolset:

https://github.com/typst/hayagriva
<= br />
They have a CLI to convert to BibLaTeX, which Pandoc can re= ad, so that may be one solution depending on how you feel about the Hayagri= va data model...

Ian

On Wedne= sday 6 December 2023 at 00:41:54 UTC+8 lucabal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
Hi,

=C2=A0 I&#= 39;d like to =C2=A0use a YAML file format, which I consider easier to write= and more human-readable w.r.t. bib format, but using the biblatex data mod= el (defined in chapter 2 of BibLaTeX manual, found at ctan/biblatex), which= I prefer over CSL data model (defined in appendix III and IV of CSL 1.0.2 = specifications).

=C2=A0 As far as I understand, by default, pandoc e= xpects (ref. pandoc/manual, sec. Specifying bibliographic data)

=C2= =A0 =C2=A0 BibLaTeX data in a file formatted as .bib
=C2=A0 =C2=A0 BibTe= X data in a file formatted as .bib (and and extension as .bibtex)
=C2=A0= =C2=A0 CSL data in a file formatted as JSON
=C2=A0 =C2=A0 CSL data in a= file formatted as YAML
=C2=A0 =C2=A0 RIS data in a file formatted as .r= is

Is it a way to use BibLaTeX data model in a YAML formatted f= ile? Is there any caveats? There is a need of a Lua Filter? What does pando= c use to parse .yaml or .bib files and to write those? Where should I begin= ?

Thanks,
Luca

--
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/eab2fe42-dc5d-4822-b7a8-b57260e66364n%40googlegroups.= com.
------=_Part_26943_674077525.1701910065744-- ------=_Part_26942_217669517.1701910065744--