From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/7689 Path: news.gmane.org!not-for-mail From: Nick Bart Newsgroups: gmane.text.pandoc Subject: Re: Decoupling citeproc and highlighting-kate from pandoc Date: Wed, 9 Oct 2013 01:26:11 -0700 (PDT) Message-ID: <5689c697-743a-4bb4-a97b-be60c2ded766@googlegroups.com> References: <28779dd0-99a6-448c-8967-6d37bdba58ad@googlegroups.com> <9910B96C-195A-4D16-B944-1A1314A94F7F@gmail.com> <63edb53b-b03c-468a-a60b-6bba4777cbf4@googlegroups.com> <20131008181040.GA15025@protagoras.phil.berkeley.edu> <233c21c4-cff5-452d-8269-80981156bddc@googlegroups.com> <20131008185602.GB21820@protagoras.phil.berkeley.edu> <8470226a-c385-42bd-a6ba-71037729c707@googlegroups.com> <20131008204913.GB26656@protagoras.phil.berkeley.edu> <86ec8122-f24b-4251-a8f3-89953c0cf7a5@googlegroups.com> <20131009031248.GA51945@Johns-MacBook-Pro.local> <20131009040446.GC51945@Johns-MacBook-Pro.local> <3892d517-a405-4c70-a9ab-0b7195d28203@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_767_26452273.1381307171086" X-Trace: ger.gmane.org 1381307168 2478 80.91.229.3 (9 Oct 2013 08:26:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Oct 2013 08:26:08 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDIPX6WQ4INBBJFG2SJAKGQEBPY4LVQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Oct 09 10:26:14 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oa0-f61.google.com ([209.85.219.61]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VTp5x-0002S4-MF for gtp-pandoc-discuss@m.gmane.org; Wed, 09 Oct 2013 10:26:13 +0200 Original-Received: by mail-oa0-f61.google.com with SMTP id i1sf59953oag.26 for ; Wed, 09 Oct 2013 01:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=KWhgcsPQsiR97k9unr1tk809W5THIEvReaKZlOfvN1o=; b=mEylzyabk58vCncpN24Vyo/TjQnmzS2niSFojh6IV+2e1KvWG4JKqxY5n8plxgNQE1 xzkILPwM/E2ZpovCbVablcni2waf6k24Wmu7rQtvppXJWjnzvQ2dcSN7W5QEa+LtFO43 ZJYRXMMm1VuT+59UZYD+pPDNfpotyTAFw9hYn2yhs7k+isUmUeAbY1qYyug18Fhe4krx T6kzydUdQqo43VgBEk0ORd+nehh2oNTSGe4BPF3Nx0SvRZ/qn9CVxbBTPyZiK40zuNQc wh0Z6/rzIPJvYeJ5/o42mysq7NzsATbPsERvwLiiE4PQPOakrsqFM95l1kpODmLJISIb ECPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=KWhgcsPQsiR97k9unr1tk809W5THIEvReaKZlOfvN1o=; b=p0b21nFCDJj63uPiKrfae+hnkrl16t7MZmiUpGmbVtttlZAWBlOLNsYMdScfp4MzWM HGjsC2Lb9Nncmh7RzG737SiRlp+fkjql8qUJg3fL0At96550wxddUnlUuDPsr+Au0GbC +UPgvJbwwK9X1xGk62iAu3i3S2l6fZ2/VFjJwbL7ehh+9IrONBfhf/lXDVuT3nq/37qg j9l2x3ZjhqY/TNeIM+wRVA/MBaIQWL7c4frdmVeH6bCSPaJs82l6SbUpjjNrc7dthXe8 FhShXuPTjFnHgViNQIe08gKxJI7NvdJ1a2Yv0UAu3xVLdtmb6Zk7osQzYt36PqvFuCbL PJKQ== X-Received: by 10.50.61.162 with SMTP id q2mr49062igr.10.1381307172670; Wed, 09 Oct 2013 01:26:12 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.136.198 with SMTP id qc6ls4172653igb.42.canary; Wed, 09 Oct 2013 01:26:12 -0700 (PDT) X-Received: by 10.50.61.162 with SMTP id q2mr49061igr.10.1381307172167; Wed, 09 Oct 2013 01:26:12 -0700 (PDT) In-Reply-To: X-Original-Sender: nickbart1980-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: Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:7689 Archived-At: ------=_Part_767_26452273.1381307171086 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Sorting of items without an author (or editor) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D - Many styles format entries without an author to start with the title in= =20 the list of references. (Some styles use something like "Anon." instead of= =20 a missing author's name; what follows is not about these kinds of styles.)= =20 If a csl style encloses titles of articles, chapters, etc. in quotation=20 marks, these items come out at the top of the list and not at their=20 intended alphabetic position. (Styles that do not use quotation marks around titles, such as apa.csl, do= =20 not show the sorting problem. With apa.csl, however, the in-text references= =20 come out totally wrong.) - Also, date disambiguation (2005a, 2005b) shouldn't happen here (except=20 for the unlikely case of no author *and* identical titles).=20 Trying a similar example with Zotero, sorting came out as expected, and no= =20 date disambiguation was added. Hence I'd suspect that at least most of these issues are caused by=20 pandoc-citeproc. $ cat test-sorting.md=20 Some claim [@item1; @item2; @item3]. # References --- references: - author: - family: Doe given: - John id: item1 issued: year: 2005 publisher: Publisher publisher-place: Location title: First Book type: book - id: item2 issued: year: 2005 publisher: Publisher publisher-place: Location title: Yellow book without an author, should appear under =93Y=94 type: book - id: item3 issued: year: 2005 container-title: The Journal title: Zany article without an author, should appear under =93Z=94 type: article-journal ... $ pandoc -S --filter pandoc-citeproc -t=20 markdown-citations-markdown_in_html_blocks test-sorting.md --csl=20 chicago-author-date.csl Some claim (Doe 2005; *Yellow Book Without an Author, Should Appear Under =93Y=94* 2005b; =93Zany Article Without an Author, Should Appear Unde= r =93Z=94=94 2005a). References =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =93Zany Article Without an Author, Should Appear Under =93Z=94.=94 2005a. *= The Journal*. Doe, John. 2005. *First Book*. Location: Publisher. *Yellow Book Without an Author, Should Appear Under =93Y=94*. 2005b. Location: Publisher. $ pandoc -S --filter pandoc-citeproc -t=20 markdown-citations-markdown_in_html_blocks test-sorting.md --csl apa.csl Some claim (Doe, 2005; *Yellow book without an author, should appear under =93Y=94*, 2005a, 2005b). References =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Doe, J. (2005). *First Book*. Location: Publisher. *Yellow book without an author, should appear under =93Y=94*. (2005a). Location: Publisher. Zany article without an author, should appear under =93Z=94. (2005b). *The Journal*. --=20 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 e= mail 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/5689c697-743a-4bb4-a97b-be60c2ded766%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. ------=_Part_767_26452273.1381307171086 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
Sorting of items without an author (or editor)
=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

- Many sty= les format entries without an author to start with the title in the list of= references. (Some styles use something like "Anon." instead of a missing a= uthor's name; what follows is not about these kinds of styles.) If a csl st= yle encloses titles of articles, chapters, etc. in quotation marks, these i= tems come out at the top of the list and not at their intended alphabetic p= osition.

(Styles that do not use quotation marks around titles, such= as apa.csl, do not show the sorting problem. With apa.csl, however, the in= -text references come out totally wrong.)

- Also, date disambiguatio= n (2005a, 2005b) shouldn't happen here (except for the unlikely case of no = author *and* identical titles).

Trying a similar example with Zoter= o, sorting came out as expected, and no date disambiguation was added.
<= br>Hence I'd suspect that at least most of these issues are caused by pando= c-citeproc.


$ cat test-sorting.md

Some claim [@item1; @i= tem2; @item3].

# References

---
references:
- author:  - family: Doe
    given:
    -= John
  id: item1
  issued:
    year: 200= 5
  publisher: Publisher
  publisher-place: Location
&nb= sp; title: First Book
  type: book
- id: item2
  issued:=
    year: 2005
  publisher: Publisher
  = publisher-place: Location
  title: Yellow book without an author, s= hould appear under =93Y=94
  type: book
- id: item3
  is= sued:
    year: 2005
  container-title: The Journ= al
  title: Zany article without an author, should appear under =93= Z=94
  type: article-journal
...


$ pandoc -S --filter= pandoc-citeproc -t markdown-citations-markdown_in_html_blocks test-sorting= .md --csl chicago-author-date.csl
Some claim (Doe 2005; *Yellow Book Wit= hout an Author, Should Appear
Under =93Y=94* 2005b; =93Zany Article With= out an Author, Should Appear Under
=93Z=94=94 2005a).

References<= br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=93Zany Article Without an Author,= Should Appear Under =93Z=94.=94 2005a. *The
Journal*.

Doe, John.= 2005. *First Book*. Location: Publisher.

*Yellow Book Without an Au= thor, Should Appear Under =93Y=94*. 2005b.
Location: Publisher.

<= br>$ pandoc -S --filter pandoc-citeproc -t markdown-citations-markdown_in_h= tml_blocks test-sorting.md --csl apa.csl
Some claim (Doe, 2005; *Yellow = book without an author, should appear
under =93Y=94*, 2005a, 2005b).
=
References
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Doe, J. (2005). *Fi= rst Book*. Location: Publisher.

*Yellow book without an author, shou= ld appear under =93Y=94*. (2005a).
Location: Publisher.

Zany arti= cle without an author, should appear under =93Z=94. (2005b). *The
Journa= l*.

--
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 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/5689c697-743a-4bb4= -a97b-be60c2ded766%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
------=_Part_767_26452273.1381307171086--