Layout Engine Overflowed Textbox Rendering via Enlarged Intermediate Document
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Standard layout engines struggle to effectively process electronic documents with overflowed textboxes, as they are designed for confined textboxes, leading to non-trivial problems in rendering and layout management.
Innovation Solution
The method involves generating an intermediate document with enlarged textboxes to encapsulate overflowed textboxes, calculating character positions within these enlarged textboxes, and applying transformations to relocate characters based on vertical justification, allowing for successful rendering of pages with overflowed textboxes.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If standard layout engines are used to process electronic documents with overflowed textboxes, then the layout engine can handle confined textboxes effectively, but it fails to correctly render overflowed textboxes where text exceeds the textbox perimeter
Solution Approach 1:
The patent introduces an intermediary enlarged textbox that acts as a mediator between the original overflowed textbox and the layout engine. The enlarged textbox encapsulates all overflowed text within its boundaries, allowing the layout engine to process it as a confined textbox while preserving the original overflowed textbox's visual characteristics in the final rendered output.
Solution Approach 2:
The patent creates a copy of the overflowed textbox in the form of an enlarged textbox that contains all the text. This copy allows the layout engine to work with complete text boundaries without modifying the original textbox definition, enabling accurate rendering by mapping characters from the enlarged textbox back to the original overflowed textbox positions.
2Manufacturing precision
If the textbox size is enlarged to encapsulate all text characters, then all text can be contained within the textbox boundaries, but the textbox dimensions change from the original specification
Solution Approach 1:
The patent segments the textbox processing into two distinct components: an enlarged textbox used for layout calculation and character positioning, and the original overflowed textbox used for final rendering. This segmentation allows each component to serve its specific purpose without compromise - the enlarged version ensures complete text containment while the original preserves the intended visual layout.
Solution Approach 2:
The enlarged textbox serves as an intermediary structure that temporarily holds all text during the layout calculation phase. After character positions are calculated in the enlarged textbox, a mapping process transfers these positions back to the original overflowed textbox coordinates, ensuring the final output matches the original design specifications.
Data Source
AI summary
A method for managing electronic documents (EDs), including obtaining an ED defining an overflowed textbox with a vertical justification, a paragraph for the overflowed textbox, and a horizontal justification of the paragraph, where the paragraph comprises a plurality of characters, generating, based on the ED, an intermediate document (ID) defining an enlarged textbox encapsulating the paragraph with the horizontal justification, calculating, using the layout engine and based on the ID, a plurality of positions of the plurality of characters within the enlarged textbox by generating an intermediate page including the enlarged textbox, calculating, based on a vertical justification of the overflowed textbox, a transformation between a point of interest (POI) associated with the enlarged textbox on the intermediate page and a reference point associated with the overflowed textbox, and generating a rendered page of the ED by applying the transformation to the plurality of positions of the plurality of characters.


