chore: bump fig-extract to v2.11.0#29
Conversation
캡션 문법 확장 (M1 문자접두 inline·M2 괄호 한정구) [계약 무변경]. - src/core/fig-extract.js: v2.10.2 → v2.11.0 byte-identical 벤더링 (md5 05753502…) - docs/fig-extract-integration.md: §주의사항에 v2.11.0 캡션 문법 확대 항목 추가 계약 무변경이라 fig-engine.ts·fig-extract.d.ts 수정 불요. 출력 필드·좌표계· (num,page)·manifest 스키마 불변 (num에 S.N·A.N 점형이 더 자주 등장할 뿐). typecheck·build 통과. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughfig-extract 엔진을 v2.11.0으로 갱신하고, 보충·부록 캡션과 괄호 한정 표기의 인식 및 번호 정규화를 확장했다. 스티치 앵커 정규화와 soft 캡션 승격용 hard 카운트 계산도 변경했으며 관련 문서를 갱신했다. Changes캡션 및 앵커 처리 확장
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant CaptionText
participant matchCaption
participant normNum
participant StitchAnchor
participant SoftGate
CaptionText->>matchCaption: 확장 캡션 표기 전달
matchCaption->>normNum: 번호 정규화 요청
normNum-->>matchCaption: canonical 번호 반환
matchCaption->>StitchAnchor: 캡션 앵커 생성 정보 전달
StitchAnchor->>normNum: 스티치 번호 정규화
StitchAnchor->>SoftGate: 앵커 목록 전달
SoftGate-->>StitchAnchor: 계열 번호를 제외한 hardCount 계산
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ast-grep (0.44.1)src/core/fig-extract.jsast-grep timed out on this file Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/core/fig-extract.js`:
- Around line 241-243: Update m2ParenOk to stop treating any parenthesized text
beginning with an uppercase letter as a valid hard anchor; retain the known
“colour online”/“online” cases, and only allow author-like text when additional
caption-context validation excludes references such as “Smith et al., 2024” or
“See Methods.”
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 152f2dc8-03a5-4651-9caa-25efc65f6ade
📒 Files selected for processing (2)
docs/fig-extract-integration.mdsrc/core/fig-extract.js
| function m2ParenOk(p) { | ||
| const t = p.trim(); | ||
| return /^[A-Z]/.test(t) || /^colou?r\s*online$|^online$/i.test(t); |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
대문자 시작만으로는 본문 참조를 캡션과 구분할 수 없습니다.
Fig. 2 (Smith et al., 2024). 또는 Figure 3 (See Methods).는 이 조건을 통과해 hard 앵커가 됩니다. 가짜 앵커는 잘못된 figure 후보를 만들고 실제 figure의 otherCaps 경계를 조기에 끊을 수 있습니다. 알려진 한정구만 허용하거나, 저자명 허용에는 추가적인 캡션 문맥 판별을 적용하세요.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/core/fig-extract.js` around lines 241 - 243, Update m2ParenOk to stop
treating any parenthesized text beginning with an uppercase letter as a valid
hard anchor; retain the known “colour online”/“online” cases, and only allow
author-like text when additional caption-context validation excludes references
such as “Smith et al., 2024” or “See Methods.”
엔진
fig-extract.js를 v2.10.2 → v2.11.0으로 벤더링. [계약 무변경].엔진 변경 (캡션 문법 확장 M1·M2)
보충/부록 캡션의 inline 표기를 새로 탐지해 점형 canonical(
S.N·A.N)로 방출:Fig. S1.·Figure S1:·Figure A1.(번호 클래스[A-DS]\.?\d+공유)Supplemental/Supporting/Supp.접두 추가FIG. 3 (color online).·Figure 1 (저자명).(hard 구분자 + 대문자/color online 가드)Figures 2.0오탐 차단, OCR 로마 유령 부수 해소엔진 게이트: gate sCritical 0.801 → 0.9106 (+10.96pp), critical 118 → 53 (해소 49·신규 1·회귀 0), 앵커 무악화.
벤더링 검증
src/core/fig-extract.js: byte-identical (md505753502…, diff 0)docs/fig-extract-integration.md: §주의사항에 v2.11.0 항목 추가fig-engine.ts·fig-extract.d.ts무변경 — 계약 무변경(출력 필드·좌표계·(num,page)·manifest 스키마 불변, num에 점형이 더 자주 등장할 뿐)🤖 Generated with Claude Code
Summary by CodeRabbit
새 기능
S.1,A.1형식으로 캡션 번호를 일관되게 표시합니다.color online등 조건부 괄호 표기가 포함된 캡션을 인식합니다.문서