원고지 규칙 제거하고 격자/흐름 두 쓰기 모드 도입 #1
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
tyange-labs/palim!1
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/writing-modes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
배경
Palim의 실제 목표를 **"시인이 쓴 시를 한 글자도 안 틀리게 따라 치기"**로 다시 정의했다. 한국 시는 두 부류로 나뉘는데, 기존 원고지 규칙(칸 점유 묶기·금칙·soft-wrap)은 텍스트를 재배치해 충실한 전사를 오히려 방해했다.
하나의 조판 모델로는 둘 다 담을 수 없어 두 가지 쓰기 모드로 재설계했다. 자세한 근거는
docs/writing-modes.md참고.변경 사항
core — 원고지 규칙 제거
tokenizer.ts:segmentGraphemes(자소 분할 + offset + 줄바꿈)로 단순화layout.ts:flowGraphemes(자소 1=1칸, 자동 cols/rows 확장)로 교체, 단위 테스트 갱신격자 모드 — 배치형 시
GridEditor: 동적 크기·옅은 가이드, IME·캐럿 모델 유지GridPreview: 흐름 모드 자간 + 공백=글자폭, full-width 흰 박스에 자연 크기흐름 모드 — 산문·일반 시 (신규)
FlowEditor: 공백 보존 비례폭 textarea (native IME)FlowPreview: canvas 측정 비례폭 조판배선·정리
ModeToggle+EditorView모드 분기 (격자는 세로 스택, 흐름은 좌우)useExport로 SVG/PNG 공통화검증
bun run test:run(11개 통과),bun run build(vue-tsc) 클린알려진 후속 (별도 작업)
🤖 Generated with Claude Code