-
Notifications
You must be signed in to change notification settings - Fork 2
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
BBT schomd methods signature change #3
Comments
Ok. It won't affect it very much. That's easy to change. I actually wanted Please look at my propachi-texmacs repository and at the bootstrap.js I wonder if that wrap url and doi feature can be enabled via a monkey patch On Tue, Jun 21, 2016, 03:34 retorquere [email protected] wrote:
|
I was just looking how to enable that. Super annoying how badly documented this stuff is. |
I was committing to the wrong branch on my propachi-texmacs. I just changed On Tue, Jun 21, 2016, 08:30 retorquere [email protected] wrote:
|
I can enable the setting, no monkey-patching required, but the URL is offered to the @url method pre-escaped. Still need a way around that. |
Doesn't look like there is a way around that. I could try to undo the escaping, but that's going to get ugly fast. Monkey-patching it is, I suppose. |
And no monkey-patching, because this is deeply nested if statements... I've managed to get something to work by maintaining global state, but it's not pretty. at. all. |
Don't worry about the escaping. It seems to work fine somehow. I never knew On Tue, Jun 21, 2016, 09:08 retorquere [email protected] wrote:
|
Not for markdown it doesn't. |
Hmmm. Let's look inside citeproc to see what it's doing and find out why. On Tue, Jun 21, 2016, 09:39 retorquere [email protected] wrote:
|
My train is here in a few minutes... errands today, and writing It occurs to me that I need to check and be sure that clicking links in PDF On Tue, Jun 21, 2016, 09:40 Karl Hegbloom [email protected] wrote:
|
I've looked at citeproc, but that's some dense and tangled code... currently, the processor spits out a literal text "http://doi.org/" (which it generates itself, it isn't in the reference), and then calls "@DOI/true" with the pre-escaped DOI (which is no good to me, because for markdown the label must be escaped, but the URL must not be). If I just let that pass, I get something like Here and following lines is how I currently handle it, but it's not pretty. |
It looks fine to me. Deep Magic, but elegant enough. On Tue, Jun 21, 2016, 09:51 retorquere [email protected] wrote:
|
Did you see what I did to make url's appear on their own line in footnotes On Tue, Jun 21, 2016, 09:54 Karl Hegbloom [email protected] wrote:
|
It relies on two assumptions which I really feel I should not be counting on:
not happy with that at all, but the fact I need to enable a development option gives me hope there's still opportunity to change this behavior. |
No, I didn't see that, where can I find those? |
Then we should think about how it ought to work and offer up a patch. Since On Tue, Jun 21, 2016, 09:58 retorquere [email protected] wrote:
|
https://github.com/KarlHegbloom/zotero-texmacs-integration/blob/master/progs/zotero.scm#L1922 https://github.com/KarlHegbloom/zotero-texmacs-integration/blob/master/progs/zotero.scm#L2095 On Tue, Jun 21, 2016, 10:00 Karl Hegbloom [email protected] wrote:
|
How it ought to work seems rather straightforward to me: @url and @doi
should simply be offered the non-ecaped text (which is easy to escape using
text_escape), and no doi prefix should be injected, when wrap_url_and_doi
is true.
But I've looked at the citeproc-js code that does these things, and I have
no idea how it hangs together an awful lot of state and dynamic code lives
there. I wouldn't know where to begin finding out even just in what order
they're called - the doi prefix is escaped after the @doi function is
called, for example, but the prefix appears before the results of @doi.
|
@fbennett, could you chime in? I'm hoping to use https://github.com/retorquere/zotero-citations to cite items from my Zotero library in markdown files in the Atom text editor. One issue is that Emiliano (@retorquere), the author of "zotero-citations", is having a hard time formatting DOIs correctly in markdown because he doesn't seem to have access to the raw unescaped DOI string. See also https://github.com/retorquere/zotero-citations/issues/27 (edit: @fbennett, looks like @retorquere already made some progress: https://github.com/retorquere/zotero-citations/issues/27#issuecomment-227528121) |
Some styles format the doi as "doi:nnnnn", while others use http://doi.org On Tue, Jun 21, 2016, 11:55 Rintze M. Zelle [email protected]
|
@rmzelle Ping me if don't hear back during the weekend. Full-up with work this week. |
I think we're good here, Frank. Sorry for the noise. Rintze On Tuesday, June 21, 2016, Frank Bennett [email protected] wrote:
|
@KarlHegbloom the |
You can change it also. I'm not using it anymore. I'm only using the On Sun, Jun 26, 2016, 08:54 retorquere [email protected] wrote:
|
So is the entire bbl/html stuff deprecated? If so, I'd rather remove it.
|
Unless you want it for implementation of a drop in for bibtex later. On Sun, Jun 26, 2016, 11:00 retorquere [email protected] wrote:
|
It's not in my plans. What was the html version for? Can I remove both?
|
This is what the reversal would look like: retorquere/zotero-better-bibtex@3ef1338 . No issue for you then? |
I used the html output for comparison testing. On Sun, Jun 26, 2016, 13:53 retorquere [email protected] wrote:
|
used, as in past tense? |
Yes. I have not been using it in a while. At first, I was planning to use I was using schomd for the bbl output method, but then wanted to enable the The side effect is that it can not be enabled at the same time as BBT. On Sun, Jun 26, 2016 at 2:30 PM retorquere [email protected] wrote:
|
I don't follow anymore. There's only one place I monkey-patch Zotero's citeproc, and that's to add the markdown format, does that get in your way? I do otherwise load a separate citeproc, but that's in a different namespace, so that shouldn't bother anyone. I don't like the idea that BBT can't be enabled at the same time as... well, anything else. So:
Still not entirely certain what working with the wire protocol does in the context of your texmacs work, but I agree it is to be preferred over my changes. I just don't understand how it works. |
I did not realize that your citeproc is being loaded into a separate Order of loading is what I assumed was the problem to begin with, and then Because I'm now loading a new citeproc via my "propachi-texmacs", and Using the Juris-M / Zotero "integration.js" wire-protocol provides me with https://www.zotero.org/support/dev/client_coding/libreoffice_plugin_wire_protocol The main thing is that it drives the editor, not the other way around. That I wonder if the similar thing could be done for the markdown, for something By the way, what does "schomd" mean? I get "cayw" as "cite as you write", Can you take a look at my "propachi-texmacs" package and see what might On Mon, Jun 27, 2016 at 12:31 AM retorquere [email protected]
|
Someday when I have more time for it... I'd like to see if I can get that I want to support that kind of categorized bibliography in the TeXmacs For conversion of TeXmacs documents written using bibtex that have bibtex On Mon, Jun 27, 2016 at 12:31 PM Karl Hegbloom [email protected]
|
Correct
Frank Bennet fixed a slew of problems in citeproc in functionality I needed in BBT, mostly to do with name and date parsing, nothing to do with bibliography or citation generation. Zotero updates citeproc only very occasionally, and I needed those fixes immediately, so I loaded a private copy. This may not be needed anymore -- perhaps Zotero has updated in the interim.
I see. That may be interesting for atom-zotero-citations, where I can in principle drive the editor, but CAYW picking is meant to be a general easy-entry option for quick integration. atom-zotero-citations was more a proof-of-concept for the schomd work. It's not something I actively work on.
That depends on the way you want it to work. Pandoc-markdown does all the processing in the final production step. atom-zotero-citations aims to do everything in pure markdown, so there the markdown itself is changed to insert the citations and the bibliography. In that case, the similar approach should work, but I doubt if I will ever get around to learning lisp. Certainly not with the ferflixten 5.0 around the corner, for which I'm still undecided whether I should go through the effort. The promisification is a pain in the ass, and much of BBT will need to be rewritten from scratch.
Scholarly Markdown.
What problem precisely? I've loaded your package, and BBT doesn't seem to mind.
I'm a little more pessimistic than I was a while ago. Not only have I found very little good information on what a drop-in replacement might need to do, the citeproc formats interface is not well documented. It has the feel it was custom-written for html and rtf. My own pet project is going to be a reference quality checker. There's a lot of implicit knowledge on what fields should be present in the CSL styles, and incomplete references came very close to costing me my honors at graduation. |
Hi Karl,
I'm going to release a change to BBT somewhere today or tomorrow which changes the schomd calls you use. Instead of calling
schomd.bibliographybbl(keys)
, you will have to callscomd.bibliography(keys, {format: 'bbl'})
. I've looked at your scheme code, but my lisp-fu is shamefully weak, so I can't submit a pull request for you.The text was updated successfully, but these errors were encountered: