Document Image Ruby Alignment via Character-Specific Y-Coordinate Adjustment
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing document image generation methods fail to properly align supplemental annotations (ruby) in interline spaces due to variations in character shapes and positions, leading to misalignment issues, especially with characters like 'g', 'j', 'p', 'q', and 'y', and punctuation marks.
Innovation Solution
A document image generating apparatus and method that utilizes a special character database to adjust the alignment position of supplemental annotations based on character codes, calculating mean vertical positions and applying adjustments to ensure proper alignment within interline spaces, while considering the unique shapes of characters like 'g', 'j', 'p', 'q', and 'y', and punctuation marks.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If Y coordinates for upper ends of interline space are uniformly defined within each line, then the processing is simple, but the added ruby may not look properly aligned in the interline space under the word or phrase
Solution Approach 1:
The patent applies local quality by differentiating the treatment of Y coordinates based on the specific characters present in each wording. Instead of using a uniform Y coordinate for all words in a line, the system calculates separate Y coordinates for each wording based on the vertical positions of its constituent characters. This allows each local region (wording) to have its own optimized alignment characteristics, resolving the contradiction between simple processing and precise alignment.
Solution Approach 2:
The patent changes the parameter of Y coordinate from a fixed uniform value to a dynamic calculated value based on character shapes. By introducing a database of vertical positions for each character type and calculating the mean Y coordinate for each wording, the system transforms the static parameter into a dynamic one that adapts to the specific composition of each wording, thereby achieving proper alignment without overly complex processing.
2Manufacturing precision
If character shapes and positions are considered individually for each wording, then the alignment precision of ruby is improved, but the processing complexity increases
Solution Approach 1:
The patent applies preliminary action by pre-storing the vertical position information for each character type in a database before the actual ruby addition process. This preprocessing step creates a reference framework that simplifies the subsequent calculation of Y coordinates for each wording. By preparing the character position data in advance, the system reduces the complexity of real-time processing while maintaining high alignment precision.
Solution Approach 2:
The system achieves self-service by automatically calculating the Y coordinates for each wording based on its own constituent characters' vertical positions. Rather than requiring manual specification or complex external control, the system uses the character composition information itself to determine the appropriate alignment position, making the process self-determining and reducing overall system complexity.
Data Source
AI summary
Regarding a wording including a character stored neither in character DB1 storing characters whose shapes have portions to be positioned under a base line nor in other character DB2 storing characters that are positioned to separate upward from the base line, a mean YBav calculated with bottom Y coordinates of all characters neither stored in the DB1 nor DB2 is designated as a bottom Y coordinate of wording. Regarding a wording including only characters stored in the DB1, a predetermined value is added to a mean YBav0 calculated with bottom Y coordinates of all characters for obtaining an YBav designated as a bottom Y coordinate of wording. Regarding a wording configured with only characters stored in the DB2, a predetermined value is subtracted from a mean YTav calculated with top Y coordinates of all character marks for obtaining a YBav designated as a bottom Y coordinate of wording.


