public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Lyndon Drake <isenguard-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: A little citation parsing wrinkle
Date: Fri, 5 Aug 2022 13:34:45 -0700 (PDT)	[thread overview]
Message-ID: <92daa17b-ca93-41ac-9d0f-bbaa02fad022n@googlegroups.com> (raw)
In-Reply-To: <13DD89B3-A534-4469-8256-F9690F63A725-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 2909 bytes --]

The backslash does indeed fix it. Thank you!

On Friday, 5 August 2022 at 19:20:56 UTC+1 fiddlosopher wrote:

> Oh, this is interesting. I can reproduce with this input:
>
> ```
> ---
> references:
> - id: Eruera1997
> author: N. Eurera
> title: "My article"
> journal: "My journal"
> type: journal-article
> volume: 55
> date: 1997
> ...
>
> see[^fn7]
> see[^fn8]
>
> [^fn7]: @Eruera1997 . Eruera's text switches freely between English and 
> Māori.
>
> [^fn8]: @Eruera1997. Eruera's text switches freely between English and 
> Māori.
>
> ```
>
> Output with pandoc test.md -C -t plain:
>
> ```
> see[1] see[2]
>
> [1] 1 . Eruera’s text switches freely between English and Māori.
>
> [2]
> 1. Eruera’s text switches freely between English and Māori.
> ```
>
> What's happening here is that the `@Eurera1997` in fn8 is being 
> interpreted as an example list, which causes the `@Eurera1997` in fn7 to be 
> interpreted as a reference to that example list item.
>
> Obviously not what you want. You can defeat this by putting a backslash 
> before the period.
>
>
>
> > On Aug 5, 2022, at 4:48 AM, Lyndon Drake <isen...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > 
> > Hi,
> > 
> > I've noticed what I think is an unexpected parsing difference for a 
> citation which begins a footnote, and which is followed immediately by 
> punctuation. This:
> > 
> > [^fn7]: @Eruera1997 . Eruera's text switches freely between English and 
> Māori.
> > 
> > is treated differently from this:
> > 
> > [^fn7]: @Eruera1997. Eruera's text switches freely between English and 
> Māori.
> > 
> > The latter, when using citeproc and outputting to Word with the SBL 
> style, seems to generate a footnote inside the footnote. (The former, 
> unsurprisingly, leaves a space between the generated citation and the full 
> stop.) By comparison, a similar in-text citation followed immediately by a 
> full stop at the very end of a footnote is treated normally.
> > 
> > Lyndon
> > 
> > -- 
> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/d41e5b70-462e-4f7b-b6b1-d2ead5b6c4ccn%40googlegroups.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/92daa17b-ca93-41ac-9d0f-bbaa02fad022n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 4063 bytes --]

      parent reply	other threads:[~2022-08-05 20:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-05 11:48 Lyndon Drake
     [not found] ` <d41e5b70-462e-4f7b-b6b1-d2ead5b6c4ccn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-08-05 18:20   ` John MacFarlane
     [not found]     ` <13DD89B3-A534-4469-8256-F9690F63A725-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-08-05 20:34       ` Lyndon Drake [this message]

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=92daa17b-ca93-41ac-9d0f-bbaa02fad022n@googlegroups.com \
    --to=isenguard-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).