Repository navigation
Conversation
Hancom lays the line of a drawing set as a character out as tall as the drawing and its parallel shadow's move up or down: offsetY + 600 for a shadow at the bottom, offsetY - 600 for one at the top (the drawing is drawn that much lower when the shadow goes up); the width of its line adds nothing. The page estimate counted the drawing's size alone, so the lines after such a drawing came too high. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
바뀐 점
쪽 수 추정(실험,
estimate_pages)이 글자처럼 둔 도형의 그림자를 줄 높이에 넣는다. 전에는 도형 크기만 세어, 그림자가 있는 도형 뒤의 줄들이 그만큼 위에 놓였다.한/글의 동작
offsetY(아래가 양수)를 더한 값이다.PARELLEL_RIGHTBOTTOM,PARELLEL_LEFTBOTTOM)는offsetY + 600이다. 예: 283이면 883, −283이면 317.PARELLEL_LEFTTOP,PARELLEL_RIGHTTOP)는offsetY - 600이다. 예: 283이면 −317(위로 317), 1000이면 400(아래로).코드
layout/pages.py_shadow_drop: 개체의 평행 그림자(hp:shadow)가 위나 아래로 움직이는 거리를 구한다. 그림자가 없거나 다른 종류면 0이다.offsetY가 32비트 밖이면 지원 밖으로 둔다._object_line)_object_extent)테스트
tests/test_layout_page_estimate.py의HANCOM_PAGES에 한/글 저장본 일곱을 더한다. 캐시가 있을 때와 없을 때 모든 줄 위치와 쪽 수를 시험한다.고치기 전에는 그림자가 있는 여섯 판이 두 모드에서 틀렸다. 그림자 없는 판은 고치기 전에도 맞다.
🤖 Generated with Claude Code