Skip to content
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

Replace latexcodec with pylatexenc #4279

Closed
wants to merge 12 commits into from
Closed

Conversation

mbollmann
Copy link
Member

We use latexcodec for encoding strings in BibTeX entries; the latest version of it recommends to use pylatexenc instead. This PR tests switching to pylatexenc, which slightly changes the logic and encoded strings in some places, but is also faster in my testing.

mbollmann and others added 8 commits December 26, 2024 12:46
Merge v0.5.0 of acl-anthology-py
This PR implements a semi-automated bulk processing workflow for metadata corrections. We hope that it will vastly simplify the metadata correction experience for both users and Anthology staff. It includes the following pieces:

* A link is added to each paper page which, when clicked, displays a modal dialog allowing for editing of the paper's title, author list, and abstract
* Submitting the dialog takes the user to a Github issue template populated with the changed information in a JSON data block
* A new script, process_bulk_metadata.py, processes these work items, makes the corrections, bundles them into a branch, and creates a unified PR
* A new Github workflow replaces the old manual one
* Documentation regarding workflow corrections is updated

---------

Co-authored-by: Matt Post <mattpost@microsoft.com>
Co-authored-by: Matt Post <post@cs.jhu.edu>
* Add blog post
* Fix approval-resetting workflow
* Adjust modal dialog to present checkmark noting that corrections should match the PDF
* Update corrections.md

* Update 2024-12-27-new-metadata-workflow.md

* Update process_bulk_metadata.py

* Update corrections.md

* Update 99-bulk-metadata-correction.yml
* Rewrite create_hugo_yaml.py to use new library

* Switch create_hugo_pages.py to use rich

* Add deprecation warning to old library

* Port create_bibtex.py to use new library

* Update READMEs

* Remove pytest from Makefile (specifically tests the old library)
Copy link

codecov bot commented Dec 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.56%. Comparing base (5c6c8bc) to head (65ef302).
Report is 1 commits behind head on python-dev.

Additional details and impacted files
@@              Coverage Diff               @@
##           python-dev    #4279      +/-   ##
==============================================
+ Coverage       92.54%   92.56%   +0.01%     
==============================================
  Files              32       32              
  Lines            2294     2300       +6     
==============================================
+ Hits             2123     2129       +6     
  Misses            171      171              
Files with missing lines Coverage Δ
python/acl_anthology/text/texmath.py 89.51% <ø> (ø)
python/acl_anthology/utils/latex.py 100.00% <100.00%> (ø)
python/acl_anthology/venues.py 85.50% <100.00%> (+0.65%) ⬆️

@mjpost mjpost added this to the 2024Q4 milestone Dec 31, 2024
* Move build scripts, rename from 'yaml' to 'data'

* Remove pytest from Makefile (specifically tests the old library)

* Replace PyYAML with msgspec.json

* Update READMEs and remove references to libyaml

* Add content adapters and remove create_hugo_pages.py

* Bump Hugo to v0.140.2 and update READMEs

* Don't force the current year in license headers
@mbollmann
Copy link
Member Author

Superseded by #4284

@mbollmann mbollmann closed this Jan 1, 2025
@mbollmann mbollmann deleted the python-pylatexenc branch January 1, 2025 20:57
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.

4 participants