기능: 셀 병합/분할·열 추가/삭제 편집 프리미티브 (GK-1·GK-2, 실기 확정)#13
Merged
Conversation
■ 정답지 실측 (구현 사양) - 정품 병합 표 1,816개 전수 스캔(245파일) — 저장 구조 5규칙 만장일치 확정: 피병합 셀 미저장(앵커만), 앵커 면적의 그리드 완전 타일링, cellAddr 행 우선, row_cell_counts=앵커 행 계상, 병합 셀 크기=영역 전체 합 ■ 프리미티브 4종 + CLI (crates/hwp-convert/src/structure.rs) - merge_cells(사각 영역, 부분 겹침 거부, 내용 이어붙임)·split_cell(A5~A7 규격 빈 셀, 크기 균등 분배)·add/delete_table_column(span 걸침 확대/축소, placement·common_data 개체 폭 동시 갱신) + 조작 후 불변식 게이트(위반 시 손상 표 미방출) - edit --merge-cells/--split-cell/--add-col/--delete-col (EditArgs 구조체 정리) ■ 부수 수정: md→hwp 표 셀 세로 정렬 (K2 실기 디테일 발견) - 정품 셀 기본은 세로 가운데(LIST_HEADER bits5-6=CENTER 0x20 — 3표본 전수 실측)인데 md→hwp 합성만 TOP(0) 방출 → 공통 경로 수정(GK 이전부터의 잠복 결함, hwpx는 무관) ■ 검증 - 전체 테스트 323 통과·clippy 0, identity·roundtrip·synth·DROP-free 게이트 불변 - 정품 병합 표 9종 회귀(불변식 위반 0), 실기 검증 세트 A~K 30종 자체검증 통과 - 한글 실기 2라운드: K1/K2 병합 표시·K3 열 구조(1차), K2 셀 세로 가운데(2차) 확정 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <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.
요약
정품 병합 표 1,816개 전수 실측(5규칙 만장일치)에 기반한 표 편집 프리미티브 4종 추가 + #9 표 편집 체계와의 의미 통합.
--merge-cells "표:r1:c1:r2:c2"— 사각 영역을 좌상단 앵커로 병합--split-cell "표:행:열"— 병합 셀을 1×1로 분해--add-col "표:위치"— 기존"표"(append)에 위치 삽입 확장--delete-col "표:열"— 전체 폭 유지(남은 열 재분배)#9와의 통합 판단
convert/edit.rs로 배치, #9의 재귀with_nth_table로케이터 공유(중첩 표 인덱싱이 set-cell과 일치).structure.rs는 #9대로 문단 전용 유지.tbl0/tbl2병합 표 열 추가는 지원+validate게이트로 대체(add-row 거부 규칙은 유지).근거·검증
validate_table_invariants게이트(손상 표 미방출).scripts/check.sh통과(fmt/clippy -D warnings/test 351/0), 검증 세트 30/0.🤖 Generated with Claude Code