-
Notifications
You must be signed in to change notification settings - Fork 292
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
Author/editor id
attribute
#297
Conversation
…ccurrences are not yet disambiguated yet, though
…a slug and people entry for each variant spelling, represent variant spellings on papers as strings. This will (hopefully) simplify modifying logic to use explicit person ids in XML.
…w warns of unused variants; remove unused variants
Enforce constraint that unambiguous names can't have ids.
Assuming this passes, I think this is ready. But it's a large change and should be reviewed carefully. |
Hm, I didn’t get those errors locally and will take a closer look. But the above build is a good example of the “always or never use id” constraint in action. It’s picky but I think it helps to catch errors. |
Those are some awesomely detailed error messages. I’ll take a careful look soon. |
…e errors previously missed because of bug
OK, this passes and I think I'm done. |
Great—will review tomorrow. |
I looked over the code a bit and it looks fine to me, though it would benefit from a glance by someone more familiar with its intricacies. I did pull it down and try to build it. The Python preprocessing all goes well, but I get this error when running $ hugo server
Building sites … ERROR 2019/05/08 14:01:22 [en] REF_NOT_FOUND: Ref "/people/i/i-aldezabal.md" from page "/Users/post/code/acl-anthology/hugo/content/people/0/0-ansa.md": page not found
ERROR 2019/05/08 14:01:22 [en] REF_NOT_FOUND: Ref "/people/i/i-alegria.md" from page "/Users/post/code/acl-anthology/hugo/content/people/0/0-ansa.md": page not found
ERROR 2019/05/08 14:01:22 [en] REF_NOT_FOUND: Ref "/people/j/j-m-arriola.md" from page "/Users/post/code/acl-anthology/hugo/content/people/0/0-ansa.md": page not found
ERROR 2019/05/08 14:01:22 [en] REF_NOT_FOUND: Ref "/people/n/n-ezeiza.md" from page "/Users/post/code/acl-anthology/hugo/content/people/0/0-ansa.md": page not found |
I think this might be related to #316, but what's |
Had the same thought, am trying to clean up and rebuild... |
(It would be nice if all the generated files were written to a build directory so that cleanup could be done by just |
Okay, that fixed things for me. I'm going to merge. |
Author/editor `id` attribute
The initial commit here converts the
complete
attribute to anid
attribute.author
tag has anid
attribute, theid
is looked up inname_variants.yaml
; else, thefirst
andlast
name are looked up inname_variants.yaml
.complete
attribute. There's no resolving of name collisions (e.g., Yang Liu) yet.To do:
name_variants.yaml
to have colliding canonical/variant names if they both have ids