fix(bibxml): Improve author name processing - #11500
Open
kesara wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR improves author name processing.
While this matches the existing output mostly, there are some improvements.
Improved scenarios:
When the initials has a hyphen.
Example: RFC 9845
Existing output:
<author fullname="M-P. Odini" surname="M-P. Odini"/>New output:
<author fullname="M-P. Odini" initials="M-P." surname="Odini"/>When the initials has multiple letters.
Example: RFC 5930
Existing output:
<author fullname="NSS. Murthy" surname="NSS. Murthy"/>New output:
<author fullname="NSS. Murthy" initials="NSS." surname="Murthy"/>When the author has brackets in initials (without period).
Example: RFC 7893
Existing output:
<author fullname="Y(J) Stein" surname="Y(J) Stein"/>New output:
<author fullname="Y(J) Stein" initials="Y(J)" surname="Stein"/>When the author has brackets in initials (without out period).
Example: RFC 6310
Existing output:
<author fullname="Y(J). Stein" surname="Y(J). Stein"/>New output:
<author fullname="Y(J). Stein" initials="Y(J)." surname="Stein"/>NOTE that regex in this PR is assisted by Claude Opus 5.