From: John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: textual citation
Date: Thu, 2 Dec 2010 22:45:14 -0800 [thread overview]
Message-ID: <20101203064514.GA24942@protagoras.phil.berkeley.edu> (raw)
In-Reply-To: <20101203060948.GA24736-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
+++ John MacFarlane [Dec 02 10 22:09 ]:
> +++ John MacFarlane [Dec 02 10 21:57 ]:
> > +++ John MacFarlane [Dec 01 10 08:17 ]:
> > > +++ Andrea Rossato [Dec 01 10 14:06 ]:
> > > > On Mon, Nov 29, 2010 at 05:10:59PM +0100, Andrea Rossato wrote:
> > > > > On Sun, Nov 28, 2010 at 08:16:12AM -0800, John MacFarlane wrote:
> > > > > > diff --git a/tests/markdown-citations.ieee.html b/tests/markdown-citations.ieee.
> > > > > > index 7c7d811..f076a46 100644
> > > > > > --- a/tests/markdown-citations.ieee.html
> > > > >
> > > > > > - >, Cambridge: Cambridge University Press, 2005.</p
> > > > > > + >, Cambridge: Cambridge University Press, 2005.</p
> > > > >
> > > > > > - >, vol. 6, 2006, pp. 33–34.</p
> > > > > > + >, vol. 6, 2006, pp. 33–34.</p
> > > > >
> > > > > > - >, Smith, S., Ed., Oxford: Oxford University Press, 2007.</p
> > > > > > + >, Smith, S., Ed., Oxford: Oxford University Press, 2007.</p
> > > > >
> > > > >
> > > > > This is a bug in the ieee style and I'm really puzzled. It seems like
> > > > > CSL processors should get rid of extra-spaces thus permitting the kind
> > > > > of stupid bugs this style shows. Or at least this was what I intended
> > > > > and coded. I've contacted the CSL guys on that:
> > > > >
> > > > > http://sourceforge.net/mailarchive/forum.php?thread_name=20101129153947.GB20563%40eeepc.istitutocolli.org&forum_name=xbiblio-devel
> > > >
> > > > I do not know if you are a xbiblio-devel subscriber and/or had the
> > > > time and the opportunity to have a look at the thread my post
> > > > generated in the CSL community.
> > > >
> > > > If yes I'd like to know your opinion, at least with regards to what
> > > > pandoc's approach should be.
> > >
> > > Interesting thread. Although I lean towards your view that the
> > > processor shouldn't cover up errors in the styles, I also see Frank's
> > > point: the buggy styles are already being used by lots of people,
> > > and it would break things to change how citeproc-js handles them.
> > >
> > > If there's to be a transition to the stricter behavior, it seems
> > > it would have to come in phases: first introduce a testing
> > > version of citeproc-js that is strict, PLUS a tool or test suite
> > > to check for problems in existing styles. After people had some
> > > time to clean up existing styles, perhaps the strict behavior could
> > > be made standard.
> > >
> > > For our purposes, I think the pragmatic thing to do would be to
> > > imitate citeproc-js and collapse double spaces, so that people could
> > > use the existing styles. Is this a difficult thing to do in
> > > citeproc-hs? (Note that in Text.Pandoc.Shared there is already
> > > a function normalizeSpaces, which could simply be called on the
> > > final list of Inlines.*) One could develop a different tool
> > > to make evident spaces bugs in the styles, until the spec was
> > > clarified one way or the other.
> >
> > PS. Here's a patch to citeproc-hs that collapses adjacent spaces
> > in pandoc output:
> >
> > hunk ./src/Text/CSL/Output/Pandoc.hs 131
> > - | Str " " <- i = Space : cleanStrict is
> > + | is_space i = Space : cleanStrict (dropWhile is_space is)
> > hunk ./src/Text/CSL/Output/Pandoc.hs 135
> > + where is_space Space = True
> > + is_space (Str "") = True
> > + is_space _ = False
> >
> > When I applied this patch, all the pandoc test cases passed.
> > I know you may object to this on philosophical grounds, though.
>
> I found another odd case with the mhra style.
>
> pandoc --biblio tests/biblio.bib --csl tests/mhra.csl -t markdown
> @item3 says...
> ^D
> John Doe and Jenny Roeed by Sam Smith[^1] says...
>
> Doe, John, and Jenny Roe, ‘Why Water Is Wet’, in *Third Book*, ed
> by Sam Smith (Oxford: Oxford University Press, 2007).
>
> [^1]:
> ‘Why Water Is Wet’, in *Third Book*, (Oxford: Oxford University
> Press, 2007).
>
> The odd part is: "JohnDoe and Jenny Roeed by Sam Smith[^1]"
> Presumably "ed by Sam Smith" should not be there...
More precisely, it should be in the footnote, not in the main
text. But maybe this is intentional?
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to pandoc-discuss+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pandoc-discuss?hl=en.
next prev parent reply other threads:[~2010-12-03 6:45 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-11 1:49 [citeproc] " Andrea Rossato
[not found] ` <20101111014927.GP24988-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-12 6:36 ` John MacFarlane
[not found] ` <20101112063622.GA8676-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-12 8:43 ` John MacFarlane
[not found] ` <20101112084314.GA15038-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-12 11:16 ` Andrea Rossato
[not found] ` <20101112111654.GE19143-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-12 16:08 ` John MacFarlane
2010-11-12 13:45 ` Nathan Gass
[not found] ` <4CDD4501.7030700-8UOIJiGH10pyDzI6CaY1VQ@public.gmane.org>
2010-11-12 16:13 ` John MacFarlane
2010-11-12 23:26 ` Andrea Rossato
2010-11-12 15:38 ` Andrea Rossato
[not found] ` <20101112153829.GG19143-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-12 16:16 ` John MacFarlane
2010-11-12 23:23 ` Andrea Rossato
[not found] ` <20101112232354.GH19143-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-13 2:56 ` John MacFarlane
[not found] ` <20101113025645.GA25386-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-13 9:16 ` Andrea Rossato
[not found] ` <20101113091616.GK19143-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-13 11:40 ` Andrea Rossato
[not found] ` <20101113114018.GM19143-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-13 16:57 ` John MacFarlane
2010-11-13 16:50 ` John MacFarlane
2010-11-13 1:11 ` Andrea Rossato
[not found] ` <20101113011105.GJ19143-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-13 3:38 ` John MacFarlane
[not found] ` <20101113033806.GA27595-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-13 13:15 ` Andrea Rossato
[not found] ` <20101113131538.GO19143-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-13 16:27 ` John MacFarlane
[not found] ` <20101113162702.GC1212-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-13 16:55 ` Bruce
2010-11-14 13:26 ` Andrea Rossato
[not found] ` <20101114132646.GR19143-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-17 4:39 ` John MacFarlane
[not found] ` <20101117043955.GA18136-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-17 21:49 ` Andrea Rossato
2010-11-19 19:51 ` John MacFarlane
[not found] ` <20101119195134.GB30277-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-20 2:53 ` Andrea Rossato
[not found] ` <20101120025350.GA13438-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-21 18:23 ` John MacFarlane
[not found] ` <20101121182302.GK24768-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-22 17:09 ` Andrea Rossato
2010-11-23 9:56 ` Nathan Gass
[not found] ` <4CEB8FB6.807-8UOIJiGH10pyDzI6CaY1VQ@public.gmane.org>
2010-11-23 15:46 ` John MacFarlane
[not found] ` <20101123154639.GB12884-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-23 20:09 ` Andrea Rossato
2010-11-24 1:20 ` Nathan Gass
[not found] ` <4CEC6860.7020908-8UOIJiGH10pyDzI6CaY1VQ@public.gmane.org>
2010-11-24 2:39 ` John MacFarlane
[not found] ` <20101124023950.GA25133-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-24 9:39 ` Nathan Gass
[not found] ` <4CECDD5D.6010400-8UOIJiGH10pyDzI6CaY1VQ@public.gmane.org>
2010-11-24 16:09 ` John MacFarlane
[not found] ` <20101124160951.GD1590-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-26 12:33 ` Nathan Gass
[not found] ` <4CEFA937.7040606-8UOIJiGH10pyDzI6CaY1VQ@public.gmane.org>
2010-11-27 15:12 ` John MacFarlane
[not found] ` <20101127151254.GA535-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-27 18:58 ` Andrea Rossato
[not found] ` <20101127185836.GD32527-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-27 19:32 ` John MacFarlane
[not found] ` <20101127193232.GA3576-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-27 20:09 ` John MacFarlane
[not found] ` <20101127200931.GA4421-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-27 20:39 ` Andrea Rossato
[not found] ` <20101127203907.GH32527-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-28 12:57 ` Andrea Rossato
2010-11-28 13:03 ` Andrea Rossato
[not found] ` <20101128130345.GK32527-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-28 16:16 ` John MacFarlane
[not found] ` <20101128161612.GB29510-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-29 16:10 ` Andrea Rossato
[not found] ` <20101129161059.GC20563-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-12-01 13:06 ` Andrea Rossato
[not found] ` <20101201130603.GJ10338-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-12-01 16:17 ` John MacFarlane
[not found] ` <20101201161702.GD3038-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-12-01 20:55 ` dsanson
[not found] ` <8f044663-b02a-45bd-b299-60fef03bf457-n9fKM5ssUrqdjmvXPhoLGFYGCWtFR9XvQQ4Iyu8u01E@public.gmane.org>
2010-12-07 16:35 ` John MacFarlane
[not found] ` <20101207163551.GC13385-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-12-09 11:23 ` Andrea Rossato
[not found] ` <20101209112343.GD28254-u31zCTIHpvLVI6Gt0zCidg@public.gmane.org>
2010-12-09 16:29 ` John MacFarlane
2010-12-03 5:57 ` John MacFarlane
[not found] ` <20101203055730.GA24661-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-12-03 6:09 ` John MacFarlane
[not found] ` <20101203060948.GA24736-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-12-03 6:45 ` John MacFarlane [this message]
2010-12-03 14:18 ` Andrea Rossato
2010-12-07 17:27 ` Andrea Rossato
2010-12-03 14:11 ` Andrea Rossato
[not found] ` <20101203141139.GD14815-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-12-03 14:19 ` Andrea Rossato
[not found] ` <20101203141953.GF14815-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-12-03 15:40 ` John MacFarlane
[not found] ` <20101203154032.GB28210-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-12-07 10:30 ` Andrea Rossato
[not found] ` <20101207103034.GA22516-u31zCTIHpvLVI6Gt0zCidg@public.gmane.org>
2010-12-07 16:30 ` John MacFarlane
2010-12-03 15:30 ` John MacFarlane
2010-11-28 18:10 ` John MacFarlane
[not found] ` <20101128181002.GA30854-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-11-29 16:12 ` Andrea Rossato
2010-11-27 20:10 ` Andrea Rossato
[not found] ` <20101127201014.GF32527-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-11-27 20:18 ` Andrea Rossato
2010-11-28 2:22 ` John MacFarlane
[not found] ` <20101128022210.GA6819-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2010-12-01 11:28 ` Andrea Rossato
[not found] ` <20101201112806.GH10338-j4W6CDmL7uNdAaE8spi6tJZpQXiuRcL9@public.gmane.org>
2010-12-01 15:52 ` John MacFarlane
2010-11-24 20:32 ` Andrea Rossato
2010-11-16 23:17 ` Nathan Gass
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=20101203064514.GA24942@protagoras.phil.berkeley.edu \
--to=fiddlosopher-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).