fix(layout): count objects set as characters in a cell paragraph without a layout cache - #359
Merged
Merged
Conversation
…out a layout cache Without line caches a cell paragraph holding a picture, drawing or equation set as a character was measured as if the object were not there, so the row came out shorter than Hancom's. Such an object alone is now one line as tall as it, spaced from the text's size, as a table alone already was; objects among the text, or several of them, take their width and height in the paragraph's lines as in the body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ects-as-characters-in-cells
…ects-as-characters-in-cells
…ter 6.7.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
main(9e0d02b, 6.7.0 릴리스)을 합쳤습니다. 릴리스로 |
…ects-as-characters-in-cells # Conflicts: # CHANGELOG.md # tests/test_layout_page_estimate.py
Owner
Author
…ects-as-characters-in-cells # Conflicts: # CHANGELOG.md # tests/test_layout_page_estimate.py
Owner
Author
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)이 줄 캐시 없는 표 칸 문단에서 글자처럼 둔 개체(그림·도형·수식 등)를 센다._Measure.stack은 개체 하나만 든 칸 문단(_object_alone)을 표 혼자일 때처럼 개체 높이의 한 줄로 센다._objects_among)marked_lines가 본문과 같은 줄 나누기(_inline_content,_line_metrics)로 줄마다 높이를 낸다.테스트
tests/test_layout_page_estimate.py에 한/글 저장본 열하나를 더한다(HANCOM_PAGES). 모두 흐르는 표 칸의 문단이다.🤖 Generated with Claude Code