Skip to content

Fix auto quote-conversion when converting into BibTeX + add tests #5195

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mbollmann
Copy link
Member

Should fix #5146

The latex_convert_quotes function is a bit esoteric and I believe the way it should work has shifted due to changes in the BibTeX generation pipeline. We didn't have many test cases for this either, so I added some, and modified the code to make them pass.

@mbollmann mbollmann requested review from mjpost and nschneid May 19, 2025 17:29
Copy link

codecov bot commented May 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.57%. Comparing base (338e785) to head (30e147c).
Report is 96 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5195      +/-   ##
==========================================
- Coverage   92.57%   92.57%   -0.01%     
==========================================
  Files          32       32              
  Lines        2304     2303       -1     
==========================================
- Hits         2133     2132       -1     
  Misses        171      171              
Files with missing lines Coverage Δ
python/acl_anthology/text/markuptext.py 93.93% <100.00%> (-0.07%) ⬇️
python/acl_anthology/utils/latex.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

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.

U+2019 (apostrophe) is becoming ` (backquote) in .bib file
2 participants