Skip to content

Task #703 회귀: exam_eng.hwp p4 27번 보기 그림 단 1 중반(+446.6px)으로 밀림 #775

@planet6897

Description

@planet6897

결함

samples/exam_eng.hwp page 4 (0-idx 3) 27번 문항 ("Adenville City Pass Card") 의 안내 그림 (1×1 InFrontOfText 표) 이 단 1 (우측 컬럼) 상단 (정상 y≈277.08 px) 에서 단 1 중반 (현재 y≈723.69 px) 으로 약 +446.6 px 밀려 PDF 권위 자료와 시각 불일치.

회귀 진원지 (bisect 확정)

커밋 a759a1c2 — Task #703 / PR #707 "BehindText/InFrontOfText 표 본문 흐름 누락 정정".

```
src/renderer/typeset.rs:1403-1416 (+13)
typeset_table_paragraph 의 Control::Table 분기에 InFrontOfText/BehindText 가드 추가
→ 데코레이션 표를 Shape처럼 push 만 하고 cur_h 누적 건너뜀
```

측정 (bisect 결과)

시점 커밋 cell-clip y 상태
Pre PR#644 `1185eb98` 277.08
Post PR#644 머지 `42bb7946` 277.08
Pre Task#703 (RED) `afa70578` 277.08
Post Task#703 GREEN `a759a1c2` 723.69 회귀
현재 devel `e30e52f4` 723.69

해당 IR (pi=181 ci=1)

```
[1] 표: 1행×1열, treat_as_char=false, wrap=글앞으로(InFrontOfText)
size=30047×31727 HU (106.0×111.9 mm)
vert=문단(672 = 2.4 mm), horz=문단(280 = 1.0 mm)
```

→ Task #703 fix 의 정확한 타깃 케이스 (InFrontOfText + treat_as_char=false + 문단 기준 vert offset)

부작용 메커니즘

InFrontOfText 표를 `current_height` 누적에서 빼면 단 0/1 컨텐츠 분배가 변경되어 27번 paragraph 가 단 1 상단에서 단 1 중반으로 밀리는 것으로 추정. 데코레이션 표는 절대좌표 배치이므로 본문 흐름에 영향을 주지 않아야 한다는 Task #703 의 명제는 calendar_year.hwp (단일 컬럼) 에서는 성립했으나, 다단 + 자체 vert=문단 offset 영역에서는 컬럼 분배 자체를 변경하여 회귀.

재현

```bash
cargo build --release
./target/release/rhwp export-svg samples/exam_eng.hwp -p 3 -o /tmp/exam_eng_p4
grep -oE 'cell-clip-[0-9]+"><rect x="[0-9.]+" y="[0-9.]+" width="400.62' /tmp/exam_eng_p4/exam_eng_004.svg | head -1

회귀: y="723.69... 정상: y="277.08...

```

권위 자료

  • `pdf/exam_eng-2022.pdf` — 한컴 한글 2022 PDF 변환본 (정답지)

후속 영향 검증 필요

관련

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions