public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* CSL YAML Pandoc interaction
@ 2015-03-02 16:27 Learned Hand
       [not found] ` <ea2cbab4-df84-40c8-bc8e-412b20d6fed8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Learned Hand @ 2015-03-02 16:27 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


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

Hi,

after hours of reading I am still in the dark how can cite a legal case 
using YAML data with a specific citation style (OSCOLA).

1.) My first problem is how to find out which YAML entries are needed for a 
legal case in the first place. With bibtex I can lookup which fields are 
used by
a specific style and just fill them out as needed. With YAML I seem to be 
required to deduct them from the CSL file. Is this really necessary?

2.) Somehow I found out that Zotero provides an export for a legal case 
entry. I exported to JSON and converted this with pandoc-citeproc to YAML. 
That gave me an idea which fields are needed.

3.) I used this YAML data in a short document and created a PDF file by 
using pandoc-citeproc as the filter and providing the CSL file. The 
footnote citation as well as the citation in the bibliography seem to just 
use the title (the case name) and the page. 

Maybe I am totally missing here something. So far I think it works this way:

I am providing the bibliographic data in YAML fields with specific names 
(e.g. title: ). The CSL file puts these fields for specific types of 
entries in a certain format (e.g. Name Surname, Journal, Title, Year, 
Journal...). The resulting citation string is then given to pandoc, which 
fills it in the right place indicated by '@id'.

Any help is appreciated. Thanks!

Regards,

Learned






-- 
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/ea2cbab4-df84-40c8-bc8e-412b20d6fed8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: CSL YAML Pandoc interaction
       [not found] ` <ea2cbab4-df84-40c8-bc8e-412b20d6fed8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-03-03  0:37   ` John MacFarlane
       [not found]     ` <20150303003734.GB27352-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: John MacFarlane @ 2015-03-03  0:37 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Sorry, I'm not quite sure from your message what is not
working for you.  Is it that the citations are missing some
information that you think should be in them?  If so, please
provide sample input, command line, and link to the CSL you're using.

+++ Learned Hand [Mar 02 15 08:27 ]:
>   Hi,
>   after hours of reading I am still in the dark how can cite a legal case
>   using YAML data with a specific citation style (OSCOLA).
>   1.) My first problem is how to find out which YAML entries are needed
>   for a legal case in the first place. With bibtex I can lookup which
>   fields are used by
>   a specific style and just fill them out as needed. With YAML I seem to
>   be required to deduct them from the CSL file. Is this really necessary?
>   2.) Somehow I found out that Zotero provides an export for a legal case
>   entry. I exported to JSON and converted this with pandoc-citeproc to
>   YAML. That gave me an idea which fields are needed.
>   3.) I used this YAML data in a short document and created a PDF file by
>   using pandoc-citeproc as the filter and providing the CSL file. The
>   footnote citation as well as the citation in the bibliography seem to
>   just use the title (the case name) and the page.
>   Maybe I am totally missing here something. So far I think it works this
>   way:
>   I am providing the bibliographic data in YAML fields with specific
>   names (e.g. title: ). The CSL file puts these fields for specific types
>   of entries in a certain format (e.g. Name Surname, Journal, Title,
>   Year, Journal...). The resulting citation string is then given to
>   pandoc, which fills it in the right place indicated by '@id'.
>   Any help is appreciated. Thanks!
>   Regards,
>   Learned
>
>   --
>   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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [3]https://groups.google.com/d/msgid/pandoc-discuss/ea2cbab4-df84-40c8-
>   bc8e-412b20d6fed8%40googlegroups.com.
>   For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
>   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   3. https://groups.google.com/d/msgid/pandoc-discuss/ea2cbab4-df84-40c8-bc8e-412b20d6fed8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>   4. https://groups.google.com/d/optout


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: CSL YAML Pandoc interaction
       [not found]     ` <20150303003734.GB27352-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
@ 2015-03-03 15:03       ` Learned Hand
       [not found]         ` <0798552b-d842-45d6-97bb-2dbbc72815c6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Learned Hand @ 2015-03-03 15:03 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


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

Hi John,

here we go:

Suppose I want to cite this case: 

YAML v BibTeX [2015] 1 AC 1 (HL)

This is the citation format prescribed by the OSCOLA style, which can be 
found here:

https://github.com/citation-style-language/styles/blob/master/oscola.csl

I created aforementioned citation using a website tool, which names the 
fields like this:

<https://lh3.googleusercontent.com/-aOW29kJXg4A/VPXJV43ClII/AAAAAAAAAGw/CflQhuBwJvU/s1600/Bildschirmfoto%2B2015-03-03%2Bum%2B14.06.23.png>

I entered this data in Zotero and exported it to JSON, which looks like 
this:

[
{
"id": 5,
"type": "legal_case",
"title": "YAML v BibTeX",
"container-title": "AC",
"authority": "HL",
"page": "1",
"volume": "1",
"issued": {
"date-parts": [
[
"2015"
]
]
}
}
]

Using pandoc-citeproc -y YAMLvBibTeX.json > YAMLvBibTeX.yaml I get this:

---
references:
- volume: '1'
  page: '1'
  first-reference-note-number: 1
  container-title: AC
  id: '5'
  issued:
    date-parts:
    - - 2015
  title: YAML v BibTeX
  type: legal_case
  authority: HL
...


After changing the id from '5' to case I use the following markdown example:

---
references:
- volume: '1'
  page: '1'
  first-reference-note-number: 1
  container-title: AC
  id: case
  issued:
    date-parts:
    - - 2015
  title: YAML v BibTeX
  type: legal_case
  authority: HL
...



Now I am trying to cite this case.^[@case]

# References

I invoke pandoc within MacVim with the following command and parameters:

:!pandoc % -o YAMLvBibTeX.pdf -F pandoc-citeproc --csl oscola.csl  

and get the following result without any error messages:

‘YAML V BibTeX’ 1

in the References section and this in the footnote:

1‘YAML V BibTeX’ 1

As you can see, it misses information and the 'v' (for versus) is 
capitalized.














Am Dienstag, 3. März 2015 01:37:51 UTC+1 schrieb John MacFarlane:
>
> Sorry, I'm not quite sure from your message what is not 
> working for you.  Is it that the citations are missing some 
> information that you think should be in them?  If so, please 
> provide sample input, command line, and link to the CSL you're using. 
>
> +++ Learned Hand [Mar 02 15 08:27 ]: 
> >   Hi, 
> >   after hours of reading I am still in the dark how can cite a legal 
> case 
> >   using YAML data with a specific citation style (OSCOLA). 
> >   1.) My first problem is how to find out which YAML entries are needed 
> >   for a legal case in the first place. With bibtex I can lookup which 
> >   fields are used by 
> >   a specific style and just fill them out as needed. With YAML I seem to 
> >   be required to deduct them from the CSL file. Is this really 
> necessary? 
> >   2.) Somehow I found out that Zotero provides an export for a legal 
> case 
> >   entry. I exported to JSON and converted this with pandoc-citeproc to 
> >   YAML. That gave me an idea which fields are needed. 
> >   3.) I used this YAML data in a short document and created a PDF file 
> by 
> >   using pandoc-citeproc as the filter and providing the CSL file. The 
> >   footnote citation as well as the citation in the bibliography seem to 
> >   just use the title (the case name) and the page. 
> >   Maybe I am totally missing here something. So far I think it works 
> this 
> >   way: 
> >   I am providing the bibliographic data in YAML fields with specific 
> >   names (e.g. title: ). The CSL file puts these fields for specific 
> types 
> >   of entries in a certain format (e.g. Name Surname, Journal, Title, 
> >   Year, Journal...). The resulting citation string is then given to 
> >   pandoc, which fills it in the right place indicated by '@id'. 
> >   Any help is appreciated. Thanks! 
> >   Regards, 
> >   Learned 
> > 
> >   -- 
> >   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 [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> >   To post to this group, send email to 
> >   [2]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> >   To view this discussion on the web visit 
> >   [3]
> https://groups.google.com/d/msgid/pandoc-discuss/ea2cbab4-df84-40c8- 
> >   bc8e-412b20d6fed8%40googlegroups.com. 
> >   For more options, visit [4]https://groups.google.com/d/optout. 
> > 
> >References 
> > 
> >   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:> 
> >   2. mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:> 
> >   3. 
> https://groups.google.com/d/msgid/pandoc-discuss/ea2cbab4-df84-40c8-bc8e-412b20d6fed8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer 
> >   4. https://groups.google.com/d/optout 
>
>

-- 
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/0798552b-d842-45d6-97bb-2dbbc72815c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: CSL YAML Pandoc interaction
       [not found]         ` <0798552b-d842-45d6-97bb-2dbbc72815c6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-03-03 18:48           ` John MacFarlane
       [not found]             ` <20150303184839.GG52906-0VdLhd/A9Pm0ooXD8Eul3coeWC+rr2vXTVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: John MacFarlane @ 2015-03-03 18:48 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ Learned Hand [Mar 03 15 07:03 ]:
>Hi John,
>
>here we go:
>
>Suppose I want to cite this case:
>
>YAML v BibTeX [2015] 1 AC 1 (HL)
>
>This is the citation format prescribed by the OSCOLA style, which can be
>found here:
>
>https://github.com/citation-style-language/styles/blob/master/oscola.csl
>
>I created aforementioned citation using a website tool, which names the
>fields like this:
>
><https://lh3.googleusercontent.com/-aOW29kJXg4A/VPXJV43ClII/AAAAAAAAAGw/CflQhuBwJvU/s1600/Bildschirmfoto%2B2015-03-03%2Bum%2B14.06.23.png>
>
>I entered this data in Zotero and exported it to JSON, which looks like
>this:
>
>[
>{
>"id": 5,
>"type": "legal_case",
>"title": "YAML v BibTeX",
>"container-title": "AC",
>"authority": "HL",
>"page": "1",
>"volume": "1",
>"issued": {
>"date-parts": [
>[
>"2015"
>]
>]
>}
>}
>]
>
>Using pandoc-citeproc -y YAMLvBibTeX.json > YAMLvBibTeX.yaml I get this:
>
>---
>references:
>- volume: '1'
>  page: '1'
>  first-reference-note-number: 1
>  container-title: AC
>  id: '5'
>  issued:
>    date-parts:
>    - - 2015
>  title: YAML v BibTeX
>  type: legal_case
>  authority: HL
>...
>
>
>After changing the id from '5' to case I use the following markdown example:
>
>---
>references:
>- volume: '1'
>  page: '1'
>  first-reference-note-number: 1
>  container-title: AC
>  id: case
>  issued:
>    date-parts:
>    - - 2015
>  title: YAML v BibTeX
>  type: legal_case
>  authority: HL
>...
>
>
>
>Now I am trying to cite this case.^[@case]
>
># References
>
>I invoke pandoc within MacVim with the following command and parameters:
>
>:!pandoc % -o YAMLvBibTeX.pdf -F pandoc-citeproc --csl oscola.csl
>
>and get the following result without any error messages:
>
>‘YAML V BibTeX’ 1
>
>in the References section and this in the footnote:
>
>1‘YAML V BibTeX’ 1
>
>As you can see, it misses information and the 'v' (for versus) is
>capitalized.

You can fix the capitalization issue thus:

    title:  YAML <span class="nocase">v</span> BibTeX

I suspect the missing information has something to do with the style.
I note the following at

https://forums.zotero.org/discussion/34324/using-oscola-csl-with-other-software/

> As stated on the CitationStylist site, the MLZ Oscola style is written
> in CSL-m, an extended version of the Citation Style Language. CSL-m is
> supported only (as far as I know) by Multilingual Zotero (MLZ), which
> is distributed via the same site.

> (There is a book on MLZ, if you're interested in the details.)

> The MLZ OSCOLA style will not work with the pandoc toolchain, which
> requires standard CSL styles. If you use the OSCOLA style from the main
> CSL repository, you should get better results.

and

> As I said, legal sources are unlikely to come out correctly in
> anything but Zotero at this point - expanding CSL to make those work
> more reliably and cross-application is one of our new years
> resolutions ;).

-- 
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/20150303184839.GG52906%40dhcp-128-32-252-20.lips.berkeley.edu.
For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: CSL YAML Pandoc interaction
       [not found]             ` <20150303184839.GG52906-0VdLhd/A9Pm0ooXD8Eul3coeWC+rr2vXTVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
@ 2015-03-03 19:59               ` Learned Hand
       [not found]                 ` <75273ce1-785b-42f9-823d-38f229a9dd0a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Learned Hand @ 2015-03-03 19:59 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


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

Thanks John, but I am not sure that this is the issue here. I compared the 
MLZ OSCOLA on Frank Bennets site with the one in the link I provided in my 
answer to you. The MLZ style clearly indicates that is has an extended 
version of CLS and looks very different when reading the source. :-)

The MLZ version is here: 
http://citationstylist.org/github/mlz-oscola.csl?install=1.

Am Dienstag, 3. März 2015 19:48:56 UTC+1 schrieb John MacFarlane:
>
> +++ Learned Hand [Mar 03 15 07:03 ]: 
> >Hi John, 
> > 
> >here we go: 
> > 
> >Suppose I want to cite this case: 
> > 
> >YAML v BibTeX [2015] 1 AC 1 (HL) 
> > 
> >This is the citation format prescribed by the OSCOLA style, which can be 
> >found here: 
> > 
> >https://github.com/citation-style-language/styles/blob/master/oscola.csl 
> > 
> >I created aforementioned citation using a website tool, which names the 
> >fields like this: 
> > 
> ><
> https://lh3.googleusercontent.com/-aOW29kJXg4A/VPXJV43ClII/AAAAAAAAAGw/CflQhuBwJvU/s1600/Bildschirmfoto%2B2015-03-03%2Bum%2B14.06.23.png> 
>
> > 
> >I entered this data in Zotero and exported it to JSON, which looks like 
> >this: 
> > 
> >[ 
> >{ 
> >"id": 5, 
> >"type": "legal_case", 
> >"title": "YAML v BibTeX", 
> >"container-title": "AC", 
> >"authority": "HL", 
> >"page": "1", 
> >"volume": "1", 
> >"issued": { 
> >"date-parts": [ 
> >[ 
> >"2015" 
> >] 
> >] 
> >} 
> >} 
> >] 
> > 
> >Using pandoc-citeproc -y YAMLvBibTeX.json > YAMLvBibTeX.yaml I get this: 
> > 
> >--- 
> >references: 
> >- volume: '1' 
> >  page: '1' 
> >  first-reference-note-number: 1 
> >  container-title: AC 
> >  id: '5' 
> >  issued: 
> >    date-parts: 
> >    - - 2015 
> >  title: YAML v BibTeX 
> >  type: legal_case 
> >  authority: HL 
> >... 
> > 
> > 
> >After changing the id from '5' to case I use the following markdown 
> example: 
> > 
> >--- 
> >references: 
> >- volume: '1' 
> >  page: '1' 
> >  first-reference-note-number: 1 
> >  container-title: AC 
> >  id: case 
> >  issued: 
> >    date-parts: 
> >    - - 2015 
> >  title: YAML v BibTeX 
> >  type: legal_case 
> >  authority: HL 
> >... 
> > 
> > 
> > 
> >Now I am trying to cite this case.^[@case] 
> > 
> ># References 
> > 
> >I invoke pandoc within MacVim with the following command and parameters: 
> > 
> >:!pandoc % -o YAMLvBibTeX.pdf -F pandoc-citeproc --csl oscola.csl 
> > 
> >and get the following result without any error messages: 
> > 
> >‘YAML V BibTeX’ 1 
> > 
> >in the References section and this in the footnote: 
> > 
> >1‘YAML V BibTeX’ 1 
> > 
> >As you can see, it misses information and the 'v' (for versus) is 
> >capitalized. 
>
> You can fix the capitalization issue thus: 
>
>     title:  YAML <span class="nocase">v</span> BibTeX 
>
> I suspect the missing information has something to do with the style. 
> I note the following at 
>
>
> https://forums.zotero.org/discussion/34324/using-oscola-csl-with-other-software/ 
>
> > As stated on the CitationStylist site, the MLZ Oscola style is written 
> > in CSL-m, an extended version of the Citation Style Language. CSL-m is 
> > supported only (as far as I know) by Multilingual Zotero (MLZ), which 
> > is distributed via the same site. 
>
> > (There is a book on MLZ, if you're interested in the details.) 
>
> > The MLZ OSCOLA style will not work with the pandoc toolchain, which 
> > requires standard CSL styles. If you use the OSCOLA style from the main 
> > CSL repository, you should get better results. 
>
> and 
>
> > As I said, legal sources are unlikely to come out correctly in 
> > anything but Zotero at this point - expanding CSL to make those work 
> > more reliably and cross-application is one of our new years 
> > resolutions ;). 
>

-- 
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/75273ce1-785b-42f9-823d-38f229a9dd0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: CSL YAML Pandoc interaction
       [not found]                 ` <75273ce1-785b-42f9-823d-38f229a9dd0a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-03-03 22:30                   ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w
       [not found]                     ` <c85bb09d-189d-42e6-8475-ff36aaa2ed8e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: nickbart1980-Re5JQEeQqe8AvxtiuMwx3w @ 2015-03-03 22:30 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


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

This seems to be the same bug I reported a while back: 
https://github.com/jgm/pandoc-citeproc/issues/31

On Tuesday, 3 March 2015 19:59:42 UTC, Learned Hand wrote:
>
> Thanks John, but I am not sure that this is the issue here. I compared the 
> MLZ OSCOLA on Frank Bennets site with the one in the link I provided in my 
> answer to you. The MLZ style clearly indicates that is has an extended 
> version of CLS and looks very different when reading the source. :-)
>
> The MLZ version is here: 
> http://citationstylist.org/github/mlz-oscola.csl?install=1.
>
> Am Dienstag, 3. März 2015 19:48:56 UTC+1 schrieb John MacFarlane:
>>
>> +++ Learned Hand [Mar 03 15 07:03 ]: 
>> >Hi John, 
>> > 
>> >here we go: 
>> > 
>> >Suppose I want to cite this case: 
>> > 
>> >YAML v BibTeX [2015] 1 AC 1 (HL) 
>> > 
>> >This is the citation format prescribed by the OSCOLA style, which can be 
>> >found here: 
>> > 
>> >https://github.com/citation-style-language/styles/blob/master/oscola.csl 
>> > 
>> >I created aforementioned citation using a website tool, which names the 
>> >fields like this: 
>> > 
>> ><
>> https://lh3.googleusercontent.com/-aOW29kJXg4A/VPXJV43ClII/AAAAAAAAAGw/CflQhuBwJvU/s1600/Bildschirmfoto%2B2015-03-03%2Bum%2B14.06.23.png> 
>>
>> > 
>> >I entered this data in Zotero and exported it to JSON, which looks like 
>> >this: 
>> > 
>> >[ 
>> >{ 
>> >"id": 5, 
>> >"type": "legal_case", 
>> >"title": "YAML v BibTeX", 
>> >"container-title": "AC", 
>> >"authority": "HL", 
>> >"page": "1", 
>> >"volume": "1", 
>> >"issued": { 
>> >"date-parts": [ 
>> >[ 
>> >"2015" 
>> >] 
>> >] 
>> >} 
>> >} 
>> >] 
>> > 
>> >Using pandoc-citeproc -y YAMLvBibTeX.json > YAMLvBibTeX.yaml I get this: 
>> > 
>> >--- 
>> >references: 
>> >- volume: '1' 
>> >  page: '1' 
>> >  first-reference-note-number: 1 
>> >  container-title: AC 
>> >  id: '5' 
>> >  issued: 
>> >    date-parts: 
>> >    - - 2015 
>> >  title: YAML v BibTeX 
>> >  type: legal_case 
>> >  authority: HL 
>> >... 
>> > 
>> > 
>> >After changing the id from '5' to case I use the following markdown 
>> example: 
>> > 
>> >--- 
>> >references: 
>> >- volume: '1' 
>> >  page: '1' 
>> >  first-reference-note-number: 1 
>> >  container-title: AC 
>> >  id: case 
>> >  issued: 
>> >    date-parts: 
>> >    - - 2015 
>> >  title: YAML v BibTeX 
>> >  type: legal_case 
>> >  authority: HL 
>> >... 
>> > 
>> > 
>> > 
>> >Now I am trying to cite this case.^[@case] 
>> > 
>> ># References 
>> > 
>> >I invoke pandoc within MacVim with the following command and parameters: 
>> > 
>> >:!pandoc % -o YAMLvBibTeX.pdf -F pandoc-citeproc --csl oscola.csl 
>> > 
>> >and get the following result without any error messages: 
>> > 
>> >‘YAML V BibTeX’ 1 
>> > 
>> >in the References section and this in the footnote: 
>> > 
>> >1‘YAML V BibTeX’ 1 
>> > 
>> >As you can see, it misses information and the 'v' (for versus) is 
>> >capitalized. 
>>
>> You can fix the capitalization issue thus: 
>>
>>     title:  YAML <span class="nocase">v</span> BibTeX 
>>
>> I suspect the missing information has something to do with the style. 
>> I note the following at 
>>
>>
>> https://forums.zotero.org/discussion/34324/using-oscola-csl-with-other-software/ 
>>
>> > As stated on the CitationStylist site, the MLZ Oscola style is written 
>> > in CSL-m, an extended version of the Citation Style Language. CSL-m is 
>> > supported only (as far as I know) by Multilingual Zotero (MLZ), which 
>> > is distributed via the same site. 
>>
>> > (There is a book on MLZ, if you're interested in the details.) 
>>
>> > The MLZ OSCOLA style will not work with the pandoc toolchain, which 
>> > requires standard CSL styles. If you use the OSCOLA style from the main 
>> > CSL repository, you should get better results. 
>>
>> and 
>>
>> > As I said, legal sources are unlikely to come out correctly in 
>> > anything but Zotero at this point - expanding CSL to make those work 
>> > more reliably and cross-application is one of our new years 
>> > resolutions ;). 
>>
>

-- 
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/c85bb09d-189d-42e6-8475-ff36aaa2ed8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: CSL YAML Pandoc interaction
       [not found]                     ` <c85bb09d-189d-42e6-8475-ff36aaa2ed8e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-03-03 22:37                       ` Learned Hand
  2015-03-04  0:05                       ` John MacFarlane
  1 sibling, 0 replies; 9+ messages in thread
From: Learned Hand @ 2015-03-03 22:37 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


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

Could be related, indeed. I imported the OSCOLA (not the MLZ one) to Zotero 
and and omits the authority/court, too. Considering the time I spent with 
this, I am more tempted to use the BibTeX OSCOLA style now, which also has 
useful documentation.

Am Dienstag, 3. März 2015 23:30:30 UTC+1 schrieb nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org:
>
> This seems to be the same bug I reported a while back: 
> https://github.com/jgm/pandoc-citeproc/issues/31
>
> On Tuesday, 3 March 2015 19:59:42 UTC, Learned Hand wrote:
>>
>> Thanks John, but I am not sure that this is the issue here. I compared 
>> the MLZ OSCOLA on Frank Bennets site with the one in the link I provided in 
>> my answer to you. The MLZ style clearly indicates that is has an extended 
>> version of CLS and looks very different when reading the source. :-)
>>
>> The MLZ version is here: 
>> http://citationstylist.org/github/mlz-oscola.csl?install=1.
>>
>> Am Dienstag, 3. März 2015 19:48:56 UTC+1 schrieb John MacFarlane:
>>>
>>> +++ Learned Hand [Mar 03 15 07:03 ]: 
>>> >Hi John, 
>>> > 
>>> >here we go: 
>>> > 
>>> >Suppose I want to cite this case: 
>>> > 
>>> >YAML v BibTeX [2015] 1 AC 1 (HL) 
>>> > 
>>> >This is the citation format prescribed by the OSCOLA style, which can 
>>> be 
>>> >found here: 
>>> > 
>>> >
>>> https://github.com/citation-style-language/styles/blob/master/oscola.csl 
>>> > 
>>> >I created aforementioned citation using a website tool, which names the 
>>> >fields like this: 
>>> > 
>>> ><
>>> https://lh3.googleusercontent.com/-aOW29kJXg4A/VPXJV43ClII/AAAAAAAAAGw/CflQhuBwJvU/s1600/Bildschirmfoto%2B2015-03-03%2Bum%2B14.06.23.png> 
>>>
>>> > 
>>> >I entered this data in Zotero and exported it to JSON, which looks like 
>>> >this: 
>>> > 
>>> >[ 
>>> >{ 
>>> >"id": 5, 
>>> >"type": "legal_case", 
>>> >"title": "YAML v BibTeX", 
>>> >"container-title": "AC", 
>>> >"authority": "HL", 
>>> >"page": "1", 
>>> >"volume": "1", 
>>> >"issued": { 
>>> >"date-parts": [ 
>>> >[ 
>>> >"2015" 
>>> >] 
>>> >] 
>>> >} 
>>> >} 
>>> >] 
>>> > 
>>> >Using pandoc-citeproc -y YAMLvBibTeX.json > YAMLvBibTeX.yaml I get 
>>> this: 
>>> > 
>>> >--- 
>>> >references: 
>>> >- volume: '1' 
>>> >  page: '1' 
>>> >  first-reference-note-number: 1 
>>> >  container-title: AC 
>>> >  id: '5' 
>>> >  issued: 
>>> >    date-parts: 
>>> >    - - 2015 
>>> >  title: YAML v BibTeX 
>>> >  type: legal_case 
>>> >  authority: HL 
>>> >... 
>>> > 
>>> > 
>>> >After changing the id from '5' to case I use the following markdown 
>>> example: 
>>> > 
>>> >--- 
>>> >references: 
>>> >- volume: '1' 
>>> >  page: '1' 
>>> >  first-reference-note-number: 1 
>>> >  container-title: AC 
>>> >  id: case 
>>> >  issued: 
>>> >    date-parts: 
>>> >    - - 2015 
>>> >  title: YAML v BibTeX 
>>> >  type: legal_case 
>>> >  authority: HL 
>>> >... 
>>> > 
>>> > 
>>> > 
>>> >Now I am trying to cite this case.^[@case] 
>>> > 
>>> ># References 
>>> > 
>>> >I invoke pandoc within MacVim with the following command and 
>>> parameters: 
>>> > 
>>> >:!pandoc % -o YAMLvBibTeX.pdf -F pandoc-citeproc --csl oscola.csl 
>>> > 
>>> >and get the following result without any error messages: 
>>> > 
>>> >‘YAML V BibTeX’ 1 
>>> > 
>>> >in the References section and this in the footnote: 
>>> > 
>>> >1‘YAML V BibTeX’ 1 
>>> > 
>>> >As you can see, it misses information and the 'v' (for versus) is 
>>> >capitalized. 
>>>
>>> You can fix the capitalization issue thus: 
>>>
>>>     title:  YAML <span class="nocase">v</span> BibTeX 
>>>
>>> I suspect the missing information has something to do with the style. 
>>> I note the following at 
>>>
>>>
>>> https://forums.zotero.org/discussion/34324/using-oscola-csl-with-other-software/ 
>>>
>>> > As stated on the CitationStylist site, the MLZ Oscola style is written 
>>> > in CSL-m, an extended version of the Citation Style Language. CSL-m is 
>>> > supported only (as far as I know) by Multilingual Zotero (MLZ), which 
>>> > is distributed via the same site. 
>>>
>>> > (There is a book on MLZ, if you're interested in the details.) 
>>>
>>> > The MLZ OSCOLA style will not work with the pandoc toolchain, which 
>>> > requires standard CSL styles. If you use the OSCOLA style from the 
>>> main 
>>> > CSL repository, you should get better results. 
>>>
>>> and 
>>>
>>> > As I said, legal sources are unlikely to come out correctly in 
>>> > anything but Zotero at this point - expanding CSL to make those work 
>>> > more reliably and cross-application is one of our new years 
>>> > resolutions ;). 
>>>
>>

-- 
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/23e63f39-ed15-45a2-b953-f79d817af725%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: CSL YAML Pandoc interaction
       [not found]                     ` <c85bb09d-189d-42e6-8475-ff36aaa2ed8e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2015-03-03 22:37                       ` Learned Hand
@ 2015-03-04  0:05                       ` John MacFarlane
       [not found]                         ` <20150304000548.GE53419-0VdLhd/A9Pm0ooXD8Eul3coeWC+rr2vXTVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
  1 sibling, 1 reply; 9+ messages in thread
From: John MacFarlane @ 2015-03-04  0:05 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ nickbart1980-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [Mar 03 15 14:30 ]:
>This seems to be the same bug I reported a while back:
>https://github.com/jgm/pandoc-citeproc/issues/31

Ah yes.  Well, the style patch you give in that issue might work to
bring back the journal title and volume.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: CSL YAML Pandoc interaction
       [not found]                         ` <20150304000548.GE53419-0VdLhd/A9Pm0ooXD8Eul3coeWC+rr2vXTVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
@ 2015-03-04  7:23                           ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w
  0 siblings, 0 replies; 9+ messages in thread
From: nickbart1980-Re5JQEeQqe8AvxtiuMwx3w @ 2015-03-04  7:23 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


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

I don't think so: oscola.csl has been fixed back in Feb 2014, see 
https://github.com/citation-style-language/styles/commit/a5bf337e8b4c1ec5837cbeac89cf49bf2e0abfa6

On Wednesday, March 4, 2015 at 12:06:04 AM UTC, John MacFarlane wrote:
>
> +++ nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:> [Mar 03 15 14:30 ]: 
> >This seems to be the same bug I reported a while back: 
> >https://github.com/jgm/pandoc-citeproc/issues/31 
>
> Ah yes.  Well, the style patch you give in that issue might work to 
> bring back the journal title and volume. 
>
>

-- 
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/29fb34e3-015a-4173-99f0-6835ccd5f107%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-03-04  7:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-02 16:27 CSL YAML Pandoc interaction Learned Hand
     [not found] ` <ea2cbab4-df84-40c8-bc8e-412b20d6fed8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-03-03  0:37   ` John MacFarlane
     [not found]     ` <20150303003734.GB27352-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
2015-03-03 15:03       ` Learned Hand
     [not found]         ` <0798552b-d842-45d6-97bb-2dbbc72815c6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-03-03 18:48           ` John MacFarlane
     [not found]             ` <20150303184839.GG52906-0VdLhd/A9Pm0ooXD8Eul3coeWC+rr2vXTVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
2015-03-03 19:59               ` Learned Hand
     [not found]                 ` <75273ce1-785b-42f9-823d-38f229a9dd0a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-03-03 22:30                   ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w
     [not found]                     ` <c85bb09d-189d-42e6-8475-ff36aaa2ed8e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-03-03 22:37                       ` Learned Hand
2015-03-04  0:05                       ` John MacFarlane
     [not found]                         ` <20150304000548.GE53419-0VdLhd/A9Pm0ooXD8Eul3coeWC+rr2vXTVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
2015-03-04  7:23                           ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w

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).