Skip to content

Preserve leading LaTeX escapes when splitting coauthors - #639

Open
fbirds5230 wants to merge 1 commit into
sciunto-org:mainfrom
fbirds5230:fix/coauthor-leading-escapes
Open

fbirds5230 wants to merge 1 commit into
sciunto-org:mainfrom
fbirds5230:fix/coauthor-leading-escapes

Conversation

@fbirds5230

Copy link
Copy Markdown

SeparateCoAuthors loses a leading LaTeX escape after and. For example, John Smith and \'{E}lodie Dupont becomes John Smith and {E}lodie Dupont. Splitting and merging a bibliography then changes the author's spelling.

Record the next name's start before consuming its first escape. Escapes also cancel a partial and match, so text such as a\'nd is kept within the name.

The tests cover accent commands, letter commands, multiple coauthors, and a parse/split/merge/write round trip. All five new regressions fail before the change.

Validation:

  • pytest . on Python 3.12.14: 2,824 passed, 12 existing skips, and four existing deprecation warnings.
  • pre-commit run --all-files on Python 3.11.18: all 20 hooks passed.
  • git diff --check: passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant