Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2022-03-11
ZHUZHOU CSR TIMES ELECTRIC CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, because the display widths of Chinese characters, English characters, and punctuation marks are not the same, and the display widths of different English characters and punctuation marks are also different, the existing methods still cannot well realize the display of text content.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and system for adaptively segmenting and displaying character strings based on control attributes
  • A method and system for adaptively segmenting and displaying character strings based on control attributes
  • A method and system for adaptively segmenting and displaying character strings based on control attributes

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention discloses a method and system for adaptively segmenting and displaying character strings based on control attributes. The method includes: S1. Obtaining control attributes; The character substring, the character substring is displayed by the control; S3. The character string formed by the remaining characters after the character substring is intercepted is the character string to be displayed, and steps S1 to S3 are repeatedly executed until the character string in the character string to be displayed All characters are displayed. It has the advantages of self-adaptive segmentation of text content, which will not cause missing display of text content, effectively guarantees the correctness and aesthetics of text content display, and has the advantages of simple processing methods, thereby greatly reducing the requirements for text editing formats.

Description

technical field [0001] The invention relates to the technical field of UI interface control file display, in particular to a method and system for adaptively segmenting and displaying character strings based on control attributes, and is especially suitable for displaying text content by display devices on rail transit vehicles. Background technique [0002] Display is an important device on rail transit vehicles to directly guide drivers and passengers to drive. At present, part of the display interface of locomotives, subways, urban rail vehicles and other vehicles is developed based on FLTK tools. The crew provided the most important information. For example, the fault handling information interface includes fault description, fault cause analysis, driver handling measures, and after-sales personnel handling measures, and there are many descriptions of driver / after-sales service personnel handling measures. Since the width of the FLTK control is limited, and the displaye...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/0481G06F40/166
CPCG06F3/0481G06F40/166
Inventor 李凯饶天贵胡士杰黄赫曾升唐志阳李黄河
Owner ZHUZHOU CSR TIMES ELECTRIC CO LTD