-
-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zotero.lua is not producing scannable cite documents with pandoc < 2.9.2 #1581
Comments
KMFGJF27-apse |
Additional contextI have checked out your repo, and looked at the In the In the transcript of the bug, I have used one of the keys from
When I tried to programmatically import the
|
Scannable cite was indeed broken; try the version at https://raw.githubusercontent.com/retorquere/zotero-better-bibtex/gh-1581/site/content/exporting/zotero.lua
The lua filter won't produce exactly that; the human-readable part ("Wrigstad, & Castegren, 2017") will just be the citekey. Scannable cite doesn't need that part, it's just a user convenience.
That's not changing. My test framework has a lot of assumptions expecting Python 3.8. You might want to try pyenv or conda if you really want to use the test runner. You don't really need all that to test the pandoc stuff though. Just create a new profile (using If you don't include |
still doesn't work> Scannable cite was indeed broken; try the version at https://raw.githubusercontent.com/retorquere/zotero-better-bibtex/gh-1581/site/content/exporting/zotero.luaDoesn't work. Here is an annotated transcript: See what is in
|
Can you download this, place it on the
This downloads the bundled lua filter so that we'll be sure that we're using the same filter, and applies it to the etst file. This reliably gets me a scannable cite odt. |
|
still doesn't work> Can you download [this](https://raw.githubusercontent.com/retorquere/zotero-better-bibtex/master/pandoc/Makefile), place it on the `pandoc` directory of the clone you have (replacing the existing `Makefile`), and run `make 1581` (assuming you have imported biblio.bib)? The pandoc call should _only_ output the following: > > ``` > @sec:theory: not found > @sec:achievement-driven: not found > @sec:the-game: not found > @fig:matrix: not found > @sec:implementation: not found > ```I am getting a different output, and I am NOT getting a scannable cite odt. Reset hard to
Create a simple
|
No luck even after installing This is what I did.
|
I have updated the Makefile to only build your minimal I appreciate you are trying to include as much relevant info as possible, but your posts are very overwhelming to read for me. Could you use bold instead of No need to install 6838, sorry about that post, that was automated. Nothing has changed in BBT, so the normal release will suffice. |
I skipped the I see
The above error is with
|
Quick upate. Scannable cite does NOT work with test build 5.2.45.6841 as well. |
Sorry about those test builds. You can ignore them; nothing has changed in BBT for this. I'm just checking in changes to the Makefile. |
You have to quote the URL. The |
Yeah I know but you get the same identifiers, and inside the Lua filters they look differently -- citation nodes in the AST as a Lue filter sees it have an |
This is a pandoc issue. zotero.lua doesn't work with this version of pandoc-2.9.1.1, specifically the version that comes with Debian sid
|
@retorquere As part of the resolution, you may want to check for pandoc version in I will leave one more comment, for the benefit of people who could be hitting this bug through search engines. |
That's going to be hard to test for, since it's not particular to the pandoc version. Pandoc 2.9 worked for me on MacOS. I'm not sure even how to test for the pandoc version in the filter. |
I am happy that I could make good progress today. |
Closing this issue. |
From https://pandoc.org/lua-filters.html
|
I don't see how to ask for platform though. |
Details on a working version
|
Details on a non-working version
|
Non-working on Debian. It works just fine on MacOS. And I don't know how to test for platform. |
Turns out it's 2.9.2 or later that's needed. I've added a check for that. |
Turns out in fact the Inlines wasn't needed. I've put up a new filter, the site rebuild generally takes 10 minutes to show up. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
filter broken
**pandocc is installed**pandoc datadir has
pandoc-zotxt.lua
andzotero.lua
filtersA very simple
md
fileConversion to using
pandoc-zotxt
works fine => citekey is present in ZoteroTry using
zotero.lua
to produce 'scannable-cite` ODT file(cf. https://retorque.re/zotero-better-bibtex/exporting/pandoc/)
content.xml
is not OK. I see no scannable cite. The citekey is literally carried over with no translations whatsoever.Desired output
In the Zotero UI, a quick copy of the entry using
scannable cite
format produces thisThe text was updated successfully, but these errors were encountered: