Skip to content

이미지 + 캡션 후 다음 문단이 캡션과 오버래핑 #426

@edwardkim

Description

@edwardkim

증상

"이미지 → 캡션 → 다음 문단" 구조에서 캡션과 다음 문단이 오버래핑되어 표시됨.

작업지시자 발견 (2026-04-29).

재현

```bash
rhwp export-svg samples/aift.hwp -p 18 -o output/svg/aift-issue/
```

대상: `samples/aift.hwp` 19페이지 (인덱스 18, 0-based)

진단 단서

  • 캡션 (caption) 은 그림(Picture)의 자식 컨트롤로 해당 그림 박스 내부에 배치됨
  • 다음 문단의 본문 y 좌표가 캡션 영역과 겹치는 정황
  • height_measurer 또는 paragraph_layout 에서 캡션 높이가 후속 문단 누적에 미반영 가능성

디버깅 워크플로우 (CLAUDE.md)

```bash
rhwp export-svg samples/aift.hwp -p 18 --debug-overlay -o output/debug/ # 문단/표 경계 + 인덱스
rhwp dump-pages samples/aift.hwp -p 18 # 19페이지 배치 결과
rhwp dump samples/aift.hwp -s {section} -p {pi} # 캡션 + 다음 문단 ParaShape/LINE_SEG
```

관련 메모리 / 트러블슈팅

  • 메모리 `feedback_hancom_compat_specific_over_general` — 일반화 알고리즘 회피, 케이스별 가드 우선
  • 시각 판정 게이트 (push 전 필수) — 작업지시자 직접 한컴 정답지 비교

마일스톤

v1.0.0 (M100) — 조판 엔진 정합성

참고 산출물

  • `output/svg/aift-issue/aift_019.svg` (536 KB) — 현재 회귀 SVG

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions