HWP5 wrap=Square 호스트 본문 커서 전진 — 답안↔문제 겹침 수정 (3-09월_교육_통합_2023 4쪽)#1220
Merged
edwardkim merged 1 commit intoJun 1, 2026
Merged
Conversation
근본 원인: wrap=Square 인라인 표는 커서를 표 높이만큼만 전진시키고, 호스트 본문 (layout_wrap_around_paras)은 커서 전진 0. 본문(90px)>표(73.6px)이면 본문 하단이 표 하단보다 아래인데 다음 단락(①)이 표 하단에서 시작 → 마지막 본문 줄과 겹침 (3-09월_교육_통합_2023 4쪽 문26). 수정: layout.rs 어울림 호스트 Table item 에서 layout_wrap_around_paras 직후 커서를 host_text_bottom = table_y_before + 본문높이 로 전진(표보다 길 때만). 본문 ≤ 표 인 기존 다수 케이스는 불변(가드). 검증: ① pi=259 895.9→912.5(분리), 4쪽 문26 ①~⑤ 각 줄 분리(PDF 정합), 전체 1896 passed/0 failed(wrap_around issue_546·svg_snapshot 회귀 0), rustfmt clean. closes edwardkim#1218 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1c42896 to
2ab366b
Compare
edwardkim
added a commit
that referenced
this pull request
Jun 1, 2026
…oses #1218) @planet6897. double advance 트러블슈팅 무재발 확인(exam_science 4쪽/37items 동일), 1924 passed, 문26 ① y 906.3→922.8 분리. 시각 판정 통과. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Owner
|
머지했습니다(devel 계측으로 근본 원인(호스트 본문 > 표 높이일 때 다음 단락이 표 하단에서 시작)을 정확히 짚으셨고, 특히 메인테이너가 우려한 부분은 과거
렌더 경로 변경이라 WASM 을 재빌드했습니다. 좋은 수정 감사합니다. |
Owner
|
추가로, WASM 재빌드 후 rhwp-studio(편집기)에서도 4쪽 문26 의 답안 ①~⑤ 가 문제 끝줄과 겹치지 않고 각 줄에 분리되어 렌더됨을 확인했습니다(rhwp-studio 시각 판정 통과). SVG export 경로와 편집기 canvas 경로 양쪽 모두 정합합니다. 감사합니다. |
edwardkim
added a commit
that referenced
this pull request
Jun 1, 2026
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
문제
samples/3-09월_교육_통합_2023.hwp4쪽 문26: 답안 ① 0.7262 가 문제 끝줄(…표준정규분포표를 이용하여 구한 것은?)과 세로로 겹침. 한글 2022 PDF 4쪽은 ①~⑤ 가 각 줄에 분리.근본 원인 (계측 확정)
RHWP_DEBUG_TAC_CURSOR계측:wrap=Square인라인 표는 커서를 표 높이만큼만 전진시키고, 호스트 본문(layout_wrap_around_paras, void 렌더)은 커서를 전진시키지 않는다. 본문(90px) > 표(73.6px) 이면 본문 하단이 표 하단보다 아래인데 다음 단락(①)이 표 하단에서 시작 → 겹침.수정
src/renderer/layout.rs어울림(Square) 호스트 Table item 처리에서layout_wrap_around_paras직후 커서를 본문 하단까지 전진:본문 ≤ 표 인 기존 다수 케이스는
host_text_bottom ≤ y_offset→ 동작 불변(가드). 19줄 추가, 단일 hunk.검증
cargo test --release: 1896 passed / 0 failed (wrap_aroundissue_546,svg_snapshot회귀 테스트 포함 — 회귀 0).범위 외
z-표 행 압축(셀 내부 세로정렬/줄높이)은 다른 서브시스템(표 셀 렌더링)으로 별도 이슈로 분리.