Task #1585: HWPX 캡션 내 플로팅 이미지 렌더링 지원#1590
Merged
Merged
Conversation
edwardkim
added a commit
that referenced
this pull request
Jun 27, 2026
Owner
|
merge 완료했습니다 (merge commit c60c009, origin/devel 포함 검증). 감사합니다, @postmelee! #1270 진단에서 (a) 인라인=#1551, (b) 플로팅=#1585로 나눴던 후속 중 (b) 범위를 정확히 다룬 PR입니다. 검증:
#1270 캡션 이미지 시리즈가 (a)+(b)로 마무리됐습니다. 좋은 작업 감사합니다! |
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.
요약
TopAndBottompicture를 caption 영역 기준으로 렌더링합니다.TopAndBottompicture가 있는 경우만 caption 렌더링을 허용합니다.배경
#1551은 #1270의 (a) 범위였던 캡션 내 인라인 이미지 스레딩을 복구했습니다.
이번 PR은 후속 이슈 #1585의 범위인 (b) 캡션 내 플로팅 이미지 렌더링을 다룹니다. #1270 첨부 샘플의
image2/SEOUL MY SOUL로고는 내부 표의 TOP caption 안에 있는textWrap="TOP_AND_BOTTOM"그림이므로, #1551 merge 이후에도 별도 처리가 필요했습니다.구현
layout_caption()에서 caption paragraph 조판 후TopAndBottompicture 전용 렌더링 helper를 호출합니다.layout_picture()경로를 재사용합니다.depth == 1이고 caption 안에TopAndBottompicture가 있는 경우에만 렌더링합니다.cell_index=65534를 유지합니다.검증
cargo fmt --checkcargo test --test issue_1585_caption_floating_imagecargo test --test issue_1270_caption_inline_imagecargo test --test issue_530cargo test --test issue_1459_topbottom_picture_reflowcargo test --test issue_1139_inline_picture_duplicatecargo test --test issue_1352_table_cell_tac_picture_textcargo test --test issue_1486_hwpx_partial_tac_tablecargo test --libcargo clippy --lib -- -D warnings실샘플 확인
로컬 #1270 첨부 샘플의 page 0 SVG에서
<image>개수가 #1551 merge 직후 1개에서 이번 변경 후 2개로 증가하는 것을 확인했습니다. 추가 방출된 image는image2/SEOUL MY SOUL로고입니다.시각 검증
로컬
rhwp-studio웹서버에서 작업지시자가 #1270 첨부 샘플을 직접 로드해 시각 검증을 완료했습니다.범위
이번 PR은 #1585의 캡션 내부
TopAndBottom플로팅 이미지 렌더링에 집중합니다. caption 내부 모든 floating object의 일반화나 caption 재귀 렌더링 확장은 포함하지 않습니다.