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

A prompt text processing method, device and computer-readable storage medium

A technology for prompting text and processing methods, applied in the field of text processing, can solve problems such as inconsistent pixel width, incomplete display of text information, incomplete display results, etc., and achieve the effect of improving completeness

Active Publication Date: 2021-11-19
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the process of page development, it is often encountered that the text information is not displayed completely or the display will destroy the page layout. At this time, it is usually necessary to use the text prompt attribute of the page to display all the text information in the prompt text. However, when the text information When it is too long, the text displayed in the prompt text will be incompletely displayed
[0004] In view of the above situation, most of the current methods are: limit the number of characters in the prompt text, and when the prompt text reaches a certain number of characters, intercept the text and add a newline character to force the text to wrap. This method can solve the problem to a certain extent. The text displayed in the prompt text will be incompletely displayed, but the pixel width occupied by Chinese characters, letters and symbols when displayed is not the same. The pixel width of the line break of the string intercepted according to the number of characters in the text is inconsistent, causing Fixed a problem showing incomplete results

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 prompt text processing method, device and computer-readable storage medium
  • A prompt text processing method, device and computer-readable storage medium
  • A prompt text processing method, device and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0078] Embodiments of the present invention provide a prompt text processing method, device, and computer-readable storage medium, which ensure that the pixel width of a display line is within a preset range, and improve the integrity of a display result.

[0079] The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and not necessarily Used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of practice in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of ...

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 embodiment of the present invention discloses a prompt text processing method, comprising: receiving a text prompt instruction, the text prompt instruction is used to locate the first line break position of the prompt text; performing line break at the first line break position of the prompt text according to the text prompt instruction, Get the first display line; if the first pixel width of the first display line is greater than the preset pixel width, advance the first line break position at the end of the first display line to obtain the second line break position; perform line break at the second line break position of the prompt text . The embodiment of the invention also discloses a prompt text processing device and a computer-readable storage medium. The embodiment of the present invention ensures that the pixel width of each display line is within a preset range, which improves the integrity of the display result.

Description

technical field [0001] The present invention relates to the field of text processing, in particular to a prompt text processing method, device and computer-readable storage medium. Background technique [0002] Text prompt attributes include title (title) attributes and hypertext reference (alter, alt) attributes, where the title attribute specifies additional information about the target element, which usually displays a prompt text when the mouse moves over the target element, alt Property specifies an alternate hint text to display when the image cannot be rendered. [0003] In the process of page development, it is often encountered that the text information is not displayed completely or the display will destroy the page layout. At this time, it is usually necessary to use the text prompt attribute of the page to display all the text information in the prompt text. However, when the text information When it is too long, the text displayed in the prompt text will not be...

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): G06F40/106
CPCG06F40/106
Inventor 唐超甄鹏
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD