-
Notifications
You must be signed in to change notification settings - Fork 5
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
citation_to_bibkey API function #21
Comments
@d97hah The only problem I have with that kind of functionality is the following: How to you treat ambiguity? Do you just return the first hit? Is not finding any an error? Alternatively we could go for |
Yes, return iterator, users busines to sort out 0, 1 or more hits. rename
function to _bibkeys accordingly
Pada tanggal Sel, 18 Feb 2020 pukul 14.00 Robert Forkel <
[email protected]> menulis:
… @d97hah <https://github.com/d97hah> The only problem I have with that
kind of functionality is the following: How to you treat ambiguity? Do you
just return the first hit? Is not finding any an error? citation_to_bibkey
sounds as if there should be exactly one hit - because a citation is
supposed to identify a source unambiguously. Maybe we should start with
that?
Alternatively we could go for iter_bibkeys and just yield hits, so the
caller can decide if the first is good enough?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#21?email_source=notifications&email_token=AA2QHSGSITHBSLWJAL2SLB3RDPLYHA5CNFSM4KXD5ZXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMB4CFY#issuecomment-587448599>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2QHSAXPT7Z4YFCTE5GUHLRDPLYHANCNFSM4KXD5ZXA>
.
|
Implement a function
The
languoids
argument would be a selection of languoids to consider. Forthe use case I am thinking of, building the full index is probably
overkill. I am thinking just read the bibfiles, specified, select on the
languoids argument, and search linearly through that selection. One could
also consider an "searchin" argument where you give a string "Quechuan",
iso "eng" or languoid "blaa1234" and the search is through all languoids
in the subtree identified by the string.
The text was updated successfully, but these errors were encountered: