Repository navigation
fix(api): getPageTextLayout 표시 문자열과 모델 오프셋 분리 (#7909) - #8182
Merged
Merged
Conversation
Collaborator
Author
|
검토 판정은 승인 — 읽기 전용 표시 문자열 export 계약 범위입니다. 검토 head:
실제 외부 소비자 앱, 비공개 HWPX, HWP3 별도 focused와 한컴 Print PDF 비교는 미검증으로 유지합니다. 소비자 앱은 표시 인덱스와 편집 모델 오프셋을 분리해 확인해야 합니다. 사용자가 이 범위의 리뷰 기록 반영 및 최신 CI 확인 후 병합을 명시적으로 승인했습니다. 같은 source branch의 review 문서를 갱신한 뒤 새 head CI·병합 가능 상태를 확인해 squash merge하겠습니다. self APPROVE 이벤트와 운영 배포는 수행하지 않습니다. |
Collaborator
Author
|
검토와 squash merge를 완료했습니다. 감사합니다.
운영 배포는 수행하지 않았습니다. |
jangster77
added a commit
that referenced
this pull request
Oct 24, 2026
Refs #7445 기존 완료 문서의 표 분할·저장 글줄·각주·글꼴·그림/출력 경계를 공통 로직에서 보정하고 내용 소속·순서·보존 회귀를 정리합니다. 별도 PR의 sample16 HWP5 2024 HWP/HWPX·2010 별칭은 제외하며 대표 이슈 전체 해결을 주장하지 않습니다. 검증 code head: 8ba0980 review·오늘할일 trailing: 8310b92 고정 base: 3536e72 전체 nextest 11,766 PASS/0 FAIL/45 skip, 필수 로컬 게이트와 실제 지원 소비72관측을 확인했습니다. Native/fresh WASM 각49조건·1,772쪽의 최저 raw93.06876%/92.99291%,90% 미달·후보 쪽수 차이·devel 대비2%p 이상 하락0입니다. source77/e7 전쪽 raster의 생산 근거를 검증하여196 TSV를 다시 산출했으며8ba 전쪽 재캡처로 기록하지 않습니다. 현재 실제 소비와 #8180/#8182 기능 보존은 새로 실행했습니다. 새 Rust 회귀228개(integration224·unit4)를 현재 전체 실행의 실제 PASS와 대조했습니다. Mac WASM은 locked wrapper --no-opt 로컬 대체 빌드입니다. 셀프 리뷰·검증/확대 판독 기록·대표 review/overlay와 오늘할일을 포함합니다. KTX 제목 획/그림자와 giant API 회귀 복구 등 미해결 하위 이슈는 별도 추적합니다.
7 tasks
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.
꼬리말 자동 쪽번호가 SVG에는 표시되지만
getPageTextLayout(0)에서 누락되는 문제를 수정합니다.원인
렌더 트리는 모델 문자열
text와 표시 문자열display_text를 분리하지만, 텍스트 레이아웃 API는 모델 문자열만 내보냈습니다. 자동번호처럼 화면에 생성되는 문자열을 API 소비자가 확인할 수 없었습니다.변경 내용
displayText와displayCharX를 추가합니다.text,charX,charStart, 문서·셀 식별자와 bbox를 보존해 선택·커서·편집 오프셋을 유지합니다.displayText ?? text, 표시 경계는displayCharX ?? charX로 선택합니다. 빈 표시 문자열도 유효합니다.변경은 읽기 전용 export 계약에 한정하며, 그림·사각형 배치(#7910)는 변경하지 않습니다. 자세한 사용법은 API 계약 문서에 있습니다.
검증
git diff --check공개 첨부의
control_footer_nopicture.hwp에는 자동번호도 없어 일반 문구 대조로 사용했습니다. 그림·사각형만 제거하고 자동번호를 유지한 HWP/HWPX 대조본은 별도로 생성했습니다. 출처와 해시는 fixture 설명에 기록했습니다.변경 문서의 메타데이터·상대 링크 오류는 0건입니다. 저장소 전체 문서 메타데이터 검사는 기존 오류 20건으로 실패하며, 결과보고서에 구분해 기록했습니다.
남은 확인 사항
Refs #7909