From: A A <amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: converting from and to a new bibliographic format in pandoc
Date: Tue, 26 Jul 2022 13:47:55 +0200 [thread overview]
Message-ID: <CAMwawgOt0AE-ibyTeUv-Ov_9pvNESyQWeqr+DwCjDdFQ9xHs=A@mail.gmail.com> (raw)
In-Reply-To: <04A5D7A1-B4AD-4A59-AB54-7D5849F23ACA-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 2937 bytes --]
Dear John,
Indeed, I see that there is an internal representation in the form of a
Meta object. I made a dummy bibliography with 4 entries. After converting
to JSON the following structure was apparent:
{
"pandoc-api-version": [...],
"meta": {
"nocite": {...}
"references": {...}
},
"blocks": []
}
references contains a list of MetaMapswhich contain the recognizable BibTeX
data. blocks is empty and nocite contains some additional data which I
don’t understand.
What is the role of nocite and blocks in this AST?
Regards,
Amine
On Mon, 25 Jul 2022 at 18:01, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>
> If you do `pandoc yourbib.bib -t native -s` then you'll see how pandoc
> represents bibiographies in its AST. All you need to do, then, is have
> your custom reader create this sort of structure in the metadata.
>
>
>
> > On Jul 25, 2022, at 6:14 AM, A A <amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > Suppose that I would like to define my own markup format, something that
> is not currently supported by pandoc. I could in theory write my own reader
> and writer in Lua, making use of pandoc's AST elements, and would then be
> able to convert to and from this new format to other recognized formats.
> >
> > I'd like to know whether the same can be said of bibliographic formats.
> Suppose I have a new one that I would like to bake into pandoc. Since the
> bibliography seems to be decoupled from the AST, what would be the best way
> to do this?
> >
> > --
> > 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/CAMwawgPP62P6%3DXwLSksRv-X11gW7p1A1%2BUhg824n5HAtE_49vw%40mail.gmail.com
> .
>
> --
> 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/04A5D7A1-B4AD-4A59-AB54-7D5849F23ACA%40gmail.com
> .
>
--
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/CAMwawgOt0AE-ibyTeUv-Ov_9pvNESyQWeqr%2BDwCjDdFQ9xHs%3DA%40mail.gmail.com.
[-- Attachment #2: Type: text/html, Size: 7902 bytes --]
next prev parent reply other threads:[~2022-07-26 11:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-25 13:14 A A
[not found] ` <CAMwawgPP62P6=XwLSksRv-X11gW7p1A1+Uhg824n5HAtE_49vw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-07-25 16:00 ` John MacFarlane
[not found] ` <04A5D7A1-B4AD-4A59-AB54-7D5849F23ACA-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-07-26 11:47 ` A A [this message]
2022-07-26 14:53 ` John MacFarlane
[not found] ` <5BC2C9A0-8D21-43E6-B00B-99D7BC319AE4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-08-23 14:42 ` A A
[not found] ` <CAMwawgNAjuyXpG0M-FZhzuS=aBEZZ4Uanb6gX3NjB9fv0YASAQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-08-26 7:31 ` A A
[not found] ` <CAMwawgOs=bC6eVyWqMs1ae-_334Lgzq43-OhQxGgJPWMmkCyKQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-08-26 8:20 ` Bastien DUMONT
2022-09-21 10:38 ` A A
[not found] ` <CAMwawgMRA-Ki8hcj-jrwjBLmgbt8K9OYb3Z_Kz2v1moLCA320g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-09-21 15:26 ` Bastien DUMONT
2022-09-21 16:51 ` John MacFarlane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAMwawgOt0AE-ibyTeUv-Ov_9pvNESyQWeqr+DwCjDdFQ9xHs=A@mail.gmail.com' \
--to=amine.aboufirass-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).