Bidirectional Text Selection Logic for Contiguous Visual Segments
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional methods for selecting bidirectional text in computer systems often result in counterintuitive cursor movements and noncontiguous visual segments, making it complex and inefficient for users to select and manipulate bidirectional text.
Innovation Solution
The proposed solution adjusts the unanchored side of a selection area based on user input, evaluating the range of logical indices to ensure a contiguous selection, thereby aligning the selection with both logical and visual sequences, allowing for intuitive and straightforward bidirectional text selection using arrow key inputs.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If conventional text selection methods are used for bidirectional text, then text selection functionality is provided, but cursor movements become counterintuitive and selection segments become noncontiguous
Solution Approach 1:
The patent inverts the conventional text selection approach by adjusting the unanchored side of the selection area in the direction of user input rather than following logical index order. When a user presses a right arrow key, the unanchored side moves rightward visually, even though this may require adjusting logical indices in a non-contiguous manner. This inversion makes cursor movements intuitive and matches user expectations for bidirectional text selection.
2Measurement precision
If text selection follows logical index sequence, then selection accuracy is maintained, but visual continuity is lost in bidirectional text
Solution Approach 1:
The patent introduces a visual dimension to text selection by maintaining two separate indexing systems: logical indices for accurate character identification and visual indices for continuous display representation. When adjusting the selection area, the system evaluates both logical and visual indices, allowing the selection to follow visual continuity while maintaining logical accuracy through the dual-indexing mechanism.
3Adaptability or versatility
If bidirectional text selection is implemented, then support for multiple writing systems is achieved, but selection direction conflicts with user input direction
Solution Approach 1:
The patent implements dynamic adjustment of the selection area based on the direction of user input. When a user presses a directional arrow key, the system dynamically determines which side (anchored or unanchored) should move and in what direction, rather than following a fixed logical index progression. This dynamic approach allows the selection to adapt to the user's intended direction while supporting both LTR and RTL writing systems.
Data Source
AI summary
Techniques for bidirectional text selection are disclosed. When a character selection is received, such as a “Shift+Arrow” input, the unanchored side of a selection area is adjusted by one glyph in the selection direction. The adjusted selection area is then evaluated in terms of logical indices that define the selection. If the range of logical indices is contiguous, such as the range {3, 4, 5}, then the adjusted selection area is accepted, although further adjustments are optionally made for glyphs that map to multiple characters. However, if the range of logical indices is noncontiguous, such as {3, 4, 6}, then the selection area is further adjusted until a contiguous selection of logical indices is achieved. For instance, a character corresponding to logical index {5} is added to a selection of characters corresponding to logical indices {3, 4, 6} to produce a selection that is logically and visually contiguous.


