Dynamic Text Wrapping for Electronic Documents
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for displaying electronic documents on small screen devices often result in unusable or unrecognizable layouts, as they either resize content, change layouts statically, or require horizontal scrolling, failing to maintain the original intent of the document's layout and user convenience.
Innovation Solution
A method for dynamically wrapping text in a selected region of an electronic document based on the device's screen resolution, allowing for rewrapping text to fit within the viewport without horizontal scrolling, while maintaining the original layout's intent and user-friendly navigation.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If text is rewrapped in narrow columns to fit the screen after zooming in, then horizontal scrolling is avoided, but the original layout is changed and the document becomes substantially longer in the vertical direction
Solution Approach 1:
The patent applies dynamics by making the text wrapping width adjustable based on user zoom level. When the user zooms in, the system dynamically recalculates the wrapping width to fit the current viewport, allowing the document to adapt its layout dynamically rather than maintaining a fixed narrow column layout. This resolves the contradiction by making the vertical length increase conditional on the zoom level rather than permanently extended.
Solution Approach 2:
The system changes the wrapping width parameter based on the zoom level. At different zoom levels, the text wrapping width is recalculated to match the current display dimensions, allowing the document to optimize its layout for the current view rather than being constrained to a single fixed layout. This parameter change approach allows the document to fit the screen at any zoom level without permanent vertical extension.
2Adaptability or versatility
If the document layout is substantially changed to fit small screens, then the document displays on small devices, but the original document layout is unavailable to the user
Solution Approach 1:
The patent implements a dynamic layout system that adapts to different zoom levels while preserving the original layout intent. Instead of applying a fixed transformation, the system continuously adjusts the wrapping width based on the current viewport dimensions, allowing the document to maintain its structural integrity and original design intent across different display conditions.
Solution Approach 2:
The system creates a universal rendering approach that works across multiple zoom levels and device types. By calculating the wrapping width as a function of the current viewport rather than applying device-specific transformations, the same rendering logic serves multiple functions: preserving original layout at zoom level 100%, adapting to smaller viewports at higher zoom levels, and maintaining consistency across different device types.
3Measurement precision
If text is displayed at high resolution with narrow viewport, then text fits within screen, but horizontal scrolling becomes necessary
Solution Approach 1:
The system dynamically changes the wrapping width parameter based on the current zoom level and viewport dimensions. When zoomed in, the wrapping width is recalculated to ensure text lines fit within the visible area, eliminating the need for horizontal scrolling. This parameter adjustment ensures precise text fitting at any resolution or zoom level.
Data Source
Figure 1
Figure 2
Figure 3A~3C
AI summary
A method is provided for rewrapping text when changing from a first to a second zoom level when displaying an electronic document. The line length at which to rewrap the text is chosen such that no horizontal scrolling becomes necessary. Since the rewrapping may result in a change to the layout of the document, the method may further include s identifying an element in the electronic document and ensuring that the element is included in the display after a zooming-in or zooming-out operation. Also described is a device configured to perform the method and a computer program including instructions for performing the method when executed by a computing device.