A method and system for adaptively segmenting and displaying character strings based on control attributes
A technology for segmented display and character strings, which is applied to the display of text content by display devices on rail transit vehicles. The self-adaptive segmentation and display field of character strings based on control attributes can solve problems such as different display widths, reduce processing time, Guaranteed correctness and good display effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] Embodiment 1: as figure 1 As shown, the method for adaptively segmenting and displaying character strings based on control properties in this embodiment includes the following steps: S1. Acquiring control properties; S2. Intercepting character substrings that can be completely displayed by the control from the character string to be displayed according to the control properties, The character substring is displayed by the control; S3. The character string composed of the remaining characters after the intercepted character substring is used as the character string to be displayed, and steps S1 to S3 are repeatedly executed until all the characters in the character string to be displayed are displayed. Control properties include control width, display font type, and display font size.
[0051] In this example, if figure 2As shown, the UI interface of the train display device has multiple FLTK (Fast LightTool Kit, Tiny-X graphics library) controls, including control 1, ...
Embodiment 2
[0058] Embodiment 2: This embodiment is basically the same as Embodiment 1. Since Embodiment 1 only considers the relationship between the width of the control and the display width of the characters to be displayed when segmenting the character string to be displayed, but does not consider the meaning of the characters, therefore, the displayed content may be different in the segmented display. For easy understanding, as in the first embodiment, when the control only displays the character string "My Computer, c", the meaning of the character "c" is difficult to understand. Therefore, further improvement is necessary.
[0059] In this embodiment, after step S2.2, step S2.2a is also included: analyze the character situation at the interception position, and adjust the interception position. The adjustment includes: the first adjustment method: when the first character at the interception position is forward If the character is an English character, and the second character bef...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


