Skip to content

Add RIS parser and serializer#3

Merged
chmodas merged 2 commits into
trunkfrom
ris
Mar 23, 2026
Merged

Add RIS parser and serializer#3
chmodas merged 2 commits into
trunkfrom
ris

Conversation

@chmodas

@chmodas chmodas commented Mar 23, 2026

Copy link
Copy Markdown
Owner

No description provided.

chmodas added 2 commits March 23, 2026 11:18
Parses RIS files into Record structs and serializes them back. Handles
TY/ER record delimiters, TI/T1 title preference, AU/A1 combined
authors, PY/Y1 slash-separated dates, SP+EP page combination, JO/JF
journal alternatives, N2 abstract fallback, en-dash normalization,
continuation lines, and extras for the ID field.
Move duplicated code from nbib and ris into shared modules:
- src/parse_util.rs: check_empty, normalize_line_endings, append_to_opt,
  append_to_last
- tests/common/mod.rs: arb_text, arb_author, arb_date, arb_pages,
  arb_volume, VALUE_CHARS
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 99.50495% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.57%. Comparing base (771635f) to head (b8dc6e7).

Files with missing lines Patch % Lines
src/ris.rs 99.42% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##            trunk       #3      +/-   ##
==========================================
+ Coverage   92.03%   95.57%   +3.54%     
==========================================
  Files           3        5       +2     
  Lines         226      407     +181     
==========================================
+ Hits          208      389     +181     
  Misses         18       18              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chmodas chmodas merged commit bfc67f2 into trunk Mar 23, 2026
2 checks passed
@chmodas chmodas deleted the ris branch March 23, 2026 11:24
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.

2 participants