CN109308146B - Character string self-adaptive segmentation display method and system based on control attributes - Google Patents

Character string self-adaptive segmentation display method and system based on control attributes Download PDF

Info

Publication number
CN109308146B
CN109308146B CN201710625541.7A CN201710625541A CN109308146B CN 109308146 B CN109308146 B CN 109308146B CN 201710625541 A CN201710625541 A CN 201710625541A CN 109308146 B CN109308146 B CN 109308146B
Authority
CN
China
Prior art keywords
character
displayed
control
string
character string
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710625541.7A
Other languages
Chinese (zh)
Other versions
CN109308146A (en
Inventor
李凯
饶天贵
胡士杰
黄赫
曾升
唐志阳
李黄河
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuzhou CRRC Times Electric Co Ltd
Original Assignee
Zhuzhou CRRC Times Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuzhou CRRC Times Electric Co Ltd filed Critical Zhuzhou CRRC Times Electric Co Ltd
Priority to CN201710625541.7A priority Critical patent/CN109308146B/en
Publication of CN109308146A publication Critical patent/CN109308146A/en
Application granted granted Critical
Publication of CN109308146B publication Critical patent/CN109308146B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a character string self-adaptive segmentation display method and system based on control attributes, wherein the method comprises the following steps: s1, acquiring control attributes; s2, intercepting character substrings which can be completely displayed by the control from the character strings to be displayed according to the control attributes, and displaying the character substrings by the control; and S3, taking the character string formed by the residual characters after the character sub-string is intercepted as the character string to be displayed, and repeatedly executing the steps from S1 to S3 until all the characters in the character string to be displayed are displayed. The method has the advantages that the text content can be segmented in a self-adaptive mode, the text content cannot be displayed in a missing mode, the display correctness and the attractiveness of the text content are effectively guaranteed, the processing method is simple, the requirements for the text editing format are greatly reduced, and the like.

Description

Character string self-adaptive segmentation display method and system based on control attributes
Technical Field
The invention relates to the technical field of UI (user interface) control file display, in particular to a character string self-adaptive segmentation display method and system based on control attributes, and is particularly suitable for display of text contents by display equipment on a rail transit vehicle.
Background
The display is an important device for directly guiding drivers and passengers to drive on a rail transit vehicle, at present, a part of display interfaces of vehicles such as locomotives, subways, urban rails and the like are developed based on an FLTK tool, and a lot of information, especially text prompt, in the interfaces directly provides the most important information for the drivers and passengers. For example, the fault handling information interface includes fault description, fault cause analysis, driver handling measures, and after-sales personnel handling measures, and the driver/after-sales personnel handling measures have more description words. Because the FLTK control has limited width and the displayed characters cannot be automatically rewound, if the total width of the characters to be displayed exceeds the width of the control, the problem of incomplete character display can occur.
At present, in an interface developed by using an FLTK development tool, two processing methods are mainly used for character display. One is that each piece of information is fixedly divided into equal line numbers in a text file for display, if the actual characters can not occupy all line numbers, a blank space is used for filling so as to ensure that all characters can be displayed in a control with fixed width and the same number as the divided line numbers; and the other method is to insert a specific character into each piece of information in the text document to serve as a line feed label so as to ensure that the line feed display can be carried out according to the width of the control in the control with the proper height. However, because the display widths of the chinese characters, the english characters, and the punctuation marks are different, and the display widths of the different english characters and the punctuation marks are also different, the existing method still cannot well realize the display of the text content.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: aiming at the technical problems in the prior art, the invention provides the character string self-adaptive segmentation display method and the character string self-adaptive segmentation display system based on the control attributes, which can self-adaptively segment the text content, cannot cause the text content to be displayed in a missing way, can ensure the correctness and the attractiveness of the text content display, have a simple processing method and can greatly reduce the requirements on the text editing format.
In order to solve the technical problems, the technical scheme provided by the invention is as follows: a character string self-adaptive segmentation display method based on control attributes comprises the following steps:
s1, acquiring control attributes;
s2, intercepting character substrings which can be completely displayed by the control from the character strings to be displayed according to the control attributes, and displaying the character substrings by the control;
and S3, taking the character string formed by the residual characters after the character sub-string is intercepted as the character string to be displayed, and repeatedly executing the steps from S1 to S3 until all the characters in the character string to be displayed are displayed.
As a further improvement of the invention, the control attribute comprises control width, display font type and display font size.
As a further improvement of the present invention, the specific steps of step S2 include:
s2.1, reading characters from a character string to be displayed in sequence, determining the width of the characters according to the type and the size of the display font, and calculating the total width of the read characters;
s2.2, determining an intercepting position according to a rule that the total width is smaller than the width of the control;
s2.3, intercepting a character sub-string from the character string to be displayed according to the intercepting position;
and S2.4, displaying the character substring by the control.
As a further improvement of the present invention, the interception position is an interception position where the read character determined by the maximum width satisfying the condition that the total width is less than or equal to the width of the control is used as a character sub-string.
As a further improvement of the present invention, after the step S2.2, the method further includes a step S2.2a: analyzing the character condition of the interception position, and adjusting the interception position, wherein the adjustment comprises the following steps:
the first adjustment mode: when the first character in the front of the intercepting position is an English character and the second character in the front of the intercepting position is a preset specific character, moving the intercepting position forward by one character position;
the forward direction is a direction toward the beginning of the character string to be displayed, and the backward direction is a direction toward the end of the character string to be displayed.
As a further improvement of the present invention, the specific characters include punctuation marks and spaces.
As a further improvement of the present invention, the adjusting in step s2.2a further comprises:
the second adjustment mode is as follows: when the first character, the second character and the first character are English characters, the intercepting position is moved forward by a character position;
after step S2.3, step S2.3a is also included: correcting the character substring according to the condition of adjusting the interception position; the correction specifically comprises: and when a second adjustment mode is adopted, adding a connector behind the last character of the character sub-string.
As a further improvement of the invention, the widget is an FLTK widget, and the character string is a character string in a UTF-8 encoding format.
A control property-based string adaptive segmentation display system, comprising:
a first module: the method comprises the steps of obtaining control attributes;
a second module: the control is used for intercepting a character sub-string which can be completely displayed by the control from a character string to be displayed according to the control attribute, and the control displays the character sub-string;
a third module: and the first module and the second module are repeatedly called by taking the character string formed by the residual characters after the character sub-string is intercepted as the character string to be displayed until all the characters in the character string to be displayed are displayed.
As a further improvement of the invention, the control attribute comprises control width, display font type and display font size.
As a further improvement of the present invention, the second module includes:
a number module: the device is used for reading characters from a character string to be displayed in sequence, determining the width of the characters according to the type and the size of the display font, and calculating the total width of the read characters;
a second sub-module: the intercepting position is determined according to the rule that the total width is smaller than the width of the control;
third sub-module: intercepting a character sub-string from the character string to be displayed according to the intercepting position;
fourth, sub-module: displaying, by the control, the character sub-string.
As a further improvement of the present invention, the second module further includes:
a fifth sub-module: the method is used for analyzing the character condition of the interception position and adjusting the interception position, and the adjustment comprises the following steps:
the first adjustment mode: when the first character in the front of the intercepting position is an English character and the second character in the front of the intercepting position is a preset specific character, moving the intercepting position forward by one character position;
the forward direction is a direction toward the beginning of the character string to be displayed, and the backward direction is a direction toward the end of the character string to be displayed.
As a further improvement of the present invention, the specific characters include punctuation marks and spaces.
As a further improvement of the present invention, the fifth sub-module is further configured to perform a second adjustment mode: when the first character, the second character and the first character are English characters, the intercepting position is moved forward by a character position;
the second module further comprises:
a sixth sub-module: the character substring is corrected according to the condition of adjusting the interception position; the correction specifically comprises: and when a second adjustment mode is adopted, adding a connector behind the last character of the character sub-string.
Compared with the prior art, the invention has the advantages that:
1. according to the method and the device, the character string to be displayed is subjected to self-adaptive segmentation processing and then displayed in rows according to the width, the type and the size attribute of the display font of the control, so that the width of the control can be fully utilized to display the characters, the problem of character display omission is avoided, and the correctness and the attractiveness of character display are ensured.
2. In the actual implementation process, the attribute of the control can be automatically acquired only by knowing the name of the control, and then the original character string to be displayed is automatically subjected to self-adaptive segmentation processing, so that the requirement on the text editing format is greatly reduced, and the processing time for text editing is greatly reduced.
3. The invention adopts the self-adaptive segmentation method, has simple processing process, can be well adapted to different types of characters, different display font types and different display font sizes, and can obtain good display effect only by providing the text content to be displayed without concerning the format of the text content when a user uses the control to display the text content.
Drawings
FIG. 1 is a schematic flow chart of an embodiment of the present invention.
FIG. 2 is a schematic diagram of an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the drawings and specific preferred embodiments of the description, without thereby limiting the scope of protection of the invention.
Example 1: as shown in fig. 1, the method for adaptively segmenting and displaying a character string based on control attributes according to the present embodiment includes the following steps: s1, acquiring control attributes; s2, intercepting character substrings which can be completely displayed by the control from the character string to be displayed according to the control attributes, and displaying the character substrings by the control; and S3, taking the character string formed by the residual characters after the character sub-string is intercepted as the character string to be displayed, and repeatedly executing the steps from S1 to S3 until all the characters in the character string to be displayed are displayed. The control properties comprise control width, display font type and display font size.
In the present embodiment, as shown in fig. 2, the UI interface of the train display device has a plurality of FLTK (graphic library of Fast Light Tool Kit, Tiny-X) widgets, including widget 1, widget 2, and widget 3. The character string to be displayed is a character string in UTF-8(8-bit Unicode Transformation Format), and the number in the square in the figure represents the number-th character in the character string to be displayed, but not the actual content of the character. In this embodiment, the character string to be displayed is composed of 17 characters, and the characters include chinese characters, english characters, punctuation marks, and the like. The UTF-8 encoding format is a character string of a variable length byte encoding format, and each character of the character string of the UTF-8 encoding format occupies one or more bytes. And for the character string to be displayed, when one control can completely display the character string to be displayed, directly displaying the character string to be displayed by using the control, otherwise, segmenting the character string to be displayed, and displaying the character string to be displayed through a plurality of controls.
In this embodiment, the specific step of step S2 includes: s2.1, reading characters from a character string to be displayed in sequence, determining the width of the characters according to the type and the size of the displayed characters, and calculating the total width of the read characters; s2.2, determining an intercepting position according to a rule that the total width is smaller than the width of the control; s2.3, intercepting a character sub-string from the character string to be displayed according to the intercepting position; and S2.4, displaying the character substring by the control.
In this embodiment, the width (display width) of different characters when displayed in the control can be determined according to the display font type and the display font size of the control. For chinese characters that are block words, each chinese character width is the same, while for english characters or punctuation marks, the different character widths are different. For example, the display width of the chinese character is 15 pixels, the display width of the english character "c" is 10 pixels, the display width of the english character "o" is 10 pixels, the display width of the english character "m" is 12 pixels, the display width of the english character "p" is 10 pixels, the display width of the english character "u" is 10 pixels, a punctuation mark "," the display width is 10 pixels, and the like, and the display width is determined by the display font type and the display font size of the control, and thus, the display width of any character can be determined in advance.
For the character string to be displayed, the content of the characters is read in sequence from the first character, for Chinese characters, the width of the character can be directly determined when the character is displayed, and for English characters and punctuation marks, the width of the character when the character is displayed is determined according to the content of the character. And for the read characters, after the display width of the characters is determined, calculating the sum of the display widths of the read characters, namely the total width, and judging whether the total width is larger than the control width of the control. For control 1, the width of the control is 80 pixels, and the content of the character string is: "my computer, computer", through the above process, it can be determined that the total width of display of the first 6 characters "my computer, c" is 80 pixels, and the total width of display of the first 7 characters is 90 pixels, which is greater than the widget width of widget 1, and is 15+15+15+10+10 +15+10+ 80 pixels. It can be determined that the content that can be completely displayed by the control 1 at most is "my computer, c", and theoretically, the intercepting position can be determined to be any character position before the character "o", that is, any substring of the character string "my computer, c" is displayed by the control 1. In this embodiment, in order to ensure that the display effect is more beautiful and the control can display more contents, the interception position is an interception position where the read character determined by the maximum width satisfying the condition that the total width is less than or equal to the width of the control is used as the character substring. I.e., to determine the position of the truncation as being between the characters "c" and "o". The string "my computer, c" is displayed via control 1. And (3) regarding the residual character string ' omputer. ' after the character string ' my computer, c ' is intercepted, taking the ' omputer. ' as the character string to be displayed, acquiring the attribute of the control 2, repeating the method, directly displaying the character string ' omputer. ' by the control 2 if the control 2 can completely display the character string ', and otherwise, segmenting the character string according to the method until the character string to be displayed is completely displayed.
It should be noted that, in the above process of this embodiment, a plurality of different controls are used to display the character string to be displayed, and certainly, the same applies to the case where there is only one control, such as only control 1. The difference lies in that the character string to be displayed is divided by the attribute of the control 1 each time, and the divided character string is displayed by the control 1 according to the preset time sequence, for example, the control 1 displays the character sub-string 'my computer', and after c '10 seconds, the next character sub-string' omputer. The complete display of the character string to be displayed can be realized in a time sequence scrolling display mode.
As shown in fig. 3, the system for adaptively segmenting and displaying a character string based on control attributes according to this embodiment includes: a first module: the method comprises the steps of obtaining control attributes; a second module: the control is used for intercepting character substrings which can be completely displayed by the control from the character strings to be displayed according to the control attributes, and the control displays the character substrings; a third module: and repeatedly calling the first module and the second module by taking the character string formed by the residual characters after the character sub-string is intercepted as the character string to be displayed until all the characters in the character string to be displayed are displayed. The control properties comprise control width, display font type and display font size.
In this embodiment, the second module includes: a number module: the device is used for reading characters from a character string to be displayed in sequence, determining the width of the characters according to the type and the size of a display font and calculating the total width of the read characters; a second sub-module: the intercepting position is determined according to the rule that the total width is smaller than the width of the control; third sub-module: intercepting a character sub-string from the character string to be displayed according to the intercepting position; fourth, sub-module: and displaying the character substring by the control.
Example two: this embodiment is substantially the same as the first embodiment. In the first embodiment, when the character string to be displayed is divided, only the relationship between the width of the control and the display width of the character to be displayed is considered, and the meaning of the character is not considered, so that the divided display is a case that the displayed content is inconvenient to understand.
In this embodiment, after step S2.2, step S2.2a is further included: analyzing the character condition of the interception position, and adjusting the interception position, wherein the adjustment comprises the following steps: the first adjustment mode: when the first character in the front of the intercepting position is an English character and the second character in the front of the intercepting position is a preset specific character, moving the intercepting position forward by one character position; the forward direction is the direction toward the beginning of the character string to be displayed, and the backward direction is the direction toward the end of the character string to be displayed. The specific characters include punctuation marks and spaces.
For example, for the character string "my computer, computer", which is obtained by dividing "the character sub-string" my computer, c ", since the last character of the character sub-string is english and the penultimate character is a punctuation mark, the first letter of the english word which is only displayed by the divided character sub-string is caused, and therefore, the intercepting position needs to be moved forward by one character, so that the obtained character sub-string is" my computer ", and the remaining character string" computer ", which is obtained by intercepting, is taken as the character string to be displayed, and the above-mentioned dividing process is repeated to perform the dividing display.
In this embodiment, the adjusting in step s2.2a further includes: the second adjustment mode is as follows: when the first character, the second character and the first character are English characters, the intercepting position is moved forward by one character position; after step S2.3, a step S2.3a is also included: correcting the character substring according to the condition of adjusting the interception position; the correction specifically comprises: when the second adjustment mode is used, a connector is added after the last character of the character sub-string. If the width of widget 1 is 120 pixels, the characters in the character string to be displayed are sequentially read, and the display width of the read characters is calculated, so that the total display width of the first 9 characters "my computer, comp" is 15+15+15+10+10+10+12+10 ═ 112 pixels, and the total display width of the first 10 characters "my computer, comp" is 15+15+15+10+10+10+12+10 ═ 122 pixels, which is greater than the widget width of widget 1. Therefore, the determined intercepting position is between the characters "p" and "u", the character string to be displayed is divided according to the intercepting position, the obtained first character sub-string is "my computer, comp", because the first character "p" and the second character "m" in the front of the intercepting position are both english characters, the first character "u" in the back of the intercepting position is also an english character, namely, the intercepting position intercepts an english word, and for ensuring the convenience of understanding during displaying, the intercepted english word needs to be displayed in a manner of a connector "-", therefore, the intercepting position is adjusted, the intercepting position is moved forward by one character, namely, the character sub-string obtained by dividing is: "my computer, com", and add the connector "-" at the end of the character substring, get the last day' my computer, com- ", for the character string" puter "remaining after cutting as the character string to be displayed, repeat the above-mentioned method, divide and display. Through adjusting the intercepting position, the display effect can be better, and the understanding is more convenient.
The character string adaptive segmentation display system based on the control attribute in the embodiment is basically the same as the first embodiment, except that: the second module further comprises: a fifth sub-module: the method is used for analyzing the character condition of the interception position and adjusting the interception position, and the adjustment comprises the following steps: the first adjustment mode: when the first character in the front of the intercepting position is an English character and the second character in the front of the intercepting position is a preset specific character, moving the intercepting position forward by one character position; the forward direction is the direction toward the beginning of the character string to be displayed, and the backward direction is the direction toward the end of the character string to be displayed.
In this embodiment, the fifth sub-module is further configured to perform a second adjustment mode: when the first character, the second character and the first character are English characters, the intercepting position is moved forward by one character position; the second module further comprises: a sixth sub-module: the character substring is corrected according to the condition of adjusting the interception position; the correction specifically comprises: when the second adjustment mode is used, a connector is added after the last character of the character sub-string.
The foregoing is considered as illustrative of the preferred embodiments of the invention and is not to be construed as limiting the invention in any way. Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical spirit of the present invention should fall within the protection scope of the technical scheme of the present invention, unless the technical spirit of the present invention departs from the content of the technical scheme of the present invention.

Claims (4)

1. A character string self-adaptive segmentation display method based on control attributes is characterized by comprising the following steps:
s1, acquiring control attributes; the control attribute comprises control width, display font type and display font size;
s2, intercepting character substrings which can be completely displayed by the control from the character strings to be displayed according to the control attributes, and displaying the character substrings by the control;
s3, taking a character string formed by the residual characters after the character sub-string is intercepted as a character string to be displayed, and repeatedly executing the steps from S1 to S3 until all characters in the character string to be displayed are displayed;
the specific steps of step S2 include:
s2.1, reading characters from a character string to be displayed in sequence, determining the width of the characters according to the type and the size of the display font, and calculating the total width of the read characters;
s2.2, determining an intercepting position according to a rule that the total width is smaller than the width of the control;
s2.3, intercepting a character sub-string from the character string to be displayed according to the intercepting position;
s2.4, displaying the character substring by the control;
after the step S2.2, further comprising a step S2.2a: analyzing the character condition of the interception position, and adjusting the interception position, wherein the adjustment comprises the following steps:
the first adjustment mode: when the first character in the front of the intercepting position is an English character and the second character in the front of the intercepting position is a preset specific character, moving the intercepting position forward by one character position;
the forward direction is a direction towards the beginning of a character string to be displayed;
the specific characters comprise punctuation marks and spaces;
the second adjustment mode is as follows: when the first character, the second character and the first character are English characters, the intercepting position is moved forward by a character position;
after step S2.3, step S2.3a is also included: correcting the character substring according to the condition of adjusting the interception position; the correction specifically comprises: when a second adjustment mode is adopted, a connector is added behind the last character of the character sub-string;
the backward direction is the direction toward the end of the character string to be displayed.
2. The character string adaptive segmentation display method based on the control attribute according to claim 1, wherein: and the interception position is an interception position of the character sub-string which is determined by the maximum width meeting the condition that the total width is less than or equal to the width of the control.
3. The character string adaptive segmentation display method based on the control attribute according to claim 1 or 2, characterized in that: the control is an FLTK control, and the character string is a character string in a UTF-8 encoding format.
4. A character string self-adaptive segmentation display system based on control attributes is characterized by comprising:
a first module: the method comprises the steps of obtaining control attributes; the control attribute comprises control width, display font type and display font size;
a second module: the control is used for intercepting a character sub-string which can be completely displayed by the control from a character string to be displayed according to the control attribute, and the control displays the character sub-string;
a third module: the display device is used for repeatedly calling the first module and the second module by taking a character string formed by residual characters after the character sub-string is intercepted as a character string to be displayed until all characters in the character string to be displayed are displayed;
the second module includes:
a number module: the device is used for reading characters from a character string to be displayed in sequence, determining the width of the characters according to the type and the size of the display font, and calculating the total width of the read characters;
a second sub-module: the intercepting position is determined according to the rule that the total width is smaller than the width of the control;
third sub-module: intercepting a character sub-string from the character string to be displayed according to the intercepting position;
fourth, sub-module: displaying, by the control, the character sub-string;
the second module further comprises:
a fifth sub-module: the method is used for analyzing the character condition of the interception position and adjusting the interception position, and the adjustment comprises the following steps:
the first adjustment mode: when the first character in the front of the intercepting position is an English character and the second character in the front of the intercepting position is a preset specific character, moving the intercepting position forward by one character position;
the forward direction is a direction towards the beginning of a character string to be displayed;
the fifth sub-module is further configured to perform a second adjustment mode: when the first character, the second character and the first character are English characters, the intercepting position is moved forward by a character position;
the second module further comprises:
a sixth sub-module: the character substring is corrected according to the condition of adjusting the interception position; the correction specifically comprises: when a second adjustment mode is adopted, a connector is added behind the last character of the character sub-string;
the backward direction is the direction toward the end of the character string to be displayed.
CN201710625541.7A 2017-07-27 2017-07-27 Character string self-adaptive segmentation display method and system based on control attributes Active CN109308146B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710625541.7A CN109308146B (en) 2017-07-27 2017-07-27 Character string self-adaptive segmentation display method and system based on control attributes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710625541.7A CN109308146B (en) 2017-07-27 2017-07-27 Character string self-adaptive segmentation display method and system based on control attributes

Publications (2)

Publication Number Publication Date
CN109308146A CN109308146A (en) 2019-02-05
CN109308146B true CN109308146B (en) 2022-03-11

Family

ID=65202158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710625541.7A Active CN109308146B (en) 2017-07-27 2017-07-27 Character string self-adaptive segmentation display method and system based on control attributes

Country Status (1)

Country Link
CN (1) CN109308146B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062186B (en) * 2019-12-06 2023-07-07 金蝶软件(中国)有限公司 Text processing method, device, computer equipment and storage medium
CN112596803A (en) * 2020-08-24 2021-04-02 文思海辉智科科技有限公司 Control string truncation checking method and device, computer equipment and storage medium
CN113705190A (en) * 2021-09-02 2021-11-26 北京字节跳动网络技术有限公司 Text processing method, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063362A (en) * 2013-07-18 2014-09-24 腾讯科技(深圳)有限公司 Character string truncation method and device
CN105955935A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Text control realization method and apparatus
CN105975264A (en) * 2016-04-29 2016-09-28 乐视控股(北京)有限公司 Implementation method and device of character control

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063362A (en) * 2013-07-18 2014-09-24 腾讯科技(深圳)有限公司 Character string truncation method and device
CN105955935A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Text control realization method and apparatus
CN105975264A (en) * 2016-04-29 2016-09-28 乐视控股(北京)有限公司 Implementation method and device of character control

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"不等宽字体的折行显示算法";杨帆;《电子科学》;20090623;全文 *
"基于FLTK的工程车显示屏GUI系统设计与实现";宋杰;《电力机车与城轨车辆》;20130720;全文 *
吴运智." 嵌入式图形工具集FLTK的研究与应用".《实验科学与技术》.2007,全文. *

Also Published As

Publication number Publication date
CN109308146A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
US8201088B2 (en) Method and apparatus for associating with an electronic document a font subset containing select character forms which are different depending on location
CN109308146B (en) Character string self-adaptive segmentation display method and system based on control attributes
US20140108897A1 (en) Method and apparatus for document conversion
US9898548B1 (en) Image conversion of text-based images
CN108415887A (en) A kind of method that pdf document is converted to OFD files
EP1739574A1 (en) Method of identifying words in an electronic document
JP2009545064A5 (en)
US11615635B2 (en) Heuristic method for analyzing content of an electronic document
US20080100623A1 (en) Determination of Unicode Points from Glyph Elements
KR102574306B1 (en) dynamic typesetting
CN111309671A (en) Method, device and storage medium for exporting PDF (Portable document Format) of web report
CN109522539A (en) Mobile device-based PDF academic paper reset system and method
CN104239282A (en) Processing method and device for electronic book
CN110377885B (en) Method, device, equipment and computer storage medium for converting PDF file
CN104516868A (en) Layout space streaming restoring method and layout space streaming restoring system
CN111338733A (en) User interface adaptation method and system
US9218327B2 (en) Optimizing the layout of electronic documents by reducing presentation size of content within document sections so that when combined a plurality of document sections fit within a page
JP2003502735A (en) Invisible encoding of attribute data in character-based documents and files
US6701023B1 (en) Reducing appearance differences between coded and noncoded units of text
CN109948129B (en) Rich text editing method and editor based on three-dimensional engine and electronic equipment
CN106776527A (en) The display methods of electronic book data, device and terminal device
CN105335346B (en) A kind of Text Extraction and device of PDF document
US20150379750A1 (en) Image processing device, image processing method, information storage medium, and program
CN113962193A (en) Table typesetting method and device, electronic equipment and storage medium
US11295061B2 (en) Dynamic layout adjustment for reflowable content

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant