From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: Cormac Relf <web-v7Sng7lNsVbsQp/K+IV0sw@public.gmane.org>,
pandoc-discuss
<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Experimental citeproc implementation in Rust
Date: Wed, 12 Dec 2018 12:38:46 -0800 [thread overview]
Message-ID: <yh480kk1keeazt.fsf@johnmacfarlane.net> (raw)
In-Reply-To: <9e7db31a-8244-4ac8-800b-25709cedc240-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Cormac Relf <web-v7Sng7lNsVbsQp/K+IV0sw@public.gmane.org> writes:
> The BibTex parsing is a tricky one, though. There’s this
> <https://github.com/charlesvdv/nom-bibtex> for the main syntax, at least. I
> wouldn’t want to fork out to Pandoc for every single latex text field, but
> maybe the Lua API’s read would help here.
That's an interesting point. If your parser just
parsed the fields as RawInline (Format "latex") ---,
you could have the lua filter do a separate pass at
the beginning to try to convert all of these into
native pandoc inlines using read.
> It might be simpler to support
> both citeproc-js’ micro-HTML and a similarly limited micro-LaTeX with a
> simple Rust-based parser, but not at the same time. What do people use
> backslash commands for in BibTeX? Are there names and document titles out
> there that really need the whole power of LaTeX to render? I might have to
> think about this some more. Perhaps a successor to CSL-JSON that accepts
> arbitrary JSON objects wherever the old one accepts strings.
In practice, a fairly small subset of LaTeX would be
enough to handle most of what you find in bibtex
bibliographies.
Certainly you will find things like `\emph`, inline
math, and lots of escape characters like `\"{a}`.
--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/yh480kk1keeazt.fsf%40johnmacfarlane.net.
For more options, visit https://groups.google.com/d/optout.
next prev parent reply other threads:[~2018-12-12 20:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-11 17:04 Cormac Relf
[not found] ` <78b7f42d-7640-45ff-a359-f59355217af8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-12-11 18:44 ` John MacFarlane
[not found] ` <yh480kh8fjj43g.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-12-12 9:21 ` Cormac Relf
[not found] ` <9e7db31a-8244-4ac8-800b-25709cedc240-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-12-12 20:38 ` John MacFarlane [this message]
[not found] ` <yh480kk1keeazt.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-12-12 21:07 ` Paulo Ney de Souza
[not found] ` <CAFVhNZOZuRTuWs9_0P0Rd4DM0udixT-WxOUaykvoz5vjmva71A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-12-13 4:02 ` Cormac Relf
[not found] ` <786c8104-1297-465e-9cd9-d3c720e6685e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-12-17 4:37 ` Cormac Relf
[not found] ` <6cea66b7-a6e3-438f-8000-9c8ed32e91f3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-02-08 12:47 ` Cormac Relf
[not found] ` <41f8966a-f1da-4b7e-ac2e-b807f661af22-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-02-08 17:47 ` 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=yh480kk1keeazt.fsf@johnmacfarlane.net \
--to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=web-v7Sng7lNsVbsQp/K+IV0sw@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).