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
generate citation_reference nodes for rinoh builder #291
Conversation
I think this is fixed in master. I'm planning on making a new release soon, but you can try with pip install https://github.com/brechtm/rinohtype/archive/refs/heads/master.zip |
The refid appeared to be wrong. I got this working in the final patch by using just |
Codecov Report
@@ Coverage Diff @@
## develop #291 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 51 52 +1
Lines 2399 2428 +29
Branches 418 425 +7
=========================================
+ Hits 2399 2428 +29
Continue to review full report at Codecov.
|
I wrapped up the last test now to check behaviour of citations across documents, and using the proper refid for that case. Looks like there's a bug in rinohtype in that it refuses to resolve citation refid's across documents @brechtm - this appears to be a bug on rinohtype's end unless I somehow missed something. You can test it here (with the code from this PR): The same problem might have tripped in #291 (comment) |
You are correct, this was broken for citations defined in the Sphinx master document (typically index.rst). Also for the Sphinx/docutuls built-in citations. I fixed this in the master branch (brechtm/rinohtype@05447c8). refid = f'%{info.todocname}#{info.citation_id}'
No, there is only PDF output. I saw you were using the stylelog; I hope that's sufficient? For rinohtype development, I have a PDF diff script, but the dependencies make this often a pain to keep running on GitHub actions, so I cannot recommend this. A simpler alternative would be to extract the text with pdftotext (poppler), but that also introduces an extra dependency... |
…_id}'" This reverts commit f6e56c2.
Thank you for fixing - it's working now.
Aye, when I asked, I did not know about the stylelog. It's enough to have this cursory check that the references are present. |
@brechtm Take 3 as discussed.
I do have one issue that I cannot run the rinoh builder to test this, getting this error:
Here's the full log. Any clue?