Hello everyone,

I'm trying to use pandoc's citeproc to render multilingual citations, saved in zotero, and automatically exported to CSL JSON. I wrote about this issue on the Zotero forum earlier today, but was told this was "more of a Pandoc issue". I see there are also similar threads on this forum herehere, and here, but I couldn't determine whether the solutions provided would work for me.

I know there are some limitations to citeproc (that may be getting addressed with the citeproc-rs project), but I am trying to figure out the best workaround that still maintains a markdown-based workflow. I think I almost have it as I need them, but there's a few issues still:

Right now, my html output renders like this:

Inline citation: (Ōtani 2016)

Bibliography:
Ōtani, Yūka 大谷由香. 2016. “(Ronbun) Nissōsō Shunjō wo hattan toshita nissōkan ‘Enshū kaitai’ ronsō[論文]入宋僧俊芿を発端とした日宋間「円宗戒体」論争.” Nihon Bukkyō sōgō kenkyū 日本仏教綜合研究 14: 105–132.

There are two changes I would like to make to this.

First, I would like to be able to keep the inline citation as is, while removing the comma after the name "Ōtani" in the bibliography. This would be possible with Juris-m if I were to simply copy-and-paste citations, but I was hoping to be able to have in-text citations linked to the bibliography (and, ideally, live citations), which seem like they will be difficult to implement if I'm not rendering citations using citeproc.

Second, I would like to keep the English language transliteration of the journal title in italics (i.e. Nihon Bukkyō sōgō kenkyū), while making the Japanese text for the journal title (i.e. 日本仏教綜合研究) to be regular non-italicized text. In a latex/pdf output this is no problem; latex ignores italicized Chinese characters, but I am wondering if it is possible with the HTML output. I thought this would be possible by including the Japanese text for the title of the journal as a "note" field, but I couldn't get the "note" field to print at all (see following example). Alternatively, if there were a way to simply tell css to ignore italics for Chinese/Japanese fonts (like latex does), that could work.

Here is the (Better)CSL-JSON for this entry:

```json
{
"id": "otani-2016",
"author": [{ "family": "Ōtani", "given": "Yūka 大谷由香" }],
"citation-key": "otani-2016",
"container-title": "Nihon Bukkyō sōgō kenkyū 日本仏教綜合研究",
"DOI": "10.20588/nbs.14.0_105",
"ISSN": "1348-4850",
"issued": { "date-parts": [["2016"]] },
"language": "jpn",
"note": "cjk-title: 日本仏教綜合研究",
"page": "105–132",
"publisher": "日本仏教綜合研究学会",
"source": "search.library.ucla.edu",
"title": "(Ronbun) Nissōsō Shunjō wo hattan toshita nissōkan 'Enshū kaitai' ronsō[論文]入宋僧俊芿を発端とした日宋間「円宗戒体」論争",
"type": "article-journal",
"volume": "14"
}
```

And here is the CSL of the portion that I think will apply to this case:

```
< /macro>
    <macro name="container-title">
        <choose>
            <if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="any">
                <text macro="container-prefix" suffix=" "/>
            </if>
        </choose>
        <choose>
            <if type="webpage">
                <text variable="container-title" text-case="title"/>
            </if>
            <else-if type="legal_case" match="none">
                <group delimiter=" ">
                    <text variable="container-title" text-case="title" font-style="italic"/>
                    <choose>
                        <if variable="note">
                            <text variable="note"/>
                        </if>
                    </choose>
                </group>
            </else-if>
        </choose>
    </macro>
````

If this is impossible to do with a "hack" (i.e. using the note field for the Chinese/japanese title) in CSL or zotero, is is possible to wrote some custom (lua or python) filter that either gets rid of the commas or gets rid of the italics (or both)?

Thanks in advance,
Tom

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8fd3ff8c-44e7-4abe-9c65-38fb5debbb3dn%40googlegroups.com.