You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bounty proposal] Crossref title cleanup leaves inline face markup behind (US$25 requested) #14307
At 706f819a7a0e07a0bbb22af30157efc315020834, plugins/omi-crossref-app/main.py:clean() leaves opening face-markup tags behind when they follow a word character: H<sub>2</sub>O becomes H<sub>2O, and x<sup>y<sup>z</sup></sup> becomes x<sup>y<sup>z. The closing-tag cleanup works, but the opening-tag regex deliberately excludes word-adjacent tags to preserve inequalities. This affects titles returned by all three Crossref tool routes. Crossref explicitly supports these tags in its face-markup specification.
I prepared a narrow candidate fix in the shared clean() helper: remove complete, known Crossref face tags before the existing generic cleanup, retaining the inequality guard. This follows the merged JATS-cleaning work in #13525 and is separate from the HTTP pooling and payload-validation work in #13978/#13983. I also checked #13256: its new cleaner is used for abstracts, while titles still call the existing clean() helper.
Verification: with the plugin's pinned FastAPI/Pydantic/httpx dependencies on Python 3.12.14, the original code gives 10 failed, 7 passed on the existing cleaner tests plus the new regressions; the candidate gives 17 passed. The tests include in-process HTTP requests to all three real FastAPI routes with only crossref_get mocked. They preserve If a<b, then c>d.. No live Omi account, production service, or personal data was used. Full-repository preflight is not yet run; this is a tested local candidate, not a production deployment.
@josancamon19 Under the documented bounty-suggestion process, would you approve US$25, payable through the documented PayPal process after acceptance and merge, for this focused repair and regression coverage? The research, implementation, and tests were prepared with Codex on behalf of @971872015. This is a proposed fee, not an existing funded award or payment claim. Payment details would be supplied privately through the official claim channel only after an award is approved.
I will wait for maintainer feedback on eligibility, amount, or whether you would like the PR before opening a public PR.
Activity
fix(crossref): strip known face markup tags while retaining inequalit…
fix(crossref): strip known face markup tags while retaining inequalit…
fix(crossref): strip known face markup tags while retaining inequalit…
fix(crossref): strip paired face markup tags while retaining inequali…
test(crossref): add regression tests for paired face markup and encod…
fix(crossref): strip known face markup tags while retaining inequalit…