Paragraph Justification via Aggregate Spacing Metrics
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing text justification methods in digital documents often result in uneven spacing between words or characters, excessive hyphenations, and disparate type colors across paragraphs, which can affect readability, especially for individuals with cognitive disabilities.
Innovation Solution
A processing device calculates spacing metrics for selected paragraphs, aggregates these metrics to determine an average spacing, and then adjusts word spacing, letter spacing, or glyph scaling to align each paragraph's spacing with the aggregate average, using an iterative process to minimize penalty values and achieve optimized justification.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Manufacturing precision
If naive justification of text is applied to individual paragraphs, then the text alignment with margins is achieved, but uneven spacing between words or characters and disparate type colors across paragraphs occur
Solution Approach 1:
The patent combines multiple paragraphs into a single aggregated text block for collective analysis and optimization. By treating selected paragraphs as one unified unit, the system calculates aggregate spacing metrics across all paragraphs and applies coordinated adjustments to achieve consistent spacing and uniform type color across the entire group, rather than optimizing each paragraph independently.
Solution Approach 2:
The system dynamically adjusts spacing parameters (word spacing, letter spacing, glyph scaling) based on calculated aggregate metrics. It computes the difference between individual paragraph spacing and the aggregate average, then applies imperceptible modifications to these parameters to minimize variation across paragraphs while maintaining visual consistency and uniform type color.
2Manufacturing precision
If justification adjusts spacing to fill column width, then text aligns with margins, but excessive hyphenations and noticeable distortions are introduced
Solution Approach 1:
The system employs an iterative optimization process that calculates a penalty value representing the visual appeal and readability of the justified text. It repeatedly adjusts spacing characteristics and hyphenation patterns, evaluating the penalty value each time, until an optimized set of modifications is identified that minimizes the penalty while achieving margin alignment and uniform spacing across paragraphs.
3Adaptability or versatility
If different justification levels are applied to different text sections, then local formatting flexibility is achieved, but noticeable differences and distortions vary throughout the document
Solution Approach 1:
The patent merges the justification optimization of multiple selected paragraphs into a unified process. By aggregating spacing metrics across all selected paragraphs and applying coordinated adjustments, the system ensures visual consistency and uniform type color across the entire selection, eliminating noticeable differences between paragraphs while maintaining the ability to apply different justification settings to different sections of the document.
Data Source
AI summary
Techniques for enhancing paragraph justification across multiple paragraphs are provided. In an example method, a processing device determines a first and second spacing metrics for first and second justified paragraphs of text, respectively, in a digital document. The processing device determines an aggregate spacing metric for the first and second justified paragraphs based on the first spacing metric and the second spacing metric. Based on a difference between the first spacing metric and the aggregate spacing metric, the processing device modifies one or more spacing characteristics of the first justified paragraph based on a first penalty value, wherein the one or more spacing characteristics of the first justified paragraph comprise at least one of word spacing, letter spacing, or glyph scaling and causes the modified first justified paragraph to be displayed in a graphical user interface (GUI).


