Re: [org-cite, oc-basic] Citation disambiguation

2021-06-06 Thread András Simonyi
Thanks, this was the case, now the basic processor disambiguates the citations.

On Sun, 6 Jun 2021 at 14:19, Bruce D'Arcus  wrote:
>
> I believe he rebased it and modified the history? So same branch.
>
> On Sun, Jun 6, 2021, 7:36 AM András Simonyi  wrote:
>>
>> Dear All,
>>
>> On Fri, 4 Jun 2021 at 23:06, Nicolas Goaziou  wrote:
>>
>> > > I think some kind of disambiguation strategy should be implemented for
>> > > the basic citation backend to be really usable with the author-year
>> > > style. WDYT?
>> >
>> > Implemented in latest wip-cite-new branch.
>> >
>> > Regards,
>>
>> Thanks, this is amazing! I was trying to look into it, but the latest
>> commit I see at
>> https://code.orgmode.org/bzg/org-mode/commits/wip-cite-new is from a
>> week ago. Is there a different location from which I can pull this
>> update?
>>
>> thanks again,
>> András
>>



Re: [org-cite, oc-basic] Citation disambiguation

2021-06-06 Thread Bruce D'Arcus
I believe he rebased it and modified the history? So same branch.

On Sun, Jun 6, 2021, 7:36 AM András Simonyi 
wrote:

> Dear All,
>
> On Fri, 4 Jun 2021 at 23:06, Nicolas Goaziou 
> wrote:
>
> > > I think some kind of disambiguation strategy should be implemented for
> > > the basic citation backend to be really usable with the author-year
> > > style. WDYT?
> >
> > Implemented in latest wip-cite-new branch.
> >
> > Regards,
>
> Thanks, this is amazing! I was trying to look into it, but the latest
> commit I see at
> https://code.orgmode.org/bzg/org-mode/commits/wip-cite-new is from a
> week ago. Is there a different location from which I can pull this
> update?
>
> thanks again,
> András
>
>


Re: [org-cite, oc-basic] Citation disambiguation

2021-06-06 Thread András Simonyi
Dear All,

On Fri, 4 Jun 2021 at 23:06, Nicolas Goaziou  wrote:

> > I think some kind of disambiguation strategy should be implemented for
> > the basic citation backend to be really usable with the author-year
> > style. WDYT?
>
> Implemented in latest wip-cite-new branch.
>
> Regards,

Thanks, this is amazing! I was trying to look into it, but the latest
commit I see at
https://code.orgmode.org/bzg/org-mode/commits/wip-cite-new is from a
week ago. Is there a different location from which I can pull this
update?

thanks again,
András



Re: [org-cite, oc-basic] Citation disambiguation

2021-06-04 Thread Nicolas Goaziou
Hello,

András Simonyi  writes:

> --8<---cut here---start->8---
> First: (Doe, John, 1973a)
>
> Second: (Doe, John, 1973b)
>
> Doe, John (1973a). /Minor Work/, Journal of Philosophy.
>
> Doe, John (1973b). /Magnum Opus/, Journal of Philosophy.
> --8<---cut here---end--->8---
>
> I think some kind of disambiguation strategy should be implemented for
> the basic citation backend to be really usable with the author-year
> style. WDYT?

Implemented in latest wip-cite-new branch.

Regards,
-- 
Nicolas Goaziou



Re: [org-cite, oc-basic] Citation disambiguation

2021-06-03 Thread Bruce D'Arcus
On Thu, Jun 3, 2021 at 5:13 PM András Simonyi  wrote:

> I think some kind of disambiguation strategy should be implemented for
> the basic citation backend to be really usable with the author-year
> style. WDYT?

I hadn't tested that, but I agree.

As you know, disambiguation can get complicated, but that approach is
easy low-hanging fruit.

Bruce



[org-cite, oc-basic] Citation disambiguation

2021-06-03 Thread András Simonyi
Dear All,

experimenting with the 'basic' citation backend I noticed that the
default author-year citation style (and its derived variants, like
text and year) does not perform citation disambiguation for items that
have the same author and year. E.g. the Org document
--8<---cut here---start->8---
#+cite_export: basic author-year author-year
First: [cite:@disamb1examp]

Second: [cite:@disamb2examp]
--8<---cut here---end--->8---
is exported as
--8<---cut here---start->8---
First: (Doe, John, 1973)

Second: (Doe, John, 1973)

Doe, John (1973). /Minor Work/, Journal of Philosophy.

Doe, John (1973). /Magnum Opus/, Journal of Philosophy.
--8<---cut here---end--->8---
which makes it impossible to identify the cited item. Perhaps the most
widespread solution to this problem is to add so called year-suffixes
to the year to disambiguate:
--8<---cut here---start->8---
First: (Doe, John, 1973a)

Second: (Doe, John, 1973b)

Doe, John (1973a). /Minor Work/, Journal of Philosophy.

Doe, John (1973b). /Magnum Opus/, Journal of Philosophy.
--8<---cut here---end--->8---
I think some kind of disambiguation strategy should be implemented for
the basic citation backend to be really usable with the author-year
style. WDYT?

best regards,
András