{"action":"created","issue":{"url":"https://api.github.com/repos/plk/biblatex/issues/623","repository_url":"https://api.github.com/repos/plk/biblatex","labels_url":"https://api.github.com/repos/plk/biblatex/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/plk/biblatex/issues/623/comments","events_url":"https://api.github.com/repos/plk/biblatex/issues/623/events","html_url":"https://github.com/plk/biblatex/issues/623","id":256284905,"number":623,"title":"Enhance uniquename feature","user":{"login":"moewew","id":6755835,"avatar_url":"https://avatars3.githubusercontent.com/u/6755835?v=4","gravatar_id":"","url":"https://api.github.com/users/moewew","html_url":"https://github.com/moewew","followers_url":"https://api.github.com/users/moewew/followers","following_url":"https://api.github.com/users/moewew/following{/other_user}","gists_url":"https://api.github.com/users/moewew/gists{/gist_id}","starred_url":"https://api.github.com/users/moewew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moewew/subscriptions","organizations_url":"https://api.github.com/users/moewew/orgs","repos_url":"https://api.github.com/users/moewew/repos","events_url":"https://api.github.com/users/moewew/events{/privacy}","received_events_url":"https://api.github.com/users/moewew/received_events","type":"User","site_admin":false},"labels":[{"id":2428697,"url":"https://api.github.com/repos/plk/biblatex/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":49,"created_at":"2017-09-08T15:11:08Z","updated_at":"2017-10-20T22:58:34Z","closed_at":null,"author_association":"COLLABORATOR","body":"`biblatex` already offers `\\DeclareUniquenameTemplate` to customise the `uniquename` feature for use with the extended name format. It is, however, currently not possible to know *which* name part triggers the disambiguation. The only thing we get to know is the `uniquename` counter.\r\n\r\nIn the following MWE the `uniquename` counter is 1 for all names, yet the name part that makes the difference is different.\r\n\r\n```\r\n\\documentclass{article}\r\n\\usepackage{filecontents}\r\n\r\n\\begin{filecontents*}{\\jobname.bib}\r\n@book{Book1,\r\n  author = {Elk, Junior, Anne},\r\n  date = {2011},\r\n  title = {Foo},\r\n}\r\n@book{Book2,\r\n  author = {Elk, Senior, Anne},\r\n  date = {2011},\r\n  title = {Foo},\r\n}\r\n@book{Book3,\r\n  author = {Belk, Amanda},\r\n  date = {2011},\r\n  title = {Foo},\r\n}\r\n@book{Book4,\r\n  author = {Belk, Bamanda},\r\n  date = {2011},\r\n  title = {Foo},\r\n}\r\n\\end{filecontents*}\r\n\r\n\\usepackage[style=authoryear,backend=biber]{biblatex}\r\n\\addbibresource{\\jobname.bib}\r\n\r\n\\DeclareUniquenameTemplate{\r\n  \\namepart[use=true, base=true]{prefix}\r\n  \\namepart[base=true]{family}\r\n  \\namepart{given}\r\n  \\namepart{suffix}\r\n}\r\n\r\n\\begin{document}\r\n    \\cite{Book1,Book2}\r\n\r\n    \\cite{Book3,Book4}\r\n\r\n    \\printbibliography\r\n\\end{document}\r\n```\r\n\r\nI have no idea at the moment how Biber could pass the info over to `biblatex` in a usable way, but I thought I would open this ticket for discussion and to collect ideas."},"comment":{"url":"https://api.github.com/repos/plk/biblatex/issues/comments/338341057","html_url":"https://github.com/plk/biblatex/issues/623#issuecomment-338341057","issue_url":"https://api.github.com/repos/plk/biblatex/issues/623","id":338341057,"user":{"login":"plk","id":1220851,"avatar_url":"https://avatars0.githubusercontent.com/u/1220851?v=4","gravatar_id":"","url":"https://api.github.com/users/plk","html_url":"https://github.com/plk","followers_url":"https://api.github.com/users/plk/followers","following_url":"https://api.github.com/users/plk/following{/other_user}","gists_url":"https://api.github.com/users/plk/gists{/gist_id}","starred_url":"https://api.github.com/users/plk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plk/subscriptions","organizations_url":"https://api.github.com/users/plk/orgs","repos_url":"https://api.github.com/users/plk/repos","events_url":"https://api.github.com/users/plk/events{/privacy}","received_events_url":"https://api.github.com/users/plk/received_events","type":"User","site_admin":false},"created_at":"2017-10-20T22:58:34Z","updated_at":"2017-10-20T22:58:34Z","author_association":"OWNER","body":"This was fairly major biber surgery as I took the opportunity to regularise sorting scheme handling internals. You can try biblatex 3.8 and biber 2.8 DEV versions. `uniquenametemplate` and `labelalphanametemplate` are now per-refcontext, per-entry, per-namelist and per-name."}}
{"actor":{"display_login":"plk"}}